@redocly/cli 2.54.0 → 2.54.2
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/THIRD_PARTY_NOTICES +1 -1
- package/lib/chunks/{BV3FDR6T.js → 26SMEC4W.js} +1 -1
- package/lib/chunks/{23QBFBKB.js → 32ZHA42N.js} +1 -1
- package/lib/chunks/{2MBZI3W3.js → 3UYF5CLP.js} +1 -1
- package/lib/chunks/{SGZ5GYE3.js → 42DSSM4F.js} +1 -1
- package/lib/chunks/{UIQNT772.js → 42HL7XQH.js} +1 -1
- package/lib/chunks/{AM6FT7EB.js → 4UWA75AV.js} +1 -1
- package/lib/chunks/{3BQA72CL.js → 5H5SOEIM.js} +1 -1
- package/lib/chunks/{YZIILRDN.js → 5KKTVK6L.js} +1 -1
- package/lib/chunks/{5U5KA4QB.js → 73UEREUT.js} +1 -1
- package/lib/chunks/{EVZXABWY.js → 7GJ7DF3O.js} +1 -1
- package/lib/chunks/{FTTM5CU5.js → 7X6ZJPG4.js} +1 -1
- package/lib/chunks/{T5U6O5KC.js → AQQVMAUF.js} +1 -1
- package/lib/chunks/{ELMWD5XU.js → AWIBN2J5.js} +1 -1
- package/lib/chunks/{LLGJ3YMR.js → BR3C2ZRO.js} +1 -1
- package/lib/chunks/{MLHMLZ6D.js → BV72RZCF.js} +2 -2
- package/lib/chunks/{ZLOWCBYN.js → CGBDHCS4.js} +1 -1
- package/lib/chunks/{H4XURXR7.js → CUB5GMHZ.js} +1 -1
- package/lib/chunks/{FOLQQTQP.js → CWYADEAF.js} +1 -1
- package/lib/chunks/{SK6F5TET.js → EPBAZUU2.js} +1 -1
- package/lib/chunks/{KIVK5WD5.js → F645HTKX.js} +1 -1
- package/lib/chunks/{QZBHV7SD.js → FSTHNUTZ.js} +1 -1
- package/lib/chunks/{RZ4WANMS.js → G5RGUPPT.js} +1 -1
- package/lib/chunks/{XRZ5NMQ5.js → G66T7F2A.js} +1 -1
- package/lib/chunks/{Y6E4JAM3.js → HITQPK62.js} +1 -1
- package/lib/chunks/{ALXOGCUM.js → HNVJYHEV.js} +1 -1
- package/lib/chunks/{KEF4233Y.js → HR7ZTPFZ.js} +1 -1
- package/lib/chunks/{B2NEPS53.js → ICLFVPDF.js} +1 -1
- package/lib/chunks/{CI4NGJ3I.js → ITRAFA2I.js} +1 -1
- package/lib/chunks/{4563NK6K.js → IWS3O2SM.js} +1 -1
- package/lib/chunks/{YDSFHQXH.js → KVPIWPOL.js} +1 -1
- package/lib/chunks/{RW2ESAIF.js → L2EEGRZN.js} +41 -41
- package/lib/chunks/{VFDSXLTV.js → LW5V3SVS.js} +1 -1
- package/lib/chunks/{CR75HYUP.js → LY6HM2BD.js} +1 -1
- package/lib/chunks/{IW2J6X26.js → LZRNA4HH.js} +1 -1
- package/lib/chunks/{G6ES3GTP.js → M5WLF4GV.js} +1 -1
- package/lib/chunks/{FFUSN7JK.js → NSK6GPZU.js} +1 -1
- package/lib/chunks/{G2C7YJ5D.js → QHPWFCD2.js} +1 -1
- package/lib/chunks/{ZDQDZTQ7.js → RAYH3MG6.js} +1 -1
- package/lib/chunks/{3RDMQ5CQ.js → RBL3UMVK.js} +1 -1
- package/lib/chunks/{GV5K7EMH.js → RSOM77DA.js} +1 -1
- package/lib/chunks/{2TLIBL23.js → SJCEHWE2.js} +1 -1
- package/lib/chunks/{FUCJM4CG.js → SOTTFVAK.js} +1 -1
- package/lib/chunks/{ZBHEZTGU.js → SZH6RAZB.js} +1 -1
- package/lib/chunks/{DZ3BIL7B.js → T3U6D4C3.js} +1 -1
- package/lib/chunks/{FTDJMTRX.js → UR72TK6I.js} +1 -1
- package/lib/chunks/{ZBK7SJHM.js → UUIZXPYS.js} +1 -1
- package/lib/chunks/{AHGQ4BNI.js → VQVISWBJ.js} +1 -1
- package/lib/chunks/{C22B72S6.js → VUQEVFSD.js} +1 -1
- package/lib/chunks/{VTKYS75A.js → WCMZCZST.js} +1 -1
- package/lib/chunks/{L24E6ZRY.js → YOV4L7V6.js} +1 -1
- package/lib/chunks/{EQF3XONE.js → ZIP2B7BB.js} +1 -1
- package/lib/chunks/{3JLKV64R.js → ZRACBTMS.js} +1 -1
- package/lib/eject-assets/generators/cli/docs.ts +1 -1
- package/lib/eject-assets/generators/cli/engine-source.ts +1 -1
- package/lib/eject-assets/generators/cli/index.ts +2 -2
- package/lib/eject-assets/generators/cli/render.ts +1 -1
- package/lib/eject-assets/generators/go/client.ts +1 -1
- package/lib/eject-assets/generators/go/descriptor.ts +1 -1
- package/lib/eject-assets/generators/go/index.ts +2 -2
- package/lib/eject-assets/generators/go/models.ts +1 -1
- package/lib/eject-assets/generators/go/naming.ts +1 -1
- package/lib/eject-assets/generators/go/operations.ts +1 -1
- package/lib/eject-assets/generators/go/pagination.ts +1 -1
- package/lib/eject-assets/generators/go/types.ts +1 -1
- package/lib/eject-assets/generators/mock/faker.ts +1 -1
- package/lib/eject-assets/generators/mock/index.ts +2 -2
- package/lib/eject-assets/generators/mock/render.ts +1 -1
- package/lib/eject-assets/generators/mock/sample.ts +1 -1
- package/lib/eject-assets/generators/mock/values.ts +1 -1
- package/lib/eject-assets/generators/php/client.ts +1 -1
- package/lib/eject-assets/generators/php/descriptor.ts +1 -1
- package/lib/eject-assets/generators/php/index.ts +2 -2
- package/lib/eject-assets/generators/php/models.ts +1 -1
- package/lib/eject-assets/generators/php/naming.ts +1 -1
- package/lib/eject-assets/generators/php/operations.ts +1 -1
- package/lib/eject-assets/generators/php/pagination.ts +1 -1
- package/lib/eject-assets/generators/php/types.ts +1 -1
- package/lib/eject-assets/generators/python/client.ts +1 -1
- package/lib/eject-assets/generators/python/descriptor.ts +1 -1
- package/lib/eject-assets/generators/python/index.ts +2 -2
- package/lib/eject-assets/generators/python/models.ts +1 -1
- package/lib/eject-assets/generators/python/naming.ts +1 -1
- package/lib/eject-assets/generators/python/operations.ts +1 -1
- package/lib/eject-assets/generators/python/pagination.ts +1 -1
- package/lib/eject-assets/generators/python/types.ts +1 -1
- package/lib/eject-assets/generators/swr/index.ts +2 -2
- package/lib/eject-assets/generators/swr/render.ts +1 -1
- package/lib/eject-assets/generators/tanstack-query/index.ts +2 -2
- package/lib/eject-assets/generators/tanstack-query/render.ts +1 -1
- package/lib/eject-assets/generators/transformers/index.ts +2 -2
- package/lib/eject-assets/generators/transformers/render.ts +1 -1
- package/lib/eject-assets/generators/typescript/banner.ts +1 -1
- package/lib/eject-assets/generators/typescript/client.ts +1 -1
- package/lib/eject-assets/generators/typescript/descriptor.ts +1 -1
- package/lib/eject-assets/generators/typescript/index.ts +2 -2
- package/lib/eject-assets/generators/typescript/inline-runtime.ts +1 -1
- package/lib/eject-assets/generators/typescript/operation-signature.ts +1 -1
- package/lib/eject-assets/generators/typescript/operation-types.ts +1 -1
- package/lib/eject-assets/generators/typescript/operations.ts +1 -1
- package/lib/eject-assets/generators/typescript/response-headers.ts +1 -1
- package/lib/eject-assets/generators/typescript/type-guards.ts +1 -1
- package/lib/eject-assets/generators/typescript/types.ts +1 -1
- package/lib/eject-assets/generators/zod/index.ts +2 -2
- package/lib/eject-assets/generators/zod/schemas.ts +1 -1
- package/lib/index.js +9 -9
- package/package.json +1 -1
|
@@ -4,43 +4,43 @@ import { dirname as __pathDirname } from 'node:path';
|
|
|
4
4
|
const require = __createRequire(import.meta.url);
|
|
5
5
|
var __filename = __fileURLToPath(import.meta.url);
|
|
6
6
|
var __dirname = __pathDirname(__filename);
|
|
7
|
-
import{a as rt,b as Jo,c as cO}from"./NEWT5A6S.js";import{a as yu,c as x,d as aO,e as qr}from"./RFWIIJFG.js";var vu=x((gu,bu)=>{(function(e,t){typeof yu=="function"&&typeof gu=="object"&&typeof bu=="object"?bu.exports=t():typeof define=="function"&&define.amd?define(function(){return t()}):e.pluralize=t()})(gu,function(){var e=[],t=[],r={},n={},o={};function i(d){return typeof d=="string"?new RegExp("^"+d+"$","i"):d}function s(d,m){return d===m?m:d===d.toLowerCase()?m.toLowerCase():d===d.toUpperCase()?m.toUpperCase():d[0]===d[0].toUpperCase()?m.charAt(0).toUpperCase()+m.substr(1).toLowerCase():m.toLowerCase()}function a(d,m){return d.replace(/\$(\d{1,2})/g,function(h,y){return m[y]||""})}function c(d,m){return d.replace(m[0],function(h,y){var g=a(m[1],arguments);return s(h===""?d[y-1]:h,g)})}function p(d,m,h){if(!d.length||r.hasOwnProperty(d))return m;for(var y=h.length;y--;){var g=h[y];if(g[0].test(m))return c(m,g)}return m}function l(d,m,h){return function(y){var g=y.toLowerCase();return m.hasOwnProperty(g)?s(y,g):d.hasOwnProperty(g)?s(y,d[g]):p(g,y,h)}}function u(d,m,h,y){return function(g){var b=g.toLowerCase();return m.hasOwnProperty(b)?!0:d.hasOwnProperty(b)?!1:p(b,b,h)===b}}function f(d,m,h){var y=m===1?f.singular(d):f.plural(d);return(h?m+" ":"")+y}return f.plural=l(o,n,e),f.isPlural=u(o,n,e),f.singular=l(n,o,t),f.isSingular=u(n,o,t),f.addPluralRule=function(d,m){e.push([i(d),m])},f.addSingularRule=function(d,m){t.push([i(d),m])},f.addUncountableRule=function(d){if(typeof d=="string"){r[d.toLowerCase()]=!0;return}f.addPluralRule(d,"$0"),f.addSingularRule(d,"$0")},f.addIrregularRule=function(d,m){m=m.toLowerCase(),d=d.toLowerCase(),o[d]=m,n[m]=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 f.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 f.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 f.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(f.addUncountableRule),f})});var ks=x((RX,lv)=>{"use strict";var sv="[^\\\\/]",Lk="(?=.)",av="[^/]",ad="(?:\\/|$)",cv="(?:^|\\/)",cd=`\\.{1,2}${ad}`,Uk="(?!\\.)",Fk=`(?!${cv}${cd})`,zk=`(?!\\.{0,1}${ad})`,Vk=`(?!${cd})`,Bk="[^.\\/]",Hk=`${av}*?`,Kk="/",pv={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:Lk,QMARK:av,END_ANCHOR:ad,DOTS_SLASH:cd,NO_DOT:Uk,NO_DOTS:Fk,NO_DOT_SLASH:zk,NO_DOTS_SLASH:Vk,QMARK_NO_DOT:Bk,STAR:Hk,START_ANCHOR:cv,SEP:Kk},Gk={...pv,SLASH_LITERAL:"[\\\\/]",QMARK:sv,STAR:`${sv}*?`,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:"\\"},Wk={__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"};lv.exports={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Wk,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?Gk:pv}}});var Is=x(It=>{"use strict";var{REGEX_BACKSLASH:Yk,REGEX_REMOVE_BACKSLASH:Qk,REGEX_SPECIAL_CHARS:Jk,REGEX_SPECIAL_CHARS_GLOBAL:Xk}=ks();It.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);It.hasRegexChars=e=>Jk.test(e);It.isRegexChar=e=>e.length===1&&It.hasRegexChars(e);It.escapeRegex=e=>e.replace(Xk,"\\$1");It.toPosixSlashes=e=>e.replace(Yk,"/");It.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};It.removeBackslashes=e=>e.replace(Qk,t=>t==="\\"?"":t);It.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?It.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};It.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};It.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",o=r.contains?"":"$",i=`${n}(?:${e})${o}`;return t.negated===!0&&(i=`(?:^(?!${i}).*$)`),i};It.basename=(e,{windows:t}={})=>{let r=e.split(t?/[\\/]/:"/"),n=r[r.length-1];return n===""?r[r.length-2]:n}});var bv=x((kX,gv)=>{"use strict";var uv=Is(),{CHAR_ASTERISK:pd,CHAR_AT:Zk,CHAR_BACKWARD_SLASH:Cs,CHAR_COMMA:eI,CHAR_DOT:ld,CHAR_EXCLAMATION_MARK:ud,CHAR_FORWARD_SLASH:yv,CHAR_LEFT_CURLY_BRACE:dd,CHAR_LEFT_PARENTHESES:fd,CHAR_LEFT_SQUARE_BRACKET:tI,CHAR_PLUS:rI,CHAR_QUESTION_MARK:dv,CHAR_RIGHT_CURLY_BRACE:nI,CHAR_RIGHT_PARENTHESES:fv,CHAR_RIGHT_SQUARE_BRACKET:oI}=ks(),mv=e=>e===yv||e===Cs,hv=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},iI=(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,f=!1,d=!1,m=!1,h=!1,y=!1,g=!1,b=!1,v=!1,w=!1,S=!1,P=0,R,A,E={value:"",depth:0,isGlob:!1},_=()=>p>=n,ee=()=>c.charCodeAt(p+1),z=()=>(R=A,c.charCodeAt(++p));for(;p<n;){A=z();let Se;if(A===Cs){b=E.backslashes=!0,A=z(),A===dd&&(g=!0);continue}if(g===!0||A===dd){for(P++;_()!==!0&&(A=z());){if(A===Cs){b=E.backslashes=!0,z();continue}if(A===dd){P++;continue}if(g!==!0&&A===ld&&(A=z())===ld){if(f=E.isBrace=!0,m=E.isGlob=!0,S=!0,o===!0)continue;break}if(g!==!0&&A===eI){if(f=E.isBrace=!0,m=E.isGlob=!0,S=!0,o===!0)continue;break}if(A===nI&&(P--,P===0)){g=!1,f=E.isBrace=!0,S=!0;break}}if(o===!0)continue;break}if(A===yv){if(i.push(p),s.push(E),E={value:"",depth:0,isGlob:!1},S===!0)continue;if(R===ld&&p===l+1){l+=2;continue}u=p+1;continue}if(r.noext!==!0&&(A===rI||A===Zk||A===pd||A===dv||A===ud)===!0&&ee()===fd){if(m=E.isGlob=!0,h=E.isExtglob=!0,S=!0,A===ud&&p===l&&(w=!0),o===!0){for(;_()!==!0&&(A=z());){if(A===Cs){b=E.backslashes=!0,A=z();continue}if(A===fv){m=E.isGlob=!0,S=!0;break}}continue}break}if(A===pd){if(R===pd&&(y=E.isGlobstar=!0),m=E.isGlob=!0,S=!0,o===!0)continue;break}if(A===dv){if(m=E.isGlob=!0,S=!0,o===!0)continue;break}if(A===tI){for(;_()!==!0&&(Se=z());){if(Se===Cs){b=E.backslashes=!0,z();continue}if(Se===oI){d=E.isBracket=!0,m=E.isGlob=!0,S=!0;break}}if(o===!0)continue;break}if(r.nonegate!==!0&&A===ud&&p===l){v=E.negated=!0,l++;continue}if(r.noparen!==!0&&A===fd){if(m=E.isGlob=!0,o===!0){for(;_()!==!0&&(A=z());){if(A===fd){b=E.backslashes=!0,A=z();continue}if(A===fv){S=!0;break}}continue}break}if(m===!0){if(S=!0,o===!0)continue;break}}r.noext===!0&&(h=!1,m=!1);let pe=c,T="",O="";l>0&&(T=c.slice(0,l),c=c.slice(l),u-=l),pe&&m===!0&&u>0?(pe=c.slice(0,u),O=c.slice(u)):m===!0?(pe="",O=c):pe=c,pe&&pe!==""&&pe!=="/"&&pe!==c&&mv(pe.charCodeAt(pe.length-1))&&(pe=pe.slice(0,-1)),r.unescape===!0&&(O&&(O=uv.removeBackslashes(O)),pe&&b===!0&&(pe=uv.removeBackslashes(pe)));let dt={prefix:T,input:e,start:l,base:pe,glob:O,isBrace:f,isBracket:d,isGlob:m,isExtglob:h,isGlobstar:y,negated:v,negatedExtglob:w};if(r.tokens===!0&&(dt.maxDepth=0,mv(A)||s.push(E),dt.tokens=s),r.parts===!0||r.tokens===!0){let Se;for(let G=0;G<i.length;G++){let De=Se?Se+1:l,$e=i[G],fe=e.slice(De,$e);r.tokens&&(G===0&&l!==0?(s[G].isPrefix=!0,s[G].value=T):s[G].value=fe,hv(s[G]),dt.maxDepth+=s[G].depth),(G!==0||fe!=="")&&a.push(fe),Se=$e}if(Se&&Se+1<e.length){let G=e.slice(Se+1);a.push(G),r.tokens&&(s[s.length-1].value=G,hv(s[s.length-1]),dt.maxDepth+=s[s.length-1].depth)}dt.slashes=i,dt.parts=a}return dt};gv.exports=iI});var _v=x((IX,wv)=>{"use strict";var qs=ks(),Ht=Is(),{MAX_LENGTH:Sc,POSIX_REGEX_SOURCE:sI,REGEX_NON_SPECIAL_CHARS:aI,REGEX_SPECIAL_CHARS_BACKREF:cI,REPLACEMENTS:vv}=qs,pI=(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=>Ht.escapeRegex(o)).join("..")}return r},ci=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,xv=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},lI=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},Sv=e=>{let t=e.trim(),r=!0;for(;r===!0;)r=!1,/^@\([^\\()[\]{}|]+\)$/.test(t)&&(t=t.slice(2,-1),r=!0);if(lI(t))return t.replace(/\\(.)/g,"$1")},uI=e=>{let t=e.map(Sv).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},md=(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}}}}},dI=e=>{let t=0,r=[];for(;t<e.length;){let o=md(e.slice(t),!1);if(!o||o.type!=="*")return;let i=xv(o.body).map(a=>a.trim());if(i.length!==1)return;let s=Sv(i[0]);if(!s||s.length!==1)return;r.push(s),t+=o.end+1}return r.length<1?void 0:`${r.length===1?Ht.escapeRegex(r[0]):`[${r.map(o=>Ht.escapeRegex(o)).join("")}]`}*`},fI=e=>{let t=0,r=e.trim(),n=md(r);for(;n;)t++,r=n.body.trim(),n=md(r);return t},mI=(e,t)=>{if(t.maxExtglobRecursion===!1)return{risky:!1};let r=typeof t.maxExtglobRecursion=="number"?t.maxExtglobRecursion:qs.DEFAULT_MAX_EXTGLOB_RECURSION,n=xv(e).map(o=>o.trim());if(n.length>1&&(n.some(o=>o==="")||n.some(o=>/^[*?]+$/.test(o))||uI(n)))return{risky:!0};for(let o of n){let i=dI(o);if(i)return{risky:!0,safeOutput:i};if(fI(o)>r)return{risky:!0}}return{risky:!1}},hd=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=vv[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(Sc,r.maxLength):Sc,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=qs.globChars(r.windows),p=qs.extglobChars(c),{DOT_LITERAL:l,PLUS_LITERAL:u,SLASH_LITERAL:f,ONE_CHAR:d,DOTS_SLASH:m,NO_DOT:h,NO_DOT_SLASH:y,NO_DOTS_SLASH:g,QMARK:b,QMARK_NO_DOT:v,STAR:w,START_ANCHOR:S}=c,P=k=>`(${a}(?:(?!${S}${k.dot?m:l}).)*?)`,R=r.dot?"":h,A=r.dot?b:v,E=r.bash===!0?P(r):w;r.capture&&(E=`(${E})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let _={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=Ht.removePrefix(e,_),o=e.length;let ee=[],z=[],pe=[],T=i,O,dt=()=>_.index===o-1,Se=_.peek=(k=1)=>e[_.index+k],G=_.advance=()=>e[++_.index]||"",De=()=>e.slice(_.index+1),$e=(k="",X=0)=>{_.consumed+=k,_.index+=X},fe=k=>{_.output+=k.output!=null?k.output:k.value,$e(k.value)},Bt=()=>{let k=1;for(;Se()==="!"&&(Se(2)!=="("||Se(3)==="?");)G(),_.start++,k++;return k%2===0?!1:(_.negated=!0,_.start++,!0)},Je=k=>{_[k]++,pe.push(k)},Ge=k=>{_[k]--,pe.pop()},V=k=>{if(T.type==="globstar"){let X=_.braces>0&&(k.type==="comma"||k.type==="brace"),I=k.extglob===!0||ee.length&&(k.type==="pipe"||k.type==="paren");k.type!=="slash"&&k.type!=="paren"&&!X&&!I&&(_.output=_.output.slice(0,-T.output.length),T.type="star",T.value="*",T.output=E,_.output+=T.output)}if(ee.length&&k.type!=="paren"&&(ee[ee.length-1].inner+=k.value),(k.value||k.output)&&fe(k),T&&T.type==="text"&&k.type==="text"){T.output=(T.output||T.value)+k.value,T.value+=k.value;return}k.prev=T,s.push(k),T=k},Jt=(k,X)=>{let I={...p[X],conditions:1,inner:""};I.prev=T,I.parens=_.parens,I.output=_.output,I.startIndex=_.index,I.tokensIndex=s.length;let N=(r.capture?"(":"")+I.open;Je("parens"),V({type:k,value:X,output:_.output?"":d}),V({type:"paren",extglob:!0,value:G(),output:N}),ee.push(I)},j=k=>{let X=e.slice(k.startIndex,_.index+1),I=e.slice(k.startIndex+2,_.index),N=mI(I,r);if((k.type==="plus"||k.type==="star")&&N.risky){let we=N.safeOutput?(k.output?"":d)+(r.capture?`(${N.safeOutput})`:N.safeOutput):void 0,Ir=s[k.tokensIndex];Ir.type="text",Ir.value=X,Ir.output=we||Ht.escapeRegex(X);for(let Cr=k.tokensIndex+1;Cr<s.length;Cr++)s[Cr].value="",s[Cr].output="",delete s[Cr].suffix;_.output=k.output+Ir.output,_.backtrack=!0,V({type:"paren",extglob:!0,value:O,output:""}),Ge("parens");return}let me=k.close+(r.capture?")":""),Le;if(k.type==="negate"){let we=E;if(k.inner&&k.inner.length>1&&k.inner.includes("/")&&(we=P(r)),(we!==E||dt()||/^\)+$/.test(De()))&&(me=k.close=`)$))${we}`),k.inner.includes("*")&&(Le=De())&&/^\.[^\\/.]+$/.test(Le)){let Ir=hd(Le,{...t,fastpaths:!1}).output;me=k.close=`)${Ir})${we})`}k.prev.type==="bos"&&(_.negatedExtglob=!0)}V({type:"paren",extglob:!0,value:O,output:me}),Ge("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let k=!1,X=e.replace(cI,(I,N,me,Le,we,Ir)=>Le==="\\"?(k=!0,I):Le==="?"?N?N+Le+(we?b.repeat(we.length):""):Ir===0?A+(we?b.repeat(we.length):""):b.repeat(me.length):Le==="."?l.repeat(me.length):Le==="*"?N?N+Le+(we?E:""):E:N?I:`\\${I}`);return k===!0&&(r.unescape===!0?X=X.replace(/\\/g,""):X=X.replace(/\\+/g,I=>I.length%2===0?"\\\\":I?"\\":"")),X===e&&r.contains===!0?(_.output=e,_):(_.output=Ht.wrapOutput(X,_,t),_)}for(;!dt();){if(O=G(),O==="\0")continue;if(O==="\\"){let I=Se();if(I==="/"&&r.bash!==!0||I==="."||I===";")continue;if(!I){O+="\\",V({type:"text",value:O});continue}let N=/^\\+/.exec(De()),me=0;if(N&&N[0].length>2&&(me=N[0].length,_.index+=me,me%2!==0&&(O+="\\")),r.unescape===!0?O=G():O+=G(),_.brackets===0){V({type:"text",value:O});continue}}if(_.brackets>0&&(O!=="]"||T.value==="["||T.value==="[^")){if(r.posix!==!1&&O===":"){let I=T.value.slice(1);if(I.includes("[")&&(T.posix=!0,I.includes(":"))){let N=T.value.lastIndexOf("["),me=T.value.slice(0,N),Le=T.value.slice(N+2),we=sI[Le];if(we){T.value=me+we,_.backtrack=!0,G(),!i.output&&s.indexOf(T)===1&&(i.output=d);continue}}}(O==="["&&Se()!==":"||O==="-"&&Se()==="]")&&(O=`\\${O}`),O==="]"&&(T.value==="["||T.value==="[^")&&(O=`\\${O}`),r.posix===!0&&O==="!"&&T.value==="["&&(O="^"),T.value+=O,fe({value:O});continue}if(_.quotes===1&&O!=='"'){O=Ht.escapeRegex(O),T.value+=O,fe({value:O});continue}if(O==='"'){_.quotes=_.quotes===1?0:1,r.keepQuotes===!0&&V({type:"text",value:O});continue}if(O==="("){Je("parens"),V({type:"paren",value:O});continue}if(O===")"){if(_.parens===0&&r.strictBrackets===!0)throw new SyntaxError(ci("opening","("));let I=ee[ee.length-1];if(I&&_.parens===I.parens+1){j(ee.pop());continue}V({type:"paren",value:O,output:_.parens?")":"\\)"}),Ge("parens");continue}if(O==="["){if(r.nobracket===!0||!De().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(ci("closing","]"));O=`\\${O}`}else Je("brackets");V({type:"bracket",value:O});continue}if(O==="]"){if(r.nobracket===!0||T&&T.type==="bracket"&&T.value.length===1){V({type:"text",value:O,output:`\\${O}`});continue}if(_.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(ci("opening","["));V({type:"text",value:O,output:`\\${O}`});continue}Ge("brackets");let I=T.value.slice(1);if(T.posix!==!0&&I[0]==="^"&&!I.includes("/")&&(O=`/${O}`),T.value+=O,fe({value:O}),r.literalBrackets===!1||Ht.hasRegexChars(I))continue;let N=Ht.escapeRegex(T.value);if(_.output=_.output.slice(0,-T.value.length),r.literalBrackets===!0){_.output+=N,T.value=N;continue}T.value=`(${a}${N}|${T.value})`,_.output+=T.value;continue}if(O==="{"&&r.nobrace!==!0){Je("braces");let I={type:"brace",value:O,output:"(",outputIndex:_.output.length,tokensIndex:_.tokens.length};z.push(I),V(I);continue}if(O==="}"){let I=z[z.length-1];if(r.nobrace===!0||!I){V({type:"text",value:O,output:O});continue}let N=")";if(I.dots===!0){let me=s.slice(),Le=[];for(let we=me.length-1;we>=0&&(s.pop(),me[we].type!=="brace");we--)me[we].type!=="dots"&&Le.unshift(me[we].value);N=pI(Le,r),_.backtrack=!0}if(I.comma!==!0&&I.dots!==!0){let me=_.output.slice(0,I.outputIndex),Le=_.tokens.slice(I.tokensIndex);I.value=I.output="\\{",O=N="\\}",_.output=me;for(let we of Le)_.output+=we.output||we.value}V({type:"brace",value:O,output:N}),Ge("braces"),z.pop();continue}if(O==="|"){ee.length>0&&ee[ee.length-1].conditions++,V({type:"text",value:O});continue}if(O===","){let I=O,N=z[z.length-1];N&&pe[pe.length-1]==="braces"&&(N.comma=!0,I="|"),V({type:"comma",value:O,output:I});continue}if(O==="/"){if(T.type==="dot"&&_.index===_.start+1){_.start=_.index+1,_.consumed="",_.output="",s.pop(),T=i;continue}V({type:"slash",value:O,output:f});continue}if(O==="."){if(_.braces>0&&T.type==="dot"){T.value==="."&&(T.output=l);let I=z[z.length-1];T.type="dots",T.output+=O,T.value+=O,I.dots=!0;continue}if(_.braces+_.parens===0&&T.type!=="bos"&&T.type!=="slash"){V({type:"text",value:O,output:l});continue}V({type:"dot",value:O,output:l});continue}if(O==="?"){if(!(T&&T.value==="(")&&r.noextglob!==!0&&Se()==="("&&Se(2)!=="?"){Jt("qmark",O);continue}if(T&&T.type==="paren"){let N=Se(),me=O;(T.value==="("&&!/[!=<:]/.test(N)||N==="<"&&!/<([!=]|\w+>)/.test(De()))&&(me=`\\${O}`),V({type:"text",value:O,output:me});continue}if(r.dot!==!0&&(T.type==="slash"||T.type==="bos")){V({type:"qmark",value:O,output:v});continue}V({type:"qmark",value:O,output:b});continue}if(O==="!"){if(r.noextglob!==!0&&Se()==="("&&(Se(2)!=="?"||!/[!=<:]/.test(Se(3)))){Jt("negate",O);continue}if(r.nonegate!==!0&&_.index===0){Bt();continue}}if(O==="+"){if(r.noextglob!==!0&&Se()==="("&&Se(2)!=="?"){Jt("plus",O);continue}if(T&&T.value==="("||r.regex===!1){V({type:"plus",value:O,output:u});continue}if(T&&(T.type==="bracket"||T.type==="paren"||T.type==="brace")||_.parens>0){V({type:"plus",value:O});continue}V({type:"plus",value:u});continue}if(O==="@"){if(r.noextglob!==!0&&Se()==="("&&Se(2)!=="?"){V({type:"at",extglob:!0,value:O,output:""});continue}V({type:"text",value:O});continue}if(O!=="*"){(O==="$"||O==="^")&&(O=`\\${O}`);let I=aI.exec(De());I&&(O+=I[0],_.index+=I[0].length),V({type:"text",value:O});continue}if(T&&(T.type==="globstar"||T.star===!0)){T.type="star",T.star=!0,T.value+=O,T.output=E,_.backtrack=!0,_.globstar=!0,$e(O);continue}let k=De();if(r.noextglob!==!0&&/^\([^?]/.test(k)){Jt("star",O);continue}if(T.type==="star"){if(r.noglobstar===!0){$e(O);continue}let I=T.prev,N=I.prev,me=I.type==="slash"||I.type==="bos",Le=N&&(N.type==="star"||N.type==="globstar");if(r.bash===!0&&(!me||k[0]&&k[0]!=="/")){V({type:"star",value:O,output:""});continue}let we=_.braces>0&&(I.type==="comma"||I.type==="brace"),Ir=ee.length&&(I.type==="pipe"||I.type==="paren");if(!me&&I.type!=="paren"&&!we&&!Ir){V({type:"star",value:O,output:""});continue}for(;k.slice(0,3)==="/**";){let Cr=e[_.index+4];if(Cr&&Cr!=="/")break;k=k.slice(3),$e("/**",3)}if(I.type==="bos"&&dt()){T.type="globstar",T.value+=O,T.output=P(r),_.output=T.output,_.globstar=!0,$e(O);continue}if(I.type==="slash"&&I.prev.type!=="bos"&&!Le&&dt()){_.output=_.output.slice(0,-(I.output+T.output).length),I.output=`(?:${I.output}`,T.type="globstar",T.output=P(r)+(r.strictSlashes?")":"|$)"),T.value+=O,_.globstar=!0,_.output+=I.output+T.output,$e(O);continue}if(I.type==="slash"&&I.prev.type!=="bos"&&k[0]==="/"){let Cr=k[1]!==void 0?"|$":"";_.output=_.output.slice(0,-(I.output+T.output).length),I.output=`(?:${I.output}`,T.type="globstar",T.output=`${P(r)}${f}|${f}${Cr})`,T.value+=O,_.output+=I.output+T.output,_.globstar=!0,$e(O+G()),V({type:"slash",value:"/",output:""});continue}if(I.type==="bos"&&k[0]==="/"){T.type="globstar",T.value+=O,T.output=`(?:^|${f}|${P(r)}${f})`,_.output=T.output,_.globstar=!0,$e(O+G()),V({type:"slash",value:"/",output:""});continue}_.output=_.output.slice(0,-T.output.length),T.type="globstar",T.output=P(r),T.value+=O,_.output+=T.output,_.globstar=!0,$e(O);continue}let X={type:"star",value:O,output:E};if(r.bash===!0){X.output=".*?",(T.type==="bos"||T.type==="slash")&&(X.output=R+X.output),V(X);continue}if(T&&(T.type==="bracket"||T.type==="paren")&&r.regex===!0){X.output=O,V(X);continue}(_.index===_.start||T.type==="slash"||T.type==="dot")&&(T.type==="dot"?(_.output+=y,T.output+=y):r.dot===!0?(_.output+=g,T.output+=g):(_.output+=R,T.output+=R),Se()!=="*"&&(_.output+=d,T.output+=d)),V(X)}for(;_.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(ci("closing","]"));_.output=Ht.escapeLast(_.output,"["),Ge("brackets")}for(;_.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(ci("closing",")"));_.output=Ht.escapeLast(_.output,"("),Ge("parens")}for(;_.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(ci("closing","}"));_.output=Ht.escapeLast(_.output,"{"),Ge("braces")}if(r.strictSlashes!==!0&&(T.type==="star"||T.type==="bracket")&&V({type:"maybe_slash",value:"",output:`${f}?`}),_.backtrack===!0){_.output="";for(let k of _.tokens)_.output+=k.output!=null?k.output:k.value,k.suffix&&(_.output+=k.suffix)}return _};hd.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(Sc,r.maxLength):Sc,o=e.length;if(o>n)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${n}`);e=vv[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:f,START_ANCHOR:d}=qs.globChars(r.windows),m=r.dot?l:p,h=r.dot?u:p,y=r.capture?"":"?:",g={negated:!1,prefix:""},b=r.bash===!0?".*?":f;r.capture&&(b=`(${b})`);let v=R=>R.noglobstar===!0?b:`(${y}(?:(?!${d}${R.dot?c:i}).)*?)`,w=R=>{switch(R){case"*":return`${m}${a}${b}`;case".*":return`${i}${a}${b}`;case"*.*":return`${m}${b}${i}${a}${b}`;case"*/*":return`${m}${b}${s}${a}${h}${b}`;case"**":return m+v(r);case"**/*":return`(?:${m}${v(r)}${s})?${h}${a}${b}`;case"**/*.*":return`(?:${m}${v(r)}${s})?${h}${b}${i}${a}${b}`;case"**/.*":return`(?:${m}${v(r)}${s})?${i}${a}${b}`;default:{let A=/^(.*?)\.(\w+)$/.exec(R);if(!A)return;let E=w(A[1]);return E?E+i+A[2]:void 0}}},S=Ht.removePrefix(e,g),P=w(S);return P&&r.strictSlashes!==!0&&(P+=`${s}?`),P};wv.exports=hd});var $v=x((CX,Ev)=>{"use strict";var hI=bv(),yd=_v(),Pv=Is(),yI=ks(),gI=e=>e&&typeof e=="object"&&!Array.isArray(e),Fe=(e,t,r=!1)=>{if(Array.isArray(e)){let l=e.map(f=>Fe(f,t,r));return f=>{for(let d of l){let m=d(f);if(m)return m}return!1}}let n=gI(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?Fe.compileRe(e,t):Fe.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=Fe(o.ignore,l,r)}let p=(l,u=!1)=>{let{isMatch:f,match:d,output:m}=Fe.test(l,s,t,{glob:e,posix:i}),h={glob:e,state:a,regex:s,posix:i,input:l,output:m,match:d,isMatch:f};return typeof o.onResult=="function"&&o.onResult(h),f===!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};Fe.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?Pv.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=Fe.matchBase(e,t,r,o):a=t.exec(c)),{isMatch:!!a,match:a,output:c}};Fe.matchBase=(e,t,r)=>(t instanceof RegExp?t:Fe.makeRe(t,r)).test(Pv.basename(e));Fe.isMatch=(e,t,r)=>Fe(t,r)(e);Fe.parse=(e,t)=>Array.isArray(e)?e.map(r=>Fe.parse(r,t)):yd(e,{...t,fastpaths:!1});Fe.scan=(e,t)=>hI(e,t);Fe.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=Fe.toRegex(a,t);return n===!0&&(c.state=e),c};Fe.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=yd.fastpaths(e,t)),o.output||(o=yd(e,t)),Fe.compileRe(o,t,r,n)};Fe.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/$^/}};Fe.constants=yI;Ev.exports=Fe});var Ov=x((qX,Rv)=>{"use strict";var Av=$v(),bI=Is();function Tv(e,t,r=!1){return t&&(t.windows===null||t.windows===void 0)&&(t={...t,windows:bI.isWindows()}),Av(e,t,r)}Object.assign(Tv,Av);Rv.exports=Tv});var Vs=x(ve=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0});ve.regexpCode=ve.getEsmExportName=ve.getProperty=ve.safeStringify=ve.stringify=ve.strConcat=ve.addCodeArg=ve.str=ve._=ve.nil=ve._Code=ve.Name=ve.IDENTIFIER=ve._CodeOrName=void 0;var Fs=class{};ve._CodeOrName=Fs;ve.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var go=class extends Fs{constructor(t){if(super(),!ve.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}}};ve.Name=go;var rr=class extends Fs{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 go&&(r[n.str]=(r[n.str]||0)+1),r),{})}};ve._Code=rr;ve.nil=new rr("");function j0(e,...t){let r=[e[0]],n=0;for(;n<t.length;)Zd(r,t[n]),r.push(e[++n]);return new rr(r)}ve._=j0;var Xd=new rr("+");function D0(e,...t){let r=[zs(e[0])],n=0;for(;n<t.length;)r.push(Xd),Zd(r,t[n]),r.push(Xd,zs(e[++n]));return SU(r),new rr(r)}ve.str=D0;function Zd(e,t){t instanceof rr?e.push(...t._items):t instanceof go?e.push(t):e.push(PU(t))}ve.addCodeArg=Zd;function SU(e){let t=1;for(;t<e.length-1;){if(e[t]===Xd){let r=wU(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function wU(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof go||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 go))return`"${e}${t.slice(1)}`}function _U(e,t){return t.emptyStr()?e:e.emptyStr()?t:D0`${e}${t}`}ve.strConcat=_U;function PU(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:zs(Array.isArray(e)?e.join(","):e)}function EU(e){return new rr(zs(e))}ve.stringify=EU;function zs(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}ve.safeStringify=zs;function $U(e){return typeof e=="string"&&ve.IDENTIFIER.test(e)?new rr(`.${e}`):j0`[${e}]`}ve.getProperty=$U;function AU(e){if(typeof e=="string"&&ve.IDENTIFIER.test(e))return new rr(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}ve.getEsmExportName=AU;function TU(e){return new rr(e.toString())}ve.regexpCode=TU});var rf=x(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.ValueScope=Mt.ValueScopeName=Mt.Scope=Mt.varKinds=Mt.UsedValueState=void 0;var Nt=Vs(),ef=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},zc;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(zc||(Mt.UsedValueState=zc={}));Mt.varKinds={const:new Nt.Name("const"),let:new Nt.Name("let"),var:new Nt.Name("var")};var Vc=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof Nt.Name?t:this.name(t)}name(t){return new Nt.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}}};Mt.Scope=Vc;var Bc=class extends Nt.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,Nt._)`.${new Nt.Name(r)}[${n}]`}};Mt.ValueScopeName=Bc;var RU=(0,Nt._)`\n`,tf=class extends Vc{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?RU:Nt.nil}}get(){return this._scope}name(t){return new Bc(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,Nt._)`${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=Nt.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,zc.Started);let l=r(p);if(l){let u=this.opts.es5?Mt.varKinds.var:Mt.varKinds.const;i=(0,Nt._)`${i}${u} ${p} = ${l};${this.opts._n}`}else if(l=o?.(p))i=(0,Nt._)`${i}${l}${this.opts._n}`;else throw new ef(p);c.set(p,zc.Completed)})}return i}};Mt.ValueScope=tf});var B=x(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 le=Vs(),vr=rf(),On=Vs();Object.defineProperty(re,"_",{enumerable:!0,get:function(){return On._}});Object.defineProperty(re,"str",{enumerable:!0,get:function(){return On.str}});Object.defineProperty(re,"strConcat",{enumerable:!0,get:function(){return On.strConcat}});Object.defineProperty(re,"nil",{enumerable:!0,get:function(){return On.nil}});Object.defineProperty(re,"getProperty",{enumerable:!0,get:function(){return On.getProperty}});Object.defineProperty(re,"stringify",{enumerable:!0,get:function(){return On.stringify}});Object.defineProperty(re,"regexpCode",{enumerable:!0,get:function(){return On.regexpCode}});Object.defineProperty(re,"Name",{enumerable:!0,get:function(){return On.Name}});var Wc=rf();Object.defineProperty(re,"Scope",{enumerable:!0,get:function(){return Wc.Scope}});Object.defineProperty(re,"ValueScope",{enumerable:!0,get:function(){return Wc.ValueScope}});Object.defineProperty(re,"ValueScopeName",{enumerable:!0,get:function(){return Wc.ValueScopeName}});Object.defineProperty(re,"varKinds",{enumerable:!0,get:function(){return Wc.varKinds}});re.operators={GT:new le._Code(">"),GTE:new le._Code(">="),LT:new le._Code("<"),LTE:new le._Code("<="),EQ:new le._Code("==="),NEQ:new le._Code("!=="),NOT:new le._Code("!"),OR:new le._Code("||"),AND:new le._Code("&&"),ADD:new le._Code("+")};var ln=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},nf=class extends ln{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?vr.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=vi(this.rhs,t,r)),this}get names(){return this.rhs instanceof le._CodeOrName?this.rhs.names:{}}},Hc=class extends ln{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 le.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=vi(this.rhs,t,r),this}get names(){let t=this.lhs instanceof le.Name?{}:{...this.lhs.names};return Gc(t,this.rhs)}},of=class extends Hc{constructor(t,r,n,o){super(t,n,o),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},sf=class extends ln{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},af=class extends ln{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},cf=class extends ln{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},pf=class extends ln{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=vi(this.code,t,r),this}get names(){return this.code instanceof le._CodeOrName?this.code.names:{}}},Bs=class extends ln{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)||(OU(t,i.names),n.splice(o,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>xo(t,r.names),{})}},un=class extends Bs{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},lf=class extends Bs{},bi=class extends un{};bi.kind="else";var bo=class e extends un{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 bi(n):n}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(L0(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=vi(this.condition,t,r),this}get names(){let t=super.names;return Gc(t,this.condition),this.else&&xo(t,this.else.names),t}};bo.kind="if";var vo=class extends un{};vo.kind="for";var uf=class extends vo{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=vi(this.iteration,t,r),this}get names(){return xo(super.names,this.iteration.names)}},df=class extends vo{constructor(t,r,n,o){super(),this.varKind=t,this.name=r,this.from=n,this.to=o}render(t){let r=t.es5?vr.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=Gc(super.names,this.from);return Gc(t,this.to)}},Kc=class extends vo{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=vi(this.iterable,t,r),this}get names(){return xo(super.names,this.iterable.names)}},Hs=class extends un{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)}};Hs.kind="func";var Ks=class extends Bs{render(t){return"return "+super.render(t)}};Ks.kind="return";var ff=class extends un{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&&xo(t,this.catch.names),this.finally&&xo(t,this.finally.names),t}},Gs=class extends un{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};Gs.kind="catch";var Ws=class extends un{render(t){return"finally"+super.render(t)}};Ws.kind="finally";var mf=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
|
|
8
|
-
`:""},this._extScope=t,this._scope=new vr.Scope({parent:t}),this._nodes=[new lf]}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 nf(t,i,n)),i}const(t,r,n){return this._def(vr.varKinds.const,t,r,n)}let(t,r,n){return this._def(vr.varKinds.let,t,r,n)}var(t,r,n){return this._def(vr.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new Hc(t,r,n))}add(t,r){return this._leafNode(new of(t,re.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==le.nil&&this._leafNode(new pf(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,le.addCodeArg)(r,o));return r.push("}"),new le._Code(r)}if(t,r,n){if(this._blockNode(new bo(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 bo(t))}else(){return this._elseNode(new bi)}endIf(){return this._endBlockNode(bo,bi)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new uf(t),r)}forRange(t,r,n,o,i=this.opts.es5?vr.varKinds.var:vr.varKinds.let){let s=this._scope.toName(t);return this._for(new df(i,s,r,n),()=>o(s))}forOf(t,r,n,o=vr.varKinds.const){let i=this._scope.toName(t);if(this.opts.es5){let s=r instanceof le.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,le._)`${s}.length`,a=>{this.var(i,(0,le._)`${s}[${a}]`),n(i)})}return this._for(new Kc("of",o,i,r),()=>n(i))}forIn(t,r,n,o=this.opts.es5?vr.varKinds.var:vr.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,le._)`Object.keys(${r})`,n);let i=this._scope.toName(t);return this._for(new Kc("in",o,i,r),()=>n(i))}endFor(){return this._endBlockNode(vo)}label(t){return this._leafNode(new sf(t))}break(t){return this._leafNode(new af(t))}return(t){let r=new Ks;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Ks)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let o=new ff;if(this._blockNode(o),this.code(t),r){let i=this.name("e");this._currNode=o.catch=new Gs(i),r(i)}return n&&(this._currNode=o.finally=new Ws,this.code(n)),this._endBlockNode(Gs,Ws)}throw(t){return this._leafNode(new cf(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=le.nil,n,o){return this._blockNode(new Hs(t,r,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(Hs)}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 bo))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=mf;function xo(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function Gc(e,t){return t instanceof le._CodeOrName?xo(e,t.names):e}function vi(e,t,r){if(e instanceof le.Name)return n(e);if(!o(e))return e;return new le._Code(e._items.reduce((i,s)=>(s instanceof le.Name&&(s=n(s)),s instanceof le._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 le._Code&&i._items.some(s=>s instanceof le.Name&&t[s.str]===1&&r[s.str]!==void 0)}}function OU(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}function L0(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,le._)`!${hf(e)}`}re.not=L0;var kU=U0(re.operators.AND);function IU(...e){return e.reduce(kU)}re.and=IU;var CU=U0(re.operators.OR);function qU(...e){return e.reduce(CU)}re.or=qU;function U0(e){return(t,r)=>t===le.nil?r:r===le.nil?t:(0,le._)`${hf(t)} ${e} ${hf(r)}`}function hf(e){return e instanceof le.Name?e:(0,le._)`(${e})`}});var ae=x(se=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});se.checkStrictMode=se.getErrorPath=se.Type=se.useFunc=se.setEvaluated=se.evaluatedPropsToName=se.mergeEvaluated=se.eachItem=se.unescapeJsonPointer=se.escapeJsonPointer=se.escapeFragment=se.unescapeFragment=se.schemaRefOrVal=se.schemaHasRulesButRef=se.schemaHasRules=se.checkUnknownRules=se.alwaysValidSchema=se.toHash=void 0;var Re=B(),NU=Vs();function MU(e){let t={};for(let r of e)t[r]=!0;return t}se.toHash=MU;function jU(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(V0(e,t),!B0(t,e.self.RULES.all))}se.alwaysValidSchema=jU;function V0(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]||G0(e,`unknown keyword: "${i}"`)}se.checkUnknownRules=V0;function B0(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}se.schemaHasRules=B0;function DU(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}se.schemaHasRulesButRef=DU;function LU({topSchemaRef:e,schemaPath:t},r,n,o){if(!o){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,Re._)`${r}`}return(0,Re._)`${e}${t}${(0,Re.getProperty)(n)}`}se.schemaRefOrVal=LU;function UU(e){return H0(decodeURIComponent(e))}se.unescapeFragment=UU;function FU(e){return encodeURIComponent(gf(e))}se.escapeFragment=FU;function gf(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}se.escapeJsonPointer=gf;function H0(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}se.unescapeJsonPointer=H0;function zU(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}se.eachItem=zU;function F0({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(o,i,s,a)=>{let c=s===void 0?i:s instanceof Re.Name?(i instanceof Re.Name?e(o,i,s):t(o,i,s),s):i instanceof Re.Name?(t(o,s,i),i):r(i,s);return a===Re.Name&&!(c instanceof Re.Name)?n(o,c):c}}se.mergeEvaluated={props:F0({mergeNames:(e,t,r)=>e.if((0,Re._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,Re._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,Re._)`${r} || {}`).code((0,Re._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,Re._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,Re._)`${r} || {}`),bf(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:K0}),items:F0({mergeNames:(e,t,r)=>e.if((0,Re._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,Re._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,Re._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,Re._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function K0(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,Re._)`{}`);return t!==void 0&&bf(e,r,t),r}se.evaluatedPropsToName=K0;function bf(e,t,r){Object.keys(r).forEach(n=>e.assign((0,Re._)`${t}${(0,Re.getProperty)(n)}`,!0))}se.setEvaluated=bf;var z0={};function VU(e,t){return e.scopeValue("func",{ref:t,code:z0[t.code]||(z0[t.code]=new NU._Code(t.code))})}se.useFunc=VU;var yf;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(yf||(se.Type=yf={}));function BU(e,t,r){if(e instanceof Re.Name){let n=t===yf.Num;return r?n?(0,Re._)`"[" + ${e} + "]"`:(0,Re._)`"['" + ${e} + "']"`:n?(0,Re._)`"/" + ${e}`:(0,Re._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,Re.getProperty)(e).toString():"/"+gf(e)}se.getErrorPath=BU;function G0(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}se.checkStrictMode=G0});var Pt=x(vf=>{"use strict";Object.defineProperty(vf,"__esModule",{value:!0});var ot=B(),HU={data:new ot.Name("data"),valCxt:new ot.Name("valCxt"),instancePath:new ot.Name("instancePath"),parentData:new ot.Name("parentData"),parentDataProperty:new ot.Name("parentDataProperty"),rootData:new ot.Name("rootData"),dynamicAnchors:new ot.Name("dynamicAnchors"),isAllOfVariant:new ot.Name("isAllOfVariant"),vErrors:new ot.Name("vErrors"),errors:new ot.Name("errors"),this:new ot.Name("this"),self:new ot.Name("self"),scope:new ot.Name("scope"),json:new ot.Name("json"),jsonPos:new ot.Name("jsonPos"),jsonLen:new ot.Name("jsonLen"),jsonPart:new ot.Name("jsonPart")};vf.default=HU});var Ys=x(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.extendErrors=yt.resetErrorsCount=yt.reportExtraError=yt.reportError=yt.keyword$DataError=yt.keywordError=void 0;var ye=B(),Yc=ae(),Et=Pt();yt.keywordError={message:({keyword:e})=>(0,ye.str)`must pass "${e}" keyword validation`};yt.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 KU(e,t=yt.keywordError,r,n){let{it:o}=e,{gen:i,compositeRule:s,allErrors:a}=o,c=Q0(e,t,r);n??(s||a)?W0(i,c):Y0(o,(0,ye._)`[${c}]`)}yt.reportError=KU;function GU(e,t=yt.keywordError,r){let{it:n}=e,{gen:o,compositeRule:i,allErrors:s}=n,a=Q0(e,t,r);W0(o,a),i||s||Y0(n,Et.default.vErrors)}yt.reportExtraError=GU;function WU(e,t){e.assign(Et.default.errors,t),e.if((0,ye._)`${Et.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,ye._)`${Et.default.vErrors}.length`,t),()=>e.assign(Et.default.vErrors,null)))}yt.resetErrorsCount=WU;function YU({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,Et.default.errors,a=>{e.const(s,(0,ye._)`${Et.default.vErrors}[${a}]`),e.if((0,ye._)`${s}.instancePath === undefined`,()=>e.assign((0,ye._)`${s}.instancePath`,(0,ye.strConcat)(Et.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))})}yt.extendErrors=YU;function W0(e,t){let r=e.const("err",t);e.if((0,ye._)`${Et.default.vErrors} === null`,()=>e.assign(Et.default.vErrors,(0,ye._)`[${r}]`),(0,ye._)`${Et.default.vErrors}.push(${r})`),e.code((0,ye._)`${Et.default.errors}++`)}function Y0(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 So={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 Q0(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,ye._)`{}`:QU(e,t,r)}function QU(e,t,r={}){let{gen:n,it:o}=e,i=[JU(o,r),XU(e,r)];return ZU(e,t,i),n.object(...i)}function JU({errorPath:e},{instancePath:t}){let r=t?(0,ye.str)`${e}${(0,Yc.getErrorPath)(t,Yc.Type.Str)}`:e;return[Et.default.instancePath,(0,ye.strConcat)(Et.default.instancePath,r)]}function XU({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,Yc.getErrorPath)(r,Yc.Type.Str)}`),[So.schemaPath,o]}function ZU(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([So.keyword,o],[So.params,typeof t=="function"?t(e):t||(0,ye._)`{}`]),c.messages&&n.push([So.message,typeof r=="function"?r(e):r]),c.verbose&&n.push([So.schema,s],[So.parentSchema,(0,ye._)`${l}${u}`],[Et.default.data,i]),p&&n.push([So.propertyName,p])}});var X0=x(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.boolOrEmptySchema=xi.topBoolOrEmptySchema=void 0;var eF=Ys(),tF=B(),rF=Pt(),nF={message:"boolean schema is false"};function oF(e){let{gen:t,schema:r,validateName:n}=e;r===!1?J0(e,!1):typeof r=="object"&&r.$async===!0?t.return(rF.default.data):(t.assign((0,tF._)`${n}.errors`,null),t.return(!0))}xi.topBoolOrEmptySchema=oF;function iF(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),J0(e)):r.var(t,!0)}xi.boolOrEmptySchema=iF;function J0(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,eF.reportError)(o,nF,void 0,t)}});var xf=x(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.getRules=Si.isJSONType=void 0;var sF=["string","number","integer","boolean","null","object","array"],aF=new Set(sF);function cF(e){return typeof e=="string"&&aF.has(e)}Si.isJSONType=cF;function pF(){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:{}}}Si.getRules=pF});var Sf=x(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.shouldUseRule=kn.shouldUseGroup=kn.schemaHasRulesForType=void 0;function lF({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&Z0(e,n)}kn.schemaHasRulesForType=lF;function Z0(e,t){return t.rules.some(r=>ex(e,r))}kn.shouldUseGroup=Z0;function ex(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))}kn.shouldUseRule=ex});var Qs=x(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.reportTypeError=gt.checkDataTypes=gt.checkDataType=gt.coerceAndCheckDataType=gt.getJSONTypes=gt.getSchemaTypes=gt.DataType=void 0;var uF=xf(),dF=Sf(),fF=Ys(),Q=B(),tx=ae(),wi;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(wi||(gt.DataType=wi={}));function mF(e){let t=rx(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}gt.getSchemaTypes=mF;function rx(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(uF.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}gt.getJSONTypes=rx;function hF(e,t){let{gen:r,data:n,opts:o}=e,i=yF(t,o.coerceTypes),s=t.length>0&&!(i.length===0&&t.length===1&&(0,dF.schemaHasRulesForType)(e,t[0]));if(s){let a=_f(t,n,o.strictNumbers,wi.Wrong);r.if(a,()=>{i.length?gF(e,t,i):Pf(e)})}return s}gt.coerceAndCheckDataType=hF;var nx=new Set(["string","number","integer","boolean","null"]);function yF(e,t){return t?e.filter(r=>nx.has(r)||t==="array"&&r==="array"):[]}function gF(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(_f(t,o,i.strictNumbers),()=>n.assign(a,o))),n.if((0,Q._)`${a} !== undefined`);for(let p of r)(nx.has(p)||p==="array"&&i.coerceTypes==="array")&&c(p);n.else(),Pf(e),n.endIf(),n.if((0,Q._)`${a} !== undefined`,()=>{n.assign(o,a),bF(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
|
|
7
|
+
import{a as rt,b as Jo,c as cO}from"./NEWT5A6S.js";import{a as yu,c as x,d as aO,e as qr}from"./RFWIIJFG.js";var vu=x((gu,bu)=>{(function(e,t){typeof yu=="function"&&typeof gu=="object"&&typeof bu=="object"?bu.exports=t():typeof define=="function"&&define.amd?define(function(){return t()}):e.pluralize=t()})(gu,function(){var e=[],t=[],r={},n={},o={};function i(d){return typeof d=="string"?new RegExp("^"+d+"$","i"):d}function s(d,m){return d===m?m:d===d.toLowerCase()?m.toLowerCase():d===d.toUpperCase()?m.toUpperCase():d[0]===d[0].toUpperCase()?m.charAt(0).toUpperCase()+m.substr(1).toLowerCase():m.toLowerCase()}function a(d,m){return d.replace(/\$(\d{1,2})/g,function(h,y){return m[y]||""})}function c(d,m){return d.replace(m[0],function(h,y){var g=a(m[1],arguments);return s(h===""?d[y-1]:h,g)})}function p(d,m,h){if(!d.length||r.hasOwnProperty(d))return m;for(var y=h.length;y--;){var g=h[y];if(g[0].test(m))return c(m,g)}return m}function l(d,m,h){return function(y){var g=y.toLowerCase();return m.hasOwnProperty(g)?s(y,g):d.hasOwnProperty(g)?s(y,d[g]):p(g,y,h)}}function u(d,m,h,y){return function(g){var b=g.toLowerCase();return m.hasOwnProperty(b)?!0:d.hasOwnProperty(b)?!1:p(b,b,h)===b}}function f(d,m,h){var y=m===1?f.singular(d):f.plural(d);return(h?m+" ":"")+y}return f.plural=l(o,n,e),f.isPlural=u(o,n,e),f.singular=l(n,o,t),f.isSingular=u(n,o,t),f.addPluralRule=function(d,m){e.push([i(d),m])},f.addSingularRule=function(d,m){t.push([i(d),m])},f.addUncountableRule=function(d){if(typeof d=="string"){r[d.toLowerCase()]=!0;return}f.addPluralRule(d,"$0"),f.addSingularRule(d,"$0")},f.addIrregularRule=function(d,m){m=m.toLowerCase(),d=d.toLowerCase(),o[d]=m,n[m]=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 f.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 f.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 f.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(f.addUncountableRule),f})});var ks=x((OX,lv)=>{"use strict";var sv="[^\\\\/]",Lk="(?=.)",av="[^/]",ad="(?:\\/|$)",cv="(?:^|\\/)",cd=`\\.{1,2}${ad}`,Uk="(?!\\.)",Fk=`(?!${cv}${cd})`,zk=`(?!\\.{0,1}${ad})`,Vk=`(?!${cd})`,Bk="[^.\\/]",Hk=`${av}*?`,Kk="/",pv={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:Lk,QMARK:av,END_ANCHOR:ad,DOTS_SLASH:cd,NO_DOT:Uk,NO_DOTS:Fk,NO_DOT_SLASH:zk,NO_DOTS_SLASH:Vk,QMARK_NO_DOT:Bk,STAR:Hk,START_ANCHOR:cv,SEP:Kk},Gk={...pv,SLASH_LITERAL:"[\\\\/]",QMARK:sv,STAR:`${sv}*?`,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:"\\"},Wk={__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"};lv.exports={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Wk,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?Gk:pv}}});var Is=x(It=>{"use strict";var{REGEX_BACKSLASH:Yk,REGEX_REMOVE_BACKSLASH:Qk,REGEX_SPECIAL_CHARS:Jk,REGEX_SPECIAL_CHARS_GLOBAL:Xk}=ks();It.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);It.hasRegexChars=e=>Jk.test(e);It.isRegexChar=e=>e.length===1&&It.hasRegexChars(e);It.escapeRegex=e=>e.replace(Xk,"\\$1");It.toPosixSlashes=e=>e.replace(Yk,"/");It.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};It.removeBackslashes=e=>e.replace(Qk,t=>t==="\\"?"":t);It.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?It.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};It.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};It.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",o=r.contains?"":"$",i=`${n}(?:${e})${o}`;return t.negated===!0&&(i=`(?:^(?!${i}).*$)`),i};It.basename=(e,{windows:t}={})=>{let r=e.split(t?/[\\/]/:"/"),n=r[r.length-1];return n===""?r[r.length-2]:n}});var bv=x((IX,gv)=>{"use strict";var uv=Is(),{CHAR_ASTERISK:pd,CHAR_AT:Zk,CHAR_BACKWARD_SLASH:Cs,CHAR_COMMA:eI,CHAR_DOT:ld,CHAR_EXCLAMATION_MARK:ud,CHAR_FORWARD_SLASH:yv,CHAR_LEFT_CURLY_BRACE:dd,CHAR_LEFT_PARENTHESES:fd,CHAR_LEFT_SQUARE_BRACKET:tI,CHAR_PLUS:rI,CHAR_QUESTION_MARK:dv,CHAR_RIGHT_CURLY_BRACE:nI,CHAR_RIGHT_PARENTHESES:fv,CHAR_RIGHT_SQUARE_BRACKET:oI}=ks(),mv=e=>e===yv||e===Cs,hv=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},iI=(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,f=!1,d=!1,m=!1,h=!1,y=!1,g=!1,b=!1,v=!1,w=!1,S=!1,P=0,R,A,E={value:"",depth:0,isGlob:!1},_=()=>p>=n,ee=()=>c.charCodeAt(p+1),z=()=>(R=A,c.charCodeAt(++p));for(;p<n;){A=z();let Se;if(A===Cs){b=E.backslashes=!0,A=z(),A===dd&&(g=!0);continue}if(g===!0||A===dd){for(P++;_()!==!0&&(A=z());){if(A===Cs){b=E.backslashes=!0,z();continue}if(A===dd){P++;continue}if(g!==!0&&A===ld&&(A=z())===ld){if(f=E.isBrace=!0,m=E.isGlob=!0,S=!0,o===!0)continue;break}if(g!==!0&&A===eI){if(f=E.isBrace=!0,m=E.isGlob=!0,S=!0,o===!0)continue;break}if(A===nI&&(P--,P===0)){g=!1,f=E.isBrace=!0,S=!0;break}}if(o===!0)continue;break}if(A===yv){if(i.push(p),s.push(E),E={value:"",depth:0,isGlob:!1},S===!0)continue;if(R===ld&&p===l+1){l+=2;continue}u=p+1;continue}if(r.noext!==!0&&(A===rI||A===Zk||A===pd||A===dv||A===ud)===!0&&ee()===fd){if(m=E.isGlob=!0,h=E.isExtglob=!0,S=!0,A===ud&&p===l&&(w=!0),o===!0){for(;_()!==!0&&(A=z());){if(A===Cs){b=E.backslashes=!0,A=z();continue}if(A===fv){m=E.isGlob=!0,S=!0;break}}continue}break}if(A===pd){if(R===pd&&(y=E.isGlobstar=!0),m=E.isGlob=!0,S=!0,o===!0)continue;break}if(A===dv){if(m=E.isGlob=!0,S=!0,o===!0)continue;break}if(A===tI){for(;_()!==!0&&(Se=z());){if(Se===Cs){b=E.backslashes=!0,z();continue}if(Se===oI){d=E.isBracket=!0,m=E.isGlob=!0,S=!0;break}}if(o===!0)continue;break}if(r.nonegate!==!0&&A===ud&&p===l){v=E.negated=!0,l++;continue}if(r.noparen!==!0&&A===fd){if(m=E.isGlob=!0,o===!0){for(;_()!==!0&&(A=z());){if(A===fd){b=E.backslashes=!0,A=z();continue}if(A===fv){S=!0;break}}continue}break}if(m===!0){if(S=!0,o===!0)continue;break}}r.noext===!0&&(h=!1,m=!1);let pe=c,T="",O="";l>0&&(T=c.slice(0,l),c=c.slice(l),u-=l),pe&&m===!0&&u>0?(pe=c.slice(0,u),O=c.slice(u)):m===!0?(pe="",O=c):pe=c,pe&&pe!==""&&pe!=="/"&&pe!==c&&mv(pe.charCodeAt(pe.length-1))&&(pe=pe.slice(0,-1)),r.unescape===!0&&(O&&(O=uv.removeBackslashes(O)),pe&&b===!0&&(pe=uv.removeBackslashes(pe)));let dt={prefix:T,input:e,start:l,base:pe,glob:O,isBrace:f,isBracket:d,isGlob:m,isExtglob:h,isGlobstar:y,negated:v,negatedExtglob:w};if(r.tokens===!0&&(dt.maxDepth=0,mv(A)||s.push(E),dt.tokens=s),r.parts===!0||r.tokens===!0){let Se;for(let G=0;G<i.length;G++){let De=Se?Se+1:l,$e=i[G],fe=e.slice(De,$e);r.tokens&&(G===0&&l!==0?(s[G].isPrefix=!0,s[G].value=T):s[G].value=fe,hv(s[G]),dt.maxDepth+=s[G].depth),(G!==0||fe!=="")&&a.push(fe),Se=$e}if(Se&&Se+1<e.length){let G=e.slice(Se+1);a.push(G),r.tokens&&(s[s.length-1].value=G,hv(s[s.length-1]),dt.maxDepth+=s[s.length-1].depth)}dt.slashes=i,dt.parts=a}return dt};gv.exports=iI});var _v=x((CX,wv)=>{"use strict";var qs=ks(),Ht=Is(),{MAX_LENGTH:Sc,POSIX_REGEX_SOURCE:sI,REGEX_NON_SPECIAL_CHARS:aI,REGEX_SPECIAL_CHARS_BACKREF:cI,REPLACEMENTS:vv}=qs,pI=(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=>Ht.escapeRegex(o)).join("..")}return r},ci=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,xv=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},lI=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},Sv=e=>{let t=e.trim(),r=!0;for(;r===!0;)r=!1,/^@\([^\\()[\]{}|]+\)$/.test(t)&&(t=t.slice(2,-1),r=!0);if(lI(t))return t.replace(/\\(.)/g,"$1")},uI=e=>{let t=e.map(Sv).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},md=(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}}}}},dI=e=>{let t=0,r=[];for(;t<e.length;){let o=md(e.slice(t),!1);if(!o||o.type!=="*")return;let i=xv(o.body).map(a=>a.trim());if(i.length!==1)return;let s=Sv(i[0]);if(!s||s.length!==1)return;r.push(s),t+=o.end+1}return r.length<1?void 0:`${r.length===1?Ht.escapeRegex(r[0]):`[${r.map(o=>Ht.escapeRegex(o)).join("")}]`}*`},fI=e=>{let t=0,r=e.trim(),n=md(r);for(;n;)t++,r=n.body.trim(),n=md(r);return t},mI=(e,t)=>{if(t.maxExtglobRecursion===!1)return{risky:!1};let r=typeof t.maxExtglobRecursion=="number"?t.maxExtglobRecursion:qs.DEFAULT_MAX_EXTGLOB_RECURSION,n=xv(e).map(o=>o.trim());if(n.length>1&&(n.some(o=>o==="")||n.some(o=>/^[*?]+$/.test(o))||uI(n)))return{risky:!0};for(let o of n){let i=dI(o);if(i)return{risky:!0,safeOutput:i};if(fI(o)>r)return{risky:!0}}return{risky:!1}},hd=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=vv[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(Sc,r.maxLength):Sc,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=qs.globChars(r.windows),p=qs.extglobChars(c),{DOT_LITERAL:l,PLUS_LITERAL:u,SLASH_LITERAL:f,ONE_CHAR:d,DOTS_SLASH:m,NO_DOT:h,NO_DOT_SLASH:y,NO_DOTS_SLASH:g,QMARK:b,QMARK_NO_DOT:v,STAR:w,START_ANCHOR:S}=c,P=k=>`(${a}(?:(?!${S}${k.dot?m:l}).)*?)`,R=r.dot?"":h,A=r.dot?b:v,E=r.bash===!0?P(r):w;r.capture&&(E=`(${E})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let _={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=Ht.removePrefix(e,_),o=e.length;let ee=[],z=[],pe=[],T=i,O,dt=()=>_.index===o-1,Se=_.peek=(k=1)=>e[_.index+k],G=_.advance=()=>e[++_.index]||"",De=()=>e.slice(_.index+1),$e=(k="",X=0)=>{_.consumed+=k,_.index+=X},fe=k=>{_.output+=k.output!=null?k.output:k.value,$e(k.value)},Bt=()=>{let k=1;for(;Se()==="!"&&(Se(2)!=="("||Se(3)==="?");)G(),_.start++,k++;return k%2===0?!1:(_.negated=!0,_.start++,!0)},Je=k=>{_[k]++,pe.push(k)},Ge=k=>{_[k]--,pe.pop()},V=k=>{if(T.type==="globstar"){let X=_.braces>0&&(k.type==="comma"||k.type==="brace"),I=k.extglob===!0||ee.length&&(k.type==="pipe"||k.type==="paren");k.type!=="slash"&&k.type!=="paren"&&!X&&!I&&(_.output=_.output.slice(0,-T.output.length),T.type="star",T.value="*",T.output=E,_.output+=T.output)}if(ee.length&&k.type!=="paren"&&(ee[ee.length-1].inner+=k.value),(k.value||k.output)&&fe(k),T&&T.type==="text"&&k.type==="text"){T.output=(T.output||T.value)+k.value,T.value+=k.value;return}k.prev=T,s.push(k),T=k},Jt=(k,X)=>{let I={...p[X],conditions:1,inner:""};I.prev=T,I.parens=_.parens,I.output=_.output,I.startIndex=_.index,I.tokensIndex=s.length;let N=(r.capture?"(":"")+I.open;Je("parens"),V({type:k,value:X,output:_.output?"":d}),V({type:"paren",extglob:!0,value:G(),output:N}),ee.push(I)},j=k=>{let X=e.slice(k.startIndex,_.index+1),I=e.slice(k.startIndex+2,_.index),N=mI(I,r);if((k.type==="plus"||k.type==="star")&&N.risky){let we=N.safeOutput?(k.output?"":d)+(r.capture?`(${N.safeOutput})`:N.safeOutput):void 0,Ir=s[k.tokensIndex];Ir.type="text",Ir.value=X,Ir.output=we||Ht.escapeRegex(X);for(let Cr=k.tokensIndex+1;Cr<s.length;Cr++)s[Cr].value="",s[Cr].output="",delete s[Cr].suffix;_.output=k.output+Ir.output,_.backtrack=!0,V({type:"paren",extglob:!0,value:O,output:""}),Ge("parens");return}let me=k.close+(r.capture?")":""),Le;if(k.type==="negate"){let we=E;if(k.inner&&k.inner.length>1&&k.inner.includes("/")&&(we=P(r)),(we!==E||dt()||/^\)+$/.test(De()))&&(me=k.close=`)$))${we}`),k.inner.includes("*")&&(Le=De())&&/^\.[^\\/.]+$/.test(Le)){let Ir=hd(Le,{...t,fastpaths:!1}).output;me=k.close=`)${Ir})${we})`}k.prev.type==="bos"&&(_.negatedExtglob=!0)}V({type:"paren",extglob:!0,value:O,output:me}),Ge("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let k=!1,X=e.replace(cI,(I,N,me,Le,we,Ir)=>Le==="\\"?(k=!0,I):Le==="?"?N?N+Le+(we?b.repeat(we.length):""):Ir===0?A+(we?b.repeat(we.length):""):b.repeat(me.length):Le==="."?l.repeat(me.length):Le==="*"?N?N+Le+(we?E:""):E:N?I:`\\${I}`);return k===!0&&(r.unescape===!0?X=X.replace(/\\/g,""):X=X.replace(/\\+/g,I=>I.length%2===0?"\\\\":I?"\\":"")),X===e&&r.contains===!0?(_.output=e,_):(_.output=Ht.wrapOutput(X,_,t),_)}for(;!dt();){if(O=G(),O==="\0")continue;if(O==="\\"){let I=Se();if(I==="/"&&r.bash!==!0||I==="."||I===";")continue;if(!I){O+="\\",V({type:"text",value:O});continue}let N=/^\\+/.exec(De()),me=0;if(N&&N[0].length>2&&(me=N[0].length,_.index+=me,me%2!==0&&(O+="\\")),r.unescape===!0?O=G():O+=G(),_.brackets===0){V({type:"text",value:O});continue}}if(_.brackets>0&&(O!=="]"||T.value==="["||T.value==="[^")){if(r.posix!==!1&&O===":"){let I=T.value.slice(1);if(I.includes("[")&&(T.posix=!0,I.includes(":"))){let N=T.value.lastIndexOf("["),me=T.value.slice(0,N),Le=T.value.slice(N+2),we=sI[Le];if(we){T.value=me+we,_.backtrack=!0,G(),!i.output&&s.indexOf(T)===1&&(i.output=d);continue}}}(O==="["&&Se()!==":"||O==="-"&&Se()==="]")&&(O=`\\${O}`),O==="]"&&(T.value==="["||T.value==="[^")&&(O=`\\${O}`),r.posix===!0&&O==="!"&&T.value==="["&&(O="^"),T.value+=O,fe({value:O});continue}if(_.quotes===1&&O!=='"'){O=Ht.escapeRegex(O),T.value+=O,fe({value:O});continue}if(O==='"'){_.quotes=_.quotes===1?0:1,r.keepQuotes===!0&&V({type:"text",value:O});continue}if(O==="("){Je("parens"),V({type:"paren",value:O});continue}if(O===")"){if(_.parens===0&&r.strictBrackets===!0)throw new SyntaxError(ci("opening","("));let I=ee[ee.length-1];if(I&&_.parens===I.parens+1){j(ee.pop());continue}V({type:"paren",value:O,output:_.parens?")":"\\)"}),Ge("parens");continue}if(O==="["){if(r.nobracket===!0||!De().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(ci("closing","]"));O=`\\${O}`}else Je("brackets");V({type:"bracket",value:O});continue}if(O==="]"){if(r.nobracket===!0||T&&T.type==="bracket"&&T.value.length===1){V({type:"text",value:O,output:`\\${O}`});continue}if(_.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(ci("opening","["));V({type:"text",value:O,output:`\\${O}`});continue}Ge("brackets");let I=T.value.slice(1);if(T.posix!==!0&&I[0]==="^"&&!I.includes("/")&&(O=`/${O}`),T.value+=O,fe({value:O}),r.literalBrackets===!1||Ht.hasRegexChars(I))continue;let N=Ht.escapeRegex(T.value);if(_.output=_.output.slice(0,-T.value.length),r.literalBrackets===!0){_.output+=N,T.value=N;continue}T.value=`(${a}${N}|${T.value})`,_.output+=T.value;continue}if(O==="{"&&r.nobrace!==!0){Je("braces");let I={type:"brace",value:O,output:"(",outputIndex:_.output.length,tokensIndex:_.tokens.length};z.push(I),V(I);continue}if(O==="}"){let I=z[z.length-1];if(r.nobrace===!0||!I){V({type:"text",value:O,output:O});continue}let N=")";if(I.dots===!0){let me=s.slice(),Le=[];for(let we=me.length-1;we>=0&&(s.pop(),me[we].type!=="brace");we--)me[we].type!=="dots"&&Le.unshift(me[we].value);N=pI(Le,r),_.backtrack=!0}if(I.comma!==!0&&I.dots!==!0){let me=_.output.slice(0,I.outputIndex),Le=_.tokens.slice(I.tokensIndex);I.value=I.output="\\{",O=N="\\}",_.output=me;for(let we of Le)_.output+=we.output||we.value}V({type:"brace",value:O,output:N}),Ge("braces"),z.pop();continue}if(O==="|"){ee.length>0&&ee[ee.length-1].conditions++,V({type:"text",value:O});continue}if(O===","){let I=O,N=z[z.length-1];N&&pe[pe.length-1]==="braces"&&(N.comma=!0,I="|"),V({type:"comma",value:O,output:I});continue}if(O==="/"){if(T.type==="dot"&&_.index===_.start+1){_.start=_.index+1,_.consumed="",_.output="",s.pop(),T=i;continue}V({type:"slash",value:O,output:f});continue}if(O==="."){if(_.braces>0&&T.type==="dot"){T.value==="."&&(T.output=l);let I=z[z.length-1];T.type="dots",T.output+=O,T.value+=O,I.dots=!0;continue}if(_.braces+_.parens===0&&T.type!=="bos"&&T.type!=="slash"){V({type:"text",value:O,output:l});continue}V({type:"dot",value:O,output:l});continue}if(O==="?"){if(!(T&&T.value==="(")&&r.noextglob!==!0&&Se()==="("&&Se(2)!=="?"){Jt("qmark",O);continue}if(T&&T.type==="paren"){let N=Se(),me=O;(T.value==="("&&!/[!=<:]/.test(N)||N==="<"&&!/<([!=]|\w+>)/.test(De()))&&(me=`\\${O}`),V({type:"text",value:O,output:me});continue}if(r.dot!==!0&&(T.type==="slash"||T.type==="bos")){V({type:"qmark",value:O,output:v});continue}V({type:"qmark",value:O,output:b});continue}if(O==="!"){if(r.noextglob!==!0&&Se()==="("&&(Se(2)!=="?"||!/[!=<:]/.test(Se(3)))){Jt("negate",O);continue}if(r.nonegate!==!0&&_.index===0){Bt();continue}}if(O==="+"){if(r.noextglob!==!0&&Se()==="("&&Se(2)!=="?"){Jt("plus",O);continue}if(T&&T.value==="("||r.regex===!1){V({type:"plus",value:O,output:u});continue}if(T&&(T.type==="bracket"||T.type==="paren"||T.type==="brace")||_.parens>0){V({type:"plus",value:O});continue}V({type:"plus",value:u});continue}if(O==="@"){if(r.noextglob!==!0&&Se()==="("&&Se(2)!=="?"){V({type:"at",extglob:!0,value:O,output:""});continue}V({type:"text",value:O});continue}if(O!=="*"){(O==="$"||O==="^")&&(O=`\\${O}`);let I=aI.exec(De());I&&(O+=I[0],_.index+=I[0].length),V({type:"text",value:O});continue}if(T&&(T.type==="globstar"||T.star===!0)){T.type="star",T.star=!0,T.value+=O,T.output=E,_.backtrack=!0,_.globstar=!0,$e(O);continue}let k=De();if(r.noextglob!==!0&&/^\([^?]/.test(k)){Jt("star",O);continue}if(T.type==="star"){if(r.noglobstar===!0){$e(O);continue}let I=T.prev,N=I.prev,me=I.type==="slash"||I.type==="bos",Le=N&&(N.type==="star"||N.type==="globstar");if(r.bash===!0&&(!me||k[0]&&k[0]!=="/")){V({type:"star",value:O,output:""});continue}let we=_.braces>0&&(I.type==="comma"||I.type==="brace"),Ir=ee.length&&(I.type==="pipe"||I.type==="paren");if(!me&&I.type!=="paren"&&!we&&!Ir){V({type:"star",value:O,output:""});continue}for(;k.slice(0,3)==="/**";){let Cr=e[_.index+4];if(Cr&&Cr!=="/")break;k=k.slice(3),$e("/**",3)}if(I.type==="bos"&&dt()){T.type="globstar",T.value+=O,T.output=P(r),_.output=T.output,_.globstar=!0,$e(O);continue}if(I.type==="slash"&&I.prev.type!=="bos"&&!Le&&dt()){_.output=_.output.slice(0,-(I.output+T.output).length),I.output=`(?:${I.output}`,T.type="globstar",T.output=P(r)+(r.strictSlashes?")":"|$)"),T.value+=O,_.globstar=!0,_.output+=I.output+T.output,$e(O);continue}if(I.type==="slash"&&I.prev.type!=="bos"&&k[0]==="/"){let Cr=k[1]!==void 0?"|$":"";_.output=_.output.slice(0,-(I.output+T.output).length),I.output=`(?:${I.output}`,T.type="globstar",T.output=`${P(r)}${f}|${f}${Cr})`,T.value+=O,_.output+=I.output+T.output,_.globstar=!0,$e(O+G()),V({type:"slash",value:"/",output:""});continue}if(I.type==="bos"&&k[0]==="/"){T.type="globstar",T.value+=O,T.output=`(?:^|${f}|${P(r)}${f})`,_.output=T.output,_.globstar=!0,$e(O+G()),V({type:"slash",value:"/",output:""});continue}_.output=_.output.slice(0,-T.output.length),T.type="globstar",T.output=P(r),T.value+=O,_.output+=T.output,_.globstar=!0,$e(O);continue}let X={type:"star",value:O,output:E};if(r.bash===!0){X.output=".*?",(T.type==="bos"||T.type==="slash")&&(X.output=R+X.output),V(X);continue}if(T&&(T.type==="bracket"||T.type==="paren")&&r.regex===!0){X.output=O,V(X);continue}(_.index===_.start||T.type==="slash"||T.type==="dot")&&(T.type==="dot"?(_.output+=y,T.output+=y):r.dot===!0?(_.output+=g,T.output+=g):(_.output+=R,T.output+=R),Se()!=="*"&&(_.output+=d,T.output+=d)),V(X)}for(;_.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(ci("closing","]"));_.output=Ht.escapeLast(_.output,"["),Ge("brackets")}for(;_.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(ci("closing",")"));_.output=Ht.escapeLast(_.output,"("),Ge("parens")}for(;_.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(ci("closing","}"));_.output=Ht.escapeLast(_.output,"{"),Ge("braces")}if(r.strictSlashes!==!0&&(T.type==="star"||T.type==="bracket")&&V({type:"maybe_slash",value:"",output:`${f}?`}),_.backtrack===!0){_.output="";for(let k of _.tokens)_.output+=k.output!=null?k.output:k.value,k.suffix&&(_.output+=k.suffix)}return _};hd.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(Sc,r.maxLength):Sc,o=e.length;if(o>n)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${n}`);e=vv[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:f,START_ANCHOR:d}=qs.globChars(r.windows),m=r.dot?l:p,h=r.dot?u:p,y=r.capture?"":"?:",g={negated:!1,prefix:""},b=r.bash===!0?".*?":f;r.capture&&(b=`(${b})`);let v=R=>R.noglobstar===!0?b:`(${y}(?:(?!${d}${R.dot?c:i}).)*?)`,w=R=>{switch(R){case"*":return`${m}${a}${b}`;case".*":return`${i}${a}${b}`;case"*.*":return`${m}${b}${i}${a}${b}`;case"*/*":return`${m}${b}${s}${a}${h}${b}`;case"**":return m+v(r);case"**/*":return`(?:${m}${v(r)}${s})?${h}${a}${b}`;case"**/*.*":return`(?:${m}${v(r)}${s})?${h}${b}${i}${a}${b}`;case"**/.*":return`(?:${m}${v(r)}${s})?${i}${a}${b}`;default:{let A=/^(.*?)\.(\w+)$/.exec(R);if(!A)return;let E=w(A[1]);return E?E+i+A[2]:void 0}}},S=Ht.removePrefix(e,g),P=w(S);return P&&r.strictSlashes!==!0&&(P+=`${s}?`),P};wv.exports=hd});var $v=x((qX,Ev)=>{"use strict";var hI=bv(),yd=_v(),Pv=Is(),yI=ks(),gI=e=>e&&typeof e=="object"&&!Array.isArray(e),Fe=(e,t,r=!1)=>{if(Array.isArray(e)){let l=e.map(f=>Fe(f,t,r));return f=>{for(let d of l){let m=d(f);if(m)return m}return!1}}let n=gI(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?Fe.compileRe(e,t):Fe.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=Fe(o.ignore,l,r)}let p=(l,u=!1)=>{let{isMatch:f,match:d,output:m}=Fe.test(l,s,t,{glob:e,posix:i}),h={glob:e,state:a,regex:s,posix:i,input:l,output:m,match:d,isMatch:f};return typeof o.onResult=="function"&&o.onResult(h),f===!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};Fe.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?Pv.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=Fe.matchBase(e,t,r,o):a=t.exec(c)),{isMatch:!!a,match:a,output:c}};Fe.matchBase=(e,t,r)=>(t instanceof RegExp?t:Fe.makeRe(t,r)).test(Pv.basename(e));Fe.isMatch=(e,t,r)=>Fe(t,r)(e);Fe.parse=(e,t)=>Array.isArray(e)?e.map(r=>Fe.parse(r,t)):yd(e,{...t,fastpaths:!1});Fe.scan=(e,t)=>hI(e,t);Fe.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=Fe.toRegex(a,t);return n===!0&&(c.state=e),c};Fe.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=yd.fastpaths(e,t)),o.output||(o=yd(e,t)),Fe.compileRe(o,t,r,n)};Fe.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/$^/}};Fe.constants=yI;Ev.exports=Fe});var Ov=x((NX,Rv)=>{"use strict";var Av=$v(),bI=Is();function Tv(e,t,r=!1){return t&&(t.windows===null||t.windows===void 0)&&(t={...t,windows:bI.isWindows()}),Av(e,t,r)}Object.assign(Tv,Av);Rv.exports=Tv});var Vs=x(ve=>{"use strict";Object.defineProperty(ve,"__esModule",{value:!0});ve.regexpCode=ve.getEsmExportName=ve.getProperty=ve.safeStringify=ve.stringify=ve.strConcat=ve.addCodeArg=ve.str=ve._=ve.nil=ve._Code=ve.Name=ve.IDENTIFIER=ve._CodeOrName=void 0;var Fs=class{};ve._CodeOrName=Fs;ve.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var go=class extends Fs{constructor(t){if(super(),!ve.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}}};ve.Name=go;var rr=class extends Fs{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 go&&(r[n.str]=(r[n.str]||0)+1),r),{})}};ve._Code=rr;ve.nil=new rr("");function j0(e,...t){let r=[e[0]],n=0;for(;n<t.length;)Zd(r,t[n]),r.push(e[++n]);return new rr(r)}ve._=j0;var Xd=new rr("+");function D0(e,...t){let r=[zs(e[0])],n=0;for(;n<t.length;)r.push(Xd),Zd(r,t[n]),r.push(Xd,zs(e[++n]));return wU(r),new rr(r)}ve.str=D0;function Zd(e,t){t instanceof rr?e.push(...t._items):t instanceof go?e.push(t):e.push(EU(t))}ve.addCodeArg=Zd;function wU(e){let t=1;for(;t<e.length-1;){if(e[t]===Xd){let r=_U(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function _U(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof go||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 go))return`"${e}${t.slice(1)}`}function PU(e,t){return t.emptyStr()?e:e.emptyStr()?t:D0`${e}${t}`}ve.strConcat=PU;function EU(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:zs(Array.isArray(e)?e.join(","):e)}function $U(e){return new rr(zs(e))}ve.stringify=$U;function zs(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}ve.safeStringify=zs;function AU(e){return typeof e=="string"&&ve.IDENTIFIER.test(e)?new rr(`.${e}`):j0`[${e}]`}ve.getProperty=AU;function TU(e){if(typeof e=="string"&&ve.IDENTIFIER.test(e))return new rr(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}ve.getEsmExportName=TU;function RU(e){return new rr(e.toString())}ve.regexpCode=RU});var rf=x(Mt=>{"use strict";Object.defineProperty(Mt,"__esModule",{value:!0});Mt.ValueScope=Mt.ValueScopeName=Mt.Scope=Mt.varKinds=Mt.UsedValueState=void 0;var Nt=Vs(),ef=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},zc;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(zc||(Mt.UsedValueState=zc={}));Mt.varKinds={const:new Nt.Name("const"),let:new Nt.Name("let"),var:new Nt.Name("var")};var Vc=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof Nt.Name?t:this.name(t)}name(t){return new Nt.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}}};Mt.Scope=Vc;var Bc=class extends Nt.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,Nt._)`.${new Nt.Name(r)}[${n}]`}};Mt.ValueScopeName=Bc;var OU=(0,Nt._)`\n`,tf=class extends Vc{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?OU:Nt.nil}}get(){return this._scope}name(t){return new Bc(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,Nt._)`${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=Nt.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,zc.Started);let l=r(p);if(l){let u=this.opts.es5?Mt.varKinds.var:Mt.varKinds.const;i=(0,Nt._)`${i}${u} ${p} = ${l};${this.opts._n}`}else if(l=o?.(p))i=(0,Nt._)`${i}${l}${this.opts._n}`;else throw new ef(p);c.set(p,zc.Completed)})}return i}};Mt.ValueScope=tf});var B=x(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 le=Vs(),vr=rf(),On=Vs();Object.defineProperty(re,"_",{enumerable:!0,get:function(){return On._}});Object.defineProperty(re,"str",{enumerable:!0,get:function(){return On.str}});Object.defineProperty(re,"strConcat",{enumerable:!0,get:function(){return On.strConcat}});Object.defineProperty(re,"nil",{enumerable:!0,get:function(){return On.nil}});Object.defineProperty(re,"getProperty",{enumerable:!0,get:function(){return On.getProperty}});Object.defineProperty(re,"stringify",{enumerable:!0,get:function(){return On.stringify}});Object.defineProperty(re,"regexpCode",{enumerable:!0,get:function(){return On.regexpCode}});Object.defineProperty(re,"Name",{enumerable:!0,get:function(){return On.Name}});var Wc=rf();Object.defineProperty(re,"Scope",{enumerable:!0,get:function(){return Wc.Scope}});Object.defineProperty(re,"ValueScope",{enumerable:!0,get:function(){return Wc.ValueScope}});Object.defineProperty(re,"ValueScopeName",{enumerable:!0,get:function(){return Wc.ValueScopeName}});Object.defineProperty(re,"varKinds",{enumerable:!0,get:function(){return Wc.varKinds}});re.operators={GT:new le._Code(">"),GTE:new le._Code(">="),LT:new le._Code("<"),LTE:new le._Code("<="),EQ:new le._Code("==="),NEQ:new le._Code("!=="),NOT:new le._Code("!"),OR:new le._Code("||"),AND:new le._Code("&&"),ADD:new le._Code("+")};var ln=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},nf=class extends ln{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?vr.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=vi(this.rhs,t,r)),this}get names(){return this.rhs instanceof le._CodeOrName?this.rhs.names:{}}},Hc=class extends ln{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 le.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=vi(this.rhs,t,r),this}get names(){let t=this.lhs instanceof le.Name?{}:{...this.lhs.names};return Gc(t,this.rhs)}},of=class extends Hc{constructor(t,r,n,o){super(t,n,o),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},sf=class extends ln{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},af=class extends ln{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},cf=class extends ln{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},pf=class extends ln{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=vi(this.code,t,r),this}get names(){return this.code instanceof le._CodeOrName?this.code.names:{}}},Bs=class extends ln{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)||(kU(t,i.names),n.splice(o,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>xo(t,r.names),{})}},un=class extends Bs{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},lf=class extends Bs{},bi=class extends un{};bi.kind="else";var bo=class e extends un{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 bi(n):n}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(L0(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=vi(this.condition,t,r),this}get names(){let t=super.names;return Gc(t,this.condition),this.else&&xo(t,this.else.names),t}};bo.kind="if";var vo=class extends un{};vo.kind="for";var uf=class extends vo{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=vi(this.iteration,t,r),this}get names(){return xo(super.names,this.iteration.names)}},df=class extends vo{constructor(t,r,n,o){super(),this.varKind=t,this.name=r,this.from=n,this.to=o}render(t){let r=t.es5?vr.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=Gc(super.names,this.from);return Gc(t,this.to)}},Kc=class extends vo{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=vi(this.iterable,t,r),this}get names(){return xo(super.names,this.iterable.names)}},Hs=class extends un{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)}};Hs.kind="func";var Ks=class extends Bs{render(t){return"return "+super.render(t)}};Ks.kind="return";var ff=class extends un{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&&xo(t,this.catch.names),this.finally&&xo(t,this.finally.names),t}},Gs=class extends un{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};Gs.kind="catch";var Ws=class extends un{render(t){return"finally"+super.render(t)}};Ws.kind="finally";var mf=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
|
|
8
|
+
`:""},this._extScope=t,this._scope=new vr.Scope({parent:t}),this._nodes=[new lf]}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 nf(t,i,n)),i}const(t,r,n){return this._def(vr.varKinds.const,t,r,n)}let(t,r,n){return this._def(vr.varKinds.let,t,r,n)}var(t,r,n){return this._def(vr.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new Hc(t,r,n))}add(t,r){return this._leafNode(new of(t,re.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==le.nil&&this._leafNode(new pf(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,le.addCodeArg)(r,o));return r.push("}"),new le._Code(r)}if(t,r,n){if(this._blockNode(new bo(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 bo(t))}else(){return this._elseNode(new bi)}endIf(){return this._endBlockNode(bo,bi)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new uf(t),r)}forRange(t,r,n,o,i=this.opts.es5?vr.varKinds.var:vr.varKinds.let){let s=this._scope.toName(t);return this._for(new df(i,s,r,n),()=>o(s))}forOf(t,r,n,o=vr.varKinds.const){let i=this._scope.toName(t);if(this.opts.es5){let s=r instanceof le.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,le._)`${s}.length`,a=>{this.var(i,(0,le._)`${s}[${a}]`),n(i)})}return this._for(new Kc("of",o,i,r),()=>n(i))}forIn(t,r,n,o=this.opts.es5?vr.varKinds.var:vr.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,le._)`Object.keys(${r})`,n);let i=this._scope.toName(t);return this._for(new Kc("in",o,i,r),()=>n(i))}endFor(){return this._endBlockNode(vo)}label(t){return this._leafNode(new sf(t))}break(t){return this._leafNode(new af(t))}return(t){let r=new Ks;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Ks)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let o=new ff;if(this._blockNode(o),this.code(t),r){let i=this.name("e");this._currNode=o.catch=new Gs(i),r(i)}return n&&(this._currNode=o.finally=new Ws,this.code(n)),this._endBlockNode(Gs,Ws)}throw(t){return this._leafNode(new cf(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=le.nil,n,o){return this._blockNode(new Hs(t,r,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(Hs)}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 bo))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=mf;function xo(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function Gc(e,t){return t instanceof le._CodeOrName?xo(e,t.names):e}function vi(e,t,r){if(e instanceof le.Name)return n(e);if(!o(e))return e;return new le._Code(e._items.reduce((i,s)=>(s instanceof le.Name&&(s=n(s)),s instanceof le._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 le._Code&&i._items.some(s=>s instanceof le.Name&&t[s.str]===1&&r[s.str]!==void 0)}}function kU(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}function L0(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,le._)`!${hf(e)}`}re.not=L0;var IU=U0(re.operators.AND);function CU(...e){return e.reduce(IU)}re.and=CU;var qU=U0(re.operators.OR);function NU(...e){return e.reduce(qU)}re.or=NU;function U0(e){return(t,r)=>t===le.nil?r:r===le.nil?t:(0,le._)`${hf(t)} ${e} ${hf(r)}`}function hf(e){return e instanceof le.Name?e:(0,le._)`(${e})`}});var ae=x(se=>{"use strict";Object.defineProperty(se,"__esModule",{value:!0});se.checkStrictMode=se.getErrorPath=se.Type=se.useFunc=se.setEvaluated=se.evaluatedPropsToName=se.mergeEvaluated=se.eachItem=se.unescapeJsonPointer=se.escapeJsonPointer=se.escapeFragment=se.unescapeFragment=se.schemaRefOrVal=se.schemaHasRulesButRef=se.schemaHasRules=se.checkUnknownRules=se.alwaysValidSchema=se.toHash=void 0;var Re=B(),MU=Vs();function jU(e){let t={};for(let r of e)t[r]=!0;return t}se.toHash=jU;function DU(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(V0(e,t),!B0(t,e.self.RULES.all))}se.alwaysValidSchema=DU;function V0(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]||G0(e,`unknown keyword: "${i}"`)}se.checkUnknownRules=V0;function B0(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}se.schemaHasRules=B0;function LU(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}se.schemaHasRulesButRef=LU;function UU({topSchemaRef:e,schemaPath:t},r,n,o){if(!o){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,Re._)`${r}`}return(0,Re._)`${e}${t}${(0,Re.getProperty)(n)}`}se.schemaRefOrVal=UU;function FU(e){return H0(decodeURIComponent(e))}se.unescapeFragment=FU;function zU(e){return encodeURIComponent(gf(e))}se.escapeFragment=zU;function gf(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}se.escapeJsonPointer=gf;function H0(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}se.unescapeJsonPointer=H0;function VU(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}se.eachItem=VU;function F0({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(o,i,s,a)=>{let c=s===void 0?i:s instanceof Re.Name?(i instanceof Re.Name?e(o,i,s):t(o,i,s),s):i instanceof Re.Name?(t(o,s,i),i):r(i,s);return a===Re.Name&&!(c instanceof Re.Name)?n(o,c):c}}se.mergeEvaluated={props:F0({mergeNames:(e,t,r)=>e.if((0,Re._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,Re._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,Re._)`${r} || {}`).code((0,Re._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,Re._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,Re._)`${r} || {}`),bf(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:K0}),items:F0({mergeNames:(e,t,r)=>e.if((0,Re._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,Re._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,Re._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,Re._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function K0(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,Re._)`{}`);return t!==void 0&&bf(e,r,t),r}se.evaluatedPropsToName=K0;function bf(e,t,r){Object.keys(r).forEach(n=>e.assign((0,Re._)`${t}${(0,Re.getProperty)(n)}`,!0))}se.setEvaluated=bf;var z0={};function BU(e,t){return e.scopeValue("func",{ref:t,code:z0[t.code]||(z0[t.code]=new MU._Code(t.code))})}se.useFunc=BU;var yf;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(yf||(se.Type=yf={}));function HU(e,t,r){if(e instanceof Re.Name){let n=t===yf.Num;return r?n?(0,Re._)`"[" + ${e} + "]"`:(0,Re._)`"['" + ${e} + "']"`:n?(0,Re._)`"/" + ${e}`:(0,Re._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,Re.getProperty)(e).toString():"/"+gf(e)}se.getErrorPath=HU;function G0(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}se.checkStrictMode=G0});var Pt=x(vf=>{"use strict";Object.defineProperty(vf,"__esModule",{value:!0});var ot=B(),KU={data:new ot.Name("data"),valCxt:new ot.Name("valCxt"),instancePath:new ot.Name("instancePath"),parentData:new ot.Name("parentData"),parentDataProperty:new ot.Name("parentDataProperty"),rootData:new ot.Name("rootData"),dynamicAnchors:new ot.Name("dynamicAnchors"),isAllOfVariant:new ot.Name("isAllOfVariant"),vErrors:new ot.Name("vErrors"),errors:new ot.Name("errors"),this:new ot.Name("this"),self:new ot.Name("self"),scope:new ot.Name("scope"),json:new ot.Name("json"),jsonPos:new ot.Name("jsonPos"),jsonLen:new ot.Name("jsonLen"),jsonPart:new ot.Name("jsonPart")};vf.default=KU});var Ys=x(yt=>{"use strict";Object.defineProperty(yt,"__esModule",{value:!0});yt.extendErrors=yt.resetErrorsCount=yt.reportExtraError=yt.reportError=yt.keyword$DataError=yt.keywordError=void 0;var ye=B(),Yc=ae(),Et=Pt();yt.keywordError={message:({keyword:e})=>(0,ye.str)`must pass "${e}" keyword validation`};yt.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 GU(e,t=yt.keywordError,r,n){let{it:o}=e,{gen:i,compositeRule:s,allErrors:a}=o,c=Q0(e,t,r);n??(s||a)?W0(i,c):Y0(o,(0,ye._)`[${c}]`)}yt.reportError=GU;function WU(e,t=yt.keywordError,r){let{it:n}=e,{gen:o,compositeRule:i,allErrors:s}=n,a=Q0(e,t,r);W0(o,a),i||s||Y0(n,Et.default.vErrors)}yt.reportExtraError=WU;function YU(e,t){e.assign(Et.default.errors,t),e.if((0,ye._)`${Et.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,ye._)`${Et.default.vErrors}.length`,t),()=>e.assign(Et.default.vErrors,null)))}yt.resetErrorsCount=YU;function QU({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,Et.default.errors,a=>{e.const(s,(0,ye._)`${Et.default.vErrors}[${a}]`),e.if((0,ye._)`${s}.instancePath === undefined`,()=>e.assign((0,ye._)`${s}.instancePath`,(0,ye.strConcat)(Et.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))})}yt.extendErrors=QU;function W0(e,t){let r=e.const("err",t);e.if((0,ye._)`${Et.default.vErrors} === null`,()=>e.assign(Et.default.vErrors,(0,ye._)`[${r}]`),(0,ye._)`${Et.default.vErrors}.push(${r})`),e.code((0,ye._)`${Et.default.errors}++`)}function Y0(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 So={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 Q0(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,ye._)`{}`:JU(e,t,r)}function JU(e,t,r={}){let{gen:n,it:o}=e,i=[XU(o,r),ZU(e,r)];return eF(e,t,i),n.object(...i)}function XU({errorPath:e},{instancePath:t}){let r=t?(0,ye.str)`${e}${(0,Yc.getErrorPath)(t,Yc.Type.Str)}`:e;return[Et.default.instancePath,(0,ye.strConcat)(Et.default.instancePath,r)]}function ZU({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,Yc.getErrorPath)(r,Yc.Type.Str)}`),[So.schemaPath,o]}function eF(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([So.keyword,o],[So.params,typeof t=="function"?t(e):t||(0,ye._)`{}`]),c.messages&&n.push([So.message,typeof r=="function"?r(e):r]),c.verbose&&n.push([So.schema,s],[So.parentSchema,(0,ye._)`${l}${u}`],[Et.default.data,i]),p&&n.push([So.propertyName,p])}});var X0=x(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.boolOrEmptySchema=xi.topBoolOrEmptySchema=void 0;var tF=Ys(),rF=B(),nF=Pt(),oF={message:"boolean schema is false"};function iF(e){let{gen:t,schema:r,validateName:n}=e;r===!1?J0(e,!1):typeof r=="object"&&r.$async===!0?t.return(nF.default.data):(t.assign((0,rF._)`${n}.errors`,null),t.return(!0))}xi.topBoolOrEmptySchema=iF;function sF(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),J0(e)):r.var(t,!0)}xi.boolOrEmptySchema=sF;function J0(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,tF.reportError)(o,oF,void 0,t)}});var xf=x(Si=>{"use strict";Object.defineProperty(Si,"__esModule",{value:!0});Si.getRules=Si.isJSONType=void 0;var aF=["string","number","integer","boolean","null","object","array"],cF=new Set(aF);function pF(e){return typeof e=="string"&&cF.has(e)}Si.isJSONType=pF;function lF(){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:{}}}Si.getRules=lF});var Sf=x(kn=>{"use strict";Object.defineProperty(kn,"__esModule",{value:!0});kn.shouldUseRule=kn.shouldUseGroup=kn.schemaHasRulesForType=void 0;function uF({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&Z0(e,n)}kn.schemaHasRulesForType=uF;function Z0(e,t){return t.rules.some(r=>ex(e,r))}kn.shouldUseGroup=Z0;function ex(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))}kn.shouldUseRule=ex});var Qs=x(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.reportTypeError=gt.checkDataTypes=gt.checkDataType=gt.coerceAndCheckDataType=gt.getJSONTypes=gt.getSchemaTypes=gt.DataType=void 0;var dF=xf(),fF=Sf(),mF=Ys(),Q=B(),tx=ae(),wi;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(wi||(gt.DataType=wi={}));function hF(e){let t=rx(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}gt.getSchemaTypes=hF;function rx(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(dF.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}gt.getJSONTypes=rx;function yF(e,t){let{gen:r,data:n,opts:o}=e,i=gF(t,o.coerceTypes),s=t.length>0&&!(i.length===0&&t.length===1&&(0,fF.schemaHasRulesForType)(e,t[0]));if(s){let a=_f(t,n,o.strictNumbers,wi.Wrong);r.if(a,()=>{i.length?bF(e,t,i):Pf(e)})}return s}gt.coerceAndCheckDataType=yF;var nx=new Set(["string","number","integer","boolean","null"]);function gF(e,t){return t?e.filter(r=>nx.has(r)||t==="array"&&r==="array"):[]}function bF(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(_f(t,o,i.strictNumbers),()=>n.assign(a,o))),n.if((0,Q._)`${a} !== undefined`);for(let p of r)(nx.has(p)||p==="array"&&i.coerceTypes==="array")&&c(p);n.else(),Pf(e),n.endIf(),n.if((0,Q._)`${a} !== undefined`,()=>{n.assign(o,a),vF(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
|
|
9
9
|
|| (${s} == "string" && ${o} && ${o} == +${o})`).assign(a,(0,Q._)`+${o}`);return;case"integer":n.elseIf((0,Q._)`${s} === "boolean" || ${o} === null
|
|
10
10
|
|| (${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"
|
|
11
|
-
|| ${s} === "boolean" || ${o} === null`).assign(a,(0,Q._)`[${o}]`)}}}function bF({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,Q._)`${t} !== undefined`,()=>e.assign((0,Q._)`${t}[${r}]`,n))}function wf(e,t,r,n=wi.Correct){let o=n===wi.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===wi.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)}}gt.checkDataType=wf;function _f(e,t,r,n){if(e.length===1)return wf(e[0],t,r,n);let o,i=(0,tx.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,wf(s,t,r,n));return o}gt.checkDataTypes=_f;var vF={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,Q._)`{type: ${e}}`:(0,Q._)`{type: ${t}}`};function Pf(e){let t=xF(e);(0,fF.reportError)(t,vF)}gt.reportTypeError=Pf;function xF(e){let{gen:t,data:r,schema:n}=e,o=(0,tx.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}});var ix=x(Qc=>{"use strict";Object.defineProperty(Qc,"__esModule",{value:!0});Qc.assignDefaults=void 0;var _i=B(),SF=ae();function wF(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let o in r)ox(e,o,r[o].default);else t==="array"&&Array.isArray(n)&&n.forEach((o,i)=>ox(e,i,o.default))}Qc.assignDefaults=wF;function ox(e,t,r){let{gen:n,compositeRule:o,data:i,opts:s}=e;if(r===void 0)return;let a=(0,_i._)`${i}${(0,_i.getProperty)(t)}`;if(o){(0,SF.checkStrictMode)(e,`default is ignored for: ${a}`);return}let c=(0,_i._)`${a} === undefined`;s.useDefaults==="empty"&&(c=(0,_i._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,_i._)`${a} = ${(0,_i.stringify)(r)}`)}});var $f=x(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});Xc.getSkipCondition=void 0;var Jc=B(),Ef=Pt();function _F(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,Jc._)`typeof ${Ef.default.this} == "object" && ${Ef.default.this} && ${Ef.default.this}.apiContext`;return o&&s.push((0,Jc._)`${a} === "request"`),i&&s.push((0,Jc._)`${a} === "response"`),(0,Jc.or)(...s)}Xc.getSkipCondition=_F});var nr=x(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 Oe=B(),Af=ae(),dn=Pt(),PF=ae(),EF=$f();function $F(e,t){let{gen:r,data:n,it:o}=e;r.if(Rf(r,n,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Oe._)`${t}`},!0),e.error()})}Ae.checkReportMissingProp=$F;function AF({gen:e,data:t,it:{opts:r},parentSchema:n},o,i){return(0,Oe.or)(...o.map(s=>{var a;return(0,Oe.and)((0,Oe.not)((a=(0,EF.getSkipCondition)(n,s))!==null&&a!==void 0?a:(0,Oe._)`false`),Rf(e,t,s,r.ownProperties),(0,Oe._)`${i} = ${s}`)}))}Ae.checkMissingProp=AF;function TF(e,t){e.setParams({missingProperty:t},!0),e.error()}Ae.reportMissingProp=TF;function sx(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Oe._)`Object.prototype.hasOwnProperty`})}Ae.hasPropFunc=sx;function Tf(e,t,r){return(0,Oe._)`${sx(e)}.call(${t}, ${r})`}Ae.isOwnProperty=Tf;function RF(e,t,r,n){let o=(0,Oe._)`${t}${(0,Oe.getProperty)(r)} !== undefined`;return n?(0,Oe._)`${o} && ${Tf(e,t,r)}`:o}Ae.propertyInData=RF;function Rf(e,t,r,n){let o=(0,Oe._)`${t}${(0,Oe.getProperty)(r)} === undefined`;return n?(0,Oe.or)(o,(0,Oe.not)(Tf(e,t,r))):o}Ae.noPropertyInData=Rf;function ax(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Ae.allSchemaProperties=ax;function OF(e,t){return ax(t).filter(r=>!(0,Af.alwaysValidSchema)(e,t[r]))}Ae.schemaProperties=OF;function kF({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:o,errorPath:i},it:s},a,c,p){let l=p?(0,Oe._)`${e}, ${t}, ${n}${o}`:t,u=[[dn.default.instancePath,(0,Oe.strConcat)(dn.default.instancePath,i)],[dn.default.parentData,s.parentData],[dn.default.parentDataProperty,s.parentDataProperty],[dn.default.rootData,dn.default.rootData],[dn.default.isAllOfVariant,s.isAllOfVariant?1:0]];s.opts.dynamicRef&&u.push([dn.default.dynamicAnchors,dn.default.dynamicAnchors]);let f=(0,Oe._)`${l}, ${r.object(...u)}`;return c!==Oe.nil?(0,Oe._)`${a}.call(${c}, ${f})`:(0,Oe._)`${a}(${f})`}Ae.callValidateCode=kF;var IF=(0,Oe._)`new RegExp`;function CF({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,Oe._)`${o.code==="new RegExp"?IF:(0,PF.useFunc)(e,o)}(${r}, ${n})`})}Ae.usePattern=CF;function qF(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,Oe._)`${r}.length`);t.forRange("i",0,c,p=>{e.subschema({keyword:n,dataProp:p,dataPropType:Af.Type.Num},i),t.if((0,Oe.not)(i),a)})}}Ae.validateArray=qF;function NF(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,Oe._)`${a} || ${c}`),e.mergeValidEvaluated(u,c)||t.if((0,Oe.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}Ae.validateUnion=NF});var lx=x(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.validateKeywordUsage=Fr.validSchemaType=Fr.funcKeywordCode=Fr.macroKeywordCode=void 0;var $t=B(),wo=Pt(),MF=nr(),jF=Ys();function DF(e,t){let{gen:r,keyword:n,schema:o,parentSchema:i,it:s}=e,a=t.macro.call(s.self,o,i,s),c=px(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))}Fr.macroKeywordCode=DF;function LF(e,t){var r;let{gen:n,keyword:o,schema:i,parentSchema:s,$data:a,it:c}=e;FF(c,t);let p=!a&&t.compile?t.compile.call(c.self,i,s,c):t.validate,l=px(n,o,p),u=n.let("valid");e.block$data(u,f),e.ok((r=t.valid)!==null&&r!==void 0?r:u);function f(){if(t.errors===!1)h(),t.modifying&&cx(e),y(()=>e.error());else{let g=t.async?d():m();t.modifying&&cx(e),y(()=>UF(e,g))}}function d(){let g=n.let("ruleErrs",null);return n.try(()=>h((0,$t._)`await `),b=>n.assign(u,!1).if((0,$t._)`${b} instanceof ${c.ValidationError}`,()=>n.assign(g,(0,$t._)`${b}.errors`),()=>n.throw(b))),g}function m(){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 b=c.opts.passContext?wo.default.this:wo.default.self,v=!("compile"in t&&!a||t.schema===!1);n.assign(u,(0,$t._)`${g}${(0,MF.callValidateCode)(e,l,b,v)}`,t.modifying)}function y(g){var b;n.if((0,$t.not)((b=t.valid)!==null&&b!==void 0?b:u),g)}}Fr.funcKeywordCode=LF;function cx(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,$t._)`${n.parentData}[${n.parentDataProperty}]`))}function UF(e,t){let{gen:r}=e;r.if((0,$t._)`Array.isArray(${t})`,()=>{r.assign(wo.default.vErrors,(0,$t._)`${wo.default.vErrors} === null ? ${t} : ${wo.default.vErrors}.concat(${t})`).assign(wo.default.errors,(0,$t._)`${wo.default.vErrors}.length`),(0,jF.extendErrors)(e)},()=>e.error())}function FF({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function px(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 zF(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")}Fr.validSchemaType=zF;function VF({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)}}Fr.validateKeywordUsage=VF});var dx=x(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.extendSubschemaMode=In.extendSubschemaData=In.getSubschema=void 0;var zr=B(),ux=ae();function BF(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,zr._)`${e.schemaPath}${(0,zr.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:(0,zr._)`${e.schemaPath}${(0,zr.getProperty)(t)}${(0,zr.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,ux.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')}In.getSubschema=BF;function HF(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,f=a.let("data",(0,zr._)`${t.data}${(0,zr.getProperty)(r)}`,!0);c(f),e.errorPath=(0,zr.str)`${p}${(0,ux.getErrorPath)(r,n,u.jsPropertySyntax)}`,e.parentDataProperty=(0,zr._)`${r}`,e.dataPathArr=[...l,e.parentDataProperty]}if(o!==void 0){let p=o instanceof zr.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]}}In.extendSubschemaData=HF;function KF(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}In.extendSubschemaMode=KF});var Js=x((MZ,fx)=>{"use strict";fx.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 Of=x((jZ,mx)=>{"use strict";var Cn=mx.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(){};Zc(t,n,o,e,"",e)};Cn.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Cn.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Cn.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Cn.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Zc(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 Cn.arrayKeywords)for(var f=0;f<u.length;f++)Zc(e,t,r,u[f],o+"/"+l+"/"+f,i,o,l,n,f)}else if(l in Cn.propsKeywords){if(u&&typeof u=="object")for(var d in u)Zc(e,t,r,u[d],o+"/"+l+"/"+GF(d),i,o,l,n,d)}else(l in Cn.keywords||e.allKeys&&!(l in Cn.skipKeywords))&&Zc(e,t,r,u,o+"/"+l,i,o,l,n)}r(n,o,i,s,a,c,p)}}function GF(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}});var Xs=x(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.getSchemaRefs=jt.resolveUrl=jt.normalizeId=jt._getFullPath=jt.getFullPath=jt.inlineRef=void 0;var WF=ae(),YF=Js(),QF=Of(),JF=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function XF(e,t=!0){return typeof e=="boolean"?!0:t===!0?!kf(e):t?hx(e)<=t:!1}jt.inlineRef=XF;var ZF=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function kf(e){for(let t in e){if(ZF.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(kf)||typeof r=="object"&&kf(r))return!0}return!1}function hx(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!JF.has(r)&&(typeof e[r]=="object"&&(0,WF.eachItem)(e[r],n=>t+=hx(n)),t===1/0))return 1/0}return t}function yx(e,t="",r){r!==!1&&(t=Pi(t));let n=e.parse(t);return gx(e,n)}jt.getFullPath=yx;function gx(e,t){return e.serialize(t).split("#")[0]+"#"}jt._getFullPath=gx;var ez=/#\/?$/;function Pi(e){return e?e.replace(ez,""):""}jt.normalizeId=Pi;function tz(e,t,r){return r=Pi(r),e.resolve(t,r)}jt.resolveUrl=tz;var rz=/^[a-z_][-a-z0-9._]*$/i;function nz(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,o=Pi(e[r]||t),i={"":o},s=yx(n,o,!1),a={},c=new Set;return QF(e,{allKeys:!0},(u,f,d,m)=>{if(m===void 0)return;let h=s+f,y=i[m];typeof u[r]=="string"&&(y=g.call(this,u[r])),b.call(this,u.$anchor),b.call(this,u.$dynamicAnchor),i[f]=y;function g(v){let w=this.opts.uriResolver.resolve;if(v=Pi(y?w(y,v):v),c.has(v))throw l(v);c.add(v);let S=this.refs[v];return typeof S=="string"&&(S=this.refs[S]),typeof S=="object"?p(u,S.schema,v):v!==Pi(h)&&(v[0]==="#"?(p(u,a[v],v),a[v]=u):this.refs[v]=h),v}function b(v){if(typeof v=="string"){if(!rz.test(v))throw new Error(`invalid anchor "${v}"`);g.call(this,`#${v}`)}}}),a;function p(u,f,d){if(f!==void 0&&!YF(u,f))throw l(d)}function l(u){return new Error(`reference "${u}" resolves to more than one schema`)}}jt.getSchemaRefs=nz});var Ei=x(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.getData=qn.KeywordCxt=qn.validateFunctionCode=void 0;var wx=X0(),bx=Qs(),Cf=Sf(),ep=Qs(),oz=ix(),ea=lx(),If=dx(),D=B(),F=Pt(),iz=Xs(),fn=ae(),Zs=Ys();function sz(e){if(Ex(e)&&($x(e),Px(e))){pz(e);return}_x(e,()=>(0,wx.topBoolOrEmptySchema)(e))}qn.validateFunctionCode=sz;function _x({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},i){o.code.es5?e.func(t,(0,D._)`${F.default.data}, ${F.default.valCxt}`,n.$async,()=>{e.code((0,D._)`"use strict"; ${vx(r,o)}`),cz(e,o),e.code(i)}):e.func(t,(0,D._)`${F.default.data}, ${az(o)}`,n.$async,()=>e.code(vx(r,o)).code(i))}function az(e){return(0,D._)`{${F.default.instancePath}="", ${F.default.parentData}, ${F.default.parentDataProperty}, ${F.default.rootData}=${F.default.data}${e.dynamicRef?(0,D._)`, ${F.default.dynamicAnchors}={}`:D.nil}, ${F.default.isAllOfVariant} = 0}={}`}function cz(e,t){e.if(F.default.valCxt,()=>{e.var(F.default.instancePath,(0,D._)`${F.default.valCxt}.${F.default.instancePath}`),e.var(F.default.parentData,(0,D._)`${F.default.valCxt}.${F.default.parentData}`),e.var(F.default.parentDataProperty,(0,D._)`${F.default.valCxt}.${F.default.parentDataProperty}`),e.var(F.default.rootData,(0,D._)`${F.default.valCxt}.${F.default.rootData}`),e.var(F.default.isAllOfVariant,(0,D._)`${F.default.valCxt}.${F.default.isAllOfVariant}`),t.dynamicRef&&e.var(F.default.dynamicAnchors,(0,D._)`${F.default.valCxt}.${F.default.dynamicAnchors}`)},()=>{e.var(F.default.instancePath,(0,D._)`""`),e.var(F.default.parentData,(0,D._)`undefined`),e.var(F.default.parentDataProperty,(0,D._)`undefined`),e.var(F.default.rootData,F.default.data),e.var(F.default.isAllOfVariant,(0,D._)`0`),t.dynamicRef&&e.var(F.default.dynamicAnchors,(0,D._)`{}`)})}function pz(e){let{schema:t,opts:r,gen:n}=e;_x(e,()=>{r.$comment&&t.$comment&&Tx(e),mz(e),n.let(F.default.vErrors,null),n.let(F.default.errors,0),r.unevaluated&&lz(e),Ax(e),gz(e)})}function lz(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,D._)`${r}.evaluated`),t.if((0,D._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,D._)`${e.evaluated}.props`,(0,D._)`undefined`)),t.if((0,D._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,D._)`${e.evaluated}.items`,(0,D._)`undefined`))}function vx(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,D._)`/*# sourceURL=${r} */`:D.nil}function uz(e,t){if(Ex(e)&&($x(e),Px(e))){dz(e,t);return}(0,wx.boolOrEmptySchema)(e,t)}function Px({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 Ex(e){return typeof e.schema!="boolean"}function dz(e,t){let{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&Tx(e),hz(e),yz(e);let i=n.const("_errs",F.default.errors);Ax(e,i),n.var(t,(0,D._)`${i} === ${F.default.errors}`)}function $x(e){(0,fn.checkUnknownRules)(e),fz(e)}function Ax(e,t){if(e.opts.jtd)return xx(e,[],!1,t);let r=(0,bx.getSchemaTypes)(e.schema),n=(0,bx.coerceAndCheckDataType)(e,r);xx(e,r,!n,t)}function fz(e){let{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,fn.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function mz(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,fn.checkStrictMode)(e,"default is ignored in the schema root")}function hz(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,iz.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function yz(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function Tx({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){let i=r.$comment;if(o.$comment===!0)e.code((0,D._)`${F.default.self}.logger.log(${i})`);else if(typeof o.$comment=="function"){let s=(0,D.str)`${n}/$comment`,a=e.scopeValue("root",{ref:t.root});e.code((0,D._)`${F.default.self}.opts.$comment(${i}, ${s}, ${a}.schema)`)}}function gz(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:i}=e;r.$async?t.if((0,D._)`${F.default.errors} === 0`,()=>t.return(F.default.data),()=>t.throw((0,D._)`new ${o}(${F.default.vErrors})`)):(t.assign((0,D._)`${n}.errors`,F.default.vErrors),i.unevaluated&&bz(e),t.return((0,D._)`${F.default.errors} === 0`))}function bz({gen:e,evaluated:t,props:r,items:n}){r instanceof D.Name&&e.assign((0,D._)`${t}.props`,r),n instanceof D.Name&&e.assign((0,D._)`${t}.items`,n)}function xx(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,fn.schemaHasRulesButRef)(i,l))){o.block(()=>Ox(e,"$ref",l.all.$ref.definition));return}c.jtd||vz(e,t),o.block(()=>{for(let f of l.rules)u(f);u(l.post)});function u(f){(0,Cf.shouldUseGroup)(i,f)&&(f.type?(o.if((0,ep.checkDataType)(f.type,s,c.strictNumbers)),Sx(e,f),t.length===1&&t[0]===f.type&&r&&(o.else(),(0,ep.reportTypeError)(e)),o.endIf()):Sx(e,f),a||o.if((0,D._)`${F.default.errors} === ${n||0}`))}}function Sx(e,t){let{gen:r,schema:n,opts:{useDefaults:o}}=e;o&&(0,oz.assignDefaults)(e,t.type),r.block(()=>{for(let s of t.rules)((0,Cf.shouldUseRule)(n,s)||i(n,s))&&Ox(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 vz(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(xz(e,t),e.opts.allowUnionTypes||Sz(e,t),wz(e,e.dataTypes))}function xz(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{Rx(e.dataTypes,r)||qf(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),Pz(e,t)}}function Sz(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&qf(e,"use allowUnionTypes to allow union type keyword")}function wz(e,t){let r=e.self.RULES.all;for(let n in r){let o=r[n];if(typeof o=="object"&&(0,Cf.shouldUseRule)(e.schema,o)){let{type:i}=o.definition;i.length&&!i.some(s=>_z(t,s))&&qf(e,`missing type "${i.join(",")}" for keyword "${n}"`)}}}function _z(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function Rx(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function Pz(e,t){let r=[];for(let n of e.dataTypes)Rx(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function qf(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,fn.checkStrictMode)(e,t,e.opts.strictTypes)}var tp=class{constructor(t,r,n){if((0,ea.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,fn.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",kx(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,ea.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,D.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,D.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,D._)`${r} !== undefined && (${(0,D.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=D.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=D.nil,r=D.nil){if(!this.$data)return;let{gen:n,schemaCode:o,schemaType:i,def:s}=this;n.if((0,D.or)((0,D._)`${o} === undefined`,r)),t!==D.nil&&n.assign(t,!0),(i.length||s.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==D.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:o,it:i}=this;return(0,D.or)(s(),a());function s(){if(n.length){if(!(r instanceof D.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,D._)`${(0,ep.checkDataTypes)(c,r,i.opts.strictNumbers,ep.DataType.Wrong)}`}return D.nil}function a(){if(o.validateSchema){let c=t.scopeValue("validate$data",{ref:o.validateSchema});return(0,D._)`!${c}(${r})`}return D.nil}}subschema(t,r,n){let o=(0,If.getSubschema)(this.it,t);(0,If.extendSubschemaData)(o,this.it,t),(0,If.extendSubschemaMode)(o,t);let i={...this.it,...o,items:void 0,props:void 0,isAllOfVariant:n};return uz(i,r),i}mergeEvaluated(t,r){let{it:n,gen:o}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=fn.mergeEvaluated.props(o,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=fn.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,D.Name)),!0}};qn.KeywordCxt=tp;function Ox(e,t,r,n){let o=new tp(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,ea.funcKeywordCode)(o,r):"macro"in r?(0,ea.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,ea.funcKeywordCode)(o,r)}var Ez=/^\/(?:[^~]|~0|~1)*$/,$z=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function kx(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,i;if(e==="")return F.default.rootData;if(e[0]==="/"){if(!Ez.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,i=F.default.rootData}else{let p=$z.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,D._)`${i}${(0,D.getProperty)((0,fn.unescapeJsonPointer)(p))}`,s=(0,D._)`${s} && ${i}`);return s;function c(p,l){return`Cannot access ${p} ${l} levels up, current level is ${t}`}}qn.getData=kx});var ta=x(Mf=>{"use strict";Object.defineProperty(Mf,"__esModule",{value:!0});var Nf=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};Mf.default=Nf});var $i=x(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});var jf=Xs(),Df=class extends Error{constructor(t,r,n,o){super(o||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,jf.resolveUrl)(t,r,n),this.missingSchema=(0,jf.normalizeId)((0,jf.getFullPath)(t,this.missingRef))}};Lf.default=Df});var ra=x(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.resolveSchema=or.getCompilingSchema=or.resolveRef=or.compileSchema=or.SchemaEnv=void 0;var xr=B(),Az=ta(),_o=Pt(),Sr=Xs(),Ix=ae(),Tz=Ei(),Ai=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,Sr.normalizeId)(n?.[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n?.$async,this.refs={}}};or.SchemaEnv=Ai;function Ff(e){let t=qx.call(this,e);if(t)return t;let r=(0,Sr.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:i}=this.opts,s=new xr.CodeGen(this.scope,{es5:n,lines:o,ownProperties:i}),a;e.$async&&(a=s.scopeValue("Error",{ref:Az.default,code:(0,xr._)`require("ajv/dist/runtime/validation_error").default`}));let c=s.scopeName("validate");e.validateName=c;let p={gen:s,allErrors:this.opts.allErrors,data:_o.default.data,parentData:_o.default.parentData,parentDataProperty:_o.default.parentDataProperty,dataNames:[_o.default.data],dataPathArr:[xr.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,xr.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:xr.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,xr._)`""`,opts:this.opts,self:this},l;try{this._compilations.add(e),(0,Tz.validateFunctionCode)(p),s.optimize(this.opts.code.optimize);let u=s.toString();l=`const visitedNodesForRef = new WeakMap(); ${s.scopeRefs(_o.default.scope)}return ${u}`,this.opts.code.process&&(l=this.opts.code.process(l,e));let d=new Function(`${_o.default.self}`,`${_o.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:m,items:h}=p;d.evaluated={props:m instanceof xr.Name?void 0:m,items:h instanceof xr.Name?void 0:h,dynamicProps:m instanceof xr.Name,dynamicItems:h instanceof xr.Name},d.source&&(d.source.evaluated=(0,xr.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)}}or.compileSchema=Ff;function Rz(e,t,r){var n;let o=(0,Sr.resolveUrl)(this.opts.uriResolver,t,r),i=e.refs[o];if(i)return i;let s=Cx.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 Ai({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=Cx.call(this,e,o))}if(s!==void 0)return e.refs[o]=Oz.call(this,s)}or.resolveRef=Rz;function Oz(e){return(0,Sr.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Ff.call(this,e)}function qx(e){for(let t of this._compilations)if(kz(t,e))return t}or.getCompilingSchema=qx;function kz(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function Cx(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||rp.call(this,e,t)}function rp(e,t){let r=this.opts.uriResolver.parse(t),n=(0,Sr._getFullPath)(this.opts.uriResolver,r),o=(0,Sr.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return Uf.call(this,r,e);let i=(0,Sr.normalizeId)(n),s=this.refs[i]||this.schemas[i];if(typeof s=="string"){let a=rp.call(this,e,s);return typeof a?.schema!="object"?void 0:Uf.call(this,r,a)}if(typeof s?.schema=="object"){if(s.validate||Ff.call(this,s),i===(0,Sr.normalizeId)(t)){let{schema:a}=s,{schemaId:c}=this.opts,p=a[c];return p&&(o=(0,Sr.resolveUrl)(this.opts.uriResolver,o,p)),new Ai({schema:a,schemaId:c,root:e,baseId:o})}return Uf.call(this,r,s)}}or.resolveSchema=rp;var Iz=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Uf(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,Ix.unescapeFragment)(a)];if(c===void 0)return;r=c;let p=typeof r=="object"&&r[this.opts.schemaId];!Iz.has(a)&&p&&(t=(0,Sr.resolveUrl)(this.opts.uriResolver,t,p))}let i;if(typeof r!="boolean"&&r.$ref&&!(0,Ix.schemaHasRulesButRef)(r,this.RULES)){let a=(0,Sr.resolveUrl)(this.opts.uriResolver,t,r.$ref);i=rp.call(this,n,a)}let{schemaId:s}=this.opts;if(i=i||new Ai({schema:r,schemaId:s,root:n,baseId:t}),i.schema!==i.root.schema)return i}});var Nx=x((VZ,Cz)=>{Cz.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 Gf=x((BZ,zx)=>{"use strict";var qz=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),Vf=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),Nz=RegExp.prototype.test.bind(/^\d*$/u),Po=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),Bf=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),jx=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u),Hf=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]$/u),Mz=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u),Dt=new Array(256);{let e="0123456789ABCDEF";for(let t=0;t<256;t++)Dt[t]="%"+e[t>>4]+e[t&15]}function bt(e){return e<2048?Dt[192|e>>6]+Dt[128|e&63]:e<65536?Dt[224|e>>12]+Dt[128|e>>6&63]+Dt[128|e&63]:Dt[240|e>>18]+Dt[128|e>>12&63]+Dt[128|e>>6&63]+Dt[128|e&63]}function jz(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 Dz=RegExp.prototype.test.bind(/^[\dA-Fa-f]{1,4}$/),Lz=RegExp.prototype.test.bind(/^[vV][\dA-Fa-f]+\.[A-Za-z\d\-._~!$&'()*+,;=:]+$/),Uz=RegExp.prototype.test.bind(/^[A-Za-z\d\-._~]$/),Fz=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function zz(e){if(e.length===0)return!1;for(let t=0;t<e.length;t++)if(!Uz(e[t])){if(e[t]==="%"&&t+2<e.length&&Po(e.slice(t+1,t+3))){t+=2;continue}return!1}return!0}function Mx(e){let t=-1,r=0,n=-1,o=0;for(let a=0;a<e.length;a++)e[a]==="0"?(n===-1&&(n=a),o++,o>r&&(r=o,t=n)):(n=-1,o=0);if(r<2)return e.join(":");let i=e.slice(0,t).join(":"),s=e.slice(t+r).join(":");return i+"::"+s}function Vz(e){let t=e.indexOf("::");if(t!==-1&&e.indexOf("::",t+1)!==-1)return;let r=t===-1?e.split(":"):e.slice(0,t).split(":"),n=t===-1?[]:e.slice(t+2).split(":");t!==-1&&(r.length===1&&r[0]===""&&(r.length=0),n.length===1&&n[0]===""&&(n.length=0));let o=r.concat(n),i=0;for(let a=0;a<o.length;a++){let c=o[a];if(c==="")return;if(c.indexOf(".")!==-1){if(a!==o.length-1||t!==-1&&n.length===0||!Vf(c))return;i+=2;continue}if(!Dz(c))return;o[a]=parseInt(c,16).toString(16),i++}if(t===-1)return i!==8?void 0:Mx(o);if(i>=8)return;let s=o.slice(0,r.length);for(let a=i;a<8;a++)s.push("0");for(let a=r.length;a<o.length;a++)s.push(o[a]);return Mx(s)}function zf(e){let t=e[0]==="["&&e[e.length-1]==="]";if((e[0]==="["||e[e.length-1]==="]")&&!t)return{host:e,isIPV6:!1,error:!0};let n=t?e.slice(1,-1):e;if(t&&Lz(n))return n=n.toLowerCase(),{host:`[${n}]`,escapedHost:n,isIPV6:!1,isIPVFuture:!0};if(Bz(n,":")<2)return{host:e,isIPV6:!1,error:t};let o="",i=n.indexOf("%");if(i!==-1){let a=n.slice(i,i+3).toLowerCase()==="%25"?3:1;if(o=n.slice(i+a),!zz(o))return{host:e,isIPV6:!1,error:!0};n=n.slice(0,i)}let s=Vz(n);return s===void 0?{host:e,isIPV6:!1,error:!0}:{host:s+(o?"%"+o:""),escapedHost:s+(o?"%25"+o:""),isIPV6:!0}}function Bz(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}function Hz(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 Kz={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},Gz=/[@/?#:]/g,Wz=/[@/?#]/g;function Dx(e,t){let r=t?Wz:Gz;return r.lastIndex=0,e.replace(r,n=>Kz[n])}function Lx(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(Po(o)){let i=o.toUpperCase(),s=String.fromCharCode(parseInt(i,16));t&&Bf(s)?r+=s:r+="%"+i,n+=2;continue}}r+=e[n]}return r}function Yz(e){let t="";for(let r=0;r<e.length;r++){let n=e[r];if(n==="%"&&r+2<e.length){let o=e.slice(r+1,r+3);if(Po(o)){let i=o.toUpperCase(),s=String.fromCharCode(parseInt(i,16));s!=="."&&Bf(s)?t+=s:t+="%"+i,r+=2;continue}}if(jx(n))t+=n;else{let o=e.charCodeAt(r);if(o<128)t+=Fx(o)?n:Dt[o];else if(o<55296||o>57343)t+=bt(o);else if(o<=56319&&r+1<e.length){let i=e.charCodeAt(r+1);i>=56320&&i<=57343?(t+=bt(65536+(o-55296<<10)+(i-56320)),r++):t+=bt(65533)}else t+=bt(65533)}}return t}function Qz(e,t=!1){let r="",n=t&&e[0]!=="/";for(let o=0;o<e.length;o++){let i=e[o];if(i==="%"&&o+2<e.length){let s=e.slice(o+1,o+3);if(Po(s)){r+="%"+s.toUpperCase(),o+=2;continue}}if(i==="/"&&(n=!1),jx(i)&&(i!==":"||!n))r+=i;else{let s=e.charCodeAt(o);if(s<128)r+=Dt[s];else if(s<55296||s>57343)r+=bt(s);else if(s<=56319&&o+1<e.length){let a=e.charCodeAt(o+1);a>=56320&&a<=57343?(r+=bt(65536+(s-55296<<10)+(a-56320)),o++):r+=bt(65533)}else r+=bt(65533)}}return r}function Kf(e,t){let r="";for(let n=0;n<e.length;n++){let o=e[n];if(o==="%"&&n+2<e.length){let i=e.slice(n+1,n+3);if(Po(i)){r+="%"+i.toUpperCase(),n+=2;continue}}if(t(o))r+=o;else{let i=e.charCodeAt(n);if(i<128)r+=Dt[i];else if(i<55296||i>57343)r+=bt(i);else if(i<=56319&&n+1<e.length){let s=e.charCodeAt(n+1);s>=56320&&s<=57343?(r+=bt(65536+(i-55296<<10)+(s-56320)),n++):r+=bt(65533)}else r+=bt(65533)}}return r}function Ux(e){return Kf(e,Mz)}function Jz(e){return Kf(e,Hf)}function Xz(e){return Kf(e,Hf)}function Fx(e){return e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122||e===42||e===43||e===45||e===46||e===47||e===64||e===95}function Zz(e){let t="";for(let r=0;r<e.length;r++){let n=e[r];if(n==="%"&&r+2<e.length){let o=e.slice(r+1,r+3);if(Po(o)){let i=o.toUpperCase(),s=String.fromCharCode(parseInt(i,16));Bf(s)?t+=s:t+="%"+i,r+=2;continue}}if(Hf(n))t+=n;else{let o=e.charCodeAt(r);if(o<128)t+=Fx(o)?n:Dt[o];else if(o<55296||o>57343)t+=bt(o);else if(o<=56319&&r+1<e.length){let i=e.charCodeAt(r+1);i>=56320&&i<=57343?(t+=bt(65536+(o-55296<<10)+(i-56320)),r++):t+=bt(65533)}else t+=bt(65533)}}return t}function eV(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(Po(n)){t+="%"+n.toUpperCase(),r+=2;continue}}t+=escape(e[r])}return t}function tV(e){let t=[];if(e.userinfo!==void 0&&(t.push(Ux(e.userinfo)),t.push("@")),e.host!==void 0){let r=e.host;if(!Vf(r)){let n=zf(r);n.isIPV6!==!0&&n.isIPVFuture!==!0&&(r=Lx(r,!0),n=zf(r)),n.isIPV6===!0||n.isIPVFuture===!0?r=`[${n.escapedHost}]`:r=Dx(r,!1)}t.push(r)}if(typeof e.port=="number"||typeof e.port=="string"){let r=String(e.port);if(!Nz(r))throw new TypeError("URI port is malformed.");t.push(":"),t.push(r)}return t.length?t.join(""):void 0}zx.exports={nonSimpleDomain:Fz,recomposeAuthority:tV,reescapeHostDelimiters:Dx,normalizePercentEncoding:Lx,normalizePathEncoding:Yz,serializePathEncoding:Qz,normalizeQueryFragmentEncoding:Zz,encodeUserinfo:Ux,encodeQuery:Jz,encodeFragment:Xz,escapePreservingEscapes:eV,removeDotSegments:Hz,isIPv4:Vf,isUUID:qz,normalizeIPv6:zf,stringArrayToHexStripped:jz}});var Gx=x((HZ,Kx)=>{"use strict";var{isUUID:rV}=Gf(),nV=/^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu,oV=["http","https","ws","wss","urn","urn:uuid"];function iV(e){return oV.indexOf(e)!==-1}function Wf(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 Vx(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function Bx(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 sV(e){return e.secure=Wf(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function aV(e){if((e.port===(Wf(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=e.resourceName.indexOf("?"),r=t===-1?e.resourceName:e.resourceName.slice(0,t);e.path=r&&r!=="/"?r:void 0,e.query=t===-1?void 0:e.resourceName.slice(t+1),e.resourceName=void 0}return e.fragment=void 0,e}function cV(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(nV);if(r&&r[0]===e.path){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let o=`${n}:${t.nid||e.nid}`,i=Yf(o);e.path=void 0,i&&(e=i.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}function pV(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=Yf(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 lV(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!rV(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function uV(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}var Hx={scheme:"http",domainHost:!0,parse:Vx,serialize:Bx},dV={scheme:"https",domainHost:Hx.domainHost,parse:Vx,serialize:Bx},np={scheme:"ws",domainHost:!0,parse:sV,serialize:aV},fV={scheme:"wss",domainHost:np.domainHost,parse:np.parse,serialize:np.serialize},mV={scheme:"urn",parse:cV,serialize:pV,skipNormalize:!0},hV={scheme:"urn:uuid",parse:lV,serialize:uV,skipNormalize:!0},op={http:Hx,https:dV,ws:np,wss:fV,urn:mV,"urn:uuid":hV};Object.setPrototypeOf(op,null);function Yf(e){return e&&(op[e]||op[e.toLowerCase()])||void 0}Kx.exports={wsIsSecure:Wf,SCHEMES:op,isValidSchemeName:iV,getSchemeHandler:Yf}});var Zf=x((KZ,ap)=>{"use strict";var{normalizeIPv6:Xx,removeDotSegments:oa,recomposeAuthority:yV,normalizePercentEncoding:Zx,normalizePathEncoding:gV,serializePathEncoding:Wx,normalizeQueryFragmentEncoding:Yx,encodeQuery:bV,encodeFragment:vV,reescapeHostDelimiters:xV,isIPv4:eS,nonSimpleDomain:SV}=Gf(),{SCHEMES:tS,getSchemeHandler:Qf}=Gx(),rS=/^[A-Za-z][A-Za-z0-9+.-]*$/u,nS="URI scheme is malformed.";function Qx(e){let t=unescape(String(e));if(!rS.test(t))throw new TypeError(nS);return t}function wV(e,t){return typeof e=="string"?e=OV(e,t):typeof e=="object"&&(e=sp(Eo(e,t),t)),e}function _V(e,t,r){let n=r?Object.assign({scheme:"null"},r):{scheme:"null"},{parsed:o,malformedAuthorityOrPort:i,malformedPercentEncoding:s,malformedSchemeSpecific:a,malformedHost:c,malformedScheme:p}=ip(e,n),{parsed:l,malformedAuthorityOrPort:u,malformedPercentEncoding:f,malformedSchemeSpecific:d,malformedHost:m,malformedScheme:h}=ip(t,n);if(i||u||s||f||a||d||c||m||p||h)throw new Error(o.error||l.error||"URI is malformed.");let y=oS(o,l,n,!0),g=Qf(r&&r.scheme||y.scheme),b=y.host,v=b!==void 0&&b!==""&&(eS(b)||Xx(b).isIPV6);iS(y,r||{},g,v);let w=b&&b.indexOf("%")!==-1&&!new RegExp("\\P{ASCII}","u").test(b);if(y.error&&!w)throw new Error(y.error);return n.skipEscape=!0,Eo(y,n)}function oS(e,t,r,n){let o={};return n||(e=sp(Eo(e,r),r),t=sp(Eo(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=oa(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=oa(t.path||""),o.query=t.query):(t.path?(t.path[0]==="/"?o.path=oa(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=oa(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 PV(e,t,r){let n=Jx(e,r),o=Jx(t,r);return n!==void 0&&o!==void 0&&n===o}function Eo(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=[];r.scheme&&(r.scheme=Qx(r.scheme));let i=Qf(n.scheme||r.scheme);i&&i.serialize&&i.serialize(r,n);let s=r.userinfo!==void 0||r.host!==void 0||r.port!==void 0,a=!n.skipEscape&&r.scheme===void 0&&!s;r.path!==void 0&&(n.skipEscape?r.path=Zx(r.path):r.path=Wx(r.path,a)),n.reference!=="suffix"&&r.scheme&&(r.scheme=Qx(r.scheme),o.push(r.scheme,":"));let c=yV(r);if(c!==void 0&&(n.reference!=="suffix"&&o.push("//"),o.push(c),r.path&&r.path[0]!=="/"&&o.push("/")),r.path!==void 0){let p=r.path;!n.absolutePath&&(!i||!i.absolutePath)&&(p=oa(p)),a&&(p=Wx(p,!0)),c===void 0&&p[0]==="/"&&p[1]==="/"&&(p="/%2F"+p.slice(2)),o.push(p)}return r.query!==void 0&&o.push("?",bV(r.query)),r.fragment!==void 0&&o.push("#",vV(r.fragment)),o.join("")}var EV=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,$V=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,AV=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function TV(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 na(e){if(e===void 0)return!1;let t=e.indexOf("%");for(;t!==-1;){if(t+2>=e.length||!/^[\da-f]{2}$/iu.test(e.slice(t+1,t+3)))return!0;t=e.indexOf("%",t+3)}return!1}function Jf(e){return e[0]==="["&&e[e.length-1]==="]"}function RV(e){let t=e[4];return na(e[3])||t!==void 0&&!Jf(t)&&na(t)||na(e[6])||na(e[7])||na(e[8])}function iS(e,t,r,n){if(!t.unicodeSupport&&(!r||!r.unicodeSupport)&&e.host&&!Jf(e.host)&&(t.domainHost||r&&r.domainHost)&&n===!1&&SV(e.host))try{e.host=new URL("http://"+e.host).hostname}catch(o){return e.error=e.error||"Host's domain name can not be converted to ASCII: "+o,!0}return!1}function ip(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,s=!1,a=!1,c=!1,p=!1,l=!1;r.reference==="suffix"&&(r.scheme?e=r.scheme+":"+e:e="//"+e);let u=e.match($V);u!==null&&u[1].indexOf("\\")!==-1&&(n.error="URI authority must not contain a literal backslash.",o=!0);let f=e.match(AV);if(f!==null){let m=f[1],h=m.replace(/[\t\n\r]/g,"");h.length>=2&&(h.slice(0,2)!=="//"?(n.error=n.error||"URI authority must not contain a literal backslash.",o=!0):m.length!==h.length&&(n.error=n.error||"URI authority introducer must not contain whitespace.",o=!0))}let d=e.match(EV);if(d){if(n.scheme=d[1],n.userinfo=d[3],n.host=d[4],n.port=parseInt(d[5],10),n.path=d[6]||"",n.query=d[7],n.fragment=d[8],n.scheme!==void 0){let y=unescape(n.scheme);rS.test(y)?n.scheme=y.toLowerCase():(n.error=n.error||nS,p=!0)}i=RV(d),i&&(n.error=n.error||"URI contains malformed percent-encoding."),isNaN(n.port)&&(n.port=d[5]);let m=TV(n,d);if(m!==void 0&&(n.error=n.error||m,o=!0),n.host)if(eS(n.host)===!1){let g=Jf(n.host),b=n.host.indexOf("[")!==-1||n.host.indexOf("]")!==-1,v=Xx(n.host);l=v.isIPV6||v.isIPVFuture===!0,c=b&&(!g||v.error===!0),n.host=l?v.host:v.host.toLowerCase(),c&&(n.error=n.error||"URI host is malformed.",o=!0)}else l=!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 h=Qf(r.scheme||n.scheme);if(c||(a=iS(n,r,h,l)),!h||h&&!h.skipNormalize){if(e.indexOf("%")!==-1&&n.host!==void 0&&!c){let y=l?n.host:Zx(n.host,!0);n.host=xV(y,l)}n.path&&(n.path=gV(n.path)),n.query&&(n.query=Yx(n.query)),n.fragment&&(n.fragment=Yx(n.fragment))}h&&h.parse&&(h.parse(n,r),h===tS.urn&&n.nid===void 0&&(s=!0))}else n.error=n.error||"URI can not be parsed.";return{parsed:n,malformedAuthorityOrPort:o,malformedPercentEncoding:i,malformedSchemeSpecific:s,malformedHost:a,malformedScheme:p}}function sp(e,t){return ip(e,t).parsed}function OV(e,t){return sS(e,t).normalized}function sS(e,t){let{parsed:r,malformedAuthorityOrPort:n,malformedPercentEncoding:o,malformedSchemeSpecific:i,malformedHost:s,malformedScheme:a}=ip(e,t);return{normalized:n||o||i||s||a?e:Eo(r,t),malformedAuthorityOrPort:n,malformedPercentEncoding:o,malformedSchemeSpecific:i,malformedHost:s,malformedScheme:a}}function Jx(e,t){if(typeof e!="string"&&typeof e!="object")return;let r;try{r=typeof e=="string"?e:Eo(e,t)}catch{return}let{normalized:n,malformedAuthorityOrPort:o,malformedPercentEncoding:i,malformedSchemeSpecific:s,malformedHost:a,malformedScheme:c}=sS(r,t);return o||i||s||a||c?void 0:n}var Xf={SCHEMES:tS,normalize:wV,resolve:_V,resolveComponent:oS,equal:PV,serialize:Eo,parse:sp};ap.exports=Xf;ap.exports.default=Xf;ap.exports.fastUri=Xf});var cS=x(em=>{"use strict";Object.defineProperty(em,"__esModule",{value:!0});var aS=Zf();aS.code='require("ajv/dist/runtime/uri").default';em.default=aS});var nm=x(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.CodeGen=it.Name=it.nil=it.stringify=it.str=it._=it.KeywordCxt=void 0;var kV=Ei();Object.defineProperty(it,"KeywordCxt",{enumerable:!0,get:function(){return kV.KeywordCxt}});var Ti=B();Object.defineProperty(it,"_",{enumerable:!0,get:function(){return Ti._}});Object.defineProperty(it,"str",{enumerable:!0,get:function(){return Ti.str}});Object.defineProperty(it,"stringify",{enumerable:!0,get:function(){return Ti.stringify}});Object.defineProperty(it,"nil",{enumerable:!0,get:function(){return Ti.nil}});Object.defineProperty(it,"Name",{enumerable:!0,get:function(){return Ti.Name}});Object.defineProperty(it,"CodeGen",{enumerable:!0,get:function(){return Ti.CodeGen}});var IV=ta(),fS=$i(),CV=xf(),ia=ra(),qV=B(),sa=Xs(),cp=Qs(),rm=ae(),pS=Nx(),NV=cS(),mS=(e,t)=>new RegExp(e,t);mS.code="new RegExp";var MV=["removeAdditional","useDefaults","coerceTypes","defaultUnevaluatedProperties","defaultAdditionalProperties"],jV=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),DV={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."},LV={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},lS=200;function UV(e){var t,r,n,o,i,s,a,c,p,l,u,f,d,m,h,y,g,b,v,w,S,P,R,A,E;let _=e.strict,ee=(t=e.code)===null||t===void 0?void 0:t.optimize,z=ee===!0||ee===void 0?1:ee||0,pe=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:mS,T=(o=e.uriResolver)!==null&&o!==void 0?o:NV.default;return{strictSchema:(s=(i=e.strictSchema)!==null&&i!==void 0?i:_)!==null&&s!==void 0?s:!0,strictNumbers:(c=(a=e.strictNumbers)!==null&&a!==void 0?a:_)!==null&&c!==void 0?c:!0,strictTypes:(l=(p=e.strictTypes)!==null&&p!==void 0?p:_)!==null&&l!==void 0?l:"log",strictTuples:(f=(u=e.strictTuples)!==null&&u!==void 0?u:_)!==null&&f!==void 0?f:"log",strictRequired:(m=(d=e.strictRequired)!==null&&d!==void 0?d:_)!==null&&m!==void 0?m:!1,code:e.code?{...e.code,optimize:z,regExp:pe}:{optimize:z,regExp:pe},loopRequired:(h=e.loopRequired)!==null&&h!==void 0?h:lS,loopEnum:(y=e.loopEnum)!==null&&y!==void 0?y:lS,meta:(g=e.meta)!==null&&g!==void 0?g:!0,messages:(b=e.messages)!==null&&b!==void 0?b:!0,inlineRefs:(v=e.inlineRefs)!==null&&v!==void 0?v:!0,schemaId:(w=e.schemaId)!==null&&w!==void 0?w:"$id",addUsedSchema:(S=e.addUsedSchema)!==null&&S!==void 0?S:!0,validateSchema:(P=e.validateSchema)!==null&&P!==void 0?P:!0,validateFormats:(R=e.validateFormats)!==null&&R!==void 0?R:!0,unicodeRegExp:(A=e.unicodeRegExp)!==null&&A!==void 0?A:!0,int32range:(E=e.int32range)!==null&&E!==void 0?E:!0,uriResolver:T}}var aa=class{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...UV(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new qV.ValueScope({scope:{},prefixes:jV,es5:r,lines:n}),this.logger=KV(t.logger);let o=t.validateFormats;t.validateFormats=!1,this.RULES=(0,CV.getRules)(),uS.call(this,DV,t,"NOT SUPPORTED"),uS.call(this,LV,t,"DEPRECATED","warn"),this._metaOpts=BV.call(this),t.formats&&zV.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&VV.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),FV.call(this),t.validateFormats=o}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,o=pS;n==="id"&&(o={...pS},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 f=this._addSchema(l,u);return f.validate||s.call(this,f)}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 fS.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,sa.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=dS.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,o=new ia.SchemaEnv({schema:{},schemaId:n});if(r=ia.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=dS.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,sa.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(WV.call(this,n,r),!r)return(0,rm.eachItem)(n,i=>tm.call(this,i)),this;QV.call(this,r);let o={...r,type:(0,cp.getJSONTypes)(r.type),schemaType:(0,cp.getJSONTypes)(r.schemaType)};return(0,rm.eachItem)(n,o.type.length===0?i=>tm.call(this,i,o):i=>o.type.forEach(s=>tm.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]=hS(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,sa.normalizeId)(s||n);let p=sa.getSchemaRefs.call(this,t,n);return c=new ia.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):ia.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{ia.compileSchema.call(this,t)}finally{this.opts=r}}};aa.ValidationError=IV.default;aa.MissingRefError=fS.default;it.default=aa;function uS(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 dS(e){return e=(0,sa.normalizeId)(e),this.schemas[e]||this.refs[e]}function FV(){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 zV(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function VV(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 BV(){let e={...this.opts};for(let t of MV)delete e[t];return e}var HV={log(){},warn(){},error(){}};function KV(e){if(e===!1)return HV;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 GV=/^[a-z_$][a-z0-9_$:-]*$/i;function WV(e,t){let{RULES:r}=this;if((0,rm.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!GV.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 tm(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,cp.getJSONTypes)(t.type),schemaType:(0,cp.getJSONTypes)(t.schemaType)}};t.before?YV.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 YV(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 QV(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=hS(t)),e.validateSchema=this.compile(t,!0))}var JV={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function hS(e){return{anyOf:[e,JV]}}});var yS=x(om=>{"use strict";Object.defineProperty(om,"__esModule",{value:!0});var XV={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};om.default=XV});var ca=x($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.callRef=$o.getValidate=void 0;var ZV=$i(),gS=nr(),He=B(),Ri=Pt(),bS=ra(),pp=ae(),eB={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=bS.resolveRef.call(c,p,o,r);if(l===void 0)throw new ZV.default(n.opts.uriResolver,o,r);if(l instanceof bS.SchemaEnv)return f(l);return d(l);function u(){if(i===p)return lp(e,s,i,i.$async);let m=t.scopeValue("root",{ref:p});return lp(e,(0,He._)`${m}.validate`,p,p.$async)}function f(m){let h=vS(e,m);lp(e,h,m,m.$async)}function d(m){let h=t.scopeValue("schema",a.code.source===!0?{ref:m,code:(0,He.stringify)(m)}:{ref:m}),y=t.name("valid"),g=e.subschema({schema:m,dataTypes:[],schemaPath:He.nil,topSchemaRef:h,errSchemaPath:r},y,n.isAllOfVariant);e.mergeEvaluated(g),e.ok(y)}}};function vS(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,He._)`${r.scopeValue("wrapper",{ref:t})}.validate`}$o.getValidate=vS;function lp(e,t,r,n){let{gen:o,it:i}=e,{allErrors:s,schemaEnv:a,opts:c}=i,p=c.passContext?Ri.default.this:He.nil;n?l():u();function l(){if(!a.$async)throw new Error("async schema referenced by sync schema");let m=o.let("valid");o.try(()=>{o.code((0,He._)`await ${(0,gS.callValidateCode)(e,t,p)}`),d(t),s||o.assign(m,!0)},h=>{o.if((0,He._)`!(${h} instanceof ${i.ValidationError})`,()=>o.throw(h)),f(h),s||o.assign(m,!1)}),e.ok(m)}function u(){let m=o.name("visitedNodes");o.code((0,He._)`const ${m} = (typeof visitedNodesForRef !== 'undefined') && visitedNodesForRef.get(${t}) || new Set()`),o.if((0,He._)`!${m}.has(${e.data})`,()=>{o.code((0,He._)`if (typeof visitedNodesForRef !== 'undefined') visitedNodesForRef.set(${t}, ${m})`),o.code((0,He._)`const dataNode = ${e.data}`),o.code((0,He._)`if (typeof dataNode === "object" && dataNode !== null) ${m}.add(dataNode)`);let h=e.result((0,gS.callValidateCode)(e,t,p),()=>d(t),()=>f(t));return o.code((0,He._)`${m}.delete(dataNode)`),h})}function f(m){let h=(0,He._)`${m}.errors`;o.assign(Ri.default.vErrors,(0,He._)`${Ri.default.vErrors} === null ? ${h} : ${Ri.default.vErrors}.concat(${h})`),o.assign(Ri.default.errors,(0,He._)`${Ri.default.vErrors}.length`)}function d(m){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=pp.mergeEvaluated.props(o,y.props,i.props));else{let g=o.var("props",(0,He._)`${m}.evaluated.props`);i.props=pp.mergeEvaluated.props(o,g,i.props,He.Name)}if(i.items!==!0)if(y&&!y.dynamicItems)y.items!==void 0&&(i.items=pp.mergeEvaluated.items(o,y.items,i.items));else{let g=o.var("items",(0,He._)`${m}.evaluated.items`);i.items=pp.mergeEvaluated.items(o,g,i.items,He.Name)}}}$o.callRef=lp;$o.default=eB});var xS=x(im=>{"use strict";Object.defineProperty(im,"__esModule",{value:!0});var tB=yS(),rB=ca(),nB=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",tB.default,rB.default];im.default=nB});var SS=x(sm=>{"use strict";Object.defineProperty(sm,"__esModule",{value:!0});var up=B(),Nn=up.operators,dp={maximum:{okStr:"<=",ok:Nn.LTE,fail:Nn.GT},minimum:{okStr:">=",ok:Nn.GTE,fail:Nn.LT},exclusiveMaximum:{okStr:"<",ok:Nn.LT,fail:Nn.GTE},exclusiveMinimum:{okStr:">",ok:Nn.GT,fail:Nn.LTE}},oB={message:({keyword:e,schemaCode:t})=>(0,up.str)`must be ${dp[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,up._)`{comparison: ${dp[e].okStr}, limit: ${t}}`},iB={keyword:Object.keys(dp),type:"number",schemaType:"number",$data:!0,error:oB,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,up._)`${r} ${dp[t].fail} ${n} || isNaN(${r})`)}};sm.default=iB});var wS=x(am=>{"use strict";Object.defineProperty(am,"__esModule",{value:!0});var pa=B(),sB={message:({schemaCode:e})=>(0,pa.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,pa._)`{multipleOf: ${e}}`},aB={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:sB,code(e){let{gen:t,data:r,schemaCode:n,it:o}=e,i=o.opts.multipleOfPrecision,s=t.let("res"),a=i?(0,pa._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${i}`:(0,pa._)`${s} !== parseInt(${s})`;e.fail$data((0,pa._)`(${n} === 0 || (${s} = ${r}/${n}, ${a}))`)}};am.default=aB});var PS=x(cm=>{"use strict";Object.defineProperty(cm,"__esModule",{value:!0});function _S(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}cm.default=_S;_S.code='require("ajv/dist/runtime/ucs2length").default'});var ES=x(pm=>{"use strict";Object.defineProperty(pm,"__esModule",{value:!0});var Ao=B(),cB=ae(),pB=PS(),lB={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,Ao.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,Ao._)`{limit: ${e}}`},uB={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:lB,code(e){let{keyword:t,data:r,schemaCode:n,it:o}=e,i=t==="maxLength"?Ao.operators.GT:Ao.operators.LT,s=o.opts.unicode===!1?(0,Ao._)`${r}.length`:(0,Ao._)`${(0,cB.useFunc)(e.gen,pB.default)}(${r})`;e.fail$data((0,Ao._)`${s} ${i} ${n}`)}};pm.default=uB});var $S=x(lm=>{"use strict";Object.defineProperty(lm,"__esModule",{value:!0});var dB=nr(),fB=ae(),Oi=B(),mB={message:({schemaCode:e})=>(0,Oi.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,Oi._)`{pattern: ${e}}`},hB={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:mB,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,Oi._)`new RegExp`:(0,fB.useFunc)(t,c),l=t.let("valid");t.try(()=>t.assign(l,(0,Oi._)`${p}(${i}, ${a}).test(${r})`),()=>t.assign(l,!1)),e.fail$data((0,Oi._)`!${l}`)}else{let c=(0,dB.usePattern)(e,o);e.fail$data((0,Oi._)`!${c}.test(${r})`)}}};lm.default=hB});var AS=x(um=>{"use strict";Object.defineProperty(um,"__esModule",{value:!0});var la=B(),yB={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,la.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,la._)`{limit: ${e}}`},gB={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:yB,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxProperties"?la.operators.GT:la.operators.LT;e.fail$data((0,la._)`Object.keys(${r}).length ${o} ${n}`)}};um.default=gB});var TS=x(dm=>{"use strict";Object.defineProperty(dm,"__esModule",{value:!0});var ua=nr(),bB=$f(),To=B(),vB=ae(),xB={message:({params:{missingProperty:e}})=>(0,To.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,To._)`{missingProperty: ${e}}`},SB={keyword:"required",type:"object",schemaType:"array",$data:!0,error:xB,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:m}=e.it;for(let h of r)if(d?.[h]===void 0&&!m.has(h)){let y=s.schemaEnv.baseId+s.errSchemaPath,g=`required property "${h}" is not defined at "${y}" (strictRequired)`;(0,vB.checkStrictMode)(s,g,s.opts.strictRequired)}}function p(){var d;if(c||i)e.block$data(To.nil,u);else for(let m of r){let h=(d=(0,bB.getSkipCondition)(e.parentSchema,m))!==null&&d!==void 0?d:(0,To._)`false`;t.if((0,To.not)(h),()=>(0,ua.checkReportMissingProp)(e,m))}}function l(){let d=t.let("missing");if(c||i){let m=t.let("valid",!0);e.block$data(m,()=>f(d,m)),e.ok(m)}else t.if((0,ua.checkMissingProp)(e,r,d)),(0,ua.reportMissingProp)(e,d),t.else()}function u(){t.forOf("prop",n,d=>{e.setParams({missingProperty:d}),t.if((0,ua.noPropertyInData)(t,o,d,a.ownProperties),()=>e.error())})}function f(d,m){e.setParams({missingProperty:d}),t.forOf(d,n,()=>{t.assign(m,(0,ua.propertyInData)(t,o,d,a.ownProperties)),t.if((0,To.not)(m),()=>{e.error(),t.break()})},To.nil)}}};dm.default=SB});var OS=x(mm=>{"use strict";Object.defineProperty(mm,"__esModule",{value:!0});var fm=B(),RS=Pt(),wB={message:()=>(0,fm.str)`must NOT be present in request context`},_B={keyword:"readOnly",schemaType:"boolean",error:wB,code(e){if(e.schema!==!0)return;let t=(0,fm._)`(${RS.default.this} && ${RS.default.this}.apiContext)`;e.fail((0,fm._)`${t} === "request"`)}};mm.default=_B});var IS=x(ym=>{"use strict";Object.defineProperty(ym,"__esModule",{value:!0});var hm=B(),kS=Pt(),PB={message:()=>(0,hm.str)`must NOT be present in response context`},EB={keyword:"writeOnly",schemaType:"boolean",error:PB,code(e){if(e.schema!==!0)return;let t=(0,hm._)`(${kS.default.this} && ${kS.default.this}.apiContext)`;e.fail((0,hm._)`${t} === "response"`)}};ym.default=EB});var CS=x(gm=>{"use strict";Object.defineProperty(gm,"__esModule",{value:!0});var da=B(),$B={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,da.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,da._)`{limit: ${e}}`},AB={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:$B,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxItems"?da.operators.GT:da.operators.LT;e.fail$data((0,da._)`${r}.length ${o} ${n}`)}};gm.default=AB});var fp=x(bm=>{"use strict";Object.defineProperty(bm,"__esModule",{value:!0});var qS=Js();qS.code='require("ajv/dist/runtime/equal").default';bm.default=qS});var NS=x(xm=>{"use strict";Object.defineProperty(xm,"__esModule",{value:!0});var vm=Qs(),st=B(),TB=ae(),RB=fp(),OB={message:({params:{i:e,j:t}})=>(0,st.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,st._)`{i: ${e}, j: ${t}}`},kB={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:OB,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,vm.getSchemaTypes)(i.items):[];e.block$data(c,l,(0,st._)`${s} === false`),e.ok(c);function l(){let m=t.let("i",(0,st._)`${r}.length`),h=t.let("j");e.setParams({i:m,j:h}),t.assign(c,!0),t.if((0,st._)`${m} > 1`,()=>(u()?f:d)(m,h))}function u(){return p.length>0&&!p.some(m=>m==="object"||m==="array")}function f(m,h){let y=t.name("item"),g=(0,vm.checkDataTypes)(p,y,a.opts.strictNumbers,vm.DataType.Wrong),b=t.const("indices",(0,st._)`{}`);t.for((0,st._)`;${m}--;`,()=>{t.let(y,(0,st._)`${r}[${m}]`),t.if(g,(0,st._)`continue`),p.length>1&&t.if((0,st._)`typeof ${y} == "string"`,(0,st._)`${y} += "_"`),t.if((0,st._)`typeof ${b}[${y}] == "number"`,()=>{t.assign(h,(0,st._)`${b}[${y}]`),e.error(),t.assign(c,!1).break()}).code((0,st._)`${b}[${y}] = ${m}`)})}function d(m,h){let y=(0,TB.useFunc)(t,RB.default),g=t.name("outer");t.label(g).for((0,st._)`;${m}--;`,()=>t.for((0,st._)`${h} = ${m}; ${h}--;`,()=>t.if((0,st._)`${y}(${r}[${m}], ${r}[${h}])`,()=>{e.error(),t.assign(c,!1).break(g)})))}}};xm.default=kB});var MS=x(wm=>{"use strict";Object.defineProperty(wm,"__esModule",{value:!0});var Sm=B(),IB=ae(),CB=fp(),qB={message:"must be equal to constant",params:({schemaCode:e})=>(0,Sm._)`{allowedValue: ${e}}`},NB={keyword:"const",$data:!0,error:qB,code(e){let{gen:t,data:r,$data:n,schemaCode:o,schema:i}=e;n||i&&typeof i=="object"?e.fail$data((0,Sm._)`!${(0,IB.useFunc)(t,CB.default)}(${r}, ${o})`):e.fail((0,Sm._)`${i} !== ${r}`)}};wm.default=NB});var jS=x(_m=>{"use strict";Object.defineProperty(_m,"__esModule",{value:!0});var fa=B(),MB=ae(),jB=fp(),DB={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,fa._)`{allowedValues: ${e}}`},LB={keyword:"enum",schemaType:"array",$data:!0,error:DB,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,MB.useFunc)(t,jB.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,fa.or)(...o.map((m,h)=>f(d,h)))}e.pass(l);function u(){t.assign(l,!1),t.forOf("v",i,d=>t.if((0,fa._)`${p()}(${r}, ${d})`,()=>t.assign(l,!0).break()))}function f(d,m){let h=o[m];return typeof h=="object"&&h!==null?(0,fa._)`${p()}(${r}, ${d}[${m}])`:(0,fa._)`${r} === ${h}`}}};_m.default=LB});var Em=x(Pm=>{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0});var UB=SS(),FB=wS(),zB=ES(),VB=$S(),BB=AS(),HB=TS(),KB=OS(),GB=IS(),WB=CS(),YB=NS(),QB=MS(),JB=jS(),XB=[UB.default,FB.default,zB.default,VB.default,BB.default,HB.default,KB.default,GB.default,WB.default,YB.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},QB.default,JB.default];Pm.default=XB});var Am=x(ma=>{"use strict";Object.defineProperty(ma,"__esModule",{value:!0});ma.validateAdditionalItems=void 0;var Ro=B(),$m=ae(),ZB={message:({params:{len:e}})=>(0,Ro.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Ro._)`{limit: ${e}}`},e3={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:ZB,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,$m.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}DS(e,n)}};function DS(e,t){let{gen:r,schema:n,data:o,keyword:i,it:s}=e;s.items=!0;let a=r.const("len",(0,Ro._)`${o}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Ro._)`${a} <= ${t.length}`);else if(typeof n=="object"&&!(0,$m.alwaysValidSchema)(s,n)){let p=r.var("valid",(0,Ro._)`${a} <= ${t.length}`);r.if((0,Ro.not)(p),()=>c(p)),e.ok(p)}function c(p){r.forRange("i",t.length,a,l=>{e.subschema({keyword:i,dataProp:l,dataPropType:$m.Type.Num},p),s.allErrors||r.if((0,Ro.not)(p),()=>r.break())})}}ma.validateAdditionalItems=DS;ma.default=e3});var Tm=x(ha=>{"use strict";Object.defineProperty(ha,"__esModule",{value:!0});ha.validateTuple=void 0;var LS=B(),mp=ae(),t3=nr(),r3={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return US(e,"additionalItems",t);r.items=!0,!(0,mp.alwaysValidSchema)(r,t)&&e.ok((0,t3.validateArray)(e))}};function US(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=mp.mergeEvaluated.items(n,r.length,a.items));let c=n.name("valid"),p=n.const("len",(0,LS._)`${i}.length`);r.forEach((u,f)=>{(0,mp.alwaysValidSchema)(a,u)||(n.if((0,LS._)`${p} > ${f}`,()=>e.subschema({keyword:s,schemaProp:f,dataProp:f},c)),e.ok(c))});function l(u){let{opts:f,errSchemaPath:d}=a,m=r.length,h=m===u.minItems&&(m===u.maxItems||u[t]===!1);if(f.strictTuples&&!h){let y=`"${s}" is ${m}-tuple, but minItems or maxItems/${t} are not specified or different at path "${d}"`;(0,mp.checkStrictMode)(a,y,f.strictTuples)}}}ha.validateTuple=US;ha.default=r3});var FS=x(Rm=>{"use strict";Object.defineProperty(Rm,"__esModule",{value:!0});var n3=Tm(),o3={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,n3.validateTuple)(e,"items")};Rm.default=o3});var VS=x(Om=>{"use strict";Object.defineProperty(Om,"__esModule",{value:!0});var zS=B(),i3=ae(),s3=nr(),a3=Am(),c3={message:({params:{len:e}})=>(0,zS.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,zS._)`{limit: ${e}}`},p3={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:c3,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,!(0,i3.alwaysValidSchema)(n,t)&&(o?(0,a3.validateAdditionalItems)(e,o):e.ok((0,s3.validateArray)(e)))}};Om.default=p3});var BS=x(km=>{"use strict";Object.defineProperty(km,"__esModule",{value:!0});var ir=B(),hp=ae(),l3={message:({params:{min:e,max:t}})=>t===void 0?(0,ir.str)`must contain at least ${e} valid item(s)`:(0,ir.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,ir._)`{minContains: ${e}}`:(0,ir._)`{minContains: ${e}, maxContains: ${t}}`},u3={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:l3,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,ir._)`${o}.length`);if(e.setParams({min:s,max:a}),a===void 0&&s===0){(0,hp.checkStrictMode)(i,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&s>a){(0,hp.checkStrictMode)(i,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,hp.alwaysValidSchema)(i,r)){let h=(0,ir._)`${l} >= ${s}`;a!==void 0&&(h=(0,ir._)`${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,ir._)`${o}.length > 0`,f)):(t.let(u,!1),f()),e.result(u,()=>e.reset());function f(){let h=t.name("_valid"),y=t.let("count",0);d(h,()=>t.if(h,()=>m(y)))}function d(h,y){t.forRange("i",0,l,g=>{e.subschema({keyword:"contains",dataProp:g,dataPropType:hp.Type.Num,compositeRule:!0},h),y()})}function m(h){t.code((0,ir._)`${h}++`),a===void 0?t.if((0,ir._)`${h} >= ${s}`,()=>t.assign(u,!0).break()):(t.if((0,ir._)`${h} > ${a}`,()=>t.assign(u,!1).break()),s===1?t.assign(u,!0):t.if((0,ir._)`${h} >= ${s}`,()=>t.assign(u,!0)))}}};km.default=u3});var yp=x(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.validateSchemaDeps=Vr.validatePropertyDeps=Vr.error=void 0;var Im=B(),d3=ae(),ya=nr();Vr.error={message:({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,Im.str)`must have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,Im._)`{property: ${e},
|
|
11
|
+
|| ${s} === "boolean" || ${o} === null`).assign(a,(0,Q._)`[${o}]`)}}}function vF({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,Q._)`${t} !== undefined`,()=>e.assign((0,Q._)`${t}[${r}]`,n))}function wf(e,t,r,n=wi.Correct){let o=n===wi.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===wi.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)}}gt.checkDataType=wf;function _f(e,t,r,n){if(e.length===1)return wf(e[0],t,r,n);let o,i=(0,tx.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,wf(s,t,r,n));return o}gt.checkDataTypes=_f;var xF={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,Q._)`{type: ${e}}`:(0,Q._)`{type: ${t}}`};function Pf(e){let t=SF(e);(0,mF.reportError)(t,xF)}gt.reportTypeError=Pf;function SF(e){let{gen:t,data:r,schema:n}=e,o=(0,tx.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}});var ix=x(Qc=>{"use strict";Object.defineProperty(Qc,"__esModule",{value:!0});Qc.assignDefaults=void 0;var _i=B(),wF=ae();function _F(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let o in r)ox(e,o,r[o].default);else t==="array"&&Array.isArray(n)&&n.forEach((o,i)=>ox(e,i,o.default))}Qc.assignDefaults=_F;function ox(e,t,r){let{gen:n,compositeRule:o,data:i,opts:s}=e;if(r===void 0)return;let a=(0,_i._)`${i}${(0,_i.getProperty)(t)}`;if(o){(0,wF.checkStrictMode)(e,`default is ignored for: ${a}`);return}let c=(0,_i._)`${a} === undefined`;s.useDefaults==="empty"&&(c=(0,_i._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,_i._)`${a} = ${(0,_i.stringify)(r)}`)}});var $f=x(Xc=>{"use strict";Object.defineProperty(Xc,"__esModule",{value:!0});Xc.getSkipCondition=void 0;var Jc=B(),Ef=Pt();function PF(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,Jc._)`typeof ${Ef.default.this} == "object" && ${Ef.default.this} && ${Ef.default.this}.apiContext`;return o&&s.push((0,Jc._)`${a} === "request"`),i&&s.push((0,Jc._)`${a} === "response"`),(0,Jc.or)(...s)}Xc.getSkipCondition=PF});var nr=x(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 Oe=B(),Af=ae(),dn=Pt(),EF=ae(),$F=$f();function AF(e,t){let{gen:r,data:n,it:o}=e;r.if(Rf(r,n,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Oe._)`${t}`},!0),e.error()})}Ae.checkReportMissingProp=AF;function TF({gen:e,data:t,it:{opts:r},parentSchema:n},o,i){return(0,Oe.or)(...o.map(s=>{var a;return(0,Oe.and)((0,Oe.not)((a=(0,$F.getSkipCondition)(n,s))!==null&&a!==void 0?a:(0,Oe._)`false`),Rf(e,t,s,r.ownProperties),(0,Oe._)`${i} = ${s}`)}))}Ae.checkMissingProp=TF;function RF(e,t){e.setParams({missingProperty:t},!0),e.error()}Ae.reportMissingProp=RF;function sx(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Oe._)`Object.prototype.hasOwnProperty`})}Ae.hasPropFunc=sx;function Tf(e,t,r){return(0,Oe._)`${sx(e)}.call(${t}, ${r})`}Ae.isOwnProperty=Tf;function OF(e,t,r,n){let o=(0,Oe._)`${t}${(0,Oe.getProperty)(r)} !== undefined`;return n?(0,Oe._)`${o} && ${Tf(e,t,r)}`:o}Ae.propertyInData=OF;function Rf(e,t,r,n){let o=(0,Oe._)`${t}${(0,Oe.getProperty)(r)} === undefined`;return n?(0,Oe.or)(o,(0,Oe.not)(Tf(e,t,r))):o}Ae.noPropertyInData=Rf;function ax(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Ae.allSchemaProperties=ax;function kF(e,t){return ax(t).filter(r=>!(0,Af.alwaysValidSchema)(e,t[r]))}Ae.schemaProperties=kF;function IF({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:o,errorPath:i},it:s},a,c,p){let l=p?(0,Oe._)`${e}, ${t}, ${n}${o}`:t,u=[[dn.default.instancePath,(0,Oe.strConcat)(dn.default.instancePath,i)],[dn.default.parentData,s.parentData],[dn.default.parentDataProperty,s.parentDataProperty],[dn.default.rootData,dn.default.rootData],[dn.default.isAllOfVariant,s.isAllOfVariant?1:0]];s.opts.dynamicRef&&u.push([dn.default.dynamicAnchors,dn.default.dynamicAnchors]);let f=(0,Oe._)`${l}, ${r.object(...u)}`;return c!==Oe.nil?(0,Oe._)`${a}.call(${c}, ${f})`:(0,Oe._)`${a}(${f})`}Ae.callValidateCode=IF;var CF=(0,Oe._)`new RegExp`;function qF({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,Oe._)`${o.code==="new RegExp"?CF:(0,EF.useFunc)(e,o)}(${r}, ${n})`})}Ae.usePattern=qF;function NF(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,Oe._)`${r}.length`);t.forRange("i",0,c,p=>{e.subschema({keyword:n,dataProp:p,dataPropType:Af.Type.Num},i),t.if((0,Oe.not)(i),a)})}}Ae.validateArray=NF;function MF(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,Oe._)`${a} || ${c}`),e.mergeValidEvaluated(u,c)||t.if((0,Oe.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}Ae.validateUnion=MF});var lx=x(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.validateKeywordUsage=Fr.validSchemaType=Fr.funcKeywordCode=Fr.macroKeywordCode=void 0;var $t=B(),wo=Pt(),jF=nr(),DF=Ys();function LF(e,t){let{gen:r,keyword:n,schema:o,parentSchema:i,it:s}=e,a=t.macro.call(s.self,o,i,s),c=px(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))}Fr.macroKeywordCode=LF;function UF(e,t){var r;let{gen:n,keyword:o,schema:i,parentSchema:s,$data:a,it:c}=e;zF(c,t);let p=!a&&t.compile?t.compile.call(c.self,i,s,c):t.validate,l=px(n,o,p),u=n.let("valid");e.block$data(u,f),e.ok((r=t.valid)!==null&&r!==void 0?r:u);function f(){if(t.errors===!1)h(),t.modifying&&cx(e),y(()=>e.error());else{let g=t.async?d():m();t.modifying&&cx(e),y(()=>FF(e,g))}}function d(){let g=n.let("ruleErrs",null);return n.try(()=>h((0,$t._)`await `),b=>n.assign(u,!1).if((0,$t._)`${b} instanceof ${c.ValidationError}`,()=>n.assign(g,(0,$t._)`${b}.errors`),()=>n.throw(b))),g}function m(){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 b=c.opts.passContext?wo.default.this:wo.default.self,v=!("compile"in t&&!a||t.schema===!1);n.assign(u,(0,$t._)`${g}${(0,jF.callValidateCode)(e,l,b,v)}`,t.modifying)}function y(g){var b;n.if((0,$t.not)((b=t.valid)!==null&&b!==void 0?b:u),g)}}Fr.funcKeywordCode=UF;function cx(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,$t._)`${n.parentData}[${n.parentDataProperty}]`))}function FF(e,t){let{gen:r}=e;r.if((0,$t._)`Array.isArray(${t})`,()=>{r.assign(wo.default.vErrors,(0,$t._)`${wo.default.vErrors} === null ? ${t} : ${wo.default.vErrors}.concat(${t})`).assign(wo.default.errors,(0,$t._)`${wo.default.vErrors}.length`),(0,DF.extendErrors)(e)},()=>e.error())}function zF({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function px(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 VF(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")}Fr.validSchemaType=VF;function BF({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)}}Fr.validateKeywordUsage=BF});var dx=x(In=>{"use strict";Object.defineProperty(In,"__esModule",{value:!0});In.extendSubschemaMode=In.extendSubschemaData=In.getSubschema=void 0;var zr=B(),ux=ae();function HF(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,zr._)`${e.schemaPath}${(0,zr.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:(0,zr._)`${e.schemaPath}${(0,zr.getProperty)(t)}${(0,zr.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,ux.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')}In.getSubschema=HF;function KF(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,f=a.let("data",(0,zr._)`${t.data}${(0,zr.getProperty)(r)}`,!0);c(f),e.errorPath=(0,zr.str)`${p}${(0,ux.getErrorPath)(r,n,u.jsPropertySyntax)}`,e.parentDataProperty=(0,zr._)`${r}`,e.dataPathArr=[...l,e.parentDataProperty]}if(o!==void 0){let p=o instanceof zr.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]}}In.extendSubschemaData=KF;function GF(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}In.extendSubschemaMode=GF});var Js=x((jZ,fx)=>{"use strict";fx.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 Of=x((DZ,mx)=>{"use strict";var Cn=mx.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(){};Zc(t,n,o,e,"",e)};Cn.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Cn.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Cn.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Cn.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Zc(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 Cn.arrayKeywords)for(var f=0;f<u.length;f++)Zc(e,t,r,u[f],o+"/"+l+"/"+f,i,o,l,n,f)}else if(l in Cn.propsKeywords){if(u&&typeof u=="object")for(var d in u)Zc(e,t,r,u[d],o+"/"+l+"/"+WF(d),i,o,l,n,d)}else(l in Cn.keywords||e.allKeys&&!(l in Cn.skipKeywords))&&Zc(e,t,r,u,o+"/"+l,i,o,l,n)}r(n,o,i,s,a,c,p)}}function WF(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}});var Xs=x(jt=>{"use strict";Object.defineProperty(jt,"__esModule",{value:!0});jt.getSchemaRefs=jt.resolveUrl=jt.normalizeId=jt._getFullPath=jt.getFullPath=jt.inlineRef=void 0;var YF=ae(),QF=Js(),JF=Of(),XF=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function ZF(e,t=!0){return typeof e=="boolean"?!0:t===!0?!kf(e):t?hx(e)<=t:!1}jt.inlineRef=ZF;var ez=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function kf(e){for(let t in e){if(ez.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(kf)||typeof r=="object"&&kf(r))return!0}return!1}function hx(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!XF.has(r)&&(typeof e[r]=="object"&&(0,YF.eachItem)(e[r],n=>t+=hx(n)),t===1/0))return 1/0}return t}function yx(e,t="",r){r!==!1&&(t=Pi(t));let n=e.parse(t);return gx(e,n)}jt.getFullPath=yx;function gx(e,t){return e.serialize(t).split("#")[0]+"#"}jt._getFullPath=gx;var tz=/#\/?$/;function Pi(e){return e?e.replace(tz,""):""}jt.normalizeId=Pi;function rz(e,t,r){return r=Pi(r),e.resolve(t,r)}jt.resolveUrl=rz;var nz=/^[a-z_][-a-z0-9._]*$/i;function oz(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,o=Pi(e[r]||t),i={"":o},s=yx(n,o,!1),a={},c=new Set;return JF(e,{allKeys:!0},(u,f,d,m)=>{if(m===void 0)return;let h=s+f,y=i[m];typeof u[r]=="string"&&(y=g.call(this,u[r])),b.call(this,u.$anchor),b.call(this,u.$dynamicAnchor),i[f]=y;function g(v){let w=this.opts.uriResolver.resolve;if(v=Pi(y?w(y,v):v),c.has(v))throw l(v);c.add(v);let S=this.refs[v];return typeof S=="string"&&(S=this.refs[S]),typeof S=="object"?p(u,S.schema,v):v!==Pi(h)&&(v[0]==="#"?(p(u,a[v],v),a[v]=u):this.refs[v]=h),v}function b(v){if(typeof v=="string"){if(!nz.test(v))throw new Error(`invalid anchor "${v}"`);g.call(this,`#${v}`)}}}),a;function p(u,f,d){if(f!==void 0&&!QF(u,f))throw l(d)}function l(u){return new Error(`reference "${u}" resolves to more than one schema`)}}jt.getSchemaRefs=oz});var Ei=x(qn=>{"use strict";Object.defineProperty(qn,"__esModule",{value:!0});qn.getData=qn.KeywordCxt=qn.validateFunctionCode=void 0;var wx=X0(),bx=Qs(),Cf=Sf(),ep=Qs(),iz=ix(),ea=lx(),If=dx(),D=B(),F=Pt(),sz=Xs(),fn=ae(),Zs=Ys();function az(e){if(Ex(e)&&($x(e),Px(e))){lz(e);return}_x(e,()=>(0,wx.topBoolOrEmptySchema)(e))}qn.validateFunctionCode=az;function _x({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},i){o.code.es5?e.func(t,(0,D._)`${F.default.data}, ${F.default.valCxt}`,n.$async,()=>{e.code((0,D._)`"use strict"; ${vx(r,o)}`),pz(e,o),e.code(i)}):e.func(t,(0,D._)`${F.default.data}, ${cz(o)}`,n.$async,()=>e.code(vx(r,o)).code(i))}function cz(e){return(0,D._)`{${F.default.instancePath}="", ${F.default.parentData}, ${F.default.parentDataProperty}, ${F.default.rootData}=${F.default.data}${e.dynamicRef?(0,D._)`, ${F.default.dynamicAnchors}={}`:D.nil}, ${F.default.isAllOfVariant} = 0}={}`}function pz(e,t){e.if(F.default.valCxt,()=>{e.var(F.default.instancePath,(0,D._)`${F.default.valCxt}.${F.default.instancePath}`),e.var(F.default.parentData,(0,D._)`${F.default.valCxt}.${F.default.parentData}`),e.var(F.default.parentDataProperty,(0,D._)`${F.default.valCxt}.${F.default.parentDataProperty}`),e.var(F.default.rootData,(0,D._)`${F.default.valCxt}.${F.default.rootData}`),e.var(F.default.isAllOfVariant,(0,D._)`${F.default.valCxt}.${F.default.isAllOfVariant}`),t.dynamicRef&&e.var(F.default.dynamicAnchors,(0,D._)`${F.default.valCxt}.${F.default.dynamicAnchors}`)},()=>{e.var(F.default.instancePath,(0,D._)`""`),e.var(F.default.parentData,(0,D._)`undefined`),e.var(F.default.parentDataProperty,(0,D._)`undefined`),e.var(F.default.rootData,F.default.data),e.var(F.default.isAllOfVariant,(0,D._)`0`),t.dynamicRef&&e.var(F.default.dynamicAnchors,(0,D._)`{}`)})}function lz(e){let{schema:t,opts:r,gen:n}=e;_x(e,()=>{r.$comment&&t.$comment&&Tx(e),hz(e),n.let(F.default.vErrors,null),n.let(F.default.errors,0),r.unevaluated&&uz(e),Ax(e),bz(e)})}function uz(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,D._)`${r}.evaluated`),t.if((0,D._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,D._)`${e.evaluated}.props`,(0,D._)`undefined`)),t.if((0,D._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,D._)`${e.evaluated}.items`,(0,D._)`undefined`))}function vx(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,D._)`/*# sourceURL=${r} */`:D.nil}function dz(e,t){if(Ex(e)&&($x(e),Px(e))){fz(e,t);return}(0,wx.boolOrEmptySchema)(e,t)}function Px({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 Ex(e){return typeof e.schema!="boolean"}function fz(e,t){let{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&Tx(e),yz(e),gz(e);let i=n.const("_errs",F.default.errors);Ax(e,i),n.var(t,(0,D._)`${i} === ${F.default.errors}`)}function $x(e){(0,fn.checkUnknownRules)(e),mz(e)}function Ax(e,t){if(e.opts.jtd)return xx(e,[],!1,t);let r=(0,bx.getSchemaTypes)(e.schema),n=(0,bx.coerceAndCheckDataType)(e,r);xx(e,r,!n,t)}function mz(e){let{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,fn.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function hz(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,fn.checkStrictMode)(e,"default is ignored in the schema root")}function yz(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,sz.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function gz(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function Tx({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){let i=r.$comment;if(o.$comment===!0)e.code((0,D._)`${F.default.self}.logger.log(${i})`);else if(typeof o.$comment=="function"){let s=(0,D.str)`${n}/$comment`,a=e.scopeValue("root",{ref:t.root});e.code((0,D._)`${F.default.self}.opts.$comment(${i}, ${s}, ${a}.schema)`)}}function bz(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:i}=e;r.$async?t.if((0,D._)`${F.default.errors} === 0`,()=>t.return(F.default.data),()=>t.throw((0,D._)`new ${o}(${F.default.vErrors})`)):(t.assign((0,D._)`${n}.errors`,F.default.vErrors),i.unevaluated&&vz(e),t.return((0,D._)`${F.default.errors} === 0`))}function vz({gen:e,evaluated:t,props:r,items:n}){r instanceof D.Name&&e.assign((0,D._)`${t}.props`,r),n instanceof D.Name&&e.assign((0,D._)`${t}.items`,n)}function xx(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,fn.schemaHasRulesButRef)(i,l))){o.block(()=>Ox(e,"$ref",l.all.$ref.definition));return}c.jtd||xz(e,t),o.block(()=>{for(let f of l.rules)u(f);u(l.post)});function u(f){(0,Cf.shouldUseGroup)(i,f)&&(f.type?(o.if((0,ep.checkDataType)(f.type,s,c.strictNumbers)),Sx(e,f),t.length===1&&t[0]===f.type&&r&&(o.else(),(0,ep.reportTypeError)(e)),o.endIf()):Sx(e,f),a||o.if((0,D._)`${F.default.errors} === ${n||0}`))}}function Sx(e,t){let{gen:r,schema:n,opts:{useDefaults:o}}=e;o&&(0,iz.assignDefaults)(e,t.type),r.block(()=>{for(let s of t.rules)((0,Cf.shouldUseRule)(n,s)||i(n,s))&&Ox(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 xz(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(Sz(e,t),e.opts.allowUnionTypes||wz(e,t),_z(e,e.dataTypes))}function Sz(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{Rx(e.dataTypes,r)||qf(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),Ez(e,t)}}function wz(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&qf(e,"use allowUnionTypes to allow union type keyword")}function _z(e,t){let r=e.self.RULES.all;for(let n in r){let o=r[n];if(typeof o=="object"&&(0,Cf.shouldUseRule)(e.schema,o)){let{type:i}=o.definition;i.length&&!i.some(s=>Pz(t,s))&&qf(e,`missing type "${i.join(",")}" for keyword "${n}"`)}}}function Pz(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function Rx(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function Ez(e,t){let r=[];for(let n of e.dataTypes)Rx(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function qf(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,fn.checkStrictMode)(e,t,e.opts.strictTypes)}var tp=class{constructor(t,r,n){if((0,ea.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,fn.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",kx(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,ea.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,D.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,D.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,D._)`${r} !== undefined && (${(0,D.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=D.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=D.nil,r=D.nil){if(!this.$data)return;let{gen:n,schemaCode:o,schemaType:i,def:s}=this;n.if((0,D.or)((0,D._)`${o} === undefined`,r)),t!==D.nil&&n.assign(t,!0),(i.length||s.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==D.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:o,it:i}=this;return(0,D.or)(s(),a());function s(){if(n.length){if(!(r instanceof D.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,D._)`${(0,ep.checkDataTypes)(c,r,i.opts.strictNumbers,ep.DataType.Wrong)}`}return D.nil}function a(){if(o.validateSchema){let c=t.scopeValue("validate$data",{ref:o.validateSchema});return(0,D._)`!${c}(${r})`}return D.nil}}subschema(t,r,n){let o=(0,If.getSubschema)(this.it,t);(0,If.extendSubschemaData)(o,this.it,t),(0,If.extendSubschemaMode)(o,t);let i={...this.it,...o,items:void 0,props:void 0,isAllOfVariant:n};return dz(i,r),i}mergeEvaluated(t,r){let{it:n,gen:o}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=fn.mergeEvaluated.props(o,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=fn.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,D.Name)),!0}};qn.KeywordCxt=tp;function Ox(e,t,r,n){let o=new tp(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,ea.funcKeywordCode)(o,r):"macro"in r?(0,ea.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,ea.funcKeywordCode)(o,r)}var $z=/^\/(?:[^~]|~0|~1)*$/,Az=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function kx(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,i;if(e==="")return F.default.rootData;if(e[0]==="/"){if(!$z.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,i=F.default.rootData}else{let p=Az.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,D._)`${i}${(0,D.getProperty)((0,fn.unescapeJsonPointer)(p))}`,s=(0,D._)`${s} && ${i}`);return s;function c(p,l){return`Cannot access ${p} ${l} levels up, current level is ${t}`}}qn.getData=kx});var ta=x(Mf=>{"use strict";Object.defineProperty(Mf,"__esModule",{value:!0});var Nf=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};Mf.default=Nf});var $i=x(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});var jf=Xs(),Df=class extends Error{constructor(t,r,n,o){super(o||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,jf.resolveUrl)(t,r,n),this.missingSchema=(0,jf.normalizeId)((0,jf.getFullPath)(t,this.missingRef))}};Lf.default=Df});var ra=x(or=>{"use strict";Object.defineProperty(or,"__esModule",{value:!0});or.resolveSchema=or.getCompilingSchema=or.resolveRef=or.compileSchema=or.SchemaEnv=void 0;var xr=B(),Tz=ta(),_o=Pt(),Sr=Xs(),Ix=ae(),Rz=Ei(),Ai=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,Sr.normalizeId)(n?.[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n?.$async,this.refs={}}};or.SchemaEnv=Ai;function Ff(e){let t=qx.call(this,e);if(t)return t;let r=(0,Sr.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:i}=this.opts,s=new xr.CodeGen(this.scope,{es5:n,lines:o,ownProperties:i}),a;e.$async&&(a=s.scopeValue("Error",{ref:Tz.default,code:(0,xr._)`require("ajv/dist/runtime/validation_error").default`}));let c=s.scopeName("validate");e.validateName=c;let p={gen:s,allErrors:this.opts.allErrors,data:_o.default.data,parentData:_o.default.parentData,parentDataProperty:_o.default.parentDataProperty,dataNames:[_o.default.data],dataPathArr:[xr.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,xr.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:xr.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,xr._)`""`,opts:this.opts,self:this},l;try{this._compilations.add(e),(0,Rz.validateFunctionCode)(p),s.optimize(this.opts.code.optimize);let u=s.toString();l=`const visitedNodesForRef = new WeakMap(); ${s.scopeRefs(_o.default.scope)}return ${u}`,this.opts.code.process&&(l=this.opts.code.process(l,e));let d=new Function(`${_o.default.self}`,`${_o.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:m,items:h}=p;d.evaluated={props:m instanceof xr.Name?void 0:m,items:h instanceof xr.Name?void 0:h,dynamicProps:m instanceof xr.Name,dynamicItems:h instanceof xr.Name},d.source&&(d.source.evaluated=(0,xr.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)}}or.compileSchema=Ff;function Oz(e,t,r){var n;let o=(0,Sr.resolveUrl)(this.opts.uriResolver,t,r),i=e.refs[o];if(i)return i;let s=Cx.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 Ai({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=Cx.call(this,e,o))}if(s!==void 0)return e.refs[o]=kz.call(this,s)}or.resolveRef=Oz;function kz(e){return(0,Sr.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Ff.call(this,e)}function qx(e){for(let t of this._compilations)if(Iz(t,e))return t}or.getCompilingSchema=qx;function Iz(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function Cx(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||rp.call(this,e,t)}function rp(e,t){let r=this.opts.uriResolver.parse(t),n=(0,Sr._getFullPath)(this.opts.uriResolver,r),o=(0,Sr.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return Uf.call(this,r,e);let i=(0,Sr.normalizeId)(n),s=this.refs[i]||this.schemas[i];if(typeof s=="string"){let a=rp.call(this,e,s);return typeof a?.schema!="object"?void 0:Uf.call(this,r,a)}if(typeof s?.schema=="object"){if(s.validate||Ff.call(this,s),i===(0,Sr.normalizeId)(t)){let{schema:a}=s,{schemaId:c}=this.opts,p=a[c];return p&&(o=(0,Sr.resolveUrl)(this.opts.uriResolver,o,p)),new Ai({schema:a,schemaId:c,root:e,baseId:o})}return Uf.call(this,r,s)}}or.resolveSchema=rp;var Cz=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Uf(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,Ix.unescapeFragment)(a)];if(c===void 0)return;r=c;let p=typeof r=="object"&&r[this.opts.schemaId];!Cz.has(a)&&p&&(t=(0,Sr.resolveUrl)(this.opts.uriResolver,t,p))}let i;if(typeof r!="boolean"&&r.$ref&&!(0,Ix.schemaHasRulesButRef)(r,this.RULES)){let a=(0,Sr.resolveUrl)(this.opts.uriResolver,t,r.$ref);i=rp.call(this,n,a)}let{schemaId:s}=this.opts;if(i=i||new Ai({schema:r,schemaId:s,root:n,baseId:t}),i.schema!==i.root.schema)return i}});var Nx=x((BZ,qz)=>{qz.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 Gf=x((HZ,zx)=>{"use strict";var Nz=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),Vf=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),Mz=RegExp.prototype.test.bind(/^\d*$/u),Po=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),Bf=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),jx=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u),Hf=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]$/u),jz=RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u),Dt=new Array(256);{let e="0123456789ABCDEF";for(let t=0;t<256;t++)Dt[t]="%"+e[t>>4]+e[t&15]}function bt(e){return e<2048?Dt[192|e>>6]+Dt[128|e&63]:e<65536?Dt[224|e>>12]+Dt[128|e>>6&63]+Dt[128|e&63]:Dt[240|e>>18]+Dt[128|e>>12&63]+Dt[128|e>>6&63]+Dt[128|e&63]}function Dz(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 Lz=RegExp.prototype.test.bind(/^[\dA-Fa-f]{1,4}$/),Uz=RegExp.prototype.test.bind(/^[vV][\dA-Fa-f]+\.[A-Za-z\d\-._~!$&'()*+,;=:]+$/),Fz=RegExp.prototype.test.bind(/^[A-Za-z\d\-._~]$/),zz=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function Vz(e){if(e.length===0)return!1;for(let t=0;t<e.length;t++)if(!Fz(e[t])){if(e[t]==="%"&&t+2<e.length&&Po(e.slice(t+1,t+3))){t+=2;continue}return!1}return!0}function Mx(e){let t=-1,r=0,n=-1,o=0;for(let a=0;a<e.length;a++)e[a]==="0"?(n===-1&&(n=a),o++,o>r&&(r=o,t=n)):(n=-1,o=0);if(r<2)return e.join(":");let i=e.slice(0,t).join(":"),s=e.slice(t+r).join(":");return i+"::"+s}function Bz(e){let t=e.indexOf("::");if(t!==-1&&e.indexOf("::",t+1)!==-1)return;let r=t===-1?e.split(":"):e.slice(0,t).split(":"),n=t===-1?[]:e.slice(t+2).split(":");t!==-1&&(r.length===1&&r[0]===""&&(r.length=0),n.length===1&&n[0]===""&&(n.length=0));let o=r.concat(n),i=0;for(let a=0;a<o.length;a++){let c=o[a];if(c==="")return;if(c.indexOf(".")!==-1){if(a!==o.length-1||t!==-1&&n.length===0||!Vf(c))return;i+=2;continue}if(!Lz(c))return;o[a]=parseInt(c,16).toString(16),i++}if(t===-1)return i!==8?void 0:Mx(o);if(i>=8)return;let s=o.slice(0,r.length);for(let a=i;a<8;a++)s.push("0");for(let a=r.length;a<o.length;a++)s.push(o[a]);return Mx(s)}function zf(e){let t=e[0]==="["&&e[e.length-1]==="]";if((e[0]==="["||e[e.length-1]==="]")&&!t)return{host:e,isIPV6:!1,error:!0};let n=t?e.slice(1,-1):e;if(t&&Uz(n))return n=n.toLowerCase(),{host:`[${n}]`,escapedHost:n,isIPV6:!1,isIPVFuture:!0};if(Hz(n,":")<2)return{host:e,isIPV6:!1,error:t};let o="",i=n.indexOf("%");if(i!==-1){let a=n.slice(i,i+3).toLowerCase()==="%25"?3:1;if(o=n.slice(i+a),!Vz(o))return{host:e,isIPV6:!1,error:!0};n=n.slice(0,i)}let s=Bz(n);return s===void 0?{host:e,isIPV6:!1,error:!0}:{host:s+(o?"%"+o:""),escapedHost:s+(o?"%25"+o:""),isIPV6:!0}}function Hz(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}function Kz(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 Gz={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},Wz=/[@/?#:]/g,Yz=/[@/?#]/g;function Dx(e,t){let r=t?Yz:Wz;return r.lastIndex=0,e.replace(r,n=>Gz[n])}function Lx(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(Po(o)){let i=o.toUpperCase(),s=String.fromCharCode(parseInt(i,16));t&&Bf(s)?r+=s:r+="%"+i,n+=2;continue}}r+=e[n]}return r}function Qz(e){let t="";for(let r=0;r<e.length;r++){let n=e[r];if(n==="%"&&r+2<e.length){let o=e.slice(r+1,r+3);if(Po(o)){let i=o.toUpperCase(),s=String.fromCharCode(parseInt(i,16));s!=="."&&Bf(s)?t+=s:t+="%"+i,r+=2;continue}}if(jx(n))t+=n;else{let o=e.charCodeAt(r);if(o<128)t+=Fx(o)?n:Dt[o];else if(o<55296||o>57343)t+=bt(o);else if(o<=56319&&r+1<e.length){let i=e.charCodeAt(r+1);i>=56320&&i<=57343?(t+=bt(65536+(o-55296<<10)+(i-56320)),r++):t+=bt(65533)}else t+=bt(65533)}}return t}function Jz(e,t=!1){let r="",n=t&&e[0]!=="/";for(let o=0;o<e.length;o++){let i=e[o];if(i==="%"&&o+2<e.length){let s=e.slice(o+1,o+3);if(Po(s)){r+="%"+s.toUpperCase(),o+=2;continue}}if(i==="/"&&(n=!1),jx(i)&&(i!==":"||!n))r+=i;else{let s=e.charCodeAt(o);if(s<128)r+=Dt[s];else if(s<55296||s>57343)r+=bt(s);else if(s<=56319&&o+1<e.length){let a=e.charCodeAt(o+1);a>=56320&&a<=57343?(r+=bt(65536+(s-55296<<10)+(a-56320)),o++):r+=bt(65533)}else r+=bt(65533)}}return r}function Kf(e,t){let r="";for(let n=0;n<e.length;n++){let o=e[n];if(o==="%"&&n+2<e.length){let i=e.slice(n+1,n+3);if(Po(i)){r+="%"+i.toUpperCase(),n+=2;continue}}if(t(o))r+=o;else{let i=e.charCodeAt(n);if(i<128)r+=Dt[i];else if(i<55296||i>57343)r+=bt(i);else if(i<=56319&&n+1<e.length){let s=e.charCodeAt(n+1);s>=56320&&s<=57343?(r+=bt(65536+(i-55296<<10)+(s-56320)),n++):r+=bt(65533)}else r+=bt(65533)}}return r}function Ux(e){return Kf(e,jz)}function Xz(e){return Kf(e,Hf)}function Zz(e){return Kf(e,Hf)}function Fx(e){return e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122||e===42||e===43||e===45||e===46||e===47||e===64||e===95}function eV(e){let t="";for(let r=0;r<e.length;r++){let n=e[r];if(n==="%"&&r+2<e.length){let o=e.slice(r+1,r+3);if(Po(o)){let i=o.toUpperCase(),s=String.fromCharCode(parseInt(i,16));Bf(s)?t+=s:t+="%"+i,r+=2;continue}}if(Hf(n))t+=n;else{let o=e.charCodeAt(r);if(o<128)t+=Fx(o)?n:Dt[o];else if(o<55296||o>57343)t+=bt(o);else if(o<=56319&&r+1<e.length){let i=e.charCodeAt(r+1);i>=56320&&i<=57343?(t+=bt(65536+(o-55296<<10)+(i-56320)),r++):t+=bt(65533)}else t+=bt(65533)}}return t}function tV(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(Po(n)){t+="%"+n.toUpperCase(),r+=2;continue}}t+=escape(e[r])}return t}function rV(e){let t=[];if(e.userinfo!==void 0&&(t.push(Ux(e.userinfo)),t.push("@")),e.host!==void 0){let r=e.host;if(!Vf(r)){let n=zf(r);n.isIPV6!==!0&&n.isIPVFuture!==!0&&(r=Lx(r,!0),n=zf(r)),n.isIPV6===!0||n.isIPVFuture===!0?r=`[${n.escapedHost}]`:r=Dx(r,!1)}t.push(r)}if(typeof e.port=="number"||typeof e.port=="string"){let r=String(e.port);if(!Mz(r))throw new TypeError("URI port is malformed.");t.push(":"),t.push(r)}return t.length?t.join(""):void 0}zx.exports={nonSimpleDomain:zz,recomposeAuthority:rV,reescapeHostDelimiters:Dx,normalizePercentEncoding:Lx,normalizePathEncoding:Qz,serializePathEncoding:Jz,normalizeQueryFragmentEncoding:eV,encodeUserinfo:Ux,encodeQuery:Xz,encodeFragment:Zz,escapePreservingEscapes:tV,removeDotSegments:Kz,isIPv4:Vf,isUUID:Nz,normalizeIPv6:zf,stringArrayToHexStripped:Dz}});var Gx=x((KZ,Kx)=>{"use strict";var{isUUID:nV}=Gf(),oV=/^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu,iV=["http","https","ws","wss","urn","urn:uuid"];function sV(e){return iV.indexOf(e)!==-1}function Wf(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 Vx(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function Bx(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 aV(e){return e.secure=Wf(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function cV(e){if((e.port===(Wf(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=e.resourceName.indexOf("?"),r=t===-1?e.resourceName:e.resourceName.slice(0,t);e.path=r&&r!=="/"?r:void 0,e.query=t===-1?void 0:e.resourceName.slice(t+1),e.resourceName=void 0}return e.fragment=void 0,e}function pV(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(oV);if(r&&r[0]===e.path){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let o=`${n}:${t.nid||e.nid}`,i=Yf(o);e.path=void 0,i&&(e=i.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}function lV(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=Yf(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 uV(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!nV(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function dV(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}var Hx={scheme:"http",domainHost:!0,parse:Vx,serialize:Bx},fV={scheme:"https",domainHost:Hx.domainHost,parse:Vx,serialize:Bx},np={scheme:"ws",domainHost:!0,parse:aV,serialize:cV},mV={scheme:"wss",domainHost:np.domainHost,parse:np.parse,serialize:np.serialize},hV={scheme:"urn",parse:pV,serialize:lV,skipNormalize:!0},yV={scheme:"urn:uuid",parse:uV,serialize:dV,skipNormalize:!0},op={http:Hx,https:fV,ws:np,wss:mV,urn:hV,"urn:uuid":yV};Object.setPrototypeOf(op,null);function Yf(e){return e&&(op[e]||op[e.toLowerCase()])||void 0}Kx.exports={wsIsSecure:Wf,SCHEMES:op,isValidSchemeName:sV,getSchemeHandler:Yf}});var Zf=x((GZ,ap)=>{"use strict";var{normalizeIPv6:Xx,removeDotSegments:oa,recomposeAuthority:gV,normalizePercentEncoding:Zx,normalizePathEncoding:bV,serializePathEncoding:Wx,normalizeQueryFragmentEncoding:Yx,encodeQuery:vV,encodeFragment:xV,reescapeHostDelimiters:SV,isIPv4:eS,nonSimpleDomain:wV}=Gf(),{SCHEMES:tS,getSchemeHandler:Qf}=Gx(),rS=/^[A-Za-z][A-Za-z0-9+.-]*$/u,nS="URI scheme is malformed.";function Qx(e){let t=unescape(String(e));if(!rS.test(t))throw new TypeError(nS);return t}function _V(e,t){return typeof e=="string"?e=kV(e,t):typeof e=="object"&&(e=sp(Eo(e,t),t)),e}function PV(e,t,r){let n=r?Object.assign({scheme:"null"},r):{scheme:"null"},{parsed:o,malformedAuthorityOrPort:i,malformedPercentEncoding:s,malformedSchemeSpecific:a,malformedHost:c,malformedScheme:p}=ip(e,n),{parsed:l,malformedAuthorityOrPort:u,malformedPercentEncoding:f,malformedSchemeSpecific:d,malformedHost:m,malformedScheme:h}=ip(t,n);if(i||u||s||f||a||d||c||m||p||h)throw new Error(o.error||l.error||"URI is malformed.");let y=oS(o,l,n,!0),g=Qf(r&&r.scheme||y.scheme),b=y.host,v=b!==void 0&&b!==""&&(eS(b)||Xx(b).isIPV6);iS(y,r||{},g,v);let w=b&&b.indexOf("%")!==-1&&!new RegExp("\\P{ASCII}","u").test(b);if(y.error&&!w)throw new Error(y.error);return n.skipEscape=!0,Eo(y,n)}function oS(e,t,r,n){let o={};return n||(e=sp(Eo(e,r),r),t=sp(Eo(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=oa(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=oa(t.path||""),o.query=t.query):(t.path?(t.path[0]==="/"?o.path=oa(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=oa(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 EV(e,t,r){let n=Jx(e,r),o=Jx(t,r);return n!==void 0&&o!==void 0&&n===o}function Eo(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=[];r.scheme&&(r.scheme=Qx(r.scheme));let i=Qf(n.scheme||r.scheme);i&&i.serialize&&i.serialize(r,n);let s=r.userinfo!==void 0||r.host!==void 0||r.port!==void 0,a=!n.skipEscape&&r.scheme===void 0&&!s;r.path!==void 0&&(n.skipEscape?r.path=Zx(r.path):r.path=Wx(r.path,a)),n.reference!=="suffix"&&r.scheme&&(r.scheme=Qx(r.scheme),o.push(r.scheme,":"));let c=gV(r);if(c!==void 0&&(n.reference!=="suffix"&&o.push("//"),o.push(c),r.path&&r.path[0]!=="/"&&o.push("/")),r.path!==void 0){let p=r.path;!n.absolutePath&&(!i||!i.absolutePath)&&(p=oa(p)),a&&(p=Wx(p,!0)),c===void 0&&p[0]==="/"&&p[1]==="/"&&(p="/%2F"+p.slice(2)),o.push(p)}return r.query!==void 0&&o.push("?",vV(r.query)),r.fragment!==void 0&&o.push("#",xV(r.fragment)),o.join("")}var $V=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,AV=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,TV=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function RV(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 na(e){if(e===void 0)return!1;let t=e.indexOf("%");for(;t!==-1;){if(t+2>=e.length||!/^[\da-f]{2}$/iu.test(e.slice(t+1,t+3)))return!0;t=e.indexOf("%",t+3)}return!1}function Jf(e){return e[0]==="["&&e[e.length-1]==="]"}function OV(e){let t=e[4];return na(e[3])||t!==void 0&&!Jf(t)&&na(t)||na(e[6])||na(e[7])||na(e[8])}function iS(e,t,r,n){if(!t.unicodeSupport&&(!r||!r.unicodeSupport)&&e.host&&!Jf(e.host)&&(t.domainHost||r&&r.domainHost)&&n===!1&&wV(e.host))try{e.host=new URL("http://"+e.host).hostname}catch(o){return e.error=e.error||"Host's domain name can not be converted to ASCII: "+o,!0}return!1}function ip(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,s=!1,a=!1,c=!1,p=!1,l=!1;r.reference==="suffix"&&(r.scheme?e=r.scheme+":"+e:e="//"+e);let u=e.match(AV);u!==null&&u[1].indexOf("\\")!==-1&&(n.error="URI authority must not contain a literal backslash.",o=!0);let f=e.match(TV);if(f!==null){let m=f[1],h=m.replace(/[\t\n\r]/g,"");h.length>=2&&(h.slice(0,2)!=="//"?(n.error=n.error||"URI authority must not contain a literal backslash.",o=!0):m.length!==h.length&&(n.error=n.error||"URI authority introducer must not contain whitespace.",o=!0))}let d=e.match($V);if(d){if(n.scheme=d[1],n.userinfo=d[3],n.host=d[4],n.port=parseInt(d[5],10),n.path=d[6]||"",n.query=d[7],n.fragment=d[8],n.scheme!==void 0){let y=unescape(n.scheme);rS.test(y)?n.scheme=y.toLowerCase():(n.error=n.error||nS,p=!0)}i=OV(d),i&&(n.error=n.error||"URI contains malformed percent-encoding."),isNaN(n.port)&&(n.port=d[5]);let m=RV(n,d);if(m!==void 0&&(n.error=n.error||m,o=!0),n.host)if(eS(n.host)===!1){let g=Jf(n.host),b=n.host.indexOf("[")!==-1||n.host.indexOf("]")!==-1,v=Xx(n.host);l=v.isIPV6||v.isIPVFuture===!0,c=b&&(!g||v.error===!0),n.host=l?v.host:v.host.toLowerCase(),c&&(n.error=n.error||"URI host is malformed.",o=!0)}else l=!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 h=Qf(r.scheme||n.scheme);if(c||(a=iS(n,r,h,l)),!h||h&&!h.skipNormalize){if(e.indexOf("%")!==-1&&n.host!==void 0&&!c){let y=l?n.host:Zx(n.host,!0);n.host=SV(y,l)}n.path&&(n.path=bV(n.path)),n.query&&(n.query=Yx(n.query)),n.fragment&&(n.fragment=Yx(n.fragment))}h&&h.parse&&(h.parse(n,r),h===tS.urn&&n.nid===void 0&&(s=!0))}else n.error=n.error||"URI can not be parsed.";return{parsed:n,malformedAuthorityOrPort:o,malformedPercentEncoding:i,malformedSchemeSpecific:s,malformedHost:a,malformedScheme:p}}function sp(e,t){return ip(e,t).parsed}function kV(e,t){return sS(e,t).normalized}function sS(e,t){let{parsed:r,malformedAuthorityOrPort:n,malformedPercentEncoding:o,malformedSchemeSpecific:i,malformedHost:s,malformedScheme:a}=ip(e,t);return{normalized:n||o||i||s||a?e:Eo(r,t),malformedAuthorityOrPort:n,malformedPercentEncoding:o,malformedSchemeSpecific:i,malformedHost:s,malformedScheme:a}}function Jx(e,t){if(typeof e!="string"&&typeof e!="object")return;let r;try{r=typeof e=="string"?e:Eo(e,t)}catch{return}let{normalized:n,malformedAuthorityOrPort:o,malformedPercentEncoding:i,malformedSchemeSpecific:s,malformedHost:a,malformedScheme:c}=sS(r,t);return o||i||s||a||c?void 0:n}var Xf={SCHEMES:tS,normalize:_V,resolve:PV,resolveComponent:oS,equal:EV,serialize:Eo,parse:sp};ap.exports=Xf;ap.exports.default=Xf;ap.exports.fastUri=Xf});var cS=x(em=>{"use strict";Object.defineProperty(em,"__esModule",{value:!0});var aS=Zf();aS.code='require("ajv/dist/runtime/uri").default';em.default=aS});var nm=x(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});it.CodeGen=it.Name=it.nil=it.stringify=it.str=it._=it.KeywordCxt=void 0;var IV=Ei();Object.defineProperty(it,"KeywordCxt",{enumerable:!0,get:function(){return IV.KeywordCxt}});var Ti=B();Object.defineProperty(it,"_",{enumerable:!0,get:function(){return Ti._}});Object.defineProperty(it,"str",{enumerable:!0,get:function(){return Ti.str}});Object.defineProperty(it,"stringify",{enumerable:!0,get:function(){return Ti.stringify}});Object.defineProperty(it,"nil",{enumerable:!0,get:function(){return Ti.nil}});Object.defineProperty(it,"Name",{enumerable:!0,get:function(){return Ti.Name}});Object.defineProperty(it,"CodeGen",{enumerable:!0,get:function(){return Ti.CodeGen}});var CV=ta(),fS=$i(),qV=xf(),ia=ra(),NV=B(),sa=Xs(),cp=Qs(),rm=ae(),pS=Nx(),MV=cS(),mS=(e,t)=>new RegExp(e,t);mS.code="new RegExp";var jV=["removeAdditional","useDefaults","coerceTypes","defaultUnevaluatedProperties","defaultAdditionalProperties"],DV=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),LV={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."},UV={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},lS=200;function FV(e){var t,r,n,o,i,s,a,c,p,l,u,f,d,m,h,y,g,b,v,w,S,P,R,A,E;let _=e.strict,ee=(t=e.code)===null||t===void 0?void 0:t.optimize,z=ee===!0||ee===void 0?1:ee||0,pe=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:mS,T=(o=e.uriResolver)!==null&&o!==void 0?o:MV.default;return{strictSchema:(s=(i=e.strictSchema)!==null&&i!==void 0?i:_)!==null&&s!==void 0?s:!0,strictNumbers:(c=(a=e.strictNumbers)!==null&&a!==void 0?a:_)!==null&&c!==void 0?c:!0,strictTypes:(l=(p=e.strictTypes)!==null&&p!==void 0?p:_)!==null&&l!==void 0?l:"log",strictTuples:(f=(u=e.strictTuples)!==null&&u!==void 0?u:_)!==null&&f!==void 0?f:"log",strictRequired:(m=(d=e.strictRequired)!==null&&d!==void 0?d:_)!==null&&m!==void 0?m:!1,code:e.code?{...e.code,optimize:z,regExp:pe}:{optimize:z,regExp:pe},loopRequired:(h=e.loopRequired)!==null&&h!==void 0?h:lS,loopEnum:(y=e.loopEnum)!==null&&y!==void 0?y:lS,meta:(g=e.meta)!==null&&g!==void 0?g:!0,messages:(b=e.messages)!==null&&b!==void 0?b:!0,inlineRefs:(v=e.inlineRefs)!==null&&v!==void 0?v:!0,schemaId:(w=e.schemaId)!==null&&w!==void 0?w:"$id",addUsedSchema:(S=e.addUsedSchema)!==null&&S!==void 0?S:!0,validateSchema:(P=e.validateSchema)!==null&&P!==void 0?P:!0,validateFormats:(R=e.validateFormats)!==null&&R!==void 0?R:!0,unicodeRegExp:(A=e.unicodeRegExp)!==null&&A!==void 0?A:!0,int32range:(E=e.int32range)!==null&&E!==void 0?E:!0,uriResolver:T}}var aa=class{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...FV(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new NV.ValueScope({scope:{},prefixes:DV,es5:r,lines:n}),this.logger=GV(t.logger);let o=t.validateFormats;t.validateFormats=!1,this.RULES=(0,qV.getRules)(),uS.call(this,LV,t,"NOT SUPPORTED"),uS.call(this,UV,t,"DEPRECATED","warn"),this._metaOpts=HV.call(this),t.formats&&VV.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&BV.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),zV.call(this),t.validateFormats=o}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,o=pS;n==="id"&&(o={...pS},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 f=this._addSchema(l,u);return f.validate||s.call(this,f)}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 fS.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,sa.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=dS.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,o=new ia.SchemaEnv({schema:{},schemaId:n});if(r=ia.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=dS.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,sa.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(YV.call(this,n,r),!r)return(0,rm.eachItem)(n,i=>tm.call(this,i)),this;JV.call(this,r);let o={...r,type:(0,cp.getJSONTypes)(r.type),schemaType:(0,cp.getJSONTypes)(r.schemaType)};return(0,rm.eachItem)(n,o.type.length===0?i=>tm.call(this,i,o):i=>o.type.forEach(s=>tm.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]=hS(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,sa.normalizeId)(s||n);let p=sa.getSchemaRefs.call(this,t,n);return c=new ia.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):ia.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{ia.compileSchema.call(this,t)}finally{this.opts=r}}};aa.ValidationError=CV.default;aa.MissingRefError=fS.default;it.default=aa;function uS(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 dS(e){return e=(0,sa.normalizeId)(e),this.schemas[e]||this.refs[e]}function zV(){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 VV(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function BV(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 HV(){let e={...this.opts};for(let t of jV)delete e[t];return e}var KV={log(){},warn(){},error(){}};function GV(e){if(e===!1)return KV;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 WV=/^[a-z_$][a-z0-9_$:-]*$/i;function YV(e,t){let{RULES:r}=this;if((0,rm.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!WV.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 tm(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,cp.getJSONTypes)(t.type),schemaType:(0,cp.getJSONTypes)(t.schemaType)}};t.before?QV.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 QV(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 JV(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=hS(t)),e.validateSchema=this.compile(t,!0))}var XV={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function hS(e){return{anyOf:[e,XV]}}});var yS=x(om=>{"use strict";Object.defineProperty(om,"__esModule",{value:!0});var ZV={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};om.default=ZV});var ca=x($o=>{"use strict";Object.defineProperty($o,"__esModule",{value:!0});$o.callRef=$o.getValidate=void 0;var eB=$i(),gS=nr(),He=B(),Ri=Pt(),bS=ra(),pp=ae(),tB={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=bS.resolveRef.call(c,p,o,r);if(l===void 0)throw new eB.default(n.opts.uriResolver,o,r);if(l instanceof bS.SchemaEnv)return f(l);return d(l);function u(){if(i===p)return lp(e,s,i,i.$async);let m=t.scopeValue("root",{ref:p});return lp(e,(0,He._)`${m}.validate`,p,p.$async)}function f(m){let h=vS(e,m);lp(e,h,m,m.$async)}function d(m){let h=t.scopeValue("schema",a.code.source===!0?{ref:m,code:(0,He.stringify)(m)}:{ref:m}),y=t.name("valid"),g=e.subschema({schema:m,dataTypes:[],schemaPath:He.nil,topSchemaRef:h,errSchemaPath:r},y,n.isAllOfVariant);e.mergeEvaluated(g),e.ok(y)}}};function vS(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,He._)`${r.scopeValue("wrapper",{ref:t})}.validate`}$o.getValidate=vS;function lp(e,t,r,n){let{gen:o,it:i}=e,{allErrors:s,schemaEnv:a,opts:c}=i,p=c.passContext?Ri.default.this:He.nil;n?l():u();function l(){if(!a.$async)throw new Error("async schema referenced by sync schema");let m=o.let("valid");o.try(()=>{o.code((0,He._)`await ${(0,gS.callValidateCode)(e,t,p)}`),d(t),s||o.assign(m,!0)},h=>{o.if((0,He._)`!(${h} instanceof ${i.ValidationError})`,()=>o.throw(h)),f(h),s||o.assign(m,!1)}),e.ok(m)}function u(){let m=o.name("visitedNodes");o.code((0,He._)`const ${m} = (typeof visitedNodesForRef !== 'undefined') && visitedNodesForRef.get(${t}) || new Set()`),o.if((0,He._)`!${m}.has(${e.data})`,()=>{o.code((0,He._)`if (typeof visitedNodesForRef !== 'undefined') visitedNodesForRef.set(${t}, ${m})`),o.code((0,He._)`const dataNode = ${e.data}`),o.code((0,He._)`if (typeof dataNode === "object" && dataNode !== null) ${m}.add(dataNode)`);let h=e.result((0,gS.callValidateCode)(e,t,p),()=>d(t),()=>f(t));return o.code((0,He._)`${m}.delete(dataNode)`),h})}function f(m){let h=(0,He._)`${m}.errors`;o.assign(Ri.default.vErrors,(0,He._)`${Ri.default.vErrors} === null ? ${h} : ${Ri.default.vErrors}.concat(${h})`),o.assign(Ri.default.errors,(0,He._)`${Ri.default.vErrors}.length`)}function d(m){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=pp.mergeEvaluated.props(o,y.props,i.props));else{let g=o.var("props",(0,He._)`${m}.evaluated.props`);i.props=pp.mergeEvaluated.props(o,g,i.props,He.Name)}if(i.items!==!0)if(y&&!y.dynamicItems)y.items!==void 0&&(i.items=pp.mergeEvaluated.items(o,y.items,i.items));else{let g=o.var("items",(0,He._)`${m}.evaluated.items`);i.items=pp.mergeEvaluated.items(o,g,i.items,He.Name)}}}$o.callRef=lp;$o.default=tB});var xS=x(im=>{"use strict";Object.defineProperty(im,"__esModule",{value:!0});var rB=yS(),nB=ca(),oB=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",rB.default,nB.default];im.default=oB});var SS=x(sm=>{"use strict";Object.defineProperty(sm,"__esModule",{value:!0});var up=B(),Nn=up.operators,dp={maximum:{okStr:"<=",ok:Nn.LTE,fail:Nn.GT},minimum:{okStr:">=",ok:Nn.GTE,fail:Nn.LT},exclusiveMaximum:{okStr:"<",ok:Nn.LT,fail:Nn.GTE},exclusiveMinimum:{okStr:">",ok:Nn.GT,fail:Nn.LTE}},iB={message:({keyword:e,schemaCode:t})=>(0,up.str)`must be ${dp[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,up._)`{comparison: ${dp[e].okStr}, limit: ${t}}`},sB={keyword:Object.keys(dp),type:"number",schemaType:"number",$data:!0,error:iB,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,up._)`${r} ${dp[t].fail} ${n} || isNaN(${r})`)}};sm.default=sB});var wS=x(am=>{"use strict";Object.defineProperty(am,"__esModule",{value:!0});var pa=B(),aB={message:({schemaCode:e})=>(0,pa.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,pa._)`{multipleOf: ${e}}`},cB={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:aB,code(e){let{gen:t,data:r,schemaCode:n,it:o}=e,i=o.opts.multipleOfPrecision,s=t.let("res"),a=i?(0,pa._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${i}`:(0,pa._)`${s} !== parseInt(${s})`;e.fail$data((0,pa._)`(${n} === 0 || (${s} = ${r}/${n}, ${a}))`)}};am.default=cB});var PS=x(cm=>{"use strict";Object.defineProperty(cm,"__esModule",{value:!0});function _S(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}cm.default=_S;_S.code='require("ajv/dist/runtime/ucs2length").default'});var ES=x(pm=>{"use strict";Object.defineProperty(pm,"__esModule",{value:!0});var Ao=B(),pB=ae(),lB=PS(),uB={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,Ao.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,Ao._)`{limit: ${e}}`},dB={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:uB,code(e){let{keyword:t,data:r,schemaCode:n,it:o}=e,i=t==="maxLength"?Ao.operators.GT:Ao.operators.LT,s=o.opts.unicode===!1?(0,Ao._)`${r}.length`:(0,Ao._)`${(0,pB.useFunc)(e.gen,lB.default)}(${r})`;e.fail$data((0,Ao._)`${s} ${i} ${n}`)}};pm.default=dB});var $S=x(lm=>{"use strict";Object.defineProperty(lm,"__esModule",{value:!0});var fB=nr(),mB=ae(),Oi=B(),hB={message:({schemaCode:e})=>(0,Oi.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,Oi._)`{pattern: ${e}}`},yB={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:hB,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,Oi._)`new RegExp`:(0,mB.useFunc)(t,c),l=t.let("valid");t.try(()=>t.assign(l,(0,Oi._)`${p}(${i}, ${a}).test(${r})`),()=>t.assign(l,!1)),e.fail$data((0,Oi._)`!${l}`)}else{let c=(0,fB.usePattern)(e,o);e.fail$data((0,Oi._)`!${c}.test(${r})`)}}};lm.default=yB});var AS=x(um=>{"use strict";Object.defineProperty(um,"__esModule",{value:!0});var la=B(),gB={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,la.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,la._)`{limit: ${e}}`},bB={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:gB,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxProperties"?la.operators.GT:la.operators.LT;e.fail$data((0,la._)`Object.keys(${r}).length ${o} ${n}`)}};um.default=bB});var TS=x(dm=>{"use strict";Object.defineProperty(dm,"__esModule",{value:!0});var ua=nr(),vB=$f(),To=B(),xB=ae(),SB={message:({params:{missingProperty:e}})=>(0,To.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,To._)`{missingProperty: ${e}}`},wB={keyword:"required",type:"object",schemaType:"array",$data:!0,error:SB,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:m}=e.it;for(let h of r)if(d?.[h]===void 0&&!m.has(h)){let y=s.schemaEnv.baseId+s.errSchemaPath,g=`required property "${h}" is not defined at "${y}" (strictRequired)`;(0,xB.checkStrictMode)(s,g,s.opts.strictRequired)}}function p(){var d;if(c||i)e.block$data(To.nil,u);else for(let m of r){let h=(d=(0,vB.getSkipCondition)(e.parentSchema,m))!==null&&d!==void 0?d:(0,To._)`false`;t.if((0,To.not)(h),()=>(0,ua.checkReportMissingProp)(e,m))}}function l(){let d=t.let("missing");if(c||i){let m=t.let("valid",!0);e.block$data(m,()=>f(d,m)),e.ok(m)}else t.if((0,ua.checkMissingProp)(e,r,d)),(0,ua.reportMissingProp)(e,d),t.else()}function u(){t.forOf("prop",n,d=>{e.setParams({missingProperty:d}),t.if((0,ua.noPropertyInData)(t,o,d,a.ownProperties),()=>e.error())})}function f(d,m){e.setParams({missingProperty:d}),t.forOf(d,n,()=>{t.assign(m,(0,ua.propertyInData)(t,o,d,a.ownProperties)),t.if((0,To.not)(m),()=>{e.error(),t.break()})},To.nil)}}};dm.default=wB});var OS=x(mm=>{"use strict";Object.defineProperty(mm,"__esModule",{value:!0});var fm=B(),RS=Pt(),_B={message:()=>(0,fm.str)`must NOT be present in request context`},PB={keyword:"readOnly",schemaType:"boolean",error:_B,code(e){if(e.schema!==!0)return;let t=(0,fm._)`(${RS.default.this} && ${RS.default.this}.apiContext)`;e.fail((0,fm._)`${t} === "request"`)}};mm.default=PB});var IS=x(ym=>{"use strict";Object.defineProperty(ym,"__esModule",{value:!0});var hm=B(),kS=Pt(),EB={message:()=>(0,hm.str)`must NOT be present in response context`},$B={keyword:"writeOnly",schemaType:"boolean",error:EB,code(e){if(e.schema!==!0)return;let t=(0,hm._)`(${kS.default.this} && ${kS.default.this}.apiContext)`;e.fail((0,hm._)`${t} === "response"`)}};ym.default=$B});var CS=x(gm=>{"use strict";Object.defineProperty(gm,"__esModule",{value:!0});var da=B(),AB={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,da.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,da._)`{limit: ${e}}`},TB={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:AB,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxItems"?da.operators.GT:da.operators.LT;e.fail$data((0,da._)`${r}.length ${o} ${n}`)}};gm.default=TB});var fp=x(bm=>{"use strict";Object.defineProperty(bm,"__esModule",{value:!0});var qS=Js();qS.code='require("ajv/dist/runtime/equal").default';bm.default=qS});var NS=x(xm=>{"use strict";Object.defineProperty(xm,"__esModule",{value:!0});var vm=Qs(),st=B(),RB=ae(),OB=fp(),kB={message:({params:{i:e,j:t}})=>(0,st.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,st._)`{i: ${e}, j: ${t}}`},IB={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:kB,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,vm.getSchemaTypes)(i.items):[];e.block$data(c,l,(0,st._)`${s} === false`),e.ok(c);function l(){let m=t.let("i",(0,st._)`${r}.length`),h=t.let("j");e.setParams({i:m,j:h}),t.assign(c,!0),t.if((0,st._)`${m} > 1`,()=>(u()?f:d)(m,h))}function u(){return p.length>0&&!p.some(m=>m==="object"||m==="array")}function f(m,h){let y=t.name("item"),g=(0,vm.checkDataTypes)(p,y,a.opts.strictNumbers,vm.DataType.Wrong),b=t.const("indices",(0,st._)`{}`);t.for((0,st._)`;${m}--;`,()=>{t.let(y,(0,st._)`${r}[${m}]`),t.if(g,(0,st._)`continue`),p.length>1&&t.if((0,st._)`typeof ${y} == "string"`,(0,st._)`${y} += "_"`),t.if((0,st._)`typeof ${b}[${y}] == "number"`,()=>{t.assign(h,(0,st._)`${b}[${y}]`),e.error(),t.assign(c,!1).break()}).code((0,st._)`${b}[${y}] = ${m}`)})}function d(m,h){let y=(0,RB.useFunc)(t,OB.default),g=t.name("outer");t.label(g).for((0,st._)`;${m}--;`,()=>t.for((0,st._)`${h} = ${m}; ${h}--;`,()=>t.if((0,st._)`${y}(${r}[${m}], ${r}[${h}])`,()=>{e.error(),t.assign(c,!1).break(g)})))}}};xm.default=IB});var MS=x(wm=>{"use strict";Object.defineProperty(wm,"__esModule",{value:!0});var Sm=B(),CB=ae(),qB=fp(),NB={message:"must be equal to constant",params:({schemaCode:e})=>(0,Sm._)`{allowedValue: ${e}}`},MB={keyword:"const",$data:!0,error:NB,code(e){let{gen:t,data:r,$data:n,schemaCode:o,schema:i}=e;n||i&&typeof i=="object"?e.fail$data((0,Sm._)`!${(0,CB.useFunc)(t,qB.default)}(${r}, ${o})`):e.fail((0,Sm._)`${i} !== ${r}`)}};wm.default=MB});var jS=x(_m=>{"use strict";Object.defineProperty(_m,"__esModule",{value:!0});var fa=B(),jB=ae(),DB=fp(),LB={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,fa._)`{allowedValues: ${e}}`},UB={keyword:"enum",schemaType:"array",$data:!0,error:LB,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,jB.useFunc)(t,DB.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,fa.or)(...o.map((m,h)=>f(d,h)))}e.pass(l);function u(){t.assign(l,!1),t.forOf("v",i,d=>t.if((0,fa._)`${p()}(${r}, ${d})`,()=>t.assign(l,!0).break()))}function f(d,m){let h=o[m];return typeof h=="object"&&h!==null?(0,fa._)`${p()}(${r}, ${d}[${m}])`:(0,fa._)`${r} === ${h}`}}};_m.default=UB});var Em=x(Pm=>{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0});var FB=SS(),zB=wS(),VB=ES(),BB=$S(),HB=AS(),KB=TS(),GB=OS(),WB=IS(),YB=CS(),QB=NS(),JB=MS(),XB=jS(),ZB=[FB.default,zB.default,VB.default,BB.default,HB.default,KB.default,GB.default,WB.default,YB.default,QB.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},JB.default,XB.default];Pm.default=ZB});var Am=x(ma=>{"use strict";Object.defineProperty(ma,"__esModule",{value:!0});ma.validateAdditionalItems=void 0;var Ro=B(),$m=ae(),e3={message:({params:{len:e}})=>(0,Ro.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Ro._)`{limit: ${e}}`},t3={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:e3,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,$m.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}DS(e,n)}};function DS(e,t){let{gen:r,schema:n,data:o,keyword:i,it:s}=e;s.items=!0;let a=r.const("len",(0,Ro._)`${o}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Ro._)`${a} <= ${t.length}`);else if(typeof n=="object"&&!(0,$m.alwaysValidSchema)(s,n)){let p=r.var("valid",(0,Ro._)`${a} <= ${t.length}`);r.if((0,Ro.not)(p),()=>c(p)),e.ok(p)}function c(p){r.forRange("i",t.length,a,l=>{e.subschema({keyword:i,dataProp:l,dataPropType:$m.Type.Num},p),s.allErrors||r.if((0,Ro.not)(p),()=>r.break())})}}ma.validateAdditionalItems=DS;ma.default=t3});var Tm=x(ha=>{"use strict";Object.defineProperty(ha,"__esModule",{value:!0});ha.validateTuple=void 0;var LS=B(),mp=ae(),r3=nr(),n3={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return US(e,"additionalItems",t);r.items=!0,!(0,mp.alwaysValidSchema)(r,t)&&e.ok((0,r3.validateArray)(e))}};function US(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=mp.mergeEvaluated.items(n,r.length,a.items));let c=n.name("valid"),p=n.const("len",(0,LS._)`${i}.length`);r.forEach((u,f)=>{(0,mp.alwaysValidSchema)(a,u)||(n.if((0,LS._)`${p} > ${f}`,()=>e.subschema({keyword:s,schemaProp:f,dataProp:f},c)),e.ok(c))});function l(u){let{opts:f,errSchemaPath:d}=a,m=r.length,h=m===u.minItems&&(m===u.maxItems||u[t]===!1);if(f.strictTuples&&!h){let y=`"${s}" is ${m}-tuple, but minItems or maxItems/${t} are not specified or different at path "${d}"`;(0,mp.checkStrictMode)(a,y,f.strictTuples)}}}ha.validateTuple=US;ha.default=n3});var FS=x(Rm=>{"use strict";Object.defineProperty(Rm,"__esModule",{value:!0});var o3=Tm(),i3={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,o3.validateTuple)(e,"items")};Rm.default=i3});var VS=x(Om=>{"use strict";Object.defineProperty(Om,"__esModule",{value:!0});var zS=B(),s3=ae(),a3=nr(),c3=Am(),p3={message:({params:{len:e}})=>(0,zS.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,zS._)`{limit: ${e}}`},l3={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:p3,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,!(0,s3.alwaysValidSchema)(n,t)&&(o?(0,c3.validateAdditionalItems)(e,o):e.ok((0,a3.validateArray)(e)))}};Om.default=l3});var BS=x(km=>{"use strict";Object.defineProperty(km,"__esModule",{value:!0});var ir=B(),hp=ae(),u3={message:({params:{min:e,max:t}})=>t===void 0?(0,ir.str)`must contain at least ${e} valid item(s)`:(0,ir.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,ir._)`{minContains: ${e}}`:(0,ir._)`{minContains: ${e}, maxContains: ${t}}`},d3={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:u3,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,ir._)`${o}.length`);if(e.setParams({min:s,max:a}),a===void 0&&s===0){(0,hp.checkStrictMode)(i,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&s>a){(0,hp.checkStrictMode)(i,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,hp.alwaysValidSchema)(i,r)){let h=(0,ir._)`${l} >= ${s}`;a!==void 0&&(h=(0,ir._)`${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,ir._)`${o}.length > 0`,f)):(t.let(u,!1),f()),e.result(u,()=>e.reset());function f(){let h=t.name("_valid"),y=t.let("count",0);d(h,()=>t.if(h,()=>m(y)))}function d(h,y){t.forRange("i",0,l,g=>{e.subschema({keyword:"contains",dataProp:g,dataPropType:hp.Type.Num,compositeRule:!0},h),y()})}function m(h){t.code((0,ir._)`${h}++`),a===void 0?t.if((0,ir._)`${h} >= ${s}`,()=>t.assign(u,!0).break()):(t.if((0,ir._)`${h} > ${a}`,()=>t.assign(u,!1).break()),s===1?t.assign(u,!0):t.if((0,ir._)`${h} >= ${s}`,()=>t.assign(u,!0)))}}};km.default=d3});var yp=x(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});Vr.validateSchemaDeps=Vr.validatePropertyDeps=Vr.error=void 0;var Im=B(),f3=ae(),ya=nr();Vr.error={message:({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,Im.str)`must have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,Im._)`{property: ${e},
|
|
12
12
|
missingProperty: ${n},
|
|
13
13
|
depsCount: ${t},
|
|
14
|
-
deps: ${r}}`};var f3={keyword:"dependencies",type:"object",schemaType:"object",error:Vr.error,code(e){let[t,r]=m3(e);HS(e,t),KS(e,r)}};function m3({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 HS(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,ya.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,ya.checkReportMissingProp)(e,p)}):(r.if((0,Im._)`${c} && (${(0,ya.checkMissingProp)(e,a,i)})`),(0,ya.reportMissingProp)(e,i),r.else())}}Vr.validatePropertyDeps=HS;function KS(e,t=e.schema){let{gen:r,data:n,keyword:o,it:i}=e,s=r.name("valid");for(let a in t)(0,d3.alwaysValidSchema)(i,t[a])||(r.if((0,ya.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))}Vr.validateSchemaDeps=KS;Vr.default=f3});var WS=x(Cm=>{"use strict";Object.defineProperty(Cm,"__esModule",{value:!0});var GS=B(),h3=ae(),y3={message:"property name must be valid",params:({params:e})=>(0,GS._)`{propertyName: ${e.propertyName}}`},g3={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:y3,code(e){let{gen:t,schema:r,data:n,it:o}=e;if((0,h3.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,GS.not)(i),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(i)}};Cm.default=g3});var Nm=x(qm=>{"use strict";Object.defineProperty(qm,"__esModule",{value:!0});var gp=nr(),wr=B(),b3=Pt(),bp=ae(),v3={message:"must NOT have additional properties",params:({params:e})=>(0,wr._)`{additionalProperty: ${e.additionalProperty}}`},x3={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:v3,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,bp.alwaysValidSchema)(i,s))return;let p=(0,gp.allSchemaProperties)(r.properties),l=(0,gp.allSchemaProperties)(r.patternProperties);u(),e.ok((0,wr._)`${o} === ${b3.default.errors}`);function u(){t.forIn("key",n,y=>{!p.length&&!l.length?m(y):t.if(f(y),()=>m(y))})}function f(y){let g;if(p.length>8){let b=(0,bp.schemaRefOrVal)(i,r.properties,"properties");g=(0,gp.isOwnProperty)(t,b,y)}else p.length?g=(0,wr.or)(...p.map(b=>(0,wr._)`${y} === ${b}`)):g=wr.nil;return l.length&&(g=(0,wr.or)(g,...l.map(b=>(0,wr._)`${(0,gp.usePattern)(e,b)}.test(${y})`))),(0,wr.not)(g)}function d(y){t.code((0,wr._)`delete ${n}[${y}]`)}function m(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,bp.alwaysValidSchema)(i,s)){let g=t.name("valid");c.removeAdditional==="failing"?(h(y,g,!1),t.if((0,wr.not)(g),()=>{e.reset(),d(y)})):(h(y,g),a||t.if((0,wr.not)(g),()=>t.break()))}}function h(y,g,b){let v={keyword:"additionalProperties",dataProp:y,dataPropType:bp.Type.Str};b===!1&&Object.assign(v,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(v,g)}}};qm.default=x3});var JS=x(jm=>{"use strict";Object.defineProperty(jm,"__esModule",{value:!0});var S3=Ei(),YS=nr(),Mm=ae(),QS=Nm(),w3={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)&&QS.default.code(new S3.KeywordCxt(i,QS.default,"additionalProperties"));let s=(0,YS.allSchemaProperties)(r);for(let u of s)i.definedProperties.add(u);i.opts.unevaluated&&s.length&&i.props!==!0&&(i.props=Mm.mergeEvaluated.props(t,(0,Mm.toHash)(s),i.props));let a=s.filter(u=>!(0,Mm.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,YS.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)}}};jm.default=w3});var tw=x(Dm=>{"use strict";Object.defineProperty(Dm,"__esModule",{value:!0});var XS=nr(),vp=B(),ZS=ae(),ew=ae(),_3={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,XS.allSchemaProperties)(r),c=a.filter(h=>(0,ZS.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 vp.Name)&&(i.props=(0,ew.evaluatedPropsToName)(t,i.props));let{props:u}=i;f();function f(){for(let h of a)p&&d(h),i.allErrors?m(h):(t.var(l,!0),m(h),t.if(l))}function d(h){for(let y in p)new RegExp(h).test(y)&&(0,ZS.checkStrictMode)(i,`property ${y} matches pattern ${h} (use allowMatchingProperties)`)}function m(h){t.forIn("key",n,y=>{t.if((0,vp._)`${(0,XS.usePattern)(e,h)}.test(${y})`,()=>{let g=c.includes(h);g||e.subschema({keyword:"patternProperties",schemaProp:h,dataProp:y,dataPropType:ew.Type.Str},l),i.opts.unevaluated&&u!==!0?t.assign((0,vp._)`${u}[${y}]`,!0):!g&&!i.allErrors&&t.if((0,vp.not)(l),()=>t.break())})})}}};Dm.default=_3});var rw=x(Lm=>{"use strict";Object.defineProperty(Lm,"__esModule",{value:!0});var P3=ae(),E3={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,P3.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"}};Lm.default=E3});var nw=x(Um=>{"use strict";Object.defineProperty(Um,"__esModule",{value:!0});var $3=nr(),A3={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:$3.validateUnion,error:{message:"must match a schema in anyOf"}};Um.default=A3});var ow=x(Fm=>{"use strict";Object.defineProperty(Fm,"__esModule",{value:!0});var xp=B(),T3=ae(),R3={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,xp._)`{passingSchemas: ${e.passing}}`},O3={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:R3,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 f;(0,T3.alwaysValidSchema)(o,l)?t.var(c,!0):f=e.subschema({keyword:"oneOf",schemaProp:u,compositeRule:!0},c),u>0&&t.if((0,xp._)`${c} && ${s}`).assign(s,!1).assign(a,(0,xp._)`[${a}, ${u}]`).else(),t.if(c,()=>{t.assign(s,!0),t.assign(a,u),f&&e.mergeEvaluated(f,xp.Name)})})}}};Fm.default=O3});var iw=x(zm=>{"use strict";Object.defineProperty(zm,"__esModule",{value:!0});var k3=ae(),I3={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,k3.alwaysValidSchema)(n,i))return;let a=e.subschema({keyword:"allOf",schemaProp:s},o,!0);e.ok(o),e.mergeEvaluated(a)})}};zm.default=I3});var cw=x(Vm=>{"use strict";Object.defineProperty(Vm,"__esModule",{value:!0});var Sp=B(),aw=ae(),C3={message:({params:e})=>(0,Sp.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Sp._)`{failingKeyword: ${e.ifClause}}`},q3={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:C3,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,aw.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let o=sw(n,"then"),i=sw(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,Sp.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 f=e.subschema({keyword:l},a);t.assign(s,a),e.mergeValidEvaluated(f,s),u?t.assign(u,(0,Sp._)`${l}`):e.setParams({ifClause:l})}}}};function sw(e,t){let r=e.schema[t];return r!==void 0&&!(0,aw.alwaysValidSchema)(e,r)}Vm.default=q3});var pw=x(Bm=>{"use strict";Object.defineProperty(Bm,"__esModule",{value:!0});var N3=ae(),M3={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,N3.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Bm.default=M3});var Km=x(Hm=>{"use strict";Object.defineProperty(Hm,"__esModule",{value:!0});var j3=Am(),D3=FS(),L3=Tm(),U3=VS(),F3=BS(),z3=yp(),V3=WS(),B3=Nm(),H3=JS(),K3=tw(),G3=rw(),W3=nw(),Y3=ow(),Q3=iw(),J3=cw(),X3=pw();function Z3(e=!1){let t=[G3.default,W3.default,Y3.default,Q3.default,J3.default,X3.default,V3.default,B3.default,z3.default,H3.default,K3.default];return e?t.push(D3.default,U3.default):t.push(j3.default,L3.default),t.push(F3.default),t}Hm.default=Z3});var Wm=x(ga=>{"use strict";Object.defineProperty(ga,"__esModule",{value:!0});ga.dynamicAnchor=void 0;var Gm=B(),eH=Pt(),lw=ra(),tH=ca(),rH={keyword:"$dynamicAnchor",schemaType:"string",code:e=>uw(e,e.schema)};function uw(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let o=(0,Gm._)`${eH.default.dynamicAnchors}${(0,Gm.getProperty)(t)}`,i=n.errSchemaPath==="#"?n.validateName:nH(e);r.if((0,Gm._)`!${o}`,()=>r.assign(o,i))}ga.dynamicAnchor=uw;function nH(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 lw.SchemaEnv({schema:r,schemaId:c,root:o,baseId:i,localRefs:s,meta:a});return lw.compileSchema.call(n,p),(0,tH.getValidate)(e,p)}ga.default=rH});var Ym=x(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});ba.dynamicRef=void 0;var dw=B(),oH=Pt(),fw=ca(),iH={keyword:"$dynamicRef",schemaType:"string",code:e=>mw(e,e.schema)};function mw(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,dw._)`${oH.default.dynamicAnchors}${(0,dw.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,fw.callRef)(e,c),r.let(p,!0)}):()=>(0,fw.callRef)(e,c)}}ba.dynamicRef=mw;ba.default=iH});var hw=x(Qm=>{"use strict";Object.defineProperty(Qm,"__esModule",{value:!0});var sH=Wm(),aH=ae(),cH={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,sH.dynamicAnchor)(e,""):(0,aH.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};Qm.default=cH});var yw=x(Jm=>{"use strict";Object.defineProperty(Jm,"__esModule",{value:!0});var pH=Ym(),lH={keyword:"$recursiveRef",schemaType:"string",code:e=>(0,pH.dynamicRef)(e,e.schema)};Jm.default=lH});var gw=x(Xm=>{"use strict";Object.defineProperty(Xm,"__esModule",{value:!0});var uH=Wm(),dH=Ym(),fH=hw(),mH=yw(),hH=[uH.default,dH.default,fH.default,mH.default];Xm.default=hH});var vw=x(Zm=>{"use strict";Object.defineProperty(Zm,"__esModule",{value:!0});var bw=yp(),yH={keyword:"dependentRequired",type:"object",schemaType:"object",error:bw.error,code:e=>(0,bw.validatePropertyDeps)(e)};Zm.default=yH});var xw=x(eh=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});var gH=yp(),bH={keyword:"dependentSchemas",type:"object",schemaType:"object",code:e=>(0,gH.validateSchemaDeps)(e)};eh.default=bH});var Sw=x(th=>{"use strict";Object.defineProperty(th,"__esModule",{value:!0});var vH=ae(),xH={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,vH.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};th.default=xH});var ww=x(rh=>{"use strict";Object.defineProperty(rh,"__esModule",{value:!0});var SH=vw(),wH=xw(),_H=Sw(),PH=[SH.default,wH.default,_H.default];rh.default=PH});var Ew=x(nh=>{"use strict";Object.defineProperty(nh,"__esModule",{value:!0});var mn=B(),_w=ae(),Pw=Pt(),EH={message:"must NOT have unevaluated properties",params:({params:e})=>(0,mn._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`},$H={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:EH,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 mn.Name)t.if((0,mn._)`${c} !== true`,()=>t.forIn("key",n,f=>t.if(l(c,f),()=>p(f))));else if(c!==!0){let f=()=>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,mn._)`${Pw.default.isAllOfVariant} === 0`,f):(!i.compositeRule||e.schema!==void 0)&&f()}s||(i.props=!0),e.ok((0,mn._)`${o} === ${Pw.default.errors}`);function p(f){if(r===!1){e.setParams({unevaluatedProperty:f}),e.error(),a||t.break();return}if(!(0,_w.alwaysValidSchema)(i,r)){let d=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:f,dataPropType:_w.Type.Str},d),a||t.if((0,mn.not)(d),()=>t.break())}}function l(f,d){return(0,mn._)`!${f} || !${f}[${d}]`}function u(f,d){let m=[];for(let h in f)f[h]===!0&&m.push((0,mn._)`${d} !== ${h}`);return(0,mn.and)(...m)}}};nh.default=$H});var Aw=x(oh=>{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});var Oo=B(),$w=ae(),AH={message:({params:{len:e}})=>(0,Oo.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Oo._)`{limit: ${e}}`},TH={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:AH,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,Oo._)`${n}.length`);if(r===!1)e.setParams({len:i}),e.fail((0,Oo._)`${s} > ${i}`);else if(typeof r=="object"&&!(0,$w.alwaysValidSchema)(o,r)){let c=t.var("valid",(0,Oo._)`${s} <= ${i}`);t.if((0,Oo.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:$w.Type.Num},c),o.allErrors||t.if((0,Oo.not)(c),()=>t.break())})}}};oh.default=TH});var sh=x(ih=>{"use strict";Object.defineProperty(ih,"__esModule",{value:!0});var RH=Ew(),OH=Aw(),kH=[RH.default,OH.default];ih.default=kH});var Tw=x(ah=>{"use strict";Object.defineProperty(ah,"__esModule",{value:!0});var Ve=B(),IH={message:({schemaCode:e})=>(0,Ve.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,Ve._)`{format: ${e}}`},CH={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:IH,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?f():d();function f(){let m=r.scopeValue("formats",{ref:u.formats,code:c.code.formats}),h=r.const("fDef",(0,Ve._)`${m}[${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)(b(),v()));function b(){return c.strictSchema===!1?Ve.nil:(0,Ve._)`${s} && !${g}`}function v(){let w=l.$async?(0,Ve._)`(${h}.async ? await ${g}(${n}) : ${g}(${n}))`:(0,Ve._)`${g}(${n})`,S=(0,Ve._)`(typeof ${g} == "function" ? ${w} : ${g}.test(${n}))`;return(0,Ve._)`${g} && ${g} !== true && ${y} === ${t} && !${S}`}}function d(){let m=u.formats[i];if(!m){b();return}if(m===!0)return;let[h,y,g]=v(m);h===t&&e.pass(w());function b(){if(c.strictSchema===!1){u.logger.warn(S());return}throw new Error(S());function S(){return`unknown format "${i}" ignored in schema at path "${p}"`}}function v(S){let P=S instanceof RegExp?(0,Ve.regexpCode)(S):c.code.formats?(0,Ve._)`${c.code.formats}${(0,Ve.getProperty)(i)}`:void 0,R=r.scopeValue("formats",{key:i,ref:S,code:P});return typeof S=="object"&&!(S instanceof RegExp)?[S.type||"string",S.validate,(0,Ve._)`${R}.validate`]:["string",S,R]}function w(){if(typeof m=="object"&&!(m instanceof RegExp)&&m.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})`}}}};ah.default=CH});var ph=x(ch=>{"use strict";Object.defineProperty(ch,"__esModule",{value:!0});var qH=Tw(),NH=[qH.default];ch.default=NH});var Rw=x(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.contentVocabulary=ki.metadataVocabulary=void 0;ki.metadataVocabulary=["title","description","default","deprecated","examples"];ki.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var kw=x(lh=>{"use strict";Object.defineProperty(lh,"__esModule",{value:!0});var MH=xS(),jH=Em(),DH=Km(),LH=gw(),UH=ww(),FH=sh(),zH=ph(),Ow=Rw(),VH=[LH.default,MH.default,jH.default,(0,DH.default)(!0),zH.default,Ow.metadataVocabulary,Ow.contentVocabulary,UH.default,FH.default];lh.default=VH});var Cw=x(wp=>{"use strict";Object.defineProperty(wp,"__esModule",{value:!0});wp.DiscrError=void 0;var Iw;(function(e){e.Tag="tag",e.Mapping="mapping"})(Iw||(wp.DiscrError=Iw={}))});var fh=x(dh=>{"use strict";Object.defineProperty(dh,"__esModule",{value:!0});var Ii=B(),uh=Cw(),qw=ra(),BH=$i(),HH=ae(),KH={message:({params:{discrError:e,tagName:t}})=>e===uh.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,Ii._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`};function GH(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 WH={keyword:"discriminator",type:"object",schemaType:"object",error:KH,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,Ii._)`${r}${(0,Ii.getProperty)(a)}`);t.if((0,Ii._)`typeof ${l} == "string"`,()=>u(),()=>e.error(!1,{discrError:uh.DiscrError.Tag,tag:l,tagName:a})),e.ok(p);function u(){let m=d();t.if(!1);for(let h in m)t.elseIf((0,Ii._)`${l} === ${h}`),t.assign(p,f(m[h]));t.else(),e.error(!1,{discrError:uh.DiscrError.Mapping,tag:l,tagName:a}),t.endIf()}function f(m){let h=t.name("valid"),y=e.subschema({keyword:s,schemaProp:m},h);return e.mergeEvaluated(y,Ii.Name),h}function d(){var m;let h={},y=b(o),g=!0;for(let S=0;S<c.length;S++){let P=c[S],R=P?.$ref;if(R&&n.mapping){let{mapping:E}=n,_=Object.keys(E).filter(ee=>E[ee]===P.$ref);if(_.length){for(let ee of _)w(ee,S);continue}}if(R&&!(0,HH.schemaHasRulesButRef)(P,i.self.RULES)&&(P=qw.resolveRef.call(i.self,i.schemaEnv.root,i.baseId,R),P instanceof qw.SchemaEnv&&(P=P.schema),P===void 0))throw new BH.default(i.opts.uriResolver,i.baseId,R);let A=(m=P?.properties)===null||m===void 0?void 0:m[a];if(!A&&P?.allOf&&(A=GH(P,a)),typeof A!="object")throw new Error(`discriminator: ${s} subschemas (or referenced schemas) must have "properties/${a}" or match mapping`);g=g&&(y||b(P)),v(A,S)}if(!g)throw new Error(`discriminator: "${a}" must be required`);return h;function b(S){if(Array.isArray(S.required)&&S.required.includes(a))return!0;if(S.allOf&&Array.isArray(S.allOf))for(let P of S.allOf){let R=P;if(Array.isArray(R.required)&&R.required.includes(a))return!0}return!1}function v(S,P){if(S.const)w(S.const,P);else if(S.enum)for(let R of S.enum)w(R,P);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function w(S,P){if(typeof S!="string"||S in h)throw new Error(`discriminator: "${a}" values must be unique strings`);h[S]=P}}}};dh.default=WH});var Nw=x((Wee,YH)=>{YH.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 Mw=x((Yee,QH)=>{QH.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 jw=x((Qee,JH)=>{JH.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 Dw=x((Jee,XH)=>{XH.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 Lw=x((Xee,ZH)=>{ZH.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 Uw=x((Zee,e9)=>{e9.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 Fw=x((ete,t9)=>{t9.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 zw=x((tte,r9)=>{r9.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 Vw=x(mh=>{"use strict";Object.defineProperty(mh,"__esModule",{value:!0});var n9=Nw(),o9=Mw(),i9=jw(),s9=Dw(),a9=Lw(),c9=Uw(),p9=Fw(),l9=zw(),u9=["/properties"];function d9(e){return[n9,o9,i9,s9,a9,t(this,c9),p9,t(this,l9)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,u9):n}}mh.default=d9});var gh=x((Ie,yh)=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.MissingRefError=Ie.ValidationError=Ie.CodeGen=Ie.Name=Ie.nil=Ie.stringify=Ie.str=Ie._=Ie.KeywordCxt=Ie.Ajv2020=void 0;var f9=nm(),m9=kw(),h9=fh(),y9=Vw(),hh="https://json-schema.org/draft/2020-12/schema",Ci=class extends f9.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),m9.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(h9.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(y9.default.call(this,t),this.refs["http://json-schema.org/schema"]=hh)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(hh)?hh:void 0)}};Ie.Ajv2020=Ci;yh.exports=Ie=Ci;yh.exports.Ajv2020=Ci;Object.defineProperty(Ie,"__esModule",{value:!0});Ie.default=Ci;var g9=Ei();Object.defineProperty(Ie,"KeywordCxt",{enumerable:!0,get:function(){return g9.KeywordCxt}});var qi=B();Object.defineProperty(Ie,"_",{enumerable:!0,get:function(){return qi._}});Object.defineProperty(Ie,"str",{enumerable:!0,get:function(){return qi.str}});Object.defineProperty(Ie,"stringify",{enumerable:!0,get:function(){return qi.stringify}});Object.defineProperty(Ie,"nil",{enumerable:!0,get:function(){return qi.nil}});Object.defineProperty(Ie,"Name",{enumerable:!0,get:function(){return qi.Name}});Object.defineProperty(Ie,"CodeGen",{enumerable:!0,get:function(){return qi.CodeGen}});var b9=ta();Object.defineProperty(Ie,"ValidationError",{enumerable:!0,get:function(){return b9.default}});var v9=$i();Object.defineProperty(Ie,"MissingRefError",{enumerable:!0,get:function(){return v9.default}})});var e_=x(wh=>{"use strict";Object.defineProperty(wh,"__esModule",{value:!0});var Ap=B(),jn=Ap.operators,xh={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}]}},cK={message:e=>(0,Ap.str)`must be ${Sh(e).okStr} ${e.schemaCode}`,params:e=>(0,Ap._)`{comparison: ${Sh(e).okStr}, limit: ${e.schemaCode}}`},pK={keyword:Object.keys(xh),type:"number",schemaType:"number",$data:!0,error:cK,code(e){let{data:t,schemaCode:r}=e;e.fail$data((0,Ap._)`${t} ${Sh(e).fail} ${r} || isNaN(${t})`)}};function Sh(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[xh[r].exclusive]?1:0;return xh[r].ops[n]}wh.default=pK});var r_=x(_h=>{"use strict";Object.defineProperty(_h,"__esModule",{value:!0});var t_={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},lK={keyword:Object.keys(t_),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=t_[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};_h.default=lK});var n_=x(Ph=>{"use strict";Object.defineProperty(Ph,"__esModule",{value:!0});var uK=ca(),dK=Km(),fK=sh(),mK=ph(),hK=Em(),yK=e_(),gK=r_(),bK=["title","description","default"],vK=["$schema","id","$defs",{keyword:"$comment"},"definitions",uK.default],xK=[...hK.default.slice(1),yK.default,gK.default],SK=[vK,xK,(0,dK.default)(),mK.default,bK,fK.default];Ph.default=SK});var o_=x((Ote,wK)=>{wK.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 a_=x((Ce,s_)=>{"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.Ajv=void 0;var _K=nm(),PK=n_(),EK=fh(),i_=o_(),$K=["/properties"],Tp="http://json-schema.org/draft-04/schema",wa=class extends _K.default{constructor(t={}){super({...t,schemaId:"id",dynamicRef:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),PK.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(EK.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(i_,$K):i_;this.addMetaSchema(t,Tp,!1),this.refs["http://json-schema.org/schema"]=Tp}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Tp)?Tp:void 0)}};Ce.Ajv=wa;s_.exports=Ce=wa;Object.defineProperty(Ce,"__esModule",{value:!0});Ce.default=wa;var AK=Ei();Object.defineProperty(Ce,"KeywordCxt",{enumerable:!0,get:function(){return AK.KeywordCxt}});var ji=B();Object.defineProperty(Ce,"_",{enumerable:!0,get:function(){return ji._}});Object.defineProperty(Ce,"str",{enumerable:!0,get:function(){return ji.str}});Object.defineProperty(Ce,"stringify",{enumerable:!0,get:function(){return ji.stringify}});Object.defineProperty(Ce,"nil",{enumerable:!0,get:function(){return ji.nil}});Object.defineProperty(Ce,"Name",{enumerable:!0,get:function(){return ji.Name}});Object.defineProperty(Ce,"CodeGen",{enumerable:!0,get:function(){return ji.CodeGen}});var TK=ta();Object.defineProperty(Ce,"ValidationError",{enumerable:!0,get:function(){return TK.default}});var RK=$i();Object.defineProperty(Ce,"MissingRefError",{enumerable:!0,get:function(){return RK.default}})});var h_=x(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.formatNames=Hr.fastFormats=Hr.fullFormats=void 0;function Br(e,t){return{validate:e,compare:t}}Hr.fullFormats={date:Br(u_,Th),time:Br($h(!0),Rh),"date-time":Br(c_(!0),f_),"iso-time":Br($h(),d_),"iso-date-time":Br(c_(),m_),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:NK,"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:zK,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:MK,int32:{type:"number",validate:LK},int64:{type:"number",validate:UK},float:{type:"number",validate:l_},double:{type:"number",validate:l_},password:!0,binary:!0};Hr.fastFormats={...Hr.fullFormats,date:Br(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,Th),time:Br(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,Rh),"date-time":Br(/^\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,f_),"iso-time":Br(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,d_),"iso-date-time":Br(/^\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,m_),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};Hr.formatNames=Object.keys(Hr.fullFormats);function OK(e){return e%4===0&&(e%100!==0||e%400===0)}var kK=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,IK=[0,31,28,31,30,31,30,31,31,30,31,30,31];function u_(e){let t=kK.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&&OK(r)?29:IK[n])}function Th(e,t){if(e&&t)return e>t?1:e<t?-1:0}var Eh=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function $h(e){return function(r){let n=Eh.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,f=o-p*c-(u<0?1:0);return(f===23||f===-1)&&(u===59||u===-1)&&s<61}}function Rh(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 d_(e,t){if(!(e&&t))return;let r=Eh.exec(e),n=Eh.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 Ah=/t|\s/i;function c_(e){let t=$h(e);return function(n){let o=n.split(Ah);return o.length===2&&u_(o[0])&&t(o[1])}}function f_(e,t){if(!(e&&t))return;let r=new Date(e).valueOf(),n=new Date(t).valueOf();if(r&&n)return r-n}function m_(e,t){if(!(e&&t))return;let[r,n]=e.split(Ah),[o,i]=t.split(Ah),s=Th(r,o);if(s!==void 0)return s||Rh(n,i)}var CK=/\/|:/,qK=/^(?:[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 NK(e){return CK.test(e)&&qK.test(e)}var p_=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function MK(e){return p_.lastIndex=0,p_.test(e)}var jK=-(2**31),DK=2**31-1;function LK(e){return Number.isInteger(e)&&e<=DK&&e>=jK}function UK(e){return Number.isInteger(e)}function l_(){return!0}var FK=/[^\\]\\Z/;function zK(e){if(FK.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}});var Ea=x(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 _a=class{};xe._CodeOrName=_a;xe.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var ko=class extends _a{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=ko;var ar=class extends _a{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 ko&&(r[n.str]=(r[n.str]||0)+1),r),{})}};xe._Code=ar;xe.nil=new ar("");function y_(e,...t){let r=[e[0]],n=0;for(;n<t.length;)kh(r,t[n]),r.push(e[++n]);return new ar(r)}xe._=y_;var Oh=new ar("+");function g_(e,...t){let r=[Pa(e[0])],n=0;for(;n<t.length;)r.push(Oh),kh(r,t[n]),r.push(Oh,Pa(e[++n]));return VK(r),new ar(r)}xe.str=g_;function kh(e,t){t instanceof ar?e.push(...t._items):t instanceof ko?e.push(t):e.push(KK(t))}xe.addCodeArg=kh;function VK(e){let t=1;for(;t<e.length-1;){if(e[t]===Oh){let r=BK(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function BK(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof ko||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 ko))return`"${e}${t.slice(1)}`}function HK(e,t){return t.emptyStr()?e:e.emptyStr()?t:g_`${e}${t}`}xe.strConcat=HK;function KK(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:Pa(Array.isArray(e)?e.join(","):e)}function GK(e){return new ar(Pa(e))}xe.stringify=GK;function Pa(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}xe.safeStringify=Pa;function WK(e){return typeof e=="string"&&xe.IDENTIFIER.test(e)?new ar(`.${e}`):y_`[${e}]`}xe.getProperty=WK;function YK(e){if(typeof e=="string"&&xe.IDENTIFIER.test(e))return new ar(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}xe.getEsmExportName=YK;function QK(e){return new ar(e.toString())}xe.regexpCode=QK});var qh=x(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.ValueScope=Ut.ValueScopeName=Ut.Scope=Ut.varKinds=Ut.UsedValueState=void 0;var Lt=Ea(),Ih=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},Rp;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(Rp||(Ut.UsedValueState=Rp={}));Ut.varKinds={const:new Lt.Name("const"),let:new Lt.Name("let"),var:new Lt.Name("var")};var Op=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof Lt.Name?t:this.name(t)}name(t){return new Lt.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}}};Ut.Scope=Op;var kp=class extends Lt.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,Lt._)`.${new Lt.Name(r)}[${n}]`}};Ut.ValueScopeName=kp;var JK=(0,Lt._)`\n`,Ch=class extends Op{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?JK:Lt.nil}}get(){return this._scope}name(t){return new kp(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,Lt._)`${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=Lt.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,Rp.Started);let l=r(p);if(l){let u=this.opts.es5?Ut.varKinds.var:Ut.varKinds.const;i=(0,Lt._)`${i}${u} ${p} = ${l};${this.opts._n}`}else if(l=o?.(p))i=(0,Lt._)`${i}${l}${this.opts._n}`;else throw new Ih(p);c.set(p,Rp.Completed)})}return i}};Ut.ValueScope=Ch});var Z=x(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 ue=Ea(),_r=qh(),Dn=Ea();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 Np=qh();Object.defineProperty(ne,"Scope",{enumerable:!0,get:function(){return Np.Scope}});Object.defineProperty(ne,"ValueScope",{enumerable:!0,get:function(){return Np.ValueScope}});Object.defineProperty(ne,"ValueScopeName",{enumerable:!0,get:function(){return Np.ValueScopeName}});Object.defineProperty(ne,"varKinds",{enumerable:!0,get:function(){return Np.varKinds}});ne.operators={GT:new ue._Code(">"),GTE:new ue._Code(">="),LT:new ue._Code("<"),LTE:new ue._Code("<="),EQ:new ue._Code("==="),NEQ:new ue._Code("!=="),NOT:new ue._Code("!"),OR:new ue._Code("||"),AND:new ue._Code("&&"),ADD:new ue._Code("+")};var hn=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},Nh=class extends hn{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?_r.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=Li(this.rhs,t,r)),this}get names(){return this.rhs instanceof ue._CodeOrName?this.rhs.names:{}}},Ip=class extends hn{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 ue.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=Li(this.rhs,t,r),this}get names(){let t=this.lhs instanceof ue.Name?{}:{...this.lhs.names};return qp(t,this.rhs)}},Mh=class extends Ip{constructor(t,r,n,o){super(t,n,o),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},jh=class extends hn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},Dh=class extends hn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},Lh=class extends hn{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},Uh=class extends hn{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=Li(this.code,t,r),this}get names(){return this.code instanceof ue._CodeOrName?this.code.names:{}}},$a=class extends hn{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)||(XK(t,i.names),n.splice(o,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>qo(t,r.names),{})}},yn=class extends $a{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},Fh=class extends $a{},Di=class extends yn{};Di.kind="else";var Io=class e extends yn{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 Di(n):n}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(b_(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=Li(this.condition,t,r),this}get names(){let t=super.names;return qp(t,this.condition),this.else&&qo(t,this.else.names),t}};Io.kind="if";var Co=class extends yn{};Co.kind="for";var zh=class extends Co{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=Li(this.iteration,t,r),this}get names(){return qo(super.names,this.iteration.names)}},Vh=class extends Co{constructor(t,r,n,o){super(),this.varKind=t,this.name=r,this.from=n,this.to=o}render(t){let r=t.es5?_r.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=qp(super.names,this.from);return qp(t,this.to)}},Cp=class extends Co{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=Li(this.iterable,t,r),this}get names(){return qo(super.names,this.iterable.names)}},Aa=class extends yn{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)}};Aa.kind="func";var Ta=class extends $a{render(t){return"return "+super.render(t)}};Ta.kind="return";var Bh=class extends yn{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&&qo(t,this.catch.names),this.finally&&qo(t,this.finally.names),t}},Ra=class extends yn{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};Ra.kind="catch";var Oa=class extends yn{render(t){return"finally"+super.render(t)}};Oa.kind="finally";var Hh=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
|
|
15
|
-
`:""},this._extScope=t,this._scope=new _r.Scope({parent:t}),this._nodes=[new Fh]}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 Nh(t,i,n)),i}const(t,r,n){return this._def(_r.varKinds.const,t,r,n)}let(t,r,n){return this._def(_r.varKinds.let,t,r,n)}var(t,r,n){return this._def(_r.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new Ip(t,r,n))}add(t,r){return this._leafNode(new Mh(t,ne.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==ue.nil&&this._leafNode(new Uh(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,ue.addCodeArg)(r,o));return r.push("}"),new ue._Code(r)}if(t,r,n){if(this._blockNode(new Io(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 Io(t))}else(){return this._elseNode(new Di)}endIf(){return this._endBlockNode(Io,Di)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new zh(t),r)}forRange(t,r,n,o,i=this.opts.es5?_r.varKinds.var:_r.varKinds.let){let s=this._scope.toName(t);return this._for(new Vh(i,s,r,n),()=>o(s))}forOf(t,r,n,o=_r.varKinds.const){let i=this._scope.toName(t);if(this.opts.es5){let s=r instanceof ue.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,ue._)`${s}.length`,a=>{this.var(i,(0,ue._)`${s}[${a}]`),n(i)})}return this._for(new Cp("of",o,i,r),()=>n(i))}forIn(t,r,n,o=this.opts.es5?_r.varKinds.var:_r.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,ue._)`Object.keys(${r})`,n);let i=this._scope.toName(t);return this._for(new Cp("in",o,i,r),()=>n(i))}endFor(){return this._endBlockNode(Co)}label(t){return this._leafNode(new jh(t))}break(t){return this._leafNode(new Dh(t))}return(t){let r=new Ta;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Ta)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let o=new Bh;if(this._blockNode(o),this.code(t),r){let i=this.name("e");this._currNode=o.catch=new Ra(i),r(i)}return n&&(this._currNode=o.finally=new Oa,this.code(n)),this._endBlockNode(Ra,Oa)}throw(t){return this._leafNode(new Lh(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=ue.nil,n,o){return this._blockNode(new Aa(t,r,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(Aa)}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 Io))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=Hh;function qo(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function qp(e,t){return t instanceof ue._CodeOrName?qo(e,t.names):e}function Li(e,t,r){if(e instanceof ue.Name)return n(e);if(!o(e))return e;return new ue._Code(e._items.reduce((i,s)=>(s instanceof ue.Name&&(s=n(s)),s instanceof ue._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 ue._Code&&i._items.some(s=>s instanceof ue.Name&&t[s.str]===1&&r[s.str]!==void 0)}}function XK(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}function b_(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,ue._)`!${Kh(e)}`}ne.not=b_;var ZK=v_(ne.operators.AND);function e4(...e){return e.reduce(ZK)}ne.and=e4;var t4=v_(ne.operators.OR);function r4(...e){return e.reduce(t4)}ne.or=r4;function v_(e){return(t,r)=>t===ue.nil?r:r===ue.nil?t:(0,ue._)`${Kh(t)} ${e} ${Kh(r)}`}function Kh(e){return e instanceof ue.Name?e:(0,ue._)`(${e})`}});var ge=x(ce=>{"use strict";Object.defineProperty(ce,"__esModule",{value:!0});ce.checkStrictMode=ce.getErrorPath=ce.Type=ce.useFunc=ce.setEvaluated=ce.evaluatedPropsToName=ce.mergeEvaluated=ce.eachItem=ce.unescapeJsonPointer=ce.escapeJsonPointer=ce.escapeFragment=ce.unescapeFragment=ce.schemaRefOrVal=ce.schemaHasRulesButRef=ce.schemaHasRules=ce.checkUnknownRules=ce.alwaysValidSchema=ce.toHash=void 0;var ke=Z(),n4=Ea();function o4(e){let t={};for(let r of e)t[r]=!0;return t}ce.toHash=o4;function i4(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(w_(e,t),!__(t,e.self.RULES.all))}ce.alwaysValidSchema=i4;function w_(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]||$_(e,`unknown keyword: "${i}"`)}ce.checkUnknownRules=w_;function __(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}ce.schemaHasRules=__;function s4(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}ce.schemaHasRulesButRef=s4;function a4({topSchemaRef:e,schemaPath:t},r,n,o){if(!o){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,ke._)`${r}`}return(0,ke._)`${e}${t}${(0,ke.getProperty)(n)}`}ce.schemaRefOrVal=a4;function c4(e){return P_(decodeURIComponent(e))}ce.unescapeFragment=c4;function p4(e){return encodeURIComponent(Wh(e))}ce.escapeFragment=p4;function Wh(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}ce.escapeJsonPointer=Wh;function P_(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}ce.unescapeJsonPointer=P_;function l4(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}ce.eachItem=l4;function x_({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(o,i,s,a)=>{let c=s===void 0?i:s instanceof ke.Name?(i instanceof ke.Name?e(o,i,s):t(o,i,s),s):i instanceof ke.Name?(t(o,s,i),i):r(i,s);return a===ke.Name&&!(c instanceof ke.Name)?n(o,c):c}}ce.mergeEvaluated={props:x_({mergeNames:(e,t,r)=>e.if((0,ke._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,ke._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,ke._)`${r} || {}`).code((0,ke._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,ke._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,ke._)`${r} || {}`),Yh(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:E_}),items:x_({mergeNames:(e,t,r)=>e.if((0,ke._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,ke._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,ke._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,ke._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function E_(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,ke._)`{}`);return t!==void 0&&Yh(e,r,t),r}ce.evaluatedPropsToName=E_;function Yh(e,t,r){Object.keys(r).forEach(n=>e.assign((0,ke._)`${t}${(0,ke.getProperty)(n)}`,!0))}ce.setEvaluated=Yh;var S_={};function u4(e,t){return e.scopeValue("func",{ref:t,code:S_[t.code]||(S_[t.code]=new n4._Code(t.code))})}ce.useFunc=u4;var Gh;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Gh||(ce.Type=Gh={}));function d4(e,t,r){if(e instanceof ke.Name){let n=t===Gh.Num;return r?n?(0,ke._)`"[" + ${e} + "]"`:(0,ke._)`"['" + ${e} + "']"`:n?(0,ke._)`"/" + ${e}`:(0,ke._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,ke.getProperty)(e).toString():"/"+Wh(e)}ce.getErrorPath=d4;function $_(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}ce.checkStrictMode=$_});var gn=x(Qh=>{"use strict";Object.defineProperty(Qh,"__esModule",{value:!0});var vt=Z(),f4={data:new vt.Name("data"),valCxt:new vt.Name("valCxt"),instancePath:new vt.Name("instancePath"),parentData:new vt.Name("parentData"),parentDataProperty:new vt.Name("parentDataProperty"),rootData:new vt.Name("rootData"),dynamicAnchors:new vt.Name("dynamicAnchors"),vErrors:new vt.Name("vErrors"),errors:new vt.Name("errors"),this:new vt.Name("this"),self:new vt.Name("self"),scope:new vt.Name("scope"),json:new vt.Name("json"),jsonPos:new vt.Name("jsonPos"),jsonLen:new vt.Name("jsonLen"),jsonPart:new vt.Name("jsonPart")};Qh.default=f4});var ka=x(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.extendErrors=xt.resetErrorsCount=xt.reportExtraError=xt.reportError=xt.keyword$DataError=xt.keywordError=void 0;var be=Z(),Mp=ge(),At=gn();xt.keywordError={message:({keyword:e})=>(0,be.str)`must pass "${e}" keyword validation`};xt.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 m4(e,t=xt.keywordError,r,n){let{it:o}=e,{gen:i,compositeRule:s,allErrors:a}=o,c=R_(e,t,r);n??(s||a)?A_(i,c):T_(o,(0,be._)`[${c}]`)}xt.reportError=m4;function h4(e,t=xt.keywordError,r){let{it:n}=e,{gen:o,compositeRule:i,allErrors:s}=n,a=R_(e,t,r);A_(o,a),i||s||T_(n,At.default.vErrors)}xt.reportExtraError=h4;function y4(e,t){e.assign(At.default.errors,t),e.if((0,be._)`${At.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,be._)`${At.default.vErrors}.length`,t),()=>e.assign(At.default.vErrors,null)))}xt.resetErrorsCount=y4;function g4({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,At.default.errors,a=>{e.const(s,(0,be._)`${At.default.vErrors}[${a}]`),e.if((0,be._)`${s}.instancePath === undefined`,()=>e.assign((0,be._)`${s}.instancePath`,(0,be.strConcat)(At.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))})}xt.extendErrors=g4;function A_(e,t){let r=e.const("err",t);e.if((0,be._)`${At.default.vErrors} === null`,()=>e.assign(At.default.vErrors,(0,be._)`[${r}]`),(0,be._)`${At.default.vErrors}.push(${r})`),e.code((0,be._)`${At.default.errors}++`)}function T_(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 No={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 R_(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,be._)`{}`:b4(e,t,r)}function b4(e,t,r={}){let{gen:n,it:o}=e,i=[v4(o,r),x4(e,r)];return S4(e,t,i),n.object(...i)}function v4({errorPath:e},{instancePath:t}){let r=t?(0,be.str)`${e}${(0,Mp.getErrorPath)(t,Mp.Type.Str)}`:e;return[At.default.instancePath,(0,be.strConcat)(At.default.instancePath,r)]}function x4({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,Mp.getErrorPath)(r,Mp.Type.Str)}`),[No.schemaPath,o]}function S4(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([No.keyword,o],[No.params,typeof t=="function"?t(e):t||(0,be._)`{}`]),c.messages&&n.push([No.message,typeof r=="function"?r(e):r]),c.verbose&&n.push([No.schema,s],[No.parentSchema,(0,be._)`${l}${u}`],[At.default.data,i]),p&&n.push([No.propertyName,p])}});var k_=x(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.boolOrEmptySchema=Ui.topBoolOrEmptySchema=void 0;var w4=ka(),_4=Z(),P4=gn(),E4={message:"boolean schema is false"};function $4(e){let{gen:t,schema:r,validateName:n}=e;r===!1?O_(e,!1):typeof r=="object"&&r.$async===!0?t.return(P4.default.data):(t.assign((0,_4._)`${n}.errors`,null),t.return(!0))}Ui.topBoolOrEmptySchema=$4;function A4(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),O_(e)):r.var(t,!0)}Ui.boolOrEmptySchema=A4;function O_(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,w4.reportError)(o,E4,void 0,t)}});var Jh=x(Fi=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});Fi.getRules=Fi.isJSONType=void 0;var T4=["string","number","integer","boolean","null","object","array"],R4=new Set(T4);function O4(e){return typeof e=="string"&&R4.has(e)}Fi.isJSONType=O4;function k4(){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:{}}}Fi.getRules=k4});var Xh=x(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.shouldUseRule=Ln.shouldUseGroup=Ln.schemaHasRulesForType=void 0;function I4({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&I_(e,n)}Ln.schemaHasRulesForType=I4;function I_(e,t){return t.rules.some(r=>C_(e,r))}Ln.shouldUseGroup=I_;function C_(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=C_});var Ia=x(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});St.reportTypeError=St.checkDataTypes=St.checkDataType=St.coerceAndCheckDataType=St.getJSONTypes=St.getSchemaTypes=St.DataType=void 0;var C4=Jh(),q4=Xh(),N4=ka(),J=Z(),q_=ge(),zi;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(zi||(St.DataType=zi={}));function M4(e){let t=N_(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}St.getSchemaTypes=M4;function N_(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(C4.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}St.getJSONTypes=N_;function j4(e,t){let{gen:r,data:n,opts:o}=e,i=D4(t,o.coerceTypes),s=t.length>0&&!(i.length===0&&t.length===1&&(0,q4.schemaHasRulesForType)(e,t[0]));if(s){let a=ey(t,n,o.strictNumbers,zi.Wrong);r.if(a,()=>{i.length?L4(e,t,i):ty(e)})}return s}St.coerceAndCheckDataType=j4;var M_=new Set(["string","number","integer","boolean","null"]);function D4(e,t){return t?e.filter(r=>M_.has(r)||t==="array"&&r==="array"):[]}function L4(e,t,r){let{gen:n,data:o,opts:i}=e,s=n.let("dataType",(0,J._)`typeof ${o}`),a=n.let("coerced",(0,J._)`undefined`);i.coerceTypes==="array"&&n.if((0,J._)`${s} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,()=>n.assign(o,(0,J._)`${o}[0]`).assign(s,(0,J._)`typeof ${o}`).if(ey(t,o,i.strictNumbers),()=>n.assign(a,o))),n.if((0,J._)`${a} !== undefined`);for(let p of r)(M_.has(p)||p==="array"&&i.coerceTypes==="array")&&c(p);n.else(),ty(e),n.endIf(),n.if((0,J._)`${a} !== undefined`,()=>{n.assign(o,a),U4(e,a)});function c(p){switch(p){case"string":n.elseIf((0,J._)`${s} == "number" || ${s} == "boolean"`).assign(a,(0,J._)`"" + ${o}`).elseIf((0,J._)`${o} === null`).assign(a,(0,J._)`""`);return;case"number":n.elseIf((0,J._)`${s} == "boolean" || ${o} === null
|
|
14
|
+
deps: ${r}}`};var m3={keyword:"dependencies",type:"object",schemaType:"object",error:Vr.error,code(e){let[t,r]=h3(e);HS(e,t),KS(e,r)}};function h3({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 HS(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,ya.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,ya.checkReportMissingProp)(e,p)}):(r.if((0,Im._)`${c} && (${(0,ya.checkMissingProp)(e,a,i)})`),(0,ya.reportMissingProp)(e,i),r.else())}}Vr.validatePropertyDeps=HS;function KS(e,t=e.schema){let{gen:r,data:n,keyword:o,it:i}=e,s=r.name("valid");for(let a in t)(0,f3.alwaysValidSchema)(i,t[a])||(r.if((0,ya.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))}Vr.validateSchemaDeps=KS;Vr.default=m3});var WS=x(Cm=>{"use strict";Object.defineProperty(Cm,"__esModule",{value:!0});var GS=B(),y3=ae(),g3={message:"property name must be valid",params:({params:e})=>(0,GS._)`{propertyName: ${e.propertyName}}`},b3={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:g3,code(e){let{gen:t,schema:r,data:n,it:o}=e;if((0,y3.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,GS.not)(i),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(i)}};Cm.default=b3});var Nm=x(qm=>{"use strict";Object.defineProperty(qm,"__esModule",{value:!0});var gp=nr(),wr=B(),v3=Pt(),bp=ae(),x3={message:"must NOT have additional properties",params:({params:e})=>(0,wr._)`{additionalProperty: ${e.additionalProperty}}`},S3={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:x3,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,bp.alwaysValidSchema)(i,s))return;let p=(0,gp.allSchemaProperties)(r.properties),l=(0,gp.allSchemaProperties)(r.patternProperties);u(),e.ok((0,wr._)`${o} === ${v3.default.errors}`);function u(){t.forIn("key",n,y=>{!p.length&&!l.length?m(y):t.if(f(y),()=>m(y))})}function f(y){let g;if(p.length>8){let b=(0,bp.schemaRefOrVal)(i,r.properties,"properties");g=(0,gp.isOwnProperty)(t,b,y)}else p.length?g=(0,wr.or)(...p.map(b=>(0,wr._)`${y} === ${b}`)):g=wr.nil;return l.length&&(g=(0,wr.or)(g,...l.map(b=>(0,wr._)`${(0,gp.usePattern)(e,b)}.test(${y})`))),(0,wr.not)(g)}function d(y){t.code((0,wr._)`delete ${n}[${y}]`)}function m(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,bp.alwaysValidSchema)(i,s)){let g=t.name("valid");c.removeAdditional==="failing"?(h(y,g,!1),t.if((0,wr.not)(g),()=>{e.reset(),d(y)})):(h(y,g),a||t.if((0,wr.not)(g),()=>t.break()))}}function h(y,g,b){let v={keyword:"additionalProperties",dataProp:y,dataPropType:bp.Type.Str};b===!1&&Object.assign(v,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(v,g)}}};qm.default=S3});var JS=x(jm=>{"use strict";Object.defineProperty(jm,"__esModule",{value:!0});var w3=Ei(),YS=nr(),Mm=ae(),QS=Nm(),_3={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)&&QS.default.code(new w3.KeywordCxt(i,QS.default,"additionalProperties"));let s=(0,YS.allSchemaProperties)(r);for(let u of s)i.definedProperties.add(u);i.opts.unevaluated&&s.length&&i.props!==!0&&(i.props=Mm.mergeEvaluated.props(t,(0,Mm.toHash)(s),i.props));let a=s.filter(u=>!(0,Mm.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,YS.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)}}};jm.default=_3});var tw=x(Dm=>{"use strict";Object.defineProperty(Dm,"__esModule",{value:!0});var XS=nr(),vp=B(),ZS=ae(),ew=ae(),P3={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,XS.allSchemaProperties)(r),c=a.filter(h=>(0,ZS.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 vp.Name)&&(i.props=(0,ew.evaluatedPropsToName)(t,i.props));let{props:u}=i;f();function f(){for(let h of a)p&&d(h),i.allErrors?m(h):(t.var(l,!0),m(h),t.if(l))}function d(h){for(let y in p)new RegExp(h).test(y)&&(0,ZS.checkStrictMode)(i,`property ${y} matches pattern ${h} (use allowMatchingProperties)`)}function m(h){t.forIn("key",n,y=>{t.if((0,vp._)`${(0,XS.usePattern)(e,h)}.test(${y})`,()=>{let g=c.includes(h);g||e.subschema({keyword:"patternProperties",schemaProp:h,dataProp:y,dataPropType:ew.Type.Str},l),i.opts.unevaluated&&u!==!0?t.assign((0,vp._)`${u}[${y}]`,!0):!g&&!i.allErrors&&t.if((0,vp.not)(l),()=>t.break())})})}}};Dm.default=P3});var rw=x(Lm=>{"use strict";Object.defineProperty(Lm,"__esModule",{value:!0});var E3=ae(),$3={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,E3.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"}};Lm.default=$3});var nw=x(Um=>{"use strict";Object.defineProperty(Um,"__esModule",{value:!0});var A3=nr(),T3={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:A3.validateUnion,error:{message:"must match a schema in anyOf"}};Um.default=T3});var ow=x(Fm=>{"use strict";Object.defineProperty(Fm,"__esModule",{value:!0});var xp=B(),R3=ae(),O3={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,xp._)`{passingSchemas: ${e.passing}}`},k3={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:O3,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 f;(0,R3.alwaysValidSchema)(o,l)?t.var(c,!0):f=e.subschema({keyword:"oneOf",schemaProp:u,compositeRule:!0},c),u>0&&t.if((0,xp._)`${c} && ${s}`).assign(s,!1).assign(a,(0,xp._)`[${a}, ${u}]`).else(),t.if(c,()=>{t.assign(s,!0),t.assign(a,u),f&&e.mergeEvaluated(f,xp.Name)})})}}};Fm.default=k3});var iw=x(zm=>{"use strict";Object.defineProperty(zm,"__esModule",{value:!0});var I3=ae(),C3={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,I3.alwaysValidSchema)(n,i))return;let a=e.subschema({keyword:"allOf",schemaProp:s},o,!0);e.ok(o),e.mergeEvaluated(a)})}};zm.default=C3});var cw=x(Vm=>{"use strict";Object.defineProperty(Vm,"__esModule",{value:!0});var Sp=B(),aw=ae(),q3={message:({params:e})=>(0,Sp.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,Sp._)`{failingKeyword: ${e.ifClause}}`},N3={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:q3,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,aw.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let o=sw(n,"then"),i=sw(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,Sp.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 f=e.subschema({keyword:l},a);t.assign(s,a),e.mergeValidEvaluated(f,s),u?t.assign(u,(0,Sp._)`${l}`):e.setParams({ifClause:l})}}}};function sw(e,t){let r=e.schema[t];return r!==void 0&&!(0,aw.alwaysValidSchema)(e,r)}Vm.default=N3});var pw=x(Bm=>{"use strict";Object.defineProperty(Bm,"__esModule",{value:!0});var M3=ae(),j3={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,M3.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};Bm.default=j3});var Km=x(Hm=>{"use strict";Object.defineProperty(Hm,"__esModule",{value:!0});var D3=Am(),L3=FS(),U3=Tm(),F3=VS(),z3=BS(),V3=yp(),B3=WS(),H3=Nm(),K3=JS(),G3=tw(),W3=rw(),Y3=nw(),Q3=ow(),J3=iw(),X3=cw(),Z3=pw();function eH(e=!1){let t=[W3.default,Y3.default,Q3.default,J3.default,X3.default,Z3.default,B3.default,H3.default,V3.default,K3.default,G3.default];return e?t.push(L3.default,F3.default):t.push(D3.default,U3.default),t.push(z3.default),t}Hm.default=eH});var Wm=x(ga=>{"use strict";Object.defineProperty(ga,"__esModule",{value:!0});ga.dynamicAnchor=void 0;var Gm=B(),tH=Pt(),lw=ra(),rH=ca(),nH={keyword:"$dynamicAnchor",schemaType:"string",code:e=>uw(e,e.schema)};function uw(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let o=(0,Gm._)`${tH.default.dynamicAnchors}${(0,Gm.getProperty)(t)}`,i=n.errSchemaPath==="#"?n.validateName:oH(e);r.if((0,Gm._)`!${o}`,()=>r.assign(o,i))}ga.dynamicAnchor=uw;function oH(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 lw.SchemaEnv({schema:r,schemaId:c,root:o,baseId:i,localRefs:s,meta:a});return lw.compileSchema.call(n,p),(0,rH.getValidate)(e,p)}ga.default=nH});var Ym=x(ba=>{"use strict";Object.defineProperty(ba,"__esModule",{value:!0});ba.dynamicRef=void 0;var dw=B(),iH=Pt(),fw=ca(),sH={keyword:"$dynamicRef",schemaType:"string",code:e=>mw(e,e.schema)};function mw(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,dw._)`${iH.default.dynamicAnchors}${(0,dw.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,fw.callRef)(e,c),r.let(p,!0)}):()=>(0,fw.callRef)(e,c)}}ba.dynamicRef=mw;ba.default=sH});var hw=x(Qm=>{"use strict";Object.defineProperty(Qm,"__esModule",{value:!0});var aH=Wm(),cH=ae(),pH={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,aH.dynamicAnchor)(e,""):(0,cH.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};Qm.default=pH});var yw=x(Jm=>{"use strict";Object.defineProperty(Jm,"__esModule",{value:!0});var lH=Ym(),uH={keyword:"$recursiveRef",schemaType:"string",code:e=>(0,lH.dynamicRef)(e,e.schema)};Jm.default=uH});var gw=x(Xm=>{"use strict";Object.defineProperty(Xm,"__esModule",{value:!0});var dH=Wm(),fH=Ym(),mH=hw(),hH=yw(),yH=[dH.default,fH.default,mH.default,hH.default];Xm.default=yH});var vw=x(Zm=>{"use strict";Object.defineProperty(Zm,"__esModule",{value:!0});var bw=yp(),gH={keyword:"dependentRequired",type:"object",schemaType:"object",error:bw.error,code:e=>(0,bw.validatePropertyDeps)(e)};Zm.default=gH});var xw=x(eh=>{"use strict";Object.defineProperty(eh,"__esModule",{value:!0});var bH=yp(),vH={keyword:"dependentSchemas",type:"object",schemaType:"object",code:e=>(0,bH.validateSchemaDeps)(e)};eh.default=vH});var Sw=x(th=>{"use strict";Object.defineProperty(th,"__esModule",{value:!0});var xH=ae(),SH={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,xH.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};th.default=SH});var ww=x(rh=>{"use strict";Object.defineProperty(rh,"__esModule",{value:!0});var wH=vw(),_H=xw(),PH=Sw(),EH=[wH.default,_H.default,PH.default];rh.default=EH});var Ew=x(nh=>{"use strict";Object.defineProperty(nh,"__esModule",{value:!0});var mn=B(),_w=ae(),Pw=Pt(),$H={message:"must NOT have unevaluated properties",params:({params:e})=>(0,mn._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`},AH={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:$H,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 mn.Name)t.if((0,mn._)`${c} !== true`,()=>t.forIn("key",n,f=>t.if(l(c,f),()=>p(f))));else if(c!==!0){let f=()=>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,mn._)`${Pw.default.isAllOfVariant} === 0`,f):(!i.compositeRule||e.schema!==void 0)&&f()}s||(i.props=!0),e.ok((0,mn._)`${o} === ${Pw.default.errors}`);function p(f){if(r===!1){e.setParams({unevaluatedProperty:f}),e.error(),a||t.break();return}if(!(0,_w.alwaysValidSchema)(i,r)){let d=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:f,dataPropType:_w.Type.Str},d),a||t.if((0,mn.not)(d),()=>t.break())}}function l(f,d){return(0,mn._)`!${f} || !${f}[${d}]`}function u(f,d){let m=[];for(let h in f)f[h]===!0&&m.push((0,mn._)`${d} !== ${h}`);return(0,mn.and)(...m)}}};nh.default=AH});var Aw=x(oh=>{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});var Oo=B(),$w=ae(),TH={message:({params:{len:e}})=>(0,Oo.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Oo._)`{limit: ${e}}`},RH={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:TH,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,Oo._)`${n}.length`);if(r===!1)e.setParams({len:i}),e.fail((0,Oo._)`${s} > ${i}`);else if(typeof r=="object"&&!(0,$w.alwaysValidSchema)(o,r)){let c=t.var("valid",(0,Oo._)`${s} <= ${i}`);t.if((0,Oo.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:$w.Type.Num},c),o.allErrors||t.if((0,Oo.not)(c),()=>t.break())})}}};oh.default=RH});var sh=x(ih=>{"use strict";Object.defineProperty(ih,"__esModule",{value:!0});var OH=Ew(),kH=Aw(),IH=[OH.default,kH.default];ih.default=IH});var Tw=x(ah=>{"use strict";Object.defineProperty(ah,"__esModule",{value:!0});var Ve=B(),CH={message:({schemaCode:e})=>(0,Ve.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,Ve._)`{format: ${e}}`},qH={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:CH,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?f():d();function f(){let m=r.scopeValue("formats",{ref:u.formats,code:c.code.formats}),h=r.const("fDef",(0,Ve._)`${m}[${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)(b(),v()));function b(){return c.strictSchema===!1?Ve.nil:(0,Ve._)`${s} && !${g}`}function v(){let w=l.$async?(0,Ve._)`(${h}.async ? await ${g}(${n}) : ${g}(${n}))`:(0,Ve._)`${g}(${n})`,S=(0,Ve._)`(typeof ${g} == "function" ? ${w} : ${g}.test(${n}))`;return(0,Ve._)`${g} && ${g} !== true && ${y} === ${t} && !${S}`}}function d(){let m=u.formats[i];if(!m){b();return}if(m===!0)return;let[h,y,g]=v(m);h===t&&e.pass(w());function b(){if(c.strictSchema===!1){u.logger.warn(S());return}throw new Error(S());function S(){return`unknown format "${i}" ignored in schema at path "${p}"`}}function v(S){let P=S instanceof RegExp?(0,Ve.regexpCode)(S):c.code.formats?(0,Ve._)`${c.code.formats}${(0,Ve.getProperty)(i)}`:void 0,R=r.scopeValue("formats",{key:i,ref:S,code:P});return typeof S=="object"&&!(S instanceof RegExp)?[S.type||"string",S.validate,(0,Ve._)`${R}.validate`]:["string",S,R]}function w(){if(typeof m=="object"&&!(m instanceof RegExp)&&m.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})`}}}};ah.default=qH});var ph=x(ch=>{"use strict";Object.defineProperty(ch,"__esModule",{value:!0});var NH=Tw(),MH=[NH.default];ch.default=MH});var Rw=x(ki=>{"use strict";Object.defineProperty(ki,"__esModule",{value:!0});ki.contentVocabulary=ki.metadataVocabulary=void 0;ki.metadataVocabulary=["title","description","default","deprecated","examples"];ki.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var kw=x(lh=>{"use strict";Object.defineProperty(lh,"__esModule",{value:!0});var jH=xS(),DH=Em(),LH=Km(),UH=gw(),FH=ww(),zH=sh(),VH=ph(),Ow=Rw(),BH=[UH.default,jH.default,DH.default,(0,LH.default)(!0),VH.default,Ow.metadataVocabulary,Ow.contentVocabulary,FH.default,zH.default];lh.default=BH});var Cw=x(wp=>{"use strict";Object.defineProperty(wp,"__esModule",{value:!0});wp.DiscrError=void 0;var Iw;(function(e){e.Tag="tag",e.Mapping="mapping"})(Iw||(wp.DiscrError=Iw={}))});var fh=x(dh=>{"use strict";Object.defineProperty(dh,"__esModule",{value:!0});var Ii=B(),uh=Cw(),qw=ra(),HH=$i(),KH=ae(),GH={message:({params:{discrError:e,tagName:t}})=>e===uh.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,Ii._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`};function WH(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 YH={keyword:"discriminator",type:"object",schemaType:"object",error:GH,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,Ii._)`${r}${(0,Ii.getProperty)(a)}`);t.if((0,Ii._)`typeof ${l} == "string"`,()=>u(),()=>e.error(!1,{discrError:uh.DiscrError.Tag,tag:l,tagName:a})),e.ok(p);function u(){let m=d();t.if(!1);for(let h in m)t.elseIf((0,Ii._)`${l} === ${h}`),t.assign(p,f(m[h]));t.else(),e.error(!1,{discrError:uh.DiscrError.Mapping,tag:l,tagName:a}),t.endIf()}function f(m){let h=t.name("valid"),y=e.subschema({keyword:s,schemaProp:m},h);return e.mergeEvaluated(y,Ii.Name),h}function d(){var m;let h={},y=b(o),g=!0;for(let S=0;S<c.length;S++){let P=c[S],R=P?.$ref;if(R&&n.mapping){let{mapping:E}=n,_=Object.keys(E).filter(ee=>E[ee]===P.$ref);if(_.length){for(let ee of _)w(ee,S);continue}}if(R&&!(0,KH.schemaHasRulesButRef)(P,i.self.RULES)&&(P=qw.resolveRef.call(i.self,i.schemaEnv.root,i.baseId,R),P instanceof qw.SchemaEnv&&(P=P.schema),P===void 0))throw new HH.default(i.opts.uriResolver,i.baseId,R);let A=(m=P?.properties)===null||m===void 0?void 0:m[a];if(!A&&P?.allOf&&(A=WH(P,a)),typeof A!="object")throw new Error(`discriminator: ${s} subschemas (or referenced schemas) must have "properties/${a}" or match mapping`);g=g&&(y||b(P)),v(A,S)}if(!g)throw new Error(`discriminator: "${a}" must be required`);return h;function b(S){if(Array.isArray(S.required)&&S.required.includes(a))return!0;if(S.allOf&&Array.isArray(S.allOf))for(let P of S.allOf){let R=P;if(Array.isArray(R.required)&&R.required.includes(a))return!0}return!1}function v(S,P){if(S.const)w(S.const,P);else if(S.enum)for(let R of S.enum)w(R,P);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function w(S,P){if(typeof S!="string"||S in h)throw new Error(`discriminator: "${a}" values must be unique strings`);h[S]=P}}}};dh.default=YH});var Nw=x((Yee,QH)=>{QH.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 Mw=x((Qee,JH)=>{JH.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 jw=x((Jee,XH)=>{XH.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 Dw=x((Xee,ZH)=>{ZH.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 Lw=x((Zee,e9)=>{e9.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 Uw=x((ete,t9)=>{t9.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 Fw=x((tte,r9)=>{r9.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 zw=x((rte,n9)=>{n9.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 Vw=x(mh=>{"use strict";Object.defineProperty(mh,"__esModule",{value:!0});var o9=Nw(),i9=Mw(),s9=jw(),a9=Dw(),c9=Lw(),p9=Uw(),l9=Fw(),u9=zw(),d9=["/properties"];function f9(e){return[o9,i9,s9,a9,c9,t(this,p9),l9,t(this,u9)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,d9):n}}mh.default=f9});var gh=x((Ie,yh)=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.MissingRefError=Ie.ValidationError=Ie.CodeGen=Ie.Name=Ie.nil=Ie.stringify=Ie.str=Ie._=Ie.KeywordCxt=Ie.Ajv2020=void 0;var m9=nm(),h9=kw(),y9=fh(),g9=Vw(),hh="https://json-schema.org/draft/2020-12/schema",Ci=class extends m9.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),h9.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(y9.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(g9.default.call(this,t),this.refs["http://json-schema.org/schema"]=hh)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(hh)?hh:void 0)}};Ie.Ajv2020=Ci;yh.exports=Ie=Ci;yh.exports.Ajv2020=Ci;Object.defineProperty(Ie,"__esModule",{value:!0});Ie.default=Ci;var b9=Ei();Object.defineProperty(Ie,"KeywordCxt",{enumerable:!0,get:function(){return b9.KeywordCxt}});var qi=B();Object.defineProperty(Ie,"_",{enumerable:!0,get:function(){return qi._}});Object.defineProperty(Ie,"str",{enumerable:!0,get:function(){return qi.str}});Object.defineProperty(Ie,"stringify",{enumerable:!0,get:function(){return qi.stringify}});Object.defineProperty(Ie,"nil",{enumerable:!0,get:function(){return qi.nil}});Object.defineProperty(Ie,"Name",{enumerable:!0,get:function(){return qi.Name}});Object.defineProperty(Ie,"CodeGen",{enumerable:!0,get:function(){return qi.CodeGen}});var v9=ta();Object.defineProperty(Ie,"ValidationError",{enumerable:!0,get:function(){return v9.default}});var x9=$i();Object.defineProperty(Ie,"MissingRefError",{enumerable:!0,get:function(){return x9.default}})});var e_=x(wh=>{"use strict";Object.defineProperty(wh,"__esModule",{value:!0});var Ap=B(),jn=Ap.operators,xh={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}]}},pK={message:e=>(0,Ap.str)`must be ${Sh(e).okStr} ${e.schemaCode}`,params:e=>(0,Ap._)`{comparison: ${Sh(e).okStr}, limit: ${e.schemaCode}}`},lK={keyword:Object.keys(xh),type:"number",schemaType:"number",$data:!0,error:pK,code(e){let{data:t,schemaCode:r}=e;e.fail$data((0,Ap._)`${t} ${Sh(e).fail} ${r} || isNaN(${t})`)}};function Sh(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[xh[r].exclusive]?1:0;return xh[r].ops[n]}wh.default=lK});var r_=x(_h=>{"use strict";Object.defineProperty(_h,"__esModule",{value:!0});var t_={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},uK={keyword:Object.keys(t_),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=t_[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};_h.default=uK});var n_=x(Ph=>{"use strict";Object.defineProperty(Ph,"__esModule",{value:!0});var dK=ca(),fK=Km(),mK=sh(),hK=ph(),yK=Em(),gK=e_(),bK=r_(),vK=["title","description","default"],xK=["$schema","id","$defs",{keyword:"$comment"},"definitions",dK.default],SK=[...yK.default.slice(1),gK.default,bK.default],wK=[xK,SK,(0,fK.default)(),hK.default,vK,mK.default];Ph.default=wK});var o_=x((kte,_K)=>{_K.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 a_=x((Ce,s_)=>{"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.Ajv=void 0;var PK=nm(),EK=n_(),$K=fh(),i_=o_(),AK=["/properties"],Tp="http://json-schema.org/draft-04/schema",wa=class extends PK.default{constructor(t={}){super({...t,schemaId:"id",dynamicRef:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),EK.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword($K.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(i_,AK):i_;this.addMetaSchema(t,Tp,!1),this.refs["http://json-schema.org/schema"]=Tp}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Tp)?Tp:void 0)}};Ce.Ajv=wa;s_.exports=Ce=wa;Object.defineProperty(Ce,"__esModule",{value:!0});Ce.default=wa;var TK=Ei();Object.defineProperty(Ce,"KeywordCxt",{enumerable:!0,get:function(){return TK.KeywordCxt}});var ji=B();Object.defineProperty(Ce,"_",{enumerable:!0,get:function(){return ji._}});Object.defineProperty(Ce,"str",{enumerable:!0,get:function(){return ji.str}});Object.defineProperty(Ce,"stringify",{enumerable:!0,get:function(){return ji.stringify}});Object.defineProperty(Ce,"nil",{enumerable:!0,get:function(){return ji.nil}});Object.defineProperty(Ce,"Name",{enumerable:!0,get:function(){return ji.Name}});Object.defineProperty(Ce,"CodeGen",{enumerable:!0,get:function(){return ji.CodeGen}});var RK=ta();Object.defineProperty(Ce,"ValidationError",{enumerable:!0,get:function(){return RK.default}});var OK=$i();Object.defineProperty(Ce,"MissingRefError",{enumerable:!0,get:function(){return OK.default}})});var h_=x(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.formatNames=Hr.fastFormats=Hr.fullFormats=void 0;function Br(e,t){return{validate:e,compare:t}}Hr.fullFormats={date:Br(u_,Th),time:Br($h(!0),Rh),"date-time":Br(c_(!0),f_),"iso-time":Br($h(),d_),"iso-date-time":Br(c_(),m_),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:MK,"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:VK,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:jK,int32:{type:"number",validate:UK},int64:{type:"number",validate:FK},float:{type:"number",validate:l_},double:{type:"number",validate:l_},password:!0,binary:!0};Hr.fastFormats={...Hr.fullFormats,date:Br(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,Th),time:Br(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,Rh),"date-time":Br(/^\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,f_),"iso-time":Br(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,d_),"iso-date-time":Br(/^\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,m_),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};Hr.formatNames=Object.keys(Hr.fullFormats);function kK(e){return e%4===0&&(e%100!==0||e%400===0)}var IK=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,CK=[0,31,28,31,30,31,30,31,31,30,31,30,31];function u_(e){let t=IK.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&&kK(r)?29:CK[n])}function Th(e,t){if(e&&t)return e>t?1:e<t?-1:0}var Eh=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function $h(e){return function(r){let n=Eh.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,f=o-p*c-(u<0?1:0);return(f===23||f===-1)&&(u===59||u===-1)&&s<61}}function Rh(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 d_(e,t){if(!(e&&t))return;let r=Eh.exec(e),n=Eh.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 Ah=/t|\s/i;function c_(e){let t=$h(e);return function(n){let o=n.split(Ah);return o.length===2&&u_(o[0])&&t(o[1])}}function f_(e,t){if(!(e&&t))return;let r=new Date(e).valueOf(),n=new Date(t).valueOf();if(r&&n)return r-n}function m_(e,t){if(!(e&&t))return;let[r,n]=e.split(Ah),[o,i]=t.split(Ah),s=Th(r,o);if(s!==void 0)return s||Rh(n,i)}var qK=/\/|:/,NK=/^(?:[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 MK(e){return qK.test(e)&&NK.test(e)}var p_=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function jK(e){return p_.lastIndex=0,p_.test(e)}var DK=-(2**31),LK=2**31-1;function UK(e){return Number.isInteger(e)&&e<=LK&&e>=DK}function FK(e){return Number.isInteger(e)}function l_(){return!0}var zK=/[^\\]\\Z/;function VK(e){if(zK.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}});var Ea=x(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 _a=class{};xe._CodeOrName=_a;xe.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var ko=class extends _a{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=ko;var ar=class extends _a{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 ko&&(r[n.str]=(r[n.str]||0)+1),r),{})}};xe._Code=ar;xe.nil=new ar("");function y_(e,...t){let r=[e[0]],n=0;for(;n<t.length;)kh(r,t[n]),r.push(e[++n]);return new ar(r)}xe._=y_;var Oh=new ar("+");function g_(e,...t){let r=[Pa(e[0])],n=0;for(;n<t.length;)r.push(Oh),kh(r,t[n]),r.push(Oh,Pa(e[++n]));return BK(r),new ar(r)}xe.str=g_;function kh(e,t){t instanceof ar?e.push(...t._items):t instanceof ko?e.push(t):e.push(GK(t))}xe.addCodeArg=kh;function BK(e){let t=1;for(;t<e.length-1;){if(e[t]===Oh){let r=HK(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function HK(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof ko||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 ko))return`"${e}${t.slice(1)}`}function KK(e,t){return t.emptyStr()?e:e.emptyStr()?t:g_`${e}${t}`}xe.strConcat=KK;function GK(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:Pa(Array.isArray(e)?e.join(","):e)}function WK(e){return new ar(Pa(e))}xe.stringify=WK;function Pa(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}xe.safeStringify=Pa;function YK(e){return typeof e=="string"&&xe.IDENTIFIER.test(e)?new ar(`.${e}`):y_`[${e}]`}xe.getProperty=YK;function QK(e){if(typeof e=="string"&&xe.IDENTIFIER.test(e))return new ar(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}xe.getEsmExportName=QK;function JK(e){return new ar(e.toString())}xe.regexpCode=JK});var qh=x(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.ValueScope=Ut.ValueScopeName=Ut.Scope=Ut.varKinds=Ut.UsedValueState=void 0;var Lt=Ea(),Ih=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},Rp;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(Rp||(Ut.UsedValueState=Rp={}));Ut.varKinds={const:new Lt.Name("const"),let:new Lt.Name("let"),var:new Lt.Name("var")};var Op=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof Lt.Name?t:this.name(t)}name(t){return new Lt.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}}};Ut.Scope=Op;var kp=class extends Lt.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,Lt._)`.${new Lt.Name(r)}[${n}]`}};Ut.ValueScopeName=kp;var XK=(0,Lt._)`\n`,Ch=class extends Op{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?XK:Lt.nil}}get(){return this._scope}name(t){return new kp(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,Lt._)`${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=Lt.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,Rp.Started);let l=r(p);if(l){let u=this.opts.es5?Ut.varKinds.var:Ut.varKinds.const;i=(0,Lt._)`${i}${u} ${p} = ${l};${this.opts._n}`}else if(l=o?.(p))i=(0,Lt._)`${i}${l}${this.opts._n}`;else throw new Ih(p);c.set(p,Rp.Completed)})}return i}};Ut.ValueScope=Ch});var Z=x(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 ue=Ea(),_r=qh(),Dn=Ea();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 Np=qh();Object.defineProperty(ne,"Scope",{enumerable:!0,get:function(){return Np.Scope}});Object.defineProperty(ne,"ValueScope",{enumerable:!0,get:function(){return Np.ValueScope}});Object.defineProperty(ne,"ValueScopeName",{enumerable:!0,get:function(){return Np.ValueScopeName}});Object.defineProperty(ne,"varKinds",{enumerable:!0,get:function(){return Np.varKinds}});ne.operators={GT:new ue._Code(">"),GTE:new ue._Code(">="),LT:new ue._Code("<"),LTE:new ue._Code("<="),EQ:new ue._Code("==="),NEQ:new ue._Code("!=="),NOT:new ue._Code("!"),OR:new ue._Code("||"),AND:new ue._Code("&&"),ADD:new ue._Code("+")};var hn=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},Nh=class extends hn{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?_r.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=Li(this.rhs,t,r)),this}get names(){return this.rhs instanceof ue._CodeOrName?this.rhs.names:{}}},Ip=class extends hn{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 ue.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=Li(this.rhs,t,r),this}get names(){let t=this.lhs instanceof ue.Name?{}:{...this.lhs.names};return qp(t,this.rhs)}},Mh=class extends Ip{constructor(t,r,n,o){super(t,n,o),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},jh=class extends hn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},Dh=class extends hn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},Lh=class extends hn{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},Uh=class extends hn{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=Li(this.code,t,r),this}get names(){return this.code instanceof ue._CodeOrName?this.code.names:{}}},$a=class extends hn{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)||(ZK(t,i.names),n.splice(o,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>qo(t,r.names),{})}},yn=class extends $a{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},Fh=class extends $a{},Di=class extends yn{};Di.kind="else";var Io=class e extends yn{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 Di(n):n}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(b_(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=Li(this.condition,t,r),this}get names(){let t=super.names;return qp(t,this.condition),this.else&&qo(t,this.else.names),t}};Io.kind="if";var Co=class extends yn{};Co.kind="for";var zh=class extends Co{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=Li(this.iteration,t,r),this}get names(){return qo(super.names,this.iteration.names)}},Vh=class extends Co{constructor(t,r,n,o){super(),this.varKind=t,this.name=r,this.from=n,this.to=o}render(t){let r=t.es5?_r.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=qp(super.names,this.from);return qp(t,this.to)}},Cp=class extends Co{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=Li(this.iterable,t,r),this}get names(){return qo(super.names,this.iterable.names)}},Aa=class extends yn{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)}};Aa.kind="func";var Ta=class extends $a{render(t){return"return "+super.render(t)}};Ta.kind="return";var Bh=class extends yn{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&&qo(t,this.catch.names),this.finally&&qo(t,this.finally.names),t}},Ra=class extends yn{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};Ra.kind="catch";var Oa=class extends yn{render(t){return"finally"+super.render(t)}};Oa.kind="finally";var Hh=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
|
|
15
|
+
`:""},this._extScope=t,this._scope=new _r.Scope({parent:t}),this._nodes=[new Fh]}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 Nh(t,i,n)),i}const(t,r,n){return this._def(_r.varKinds.const,t,r,n)}let(t,r,n){return this._def(_r.varKinds.let,t,r,n)}var(t,r,n){return this._def(_r.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new Ip(t,r,n))}add(t,r){return this._leafNode(new Mh(t,ne.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==ue.nil&&this._leafNode(new Uh(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,ue.addCodeArg)(r,o));return r.push("}"),new ue._Code(r)}if(t,r,n){if(this._blockNode(new Io(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 Io(t))}else(){return this._elseNode(new Di)}endIf(){return this._endBlockNode(Io,Di)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new zh(t),r)}forRange(t,r,n,o,i=this.opts.es5?_r.varKinds.var:_r.varKinds.let){let s=this._scope.toName(t);return this._for(new Vh(i,s,r,n),()=>o(s))}forOf(t,r,n,o=_r.varKinds.const){let i=this._scope.toName(t);if(this.opts.es5){let s=r instanceof ue.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,ue._)`${s}.length`,a=>{this.var(i,(0,ue._)`${s}[${a}]`),n(i)})}return this._for(new Cp("of",o,i,r),()=>n(i))}forIn(t,r,n,o=this.opts.es5?_r.varKinds.var:_r.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,ue._)`Object.keys(${r})`,n);let i=this._scope.toName(t);return this._for(new Cp("in",o,i,r),()=>n(i))}endFor(){return this._endBlockNode(Co)}label(t){return this._leafNode(new jh(t))}break(t){return this._leafNode(new Dh(t))}return(t){let r=new Ta;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Ta)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let o=new Bh;if(this._blockNode(o),this.code(t),r){let i=this.name("e");this._currNode=o.catch=new Ra(i),r(i)}return n&&(this._currNode=o.finally=new Oa,this.code(n)),this._endBlockNode(Ra,Oa)}throw(t){return this._leafNode(new Lh(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=ue.nil,n,o){return this._blockNode(new Aa(t,r,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(Aa)}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 Io))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=Hh;function qo(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function qp(e,t){return t instanceof ue._CodeOrName?qo(e,t.names):e}function Li(e,t,r){if(e instanceof ue.Name)return n(e);if(!o(e))return e;return new ue._Code(e._items.reduce((i,s)=>(s instanceof ue.Name&&(s=n(s)),s instanceof ue._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 ue._Code&&i._items.some(s=>s instanceof ue.Name&&t[s.str]===1&&r[s.str]!==void 0)}}function ZK(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}function b_(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,ue._)`!${Kh(e)}`}ne.not=b_;var e4=v_(ne.operators.AND);function t4(...e){return e.reduce(e4)}ne.and=t4;var r4=v_(ne.operators.OR);function n4(...e){return e.reduce(r4)}ne.or=n4;function v_(e){return(t,r)=>t===ue.nil?r:r===ue.nil?t:(0,ue._)`${Kh(t)} ${e} ${Kh(r)}`}function Kh(e){return e instanceof ue.Name?e:(0,ue._)`(${e})`}});var ge=x(ce=>{"use strict";Object.defineProperty(ce,"__esModule",{value:!0});ce.checkStrictMode=ce.getErrorPath=ce.Type=ce.useFunc=ce.setEvaluated=ce.evaluatedPropsToName=ce.mergeEvaluated=ce.eachItem=ce.unescapeJsonPointer=ce.escapeJsonPointer=ce.escapeFragment=ce.unescapeFragment=ce.schemaRefOrVal=ce.schemaHasRulesButRef=ce.schemaHasRules=ce.checkUnknownRules=ce.alwaysValidSchema=ce.toHash=void 0;var ke=Z(),o4=Ea();function i4(e){let t={};for(let r of e)t[r]=!0;return t}ce.toHash=i4;function s4(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(w_(e,t),!__(t,e.self.RULES.all))}ce.alwaysValidSchema=s4;function w_(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]||$_(e,`unknown keyword: "${i}"`)}ce.checkUnknownRules=w_;function __(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}ce.schemaHasRules=__;function a4(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}ce.schemaHasRulesButRef=a4;function c4({topSchemaRef:e,schemaPath:t},r,n,o){if(!o){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,ke._)`${r}`}return(0,ke._)`${e}${t}${(0,ke.getProperty)(n)}`}ce.schemaRefOrVal=c4;function p4(e){return P_(decodeURIComponent(e))}ce.unescapeFragment=p4;function l4(e){return encodeURIComponent(Wh(e))}ce.escapeFragment=l4;function Wh(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}ce.escapeJsonPointer=Wh;function P_(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}ce.unescapeJsonPointer=P_;function u4(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}ce.eachItem=u4;function x_({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(o,i,s,a)=>{let c=s===void 0?i:s instanceof ke.Name?(i instanceof ke.Name?e(o,i,s):t(o,i,s),s):i instanceof ke.Name?(t(o,s,i),i):r(i,s);return a===ke.Name&&!(c instanceof ke.Name)?n(o,c):c}}ce.mergeEvaluated={props:x_({mergeNames:(e,t,r)=>e.if((0,ke._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,ke._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,ke._)`${r} || {}`).code((0,ke._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,ke._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,ke._)`${r} || {}`),Yh(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:E_}),items:x_({mergeNames:(e,t,r)=>e.if((0,ke._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,ke._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,ke._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,ke._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function E_(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,ke._)`{}`);return t!==void 0&&Yh(e,r,t),r}ce.evaluatedPropsToName=E_;function Yh(e,t,r){Object.keys(r).forEach(n=>e.assign((0,ke._)`${t}${(0,ke.getProperty)(n)}`,!0))}ce.setEvaluated=Yh;var S_={};function d4(e,t){return e.scopeValue("func",{ref:t,code:S_[t.code]||(S_[t.code]=new o4._Code(t.code))})}ce.useFunc=d4;var Gh;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Gh||(ce.Type=Gh={}));function f4(e,t,r){if(e instanceof ke.Name){let n=t===Gh.Num;return r?n?(0,ke._)`"[" + ${e} + "]"`:(0,ke._)`"['" + ${e} + "']"`:n?(0,ke._)`"/" + ${e}`:(0,ke._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,ke.getProperty)(e).toString():"/"+Wh(e)}ce.getErrorPath=f4;function $_(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}ce.checkStrictMode=$_});var gn=x(Qh=>{"use strict";Object.defineProperty(Qh,"__esModule",{value:!0});var vt=Z(),m4={data:new vt.Name("data"),valCxt:new vt.Name("valCxt"),instancePath:new vt.Name("instancePath"),parentData:new vt.Name("parentData"),parentDataProperty:new vt.Name("parentDataProperty"),rootData:new vt.Name("rootData"),dynamicAnchors:new vt.Name("dynamicAnchors"),vErrors:new vt.Name("vErrors"),errors:new vt.Name("errors"),this:new vt.Name("this"),self:new vt.Name("self"),scope:new vt.Name("scope"),json:new vt.Name("json"),jsonPos:new vt.Name("jsonPos"),jsonLen:new vt.Name("jsonLen"),jsonPart:new vt.Name("jsonPart")};Qh.default=m4});var ka=x(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.extendErrors=xt.resetErrorsCount=xt.reportExtraError=xt.reportError=xt.keyword$DataError=xt.keywordError=void 0;var be=Z(),Mp=ge(),At=gn();xt.keywordError={message:({keyword:e})=>(0,be.str)`must pass "${e}" keyword validation`};xt.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 h4(e,t=xt.keywordError,r,n){let{it:o}=e,{gen:i,compositeRule:s,allErrors:a}=o,c=R_(e,t,r);n??(s||a)?A_(i,c):T_(o,(0,be._)`[${c}]`)}xt.reportError=h4;function y4(e,t=xt.keywordError,r){let{it:n}=e,{gen:o,compositeRule:i,allErrors:s}=n,a=R_(e,t,r);A_(o,a),i||s||T_(n,At.default.vErrors)}xt.reportExtraError=y4;function g4(e,t){e.assign(At.default.errors,t),e.if((0,be._)`${At.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,be._)`${At.default.vErrors}.length`,t),()=>e.assign(At.default.vErrors,null)))}xt.resetErrorsCount=g4;function b4({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,At.default.errors,a=>{e.const(s,(0,be._)`${At.default.vErrors}[${a}]`),e.if((0,be._)`${s}.instancePath === undefined`,()=>e.assign((0,be._)`${s}.instancePath`,(0,be.strConcat)(At.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))})}xt.extendErrors=b4;function A_(e,t){let r=e.const("err",t);e.if((0,be._)`${At.default.vErrors} === null`,()=>e.assign(At.default.vErrors,(0,be._)`[${r}]`),(0,be._)`${At.default.vErrors}.push(${r})`),e.code((0,be._)`${At.default.errors}++`)}function T_(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 No={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 R_(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,be._)`{}`:v4(e,t,r)}function v4(e,t,r={}){let{gen:n,it:o}=e,i=[x4(o,r),S4(e,r)];return w4(e,t,i),n.object(...i)}function x4({errorPath:e},{instancePath:t}){let r=t?(0,be.str)`${e}${(0,Mp.getErrorPath)(t,Mp.Type.Str)}`:e;return[At.default.instancePath,(0,be.strConcat)(At.default.instancePath,r)]}function S4({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,Mp.getErrorPath)(r,Mp.Type.Str)}`),[No.schemaPath,o]}function w4(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([No.keyword,o],[No.params,typeof t=="function"?t(e):t||(0,be._)`{}`]),c.messages&&n.push([No.message,typeof r=="function"?r(e):r]),c.verbose&&n.push([No.schema,s],[No.parentSchema,(0,be._)`${l}${u}`],[At.default.data,i]),p&&n.push([No.propertyName,p])}});var k_=x(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.boolOrEmptySchema=Ui.topBoolOrEmptySchema=void 0;var _4=ka(),P4=Z(),E4=gn(),$4={message:"boolean schema is false"};function A4(e){let{gen:t,schema:r,validateName:n}=e;r===!1?O_(e,!1):typeof r=="object"&&r.$async===!0?t.return(E4.default.data):(t.assign((0,P4._)`${n}.errors`,null),t.return(!0))}Ui.topBoolOrEmptySchema=A4;function T4(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),O_(e)):r.var(t,!0)}Ui.boolOrEmptySchema=T4;function O_(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,_4.reportError)(o,$4,void 0,t)}});var Jh=x(Fi=>{"use strict";Object.defineProperty(Fi,"__esModule",{value:!0});Fi.getRules=Fi.isJSONType=void 0;var R4=["string","number","integer","boolean","null","object","array"],O4=new Set(R4);function k4(e){return typeof e=="string"&&O4.has(e)}Fi.isJSONType=k4;function I4(){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:{}}}Fi.getRules=I4});var Xh=x(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.shouldUseRule=Ln.shouldUseGroup=Ln.schemaHasRulesForType=void 0;function C4({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&I_(e,n)}Ln.schemaHasRulesForType=C4;function I_(e,t){return t.rules.some(r=>C_(e,r))}Ln.shouldUseGroup=I_;function C_(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=C_});var Ia=x(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});St.reportTypeError=St.checkDataTypes=St.checkDataType=St.coerceAndCheckDataType=St.getJSONTypes=St.getSchemaTypes=St.DataType=void 0;var q4=Jh(),N4=Xh(),M4=ka(),J=Z(),q_=ge(),zi;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(zi||(St.DataType=zi={}));function j4(e){let t=N_(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}St.getSchemaTypes=j4;function N_(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(q4.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}St.getJSONTypes=N_;function D4(e,t){let{gen:r,data:n,opts:o}=e,i=L4(t,o.coerceTypes),s=t.length>0&&!(i.length===0&&t.length===1&&(0,N4.schemaHasRulesForType)(e,t[0]));if(s){let a=ey(t,n,o.strictNumbers,zi.Wrong);r.if(a,()=>{i.length?U4(e,t,i):ty(e)})}return s}St.coerceAndCheckDataType=D4;var M_=new Set(["string","number","integer","boolean","null"]);function L4(e,t){return t?e.filter(r=>M_.has(r)||t==="array"&&r==="array"):[]}function U4(e,t,r){let{gen:n,data:o,opts:i}=e,s=n.let("dataType",(0,J._)`typeof ${o}`),a=n.let("coerced",(0,J._)`undefined`);i.coerceTypes==="array"&&n.if((0,J._)`${s} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,()=>n.assign(o,(0,J._)`${o}[0]`).assign(s,(0,J._)`typeof ${o}`).if(ey(t,o,i.strictNumbers),()=>n.assign(a,o))),n.if((0,J._)`${a} !== undefined`);for(let p of r)(M_.has(p)||p==="array"&&i.coerceTypes==="array")&&c(p);n.else(),ty(e),n.endIf(),n.if((0,J._)`${a} !== undefined`,()=>{n.assign(o,a),F4(e,a)});function c(p){switch(p){case"string":n.elseIf((0,J._)`${s} == "number" || ${s} == "boolean"`).assign(a,(0,J._)`"" + ${o}`).elseIf((0,J._)`${o} === null`).assign(a,(0,J._)`""`);return;case"number":n.elseIf((0,J._)`${s} == "boolean" || ${o} === null
|
|
16
16
|
|| (${s} == "string" && ${o} && ${o} == +${o})`).assign(a,(0,J._)`+${o}`);return;case"integer":n.elseIf((0,J._)`${s} === "boolean" || ${o} === null
|
|
17
17
|
|| (${s} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(a,(0,J._)`+${o}`);return;case"boolean":n.elseIf((0,J._)`${o} === "false" || ${o} === 0 || ${o} === null`).assign(a,!1).elseIf((0,J._)`${o} === "true" || ${o} === 1`).assign(a,!0);return;case"null":n.elseIf((0,J._)`${o} === "" || ${o} === 0 || ${o} === false`),n.assign(a,null);return;case"array":n.elseIf((0,J._)`${s} === "string" || ${s} === "number"
|
|
18
|
-
|| ${s} === "boolean" || ${o} === null`).assign(a,(0,J._)`[${o}]`)}}}function U4({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,J._)`${t} !== undefined`,()=>e.assign((0,J._)`${t}[${r}]`,n))}function Zh(e,t,r,n=zi.Correct){let o=n===zi.Correct?J.operators.EQ:J.operators.NEQ,i;switch(e){case"null":return(0,J._)`${t} ${o} null`;case"array":i=(0,J._)`Array.isArray(${t})`;break;case"object":i=(0,J._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":i=s((0,J._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":i=s();break;default:return(0,J._)`typeof ${t} ${o} ${e}`}return n===zi.Correct?i:(0,J.not)(i);function s(a=J.nil){return(0,J.and)((0,J._)`typeof ${t} == "number"`,a,r?(0,J._)`isFinite(${t})`:J.nil)}}St.checkDataType=Zh;function ey(e,t,r,n){if(e.length===1)return Zh(e[0],t,r,n);let o,i=(0,q_.toHash)(e);if(i.array&&i.object){let s=(0,J._)`typeof ${t} != "object"`;o=i.null?s:(0,J._)`!${t} || ${s}`,delete i.null,delete i.array,delete i.object}else o=J.nil;i.number&&delete i.integer;for(let s in i)o=(0,J.and)(o,Zh(s,t,r,n));return o}St.checkDataTypes=ey;var F4={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,J._)`{type: ${e}}`:(0,J._)`{type: ${t}}`};function ty(e){let t=z4(e);(0,N4.reportError)(t,F4)}St.reportTypeError=ty;function z4(e){let{gen:t,data:r,schema:n}=e,o=(0,q_.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}});var D_=x(jp=>{"use strict";Object.defineProperty(jp,"__esModule",{value:!0});jp.assignDefaults=void 0;var Vi=Z(),V4=ge();function B4(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let o in r)j_(e,o,r[o].default);else t==="array"&&Array.isArray(n)&&n.forEach((o,i)=>j_(e,i,o.default))}jp.assignDefaults=B4;function j_(e,t,r){let{gen:n,compositeRule:o,data:i,opts:s}=e;if(r===void 0)return;let a=(0,Vi._)`${i}${(0,Vi.getProperty)(t)}`;if(o){(0,V4.checkStrictMode)(e,`default is ignored for: ${a}`);return}let c=(0,Vi._)`${a} === undefined`;s.useDefaults==="empty"&&(c=(0,Vi._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,Vi._)`${a} = ${(0,Vi.stringify)(r)}`)}});var cr=x(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.validateUnion=Te.validateArray=Te.usePattern=Te.callValidateCode=Te.schemaProperties=Te.allSchemaProperties=Te.noPropertyInData=Te.propertyInData=Te.isOwnProperty=Te.hasPropFunc=Te.reportMissingProp=Te.checkMissingProp=Te.checkReportMissingProp=void 0;var qe=Z(),ry=ge(),Un=gn(),H4=ge();function K4(e,t){let{gen:r,data:n,it:o}=e;r.if(oy(r,n,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:(0,qe._)`${t}`},!0),e.error()})}Te.checkReportMissingProp=K4;function G4({gen:e,data:t,it:{opts:r}},n,o){return(0,qe.or)(...n.map(i=>(0,qe.and)(oy(e,t,i,r.ownProperties),(0,qe._)`${o} = ${i}`)))}Te.checkMissingProp=G4;function W4(e,t){e.setParams({missingProperty:t},!0),e.error()}Te.reportMissingProp=W4;function L_(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,qe._)`Object.prototype.hasOwnProperty`})}Te.hasPropFunc=L_;function ny(e,t,r){return(0,qe._)`${L_(e)}.call(${t}, ${r})`}Te.isOwnProperty=ny;function Y4(e,t,r,n){let o=(0,qe._)`${t}${(0,qe.getProperty)(r)} !== undefined`;return n?(0,qe._)`${o} && ${ny(e,t,r)}`:o}Te.propertyInData=Y4;function oy(e,t,r,n){let o=(0,qe._)`${t}${(0,qe.getProperty)(r)} === undefined`;return n?(0,qe.or)(o,(0,qe.not)(ny(e,t,r))):o}Te.noPropertyInData=oy;function U_(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Te.allSchemaProperties=U_;function Q4(e,t){return U_(t).filter(r=>!(0,ry.alwaysValidSchema)(e,t[r]))}Te.schemaProperties=Q4;function J4({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:o,errorPath:i},it:s},a,c,p){let l=p?(0,qe._)`${e}, ${t}, ${n}${o}`:t,u=[[Un.default.instancePath,(0,qe.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 f=(0,qe._)`${l}, ${r.object(...u)}`;return c!==qe.nil?(0,qe._)`${a}.call(${c}, ${f})`:(0,qe._)`${a}(${f})`}Te.callValidateCode=J4;var X4=(0,qe._)`new RegExp`;function Z4({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,qe._)`${o.code==="new RegExp"?X4:(0,H4.useFunc)(e,o)}(${r}, ${n})`})}Te.usePattern=Z4;function eG(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,qe._)`${r}.length`);t.forRange("i",0,c,p=>{e.subschema({keyword:n,dataProp:p,dataPropType:ry.Type.Num},i),t.if((0,qe.not)(i),a)})}}Te.validateArray=eG;function tG(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,ry.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,qe._)`${s} || ${a}`),e.mergeValidEvaluated(l,a)||t.if((0,qe.not)(s))})),e.result(s,()=>e.reset(),()=>e.error(!0))}Te.validateUnion=tG});var V_=x(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.validateKeywordUsage=Kr.validSchemaType=Kr.funcKeywordCode=Kr.macroKeywordCode=void 0;var Tt=Z(),Mo=gn(),rG=cr(),nG=ka();function oG(e,t){let{gen:r,keyword:n,schema:o,parentSchema:i,it:s}=e,a=t.macro.call(s.self,o,i,s),c=z_(r,n,a);s.opts.validateSchema!==!1&&s.self.validateSchema(a,!0);let p=r.name("valid");e.subschema({schema:a,schemaPath:Tt.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},p),e.pass(p,()=>e.error(!0))}Kr.macroKeywordCode=oG;function iG(e,t){var r;let{gen:n,keyword:o,schema:i,parentSchema:s,$data:a,it:c}=e;aG(c,t);let p=!a&&t.compile?t.compile.call(c.self,i,s,c):t.validate,l=z_(n,o,p),u=n.let("valid");e.block$data(u,f),e.ok((r=t.valid)!==null&&r!==void 0?r:u);function f(){if(t.errors===!1)h(),t.modifying&&F_(e),y(()=>e.error());else{let g=t.async?d():m();t.modifying&&F_(e),y(()=>sG(e,g))}}function d(){let g=n.let("ruleErrs",null);return n.try(()=>h((0,Tt._)`await `),b=>n.assign(u,!1).if((0,Tt._)`${b} instanceof ${c.ValidationError}`,()=>n.assign(g,(0,Tt._)`${b}.errors`),()=>n.throw(b))),g}function m(){let g=(0,Tt._)`${l}.errors`;return n.assign(g,null),h(Tt.nil),g}function h(g=t.async?(0,Tt._)`await `:Tt.nil){let b=c.opts.passContext?Mo.default.this:Mo.default.self,v=!("compile"in t&&!a||t.schema===!1);n.assign(u,(0,Tt._)`${g}${(0,rG.callValidateCode)(e,l,b,v)}`,t.modifying)}function y(g){var b;n.if((0,Tt.not)((b=t.valid)!==null&&b!==void 0?b:u),g)}}Kr.funcKeywordCode=iG;function F_(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,Tt._)`${n.parentData}[${n.parentDataProperty}]`))}function sG(e,t){let{gen:r}=e;r.if((0,Tt._)`Array.isArray(${t})`,()=>{r.assign(Mo.default.vErrors,(0,Tt._)`${Mo.default.vErrors} === null ? ${t} : ${Mo.default.vErrors}.concat(${t})`).assign(Mo.default.errors,(0,Tt._)`${Mo.default.vErrors}.length`),(0,nG.extendErrors)(e)},()=>e.error())}function aG({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function z_(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,Tt.stringify)(r)})}function cG(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")}Kr.validSchemaType=cG;function pG({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)}}Kr.validateKeywordUsage=pG});var H_=x(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.extendSubschemaMode=Fn.extendSubschemaData=Fn.getSubschema=void 0;var Gr=Z(),B_=ge();function lG(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,Gr._)`${e.schemaPath}${(0,Gr.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:(0,Gr._)`${e.schemaPath}${(0,Gr.getProperty)(t)}${(0,Gr.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,B_.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')}Fn.getSubschema=lG;function uG(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,f=a.let("data",(0,Gr._)`${t.data}${(0,Gr.getProperty)(r)}`,!0);c(f),e.errorPath=(0,Gr.str)`${p}${(0,B_.getErrorPath)(r,n,u.jsPropertySyntax)}`,e.parentDataProperty=(0,Gr._)`${r}`,e.dataPathArr=[...l,e.parentDataProperty]}if(o!==void 0){let p=o instanceof Gr.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]}}Fn.extendSubschemaData=uG;function dG(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}Fn.extendSubschemaMode=dG});var Ca=x(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.getSchemaRefs=Ft.resolveUrl=Ft.normalizeId=Ft._getFullPath=Ft.getFullPath=Ft.inlineRef=void 0;var fG=ge(),mG=Js(),hG=Of(),yG=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function gG(e,t=!0){return typeof e=="boolean"?!0:t===!0?!iy(e):t?K_(e)<=t:!1}Ft.inlineRef=gG;var bG=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function iy(e){for(let t in e){if(bG.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(iy)||typeof r=="object"&&iy(r))return!0}return!1}function K_(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!yG.has(r)&&(typeof e[r]=="object"&&(0,fG.eachItem)(e[r],n=>t+=K_(n)),t===1/0))return 1/0}return t}function G_(e,t="",r){r!==!1&&(t=Bi(t));let n=e.parse(t);return W_(e,n)}Ft.getFullPath=G_;function W_(e,t){return e.serialize(t).split("#")[0]+"#"}Ft._getFullPath=W_;var vG=/#\/?$/;function Bi(e){return e?e.replace(vG,""):""}Ft.normalizeId=Bi;function xG(e,t,r){return r=Bi(r),e.resolve(t,r)}Ft.resolveUrl=xG;var SG=/^[a-z_][-a-z0-9._]*$/i;function wG(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,o=Bi(e[r]||t),i={"":o},s=G_(n,o,!1),a={},c=new Set;return hG(e,{allKeys:!0},(u,f,d,m)=>{if(m===void 0)return;let h=s+f,y=i[m];typeof u[r]=="string"&&(y=g.call(this,u[r])),b.call(this,u.$anchor),b.call(this,u.$dynamicAnchor),i[f]=y;function g(v){let w=this.opts.uriResolver.resolve;if(v=Bi(y?w(y,v):v),c.has(v))throw l(v);c.add(v);let S=this.refs[v];return typeof S=="string"&&(S=this.refs[S]),typeof S=="object"?p(u,S.schema,v):v!==Bi(h)&&(v[0]==="#"?(p(u,a[v],v),a[v]=u):this.refs[v]=h),v}function b(v){if(typeof v=="string"){if(!SG.test(v))throw new Error(`invalid anchor "${v}"`);g.call(this,`#${v}`)}}}),a;function p(u,f,d){if(f!==void 0&&!mG(u,f))throw l(d)}function l(u){return new Error(`reference "${u}" resolves to more than one schema`)}}Ft.getSchemaRefs=wG});var Ma=x(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.getData=zn.KeywordCxt=zn.validateFunctionCode=void 0;var Z_=k_(),Y_=Ia(),ay=Xh(),Dp=Ia(),_G=D_(),Na=V_(),sy=H_(),L=Z(),K=gn(),PG=Ca(),bn=ge(),qa=ka();function EG(e){if(rP(e)&&(nP(e),tP(e))){TG(e);return}eP(e,()=>(0,Z_.topBoolOrEmptySchema)(e))}zn.validateFunctionCode=EG;function eP({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},i){o.code.es5?e.func(t,(0,L._)`${K.default.data}, ${K.default.valCxt}`,n.$async,()=>{e.code((0,L._)`"use strict"; ${Q_(r,o)}`),AG(e,o),e.code(i)}):e.func(t,(0,L._)`${K.default.data}, ${$G(o)}`,n.$async,()=>e.code(Q_(r,o)).code(i))}function $G(e){return(0,L._)`{${K.default.instancePath}="", ${K.default.parentData}, ${K.default.parentDataProperty}, ${K.default.rootData}=${K.default.data}${e.dynamicRef?(0,L._)`, ${K.default.dynamicAnchors}={}`:L.nil}}={}`}function AG(e,t){e.if(K.default.valCxt,()=>{e.var(K.default.instancePath,(0,L._)`${K.default.valCxt}.${K.default.instancePath}`),e.var(K.default.parentData,(0,L._)`${K.default.valCxt}.${K.default.parentData}`),e.var(K.default.parentDataProperty,(0,L._)`${K.default.valCxt}.${K.default.parentDataProperty}`),e.var(K.default.rootData,(0,L._)`${K.default.valCxt}.${K.default.rootData}`),t.dynamicRef&&e.var(K.default.dynamicAnchors,(0,L._)`${K.default.valCxt}.${K.default.dynamicAnchors}`)},()=>{e.var(K.default.instancePath,(0,L._)`""`),e.var(K.default.parentData,(0,L._)`undefined`),e.var(K.default.parentDataProperty,(0,L._)`undefined`),e.var(K.default.rootData,K.default.data),t.dynamicRef&&e.var(K.default.dynamicAnchors,(0,L._)`{}`)})}function TG(e){let{schema:t,opts:r,gen:n}=e;eP(e,()=>{r.$comment&&t.$comment&&iP(e),CG(e),n.let(K.default.vErrors,null),n.let(K.default.errors,0),r.unevaluated&&RG(e),oP(e),MG(e)})}function RG(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,L._)`${r}.evaluated`),t.if((0,L._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,L._)`${e.evaluated}.props`,(0,L._)`undefined`)),t.if((0,L._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,L._)`${e.evaluated}.items`,(0,L._)`undefined`))}function Q_(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,L._)`/*# sourceURL=${r} */`:L.nil}function OG(e,t){if(rP(e)&&(nP(e),tP(e))){kG(e,t);return}(0,Z_.boolOrEmptySchema)(e,t)}function tP({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 rP(e){return typeof e.schema!="boolean"}function kG(e,t){let{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&iP(e),qG(e),NG(e);let i=n.const("_errs",K.default.errors);oP(e,i),n.var(t,(0,L._)`${i} === ${K.default.errors}`)}function nP(e){(0,bn.checkUnknownRules)(e),IG(e)}function oP(e,t){if(e.opts.jtd)return J_(e,[],!1,t);let r=(0,Y_.getSchemaTypes)(e.schema),n=(0,Y_.coerceAndCheckDataType)(e,r);J_(e,r,!n,t)}function IG(e){let{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,bn.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function CG(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,bn.checkStrictMode)(e,"default is ignored in the schema root")}function qG(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,PG.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function NG(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function iP({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){let i=r.$comment;if(o.$comment===!0)e.code((0,L._)`${K.default.self}.logger.log(${i})`);else if(typeof o.$comment=="function"){let s=(0,L.str)`${n}/$comment`,a=e.scopeValue("root",{ref:t.root});e.code((0,L._)`${K.default.self}.opts.$comment(${i}, ${s}, ${a}.schema)`)}}function MG(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:i}=e;r.$async?t.if((0,L._)`${K.default.errors} === 0`,()=>t.return(K.default.data),()=>t.throw((0,L._)`new ${o}(${K.default.vErrors})`)):(t.assign((0,L._)`${n}.errors`,K.default.vErrors),i.unevaluated&&jG(e),t.return((0,L._)`${K.default.errors} === 0`))}function jG({gen:e,evaluated:t,props:r,items:n}){r instanceof L.Name&&e.assign((0,L._)`${t}.props`,r),n instanceof L.Name&&e.assign((0,L._)`${t}.items`,n)}function J_(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,bn.schemaHasRulesButRef)(i,l))){o.block(()=>aP(e,"$ref",l.all.$ref.definition));return}c.jtd||DG(e,t),o.block(()=>{for(let f of l.rules)u(f);u(l.post)});function u(f){(0,ay.shouldUseGroup)(i,f)&&(f.type?(o.if((0,Dp.checkDataType)(f.type,s,c.strictNumbers)),X_(e,f),t.length===1&&t[0]===f.type&&r&&(o.else(),(0,Dp.reportTypeError)(e)),o.endIf()):X_(e,f),a||o.if((0,L._)`${K.default.errors} === ${n||0}`))}}function X_(e,t){let{gen:r,schema:n,opts:{useDefaults:o}}=e;o&&(0,_G.assignDefaults)(e,t.type),r.block(()=>{for(let i of t.rules)(0,ay.shouldUseRule)(n,i)&&aP(e,i.keyword,i.definition,t.type)})}function DG(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(LG(e,t),e.opts.allowUnionTypes||UG(e,t),FG(e,e.dataTypes))}function LG(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{sP(e.dataTypes,r)||cy(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),VG(e,t)}}function UG(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&cy(e,"use allowUnionTypes to allow union type keyword")}function FG(e,t){let r=e.self.RULES.all;for(let n in r){let o=r[n];if(typeof o=="object"&&(0,ay.shouldUseRule)(e.schema,o)){let{type:i}=o.definition;i.length&&!i.some(s=>zG(t,s))&&cy(e,`missing type "${i.join(",")}" for keyword "${n}"`)}}}function zG(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function sP(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function VG(e,t){let r=[];for(let n of e.dataTypes)sP(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function cy(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,bn.checkStrictMode)(e,t,e.opts.strictTypes)}var Lp=class{constructor(t,r,n){if((0,Na.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,bn.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",cP(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Na.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,L.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,L.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,L._)`${r} !== undefined && (${(0,L.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?qa.reportExtraError:qa.reportError)(this,this.def.error,r)}$dataError(){(0,qa.reportError)(this,this.def.$dataError||qa.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,qa.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=L.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=L.nil,r=L.nil){if(!this.$data)return;let{gen:n,schemaCode:o,schemaType:i,def:s}=this;n.if((0,L.or)((0,L._)`${o} === undefined`,r)),t!==L.nil&&n.assign(t,!0),(i.length||s.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==L.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:o,it:i}=this;return(0,L.or)(s(),a());function s(){if(n.length){if(!(r instanceof L.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,L._)`${(0,Dp.checkDataTypes)(c,r,i.opts.strictNumbers,Dp.DataType.Wrong)}`}return L.nil}function a(){if(o.validateSchema){let c=t.scopeValue("validate$data",{ref:o.validateSchema});return(0,L._)`!${c}(${r})`}return L.nil}}subschema(t,r){let n=(0,sy.getSubschema)(this.it,t);(0,sy.extendSubschemaData)(n,this.it,t),(0,sy.extendSubschemaMode)(n,t);let o={...this.it,...n,items:void 0,props:void 0};return OG(o,r),o}mergeEvaluated(t,r){let{it:n,gen:o}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=bn.mergeEvaluated.props(o,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=bn.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,L.Name)),!0}};zn.KeywordCxt=Lp;function aP(e,t,r,n){let o=new Lp(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,Na.funcKeywordCode)(o,r):"macro"in r?(0,Na.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,Na.funcKeywordCode)(o,r)}var BG=/^\/(?:[^~]|~0|~1)*$/,HG=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function cP(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,i;if(e==="")return K.default.rootData;if(e[0]==="/"){if(!BG.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,i=K.default.rootData}else{let p=HG.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,L._)`${i}${(0,L.getProperty)((0,bn.unescapeJsonPointer)(p))}`,s=(0,L._)`${s} && ${i}`);return s;function c(p,l){return`Cannot access ${p} ${l} levels up, current level is ${t}`}}zn.getData=cP});var Up=x(ly=>{"use strict";Object.defineProperty(ly,"__esModule",{value:!0});var py=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};ly.default=py});var ja=x(fy=>{"use strict";Object.defineProperty(fy,"__esModule",{value:!0});var uy=Ca(),dy=class extends Error{constructor(t,r,n,o){super(o||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,uy.resolveUrl)(t,r,n),this.missingSchema=(0,uy.normalizeId)((0,uy.getFullPath)(t,this.missingRef))}};fy.default=dy});var zp=x(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.resolveSchema=pr.getCompilingSchema=pr.resolveRef=pr.compileSchema=pr.SchemaEnv=void 0;var Pr=Z(),KG=Up(),jo=gn(),Er=Ca(),pP=ge(),GG=Ma(),Hi=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,Er.normalizeId)(n?.[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n?.$async,this.refs={}}};pr.SchemaEnv=Hi;function hy(e){let t=lP.call(this,e);if(t)return t;let r=(0,Er.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:i}=this.opts,s=new Pr.CodeGen(this.scope,{es5:n,lines:o,ownProperties:i}),a;e.$async&&(a=s.scopeValue("Error",{ref:KG.default,code:(0,Pr._)`require("ajv/dist/runtime/validation_error").default`}));let c=s.scopeName("validate");e.validateName=c;let p={gen:s,allErrors:this.opts.allErrors,data:jo.default.data,parentData:jo.default.parentData,parentDataProperty:jo.default.parentDataProperty,dataNames:[jo.default.data],dataPathArr:[Pr.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Pr.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Pr.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Pr._)`""`,opts:this.opts,self:this},l;try{this._compilations.add(e),(0,GG.validateFunctionCode)(p),s.optimize(this.opts.code.optimize);let u=s.toString();l=`${s.scopeRefs(jo.default.scope)}return ${u}`,this.opts.code.process&&(l=this.opts.code.process(l,e));let d=new Function(`${jo.default.self}`,`${jo.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:m,items:h}=p;d.evaluated={props:m instanceof Pr.Name?void 0:m,items:h instanceof Pr.Name?void 0:h,dynamicProps:m instanceof Pr.Name,dynamicItems:h instanceof Pr.Name},d.source&&(d.source.evaluated=(0,Pr.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)}}pr.compileSchema=hy;function WG(e,t,r){var n;r=(0,Er.resolveUrl)(this.opts.uriResolver,t,r);let o=e.refs[r];if(o)return o;let i=JG.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 Hi({schema:s,schemaId:a,root:e,baseId:t}))}if(i!==void 0)return e.refs[r]=YG.call(this,i)}pr.resolveRef=WG;function YG(e){return(0,Er.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:hy.call(this,e)}function lP(e){for(let t of this._compilations)if(QG(t,e))return t}pr.getCompilingSchema=lP;function QG(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function JG(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Fp.call(this,e,t)}function Fp(e,t){let r=this.opts.uriResolver.parse(t),n=(0,Er._getFullPath)(this.opts.uriResolver,r),o=(0,Er.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return my.call(this,r,e);let i=(0,Er.normalizeId)(n),s=this.refs[i]||this.schemas[i];if(typeof s=="string"){let a=Fp.call(this,e,s);return typeof a?.schema!="object"?void 0:my.call(this,r,a)}if(typeof s?.schema=="object"){if(s.validate||hy.call(this,s),i===(0,Er.normalizeId)(t)){let{schema:a}=s,{schemaId:c}=this.opts,p=a[c];return p&&(o=(0,Er.resolveUrl)(this.opts.uriResolver,o,p)),new Hi({schema:a,schemaId:c,root:e,baseId:o})}return my.call(this,r,s)}}pr.resolveSchema=Fp;var XG=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function my(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,pP.unescapeFragment)(a)];if(c===void 0)return;r=c;let p=typeof r=="object"&&r[this.opts.schemaId];!XG.has(a)&&p&&(t=(0,Er.resolveUrl)(this.opts.uriResolver,t,p))}let i;if(typeof r!="boolean"&&r.$ref&&!(0,pP.schemaHasRulesButRef)(r,this.RULES)){let a=(0,Er.resolveUrl)(this.opts.uriResolver,t,r.$ref);i=Fp.call(this,n,a)}let{schemaId:s}=this.opts;if(i=i||new Hi({schema:r,schemaId:s,root:n,baseId:t}),i.schema!==i.root.schema)return i}});var uP=x((Jte,ZG)=>{ZG.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 fP=x(yy=>{"use strict";Object.defineProperty(yy,"__esModule",{value:!0});var dP=Zf();dP.code='require("ajv/dist/runtime/uri").default';yy.default=dP});var SP=x(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.CodeGen=at.Name=at.nil=at.stringify=at.str=at._=at.KeywordCxt=void 0;var e5=Ma();Object.defineProperty(at,"KeywordCxt",{enumerable:!0,get:function(){return e5.KeywordCxt}});var Ki=Z();Object.defineProperty(at,"_",{enumerable:!0,get:function(){return Ki._}});Object.defineProperty(at,"str",{enumerable:!0,get:function(){return Ki.str}});Object.defineProperty(at,"stringify",{enumerable:!0,get:function(){return Ki.stringify}});Object.defineProperty(at,"nil",{enumerable:!0,get:function(){return Ki.nil}});Object.defineProperty(at,"Name",{enumerable:!0,get:function(){return Ki.Name}});Object.defineProperty(at,"CodeGen",{enumerable:!0,get:function(){return Ki.CodeGen}});var t5=Up(),bP=ja(),r5=Jh(),Da=zp(),n5=Z(),La=Ca(),Vp=Ia(),by=ge(),mP=uP(),o5=fP(),vP=(e,t)=>new RegExp(e,t);vP.code="new RegExp";var i5=["removeAdditional","useDefaults","coerceTypes"],s5=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),a5={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."},c5={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},hP=200;function p5(e){var t,r,n,o,i,s,a,c,p,l,u,f,d,m,h,y,g,b,v,w,S,P,R,A,E;let _=e.strict,ee=(t=e.code)===null||t===void 0?void 0:t.optimize,z=ee===!0||ee===void 0?1:ee||0,pe=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:vP,T=(o=e.uriResolver)!==null&&o!==void 0?o:o5.default;return{strictSchema:(s=(i=e.strictSchema)!==null&&i!==void 0?i:_)!==null&&s!==void 0?s:!0,strictNumbers:(c=(a=e.strictNumbers)!==null&&a!==void 0?a:_)!==null&&c!==void 0?c:!0,strictTypes:(l=(p=e.strictTypes)!==null&&p!==void 0?p:_)!==null&&l!==void 0?l:"log",strictTuples:(f=(u=e.strictTuples)!==null&&u!==void 0?u:_)!==null&&f!==void 0?f:"log",strictRequired:(m=(d=e.strictRequired)!==null&&d!==void 0?d:_)!==null&&m!==void 0?m:!1,code:e.code?{...e.code,optimize:z,regExp:pe}:{optimize:z,regExp:pe},loopRequired:(h=e.loopRequired)!==null&&h!==void 0?h:hP,loopEnum:(y=e.loopEnum)!==null&&y!==void 0?y:hP,meta:(g=e.meta)!==null&&g!==void 0?g:!0,messages:(b=e.messages)!==null&&b!==void 0?b:!0,inlineRefs:(v=e.inlineRefs)!==null&&v!==void 0?v:!0,schemaId:(w=e.schemaId)!==null&&w!==void 0?w:"$id",addUsedSchema:(S=e.addUsedSchema)!==null&&S!==void 0?S:!0,validateSchema:(P=e.validateSchema)!==null&&P!==void 0?P:!0,validateFormats:(R=e.validateFormats)!==null&&R!==void 0?R:!0,unicodeRegExp:(A=e.unicodeRegExp)!==null&&A!==void 0?A:!0,int32range:(E=e.int32range)!==null&&E!==void 0?E:!0,uriResolver:T}}var Ua=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,...p5(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new n5.ValueScope({scope:{},prefixes:s5,es5:r,lines:n}),this.logger=h5(t.logger);let o=t.validateFormats;t.validateFormats=!1,this.RULES=(0,r5.getRules)(),yP.call(this,a5,t,"NOT SUPPORTED"),yP.call(this,c5,t,"DEPRECATED","warn"),this._metaOpts=f5.call(this),t.formats&&u5.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&d5.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),l5.call(this),t.validateFormats=o}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,o=mP;n==="id"&&(o={...mP},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 f=this._addSchema(l,u);return f.validate||s.call(this,f)}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 bP.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,La.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=gP.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,o=new Da.SchemaEnv({schema:{},schemaId:n});if(r=Da.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=gP.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,La.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(g5.call(this,n,r),!r)return(0,by.eachItem)(n,i=>gy.call(this,i)),this;v5.call(this,r);let o={...r,type:(0,Vp.getJSONTypes)(r.type),schemaType:(0,Vp.getJSONTypes)(r.schemaType)};return(0,by.eachItem)(n,o.type.length===0?i=>gy.call(this,i,o):i=>o.type.forEach(s=>gy.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]=xP(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,La.normalizeId)(s||n);let p=La.getSchemaRefs.call(this,t,n);return c=new Da.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):Da.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{Da.compileSchema.call(this,t)}finally{this.opts=r}}};Ua.ValidationError=t5.default;Ua.MissingRefError=bP.default;at.default=Ua;function yP(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 gP(e){return e=(0,La.normalizeId)(e),this.schemas[e]||this.refs[e]}function l5(){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 u5(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function d5(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 f5(){let e={...this.opts};for(let t of i5)delete e[t];return e}var m5={log(){},warn(){},error(){}};function h5(e){if(e===!1)return m5;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 y5=/^[a-z_$][a-z0-9_$:-]*$/i;function g5(e,t){let{RULES:r}=this;if((0,by.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!y5.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 gy(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,Vp.getJSONTypes)(t.type),schemaType:(0,Vp.getJSONTypes)(t.schemaType)}};t.before?b5.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 b5(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 v5(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=xP(t)),e.validateSchema=this.compile(t,!0))}var x5={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function xP(e){return{anyOf:[e,x5]}}});var wP=x(vy=>{"use strict";Object.defineProperty(vy,"__esModule",{value:!0});var S5={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};vy.default=S5});var $P=x(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.callRef=Do.getValidate=void 0;var w5=ja(),_P=cr(),zt=Z(),Gi=gn(),PP=zp(),Bp=ge(),_5={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=PP.resolveRef.call(c,p,o,r);if(l===void 0)throw new w5.default(n.opts.uriResolver,o,r);if(l instanceof PP.SchemaEnv)return f(l);return d(l);function u(){if(i===p)return Hp(e,s,i,i.$async);let m=t.scopeValue("root",{ref:p});return Hp(e,(0,zt._)`${m}.validate`,p,p.$async)}function f(m){let h=EP(e,m);Hp(e,h,m,m.$async)}function d(m){let h=t.scopeValue("schema",a.code.source===!0?{ref:m,code:(0,zt.stringify)(m)}:{ref:m}),y=t.name("valid"),g=e.subschema({schema:m,dataTypes:[],schemaPath:zt.nil,topSchemaRef:h,errSchemaPath:r},y);e.mergeEvaluated(g),e.ok(y)}}};function EP(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,zt._)`${r.scopeValue("wrapper",{ref:t})}.validate`}Do.getValidate=EP;function Hp(e,t,r,n){let{gen:o,it:i}=e,{allErrors:s,schemaEnv:a,opts:c}=i,p=c.passContext?Gi.default.this:zt.nil;n?l():u();function l(){if(!a.$async)throw new Error("async schema referenced by sync schema");let m=o.let("valid");o.try(()=>{o.code((0,zt._)`await ${(0,_P.callValidateCode)(e,t,p)}`),d(t),s||o.assign(m,!0)},h=>{o.if((0,zt._)`!(${h} instanceof ${i.ValidationError})`,()=>o.throw(h)),f(h),s||o.assign(m,!1)}),e.ok(m)}function u(){e.result((0,_P.callValidateCode)(e,t,p),()=>d(t),()=>f(t))}function f(m){let h=(0,zt._)`${m}.errors`;o.assign(Gi.default.vErrors,(0,zt._)`${Gi.default.vErrors} === null ? ${h} : ${Gi.default.vErrors}.concat(${h})`),o.assign(Gi.default.errors,(0,zt._)`${Gi.default.vErrors}.length`)}function d(m){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=Bp.mergeEvaluated.props(o,y.props,i.props));else{let g=o.var("props",(0,zt._)`${m}.evaluated.props`);i.props=Bp.mergeEvaluated.props(o,g,i.props,zt.Name)}if(i.items!==!0)if(y&&!y.dynamicItems)y.items!==void 0&&(i.items=Bp.mergeEvaluated.items(o,y.items,i.items));else{let g=o.var("items",(0,zt._)`${m}.evaluated.items`);i.items=Bp.mergeEvaluated.items(o,g,i.items,zt.Name)}}}Do.callRef=Hp;Do.default=_5});var AP=x(xy=>{"use strict";Object.defineProperty(xy,"__esModule",{value:!0});var P5=wP(),E5=$P(),$5=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",P5.default,E5.default];xy.default=$5});var TP=x(Sy=>{"use strict";Object.defineProperty(Sy,"__esModule",{value:!0});var Kp=Z(),Vn=Kp.operators,Gp={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}},A5={message:({keyword:e,schemaCode:t})=>(0,Kp.str)`must be ${Gp[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Kp._)`{comparison: ${Gp[e].okStr}, limit: ${t}}`},T5={keyword:Object.keys(Gp),type:"number",schemaType:"number",$data:!0,error:A5,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Kp._)`${r} ${Gp[t].fail} ${n} || isNaN(${r})`)}};Sy.default=T5});var RP=x(wy=>{"use strict";Object.defineProperty(wy,"__esModule",{value:!0});var Fa=Z(),R5={message:({schemaCode:e})=>(0,Fa.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Fa._)`{multipleOf: ${e}}`},O5={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:R5,code(e){let{gen:t,data:r,schemaCode:n,it:o}=e,i=o.opts.multipleOfPrecision,s=t.let("res"),a=i?(0,Fa._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${i}`:(0,Fa._)`${s} !== parseInt(${s})`;e.fail$data((0,Fa._)`(${n} === 0 || (${s} = ${r}/${n}, ${a}))`)}};wy.default=O5});var kP=x(_y=>{"use strict";Object.defineProperty(_y,"__esModule",{value:!0});function OP(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}_y.default=OP;OP.code='require("ajv/dist/runtime/ucs2length").default'});var IP=x(Py=>{"use strict";Object.defineProperty(Py,"__esModule",{value:!0});var Lo=Z(),k5=ge(),I5=kP(),C5={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,Lo.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,Lo._)`{limit: ${e}}`},q5={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:C5,code(e){let{keyword:t,data:r,schemaCode:n,it:o}=e,i=t==="maxLength"?Lo.operators.GT:Lo.operators.LT,s=o.opts.unicode===!1?(0,Lo._)`${r}.length`:(0,Lo._)`${(0,k5.useFunc)(e.gen,I5.default)}(${r})`;e.fail$data((0,Lo._)`${s} ${i} ${n}`)}};Py.default=q5});var CP=x(Ey=>{"use strict";Object.defineProperty(Ey,"__esModule",{value:!0});var N5=cr(),M5=ge(),Wi=Z(),j5={message:({schemaCode:e})=>(0,Wi.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,Wi._)`{pattern: ${e}}`},D5={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:j5,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,Wi._)`new RegExp`:(0,M5.useFunc)(t,c),l=t.let("valid");t.try(()=>t.assign(l,(0,Wi._)`${p}(${i}, ${a}).test(${r})`),()=>t.assign(l,!1)),e.fail$data((0,Wi._)`!${l}`)}else{let c=(0,N5.usePattern)(e,o);e.fail$data((0,Wi._)`!${c}.test(${r})`)}}};Ey.default=D5});var qP=x($y=>{"use strict";Object.defineProperty($y,"__esModule",{value:!0});var za=Z(),L5={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,za.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,za._)`{limit: ${e}}`},U5={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:L5,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxProperties"?za.operators.GT:za.operators.LT;e.fail$data((0,za._)`Object.keys(${r}).length ${o} ${n}`)}};$y.default=U5});var NP=x(Ay=>{"use strict";Object.defineProperty(Ay,"__esModule",{value:!0});var Va=cr(),Ba=Z(),F5=ge(),z5={message:({params:{missingProperty:e}})=>(0,Ba.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Ba._)`{missingProperty: ${e}}`},V5={keyword:"required",type:"object",schemaType:"array",$data:!0,error:z5,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:m}=e.it;for(let h of r)if(d?.[h]===void 0&&!m.has(h)){let y=s.schemaEnv.baseId+s.errSchemaPath,g=`required property "${h}" is not defined at "${y}" (strictRequired)`;(0,F5.checkStrictMode)(s,g,s.opts.strictRequired)}}function p(){if(c||i)e.block$data(Ba.nil,u);else for(let d of r)(0,Va.checkReportMissingProp)(e,d)}function l(){let d=t.let("missing");if(c||i){let m=t.let("valid",!0);e.block$data(m,()=>f(d,m)),e.ok(m)}else t.if((0,Va.checkMissingProp)(e,r,d)),(0,Va.reportMissingProp)(e,d),t.else()}function u(){t.forOf("prop",n,d=>{e.setParams({missingProperty:d}),t.if((0,Va.noPropertyInData)(t,o,d,a.ownProperties),()=>e.error())})}function f(d,m){e.setParams({missingProperty:d}),t.forOf(d,n,()=>{t.assign(m,(0,Va.propertyInData)(t,o,d,a.ownProperties)),t.if((0,Ba.not)(m),()=>{e.error(),t.break()})},Ba.nil)}}};Ay.default=V5});var MP=x(Ty=>{"use strict";Object.defineProperty(Ty,"__esModule",{value:!0});var Ha=Z(),B5={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,Ha.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,Ha._)`{limit: ${e}}`},H5={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:B5,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxItems"?Ha.operators.GT:Ha.operators.LT;e.fail$data((0,Ha._)`${r}.length ${o} ${n}`)}};Ty.default=H5});var Wp=x(Ry=>{"use strict";Object.defineProperty(Ry,"__esModule",{value:!0});var jP=Js();jP.code='require("ajv/dist/runtime/equal").default';Ry.default=jP});var DP=x(ky=>{"use strict";Object.defineProperty(ky,"__esModule",{value:!0});var Oy=Ia(),ct=Z(),K5=ge(),G5=Wp(),W5={message:({params:{i:e,j:t}})=>(0,ct.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,ct._)`{i: ${e}, j: ${t}}`},Y5={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:W5,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,Oy.getSchemaTypes)(i.items):[];e.block$data(c,l,(0,ct._)`${s} === false`),e.ok(c);function l(){let m=t.let("i",(0,ct._)`${r}.length`),h=t.let("j");e.setParams({i:m,j:h}),t.assign(c,!0),t.if((0,ct._)`${m} > 1`,()=>(u()?f:d)(m,h))}function u(){return p.length>0&&!p.some(m=>m==="object"||m==="array")}function f(m,h){let y=t.name("item"),g=(0,Oy.checkDataTypes)(p,y,a.opts.strictNumbers,Oy.DataType.Wrong),b=t.const("indices",(0,ct._)`{}`);t.for((0,ct._)`;${m}--;`,()=>{t.let(y,(0,ct._)`${r}[${m}]`),t.if(g,(0,ct._)`continue`),p.length>1&&t.if((0,ct._)`typeof ${y} == "string"`,(0,ct._)`${y} += "_"`),t.if((0,ct._)`typeof ${b}[${y}] == "number"`,()=>{t.assign(h,(0,ct._)`${b}[${y}]`),e.error(),t.assign(c,!1).break()}).code((0,ct._)`${b}[${y}] = ${m}`)})}function d(m,h){let y=(0,K5.useFunc)(t,G5.default),g=t.name("outer");t.label(g).for((0,ct._)`;${m}--;`,()=>t.for((0,ct._)`${h} = ${m}; ${h}--;`,()=>t.if((0,ct._)`${y}(${r}[${m}], ${r}[${h}])`,()=>{e.error(),t.assign(c,!1).break(g)})))}}};ky.default=Y5});var LP=x(Cy=>{"use strict";Object.defineProperty(Cy,"__esModule",{value:!0});var Iy=Z(),Q5=ge(),J5=Wp(),X5={message:"must be equal to constant",params:({schemaCode:e})=>(0,Iy._)`{allowedValue: ${e}}`},Z5={keyword:"const",$data:!0,error:X5,code(e){let{gen:t,data:r,$data:n,schemaCode:o,schema:i}=e;n||i&&typeof i=="object"?e.fail$data((0,Iy._)`!${(0,Q5.useFunc)(t,J5.default)}(${r}, ${o})`):e.fail((0,Iy._)`${i} !== ${r}`)}};Cy.default=Z5});var UP=x(qy=>{"use strict";Object.defineProperty(qy,"__esModule",{value:!0});var Ka=Z(),eW=ge(),tW=Wp(),rW={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Ka._)`{allowedValues: ${e}}`},nW={keyword:"enum",schemaType:"array",$data:!0,error:rW,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,eW.useFunc)(t,tW.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,Ka.or)(...o.map((m,h)=>f(d,h)))}e.pass(l);function u(){t.assign(l,!1),t.forOf("v",i,d=>t.if((0,Ka._)`${p()}(${r}, ${d})`,()=>t.assign(l,!0).break()))}function f(d,m){let h=o[m];return typeof h=="object"&&h!==null?(0,Ka._)`${p()}(${r}, ${d}[${m}])`:(0,Ka._)`${r} === ${h}`}}};qy.default=nW});var FP=x(Ny=>{"use strict";Object.defineProperty(Ny,"__esModule",{value:!0});var oW=TP(),iW=RP(),sW=IP(),aW=CP(),cW=qP(),pW=NP(),lW=MP(),uW=DP(),dW=LP(),fW=UP(),mW=[oW.default,iW.default,sW.default,aW.default,cW.default,pW.default,lW.default,uW.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},dW.default,fW.default];Ny.default=mW});var jy=x(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});Ga.validateAdditionalItems=void 0;var Uo=Z(),My=ge(),hW={message:({params:{len:e}})=>(0,Uo.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Uo._)`{limit: ${e}}`},yW={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:hW,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,My.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}zP(e,n)}};function zP(e,t){let{gen:r,schema:n,data:o,keyword:i,it:s}=e;s.items=!0;let a=r.const("len",(0,Uo._)`${o}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Uo._)`${a} <= ${t.length}`);else if(typeof n=="object"&&!(0,My.alwaysValidSchema)(s,n)){let p=r.var("valid",(0,Uo._)`${a} <= ${t.length}`);r.if((0,Uo.not)(p),()=>c(p)),e.ok(p)}function c(p){r.forRange("i",t.length,a,l=>{e.subschema({keyword:i,dataProp:l,dataPropType:My.Type.Num},p),s.allErrors||r.if((0,Uo.not)(p),()=>r.break())})}}Ga.validateAdditionalItems=zP;Ga.default=yW});var Dy=x(Wa=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});Wa.validateTuple=void 0;var VP=Z(),Yp=ge(),gW=cr(),bW={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return BP(e,"additionalItems",t);r.items=!0,!(0,Yp.alwaysValidSchema)(r,t)&&e.ok((0,gW.validateArray)(e))}};function BP(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=Yp.mergeEvaluated.items(n,r.length,a.items));let c=n.name("valid"),p=n.const("len",(0,VP._)`${i}.length`);r.forEach((u,f)=>{(0,Yp.alwaysValidSchema)(a,u)||(n.if((0,VP._)`${p} > ${f}`,()=>e.subschema({keyword:s,schemaProp:f,dataProp:f},c)),e.ok(c))});function l(u){let{opts:f,errSchemaPath:d}=a,m=r.length,h=m===u.minItems&&(m===u.maxItems||u[t]===!1);if(f.strictTuples&&!h){let y=`"${s}" is ${m}-tuple, but minItems or maxItems/${t} are not specified or different at path "${d}"`;(0,Yp.checkStrictMode)(a,y,f.strictTuples)}}}Wa.validateTuple=BP;Wa.default=bW});var HP=x(Ly=>{"use strict";Object.defineProperty(Ly,"__esModule",{value:!0});var vW=Dy(),xW={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,vW.validateTuple)(e,"items")};Ly.default=xW});var GP=x(Uy=>{"use strict";Object.defineProperty(Uy,"__esModule",{value:!0});var KP=Z(),SW=ge(),wW=cr(),_W=jy(),PW={message:({params:{len:e}})=>(0,KP.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,KP._)`{limit: ${e}}`},EW={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:PW,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,!(0,SW.alwaysValidSchema)(n,t)&&(o?(0,_W.validateAdditionalItems)(e,o):e.ok((0,wW.validateArray)(e)))}};Uy.default=EW});var WP=x(Fy=>{"use strict";Object.defineProperty(Fy,"__esModule",{value:!0});var lr=Z(),Qp=ge(),$W={message:({params:{min:e,max:t}})=>t===void 0?(0,lr.str)`must contain at least ${e} valid item(s)`:(0,lr.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,lr._)`{minContains: ${e}}`:(0,lr._)`{minContains: ${e}, maxContains: ${t}}`},AW={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:$W,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,lr._)`${o}.length`);if(e.setParams({min:s,max:a}),a===void 0&&s===0){(0,Qp.checkStrictMode)(i,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&s>a){(0,Qp.checkStrictMode)(i,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Qp.alwaysValidSchema)(i,r)){let h=(0,lr._)`${l} >= ${s}`;a!==void 0&&(h=(0,lr._)`${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,lr._)`${o}.length > 0`,f)):(t.let(u,!1),f()),e.result(u,()=>e.reset());function f(){let h=t.name("_valid"),y=t.let("count",0);d(h,()=>t.if(h,()=>m(y)))}function d(h,y){t.forRange("i",0,l,g=>{e.subschema({keyword:"contains",dataProp:g,dataPropType:Qp.Type.Num,compositeRule:!0},h),y()})}function m(h){t.code((0,lr._)`${h}++`),a===void 0?t.if((0,lr._)`${h} >= ${s}`,()=>t.assign(u,!0).break()):(t.if((0,lr._)`${h} > ${a}`,()=>t.assign(u,!1).break()),s===1?t.assign(u,!0):t.if((0,lr._)`${h} >= ${s}`,()=>t.assign(u,!0)))}}};Fy.default=AW});var JP=x(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.validateSchemaDeps=Wr.validatePropertyDeps=Wr.error=void 0;var zy=Z(),TW=ge(),Ya=cr();Wr.error={message:({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,zy.str)`must have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,zy._)`{property: ${e},
|
|
18
|
+
|| ${s} === "boolean" || ${o} === null`).assign(a,(0,J._)`[${o}]`)}}}function F4({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,J._)`${t} !== undefined`,()=>e.assign((0,J._)`${t}[${r}]`,n))}function Zh(e,t,r,n=zi.Correct){let o=n===zi.Correct?J.operators.EQ:J.operators.NEQ,i;switch(e){case"null":return(0,J._)`${t} ${o} null`;case"array":i=(0,J._)`Array.isArray(${t})`;break;case"object":i=(0,J._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":i=s((0,J._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":i=s();break;default:return(0,J._)`typeof ${t} ${o} ${e}`}return n===zi.Correct?i:(0,J.not)(i);function s(a=J.nil){return(0,J.and)((0,J._)`typeof ${t} == "number"`,a,r?(0,J._)`isFinite(${t})`:J.nil)}}St.checkDataType=Zh;function ey(e,t,r,n){if(e.length===1)return Zh(e[0],t,r,n);let o,i=(0,q_.toHash)(e);if(i.array&&i.object){let s=(0,J._)`typeof ${t} != "object"`;o=i.null?s:(0,J._)`!${t} || ${s}`,delete i.null,delete i.array,delete i.object}else o=J.nil;i.number&&delete i.integer;for(let s in i)o=(0,J.and)(o,Zh(s,t,r,n));return o}St.checkDataTypes=ey;var z4={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,J._)`{type: ${e}}`:(0,J._)`{type: ${t}}`};function ty(e){let t=V4(e);(0,M4.reportError)(t,z4)}St.reportTypeError=ty;function V4(e){let{gen:t,data:r,schema:n}=e,o=(0,q_.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}});var D_=x(jp=>{"use strict";Object.defineProperty(jp,"__esModule",{value:!0});jp.assignDefaults=void 0;var Vi=Z(),B4=ge();function H4(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let o in r)j_(e,o,r[o].default);else t==="array"&&Array.isArray(n)&&n.forEach((o,i)=>j_(e,i,o.default))}jp.assignDefaults=H4;function j_(e,t,r){let{gen:n,compositeRule:o,data:i,opts:s}=e;if(r===void 0)return;let a=(0,Vi._)`${i}${(0,Vi.getProperty)(t)}`;if(o){(0,B4.checkStrictMode)(e,`default is ignored for: ${a}`);return}let c=(0,Vi._)`${a} === undefined`;s.useDefaults==="empty"&&(c=(0,Vi._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,Vi._)`${a} = ${(0,Vi.stringify)(r)}`)}});var cr=x(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.validateUnion=Te.validateArray=Te.usePattern=Te.callValidateCode=Te.schemaProperties=Te.allSchemaProperties=Te.noPropertyInData=Te.propertyInData=Te.isOwnProperty=Te.hasPropFunc=Te.reportMissingProp=Te.checkMissingProp=Te.checkReportMissingProp=void 0;var qe=Z(),ry=ge(),Un=gn(),K4=ge();function G4(e,t){let{gen:r,data:n,it:o}=e;r.if(oy(r,n,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:(0,qe._)`${t}`},!0),e.error()})}Te.checkReportMissingProp=G4;function W4({gen:e,data:t,it:{opts:r}},n,o){return(0,qe.or)(...n.map(i=>(0,qe.and)(oy(e,t,i,r.ownProperties),(0,qe._)`${o} = ${i}`)))}Te.checkMissingProp=W4;function Y4(e,t){e.setParams({missingProperty:t},!0),e.error()}Te.reportMissingProp=Y4;function L_(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,qe._)`Object.prototype.hasOwnProperty`})}Te.hasPropFunc=L_;function ny(e,t,r){return(0,qe._)`${L_(e)}.call(${t}, ${r})`}Te.isOwnProperty=ny;function Q4(e,t,r,n){let o=(0,qe._)`${t}${(0,qe.getProperty)(r)} !== undefined`;return n?(0,qe._)`${o} && ${ny(e,t,r)}`:o}Te.propertyInData=Q4;function oy(e,t,r,n){let o=(0,qe._)`${t}${(0,qe.getProperty)(r)} === undefined`;return n?(0,qe.or)(o,(0,qe.not)(ny(e,t,r))):o}Te.noPropertyInData=oy;function U_(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Te.allSchemaProperties=U_;function J4(e,t){return U_(t).filter(r=>!(0,ry.alwaysValidSchema)(e,t[r]))}Te.schemaProperties=J4;function X4({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:o,errorPath:i},it:s},a,c,p){let l=p?(0,qe._)`${e}, ${t}, ${n}${o}`:t,u=[[Un.default.instancePath,(0,qe.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 f=(0,qe._)`${l}, ${r.object(...u)}`;return c!==qe.nil?(0,qe._)`${a}.call(${c}, ${f})`:(0,qe._)`${a}(${f})`}Te.callValidateCode=X4;var Z4=(0,qe._)`new RegExp`;function eG({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,qe._)`${o.code==="new RegExp"?Z4:(0,K4.useFunc)(e,o)}(${r}, ${n})`})}Te.usePattern=eG;function tG(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,qe._)`${r}.length`);t.forRange("i",0,c,p=>{e.subschema({keyword:n,dataProp:p,dataPropType:ry.Type.Num},i),t.if((0,qe.not)(i),a)})}}Te.validateArray=tG;function rG(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,ry.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,qe._)`${s} || ${a}`),e.mergeValidEvaluated(l,a)||t.if((0,qe.not)(s))})),e.result(s,()=>e.reset(),()=>e.error(!0))}Te.validateUnion=rG});var V_=x(Kr=>{"use strict";Object.defineProperty(Kr,"__esModule",{value:!0});Kr.validateKeywordUsage=Kr.validSchemaType=Kr.funcKeywordCode=Kr.macroKeywordCode=void 0;var Tt=Z(),Mo=gn(),nG=cr(),oG=ka();function iG(e,t){let{gen:r,keyword:n,schema:o,parentSchema:i,it:s}=e,a=t.macro.call(s.self,o,i,s),c=z_(r,n,a);s.opts.validateSchema!==!1&&s.self.validateSchema(a,!0);let p=r.name("valid");e.subschema({schema:a,schemaPath:Tt.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},p),e.pass(p,()=>e.error(!0))}Kr.macroKeywordCode=iG;function sG(e,t){var r;let{gen:n,keyword:o,schema:i,parentSchema:s,$data:a,it:c}=e;cG(c,t);let p=!a&&t.compile?t.compile.call(c.self,i,s,c):t.validate,l=z_(n,o,p),u=n.let("valid");e.block$data(u,f),e.ok((r=t.valid)!==null&&r!==void 0?r:u);function f(){if(t.errors===!1)h(),t.modifying&&F_(e),y(()=>e.error());else{let g=t.async?d():m();t.modifying&&F_(e),y(()=>aG(e,g))}}function d(){let g=n.let("ruleErrs",null);return n.try(()=>h((0,Tt._)`await `),b=>n.assign(u,!1).if((0,Tt._)`${b} instanceof ${c.ValidationError}`,()=>n.assign(g,(0,Tt._)`${b}.errors`),()=>n.throw(b))),g}function m(){let g=(0,Tt._)`${l}.errors`;return n.assign(g,null),h(Tt.nil),g}function h(g=t.async?(0,Tt._)`await `:Tt.nil){let b=c.opts.passContext?Mo.default.this:Mo.default.self,v=!("compile"in t&&!a||t.schema===!1);n.assign(u,(0,Tt._)`${g}${(0,nG.callValidateCode)(e,l,b,v)}`,t.modifying)}function y(g){var b;n.if((0,Tt.not)((b=t.valid)!==null&&b!==void 0?b:u),g)}}Kr.funcKeywordCode=sG;function F_(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,Tt._)`${n.parentData}[${n.parentDataProperty}]`))}function aG(e,t){let{gen:r}=e;r.if((0,Tt._)`Array.isArray(${t})`,()=>{r.assign(Mo.default.vErrors,(0,Tt._)`${Mo.default.vErrors} === null ? ${t} : ${Mo.default.vErrors}.concat(${t})`).assign(Mo.default.errors,(0,Tt._)`${Mo.default.vErrors}.length`),(0,oG.extendErrors)(e)},()=>e.error())}function cG({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function z_(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,Tt.stringify)(r)})}function pG(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")}Kr.validSchemaType=pG;function lG({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)}}Kr.validateKeywordUsage=lG});var H_=x(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.extendSubschemaMode=Fn.extendSubschemaData=Fn.getSubschema=void 0;var Gr=Z(),B_=ge();function uG(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,Gr._)`${e.schemaPath}${(0,Gr.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:(0,Gr._)`${e.schemaPath}${(0,Gr.getProperty)(t)}${(0,Gr.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,B_.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')}Fn.getSubschema=uG;function dG(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,f=a.let("data",(0,Gr._)`${t.data}${(0,Gr.getProperty)(r)}`,!0);c(f),e.errorPath=(0,Gr.str)`${p}${(0,B_.getErrorPath)(r,n,u.jsPropertySyntax)}`,e.parentDataProperty=(0,Gr._)`${r}`,e.dataPathArr=[...l,e.parentDataProperty]}if(o!==void 0){let p=o instanceof Gr.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]}}Fn.extendSubschemaData=dG;function fG(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}Fn.extendSubschemaMode=fG});var Ca=x(Ft=>{"use strict";Object.defineProperty(Ft,"__esModule",{value:!0});Ft.getSchemaRefs=Ft.resolveUrl=Ft.normalizeId=Ft._getFullPath=Ft.getFullPath=Ft.inlineRef=void 0;var mG=ge(),hG=Js(),yG=Of(),gG=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function bG(e,t=!0){return typeof e=="boolean"?!0:t===!0?!iy(e):t?K_(e)<=t:!1}Ft.inlineRef=bG;var vG=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function iy(e){for(let t in e){if(vG.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(iy)||typeof r=="object"&&iy(r))return!0}return!1}function K_(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!gG.has(r)&&(typeof e[r]=="object"&&(0,mG.eachItem)(e[r],n=>t+=K_(n)),t===1/0))return 1/0}return t}function G_(e,t="",r){r!==!1&&(t=Bi(t));let n=e.parse(t);return W_(e,n)}Ft.getFullPath=G_;function W_(e,t){return e.serialize(t).split("#")[0]+"#"}Ft._getFullPath=W_;var xG=/#\/?$/;function Bi(e){return e?e.replace(xG,""):""}Ft.normalizeId=Bi;function SG(e,t,r){return r=Bi(r),e.resolve(t,r)}Ft.resolveUrl=SG;var wG=/^[a-z_][-a-z0-9._]*$/i;function _G(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,o=Bi(e[r]||t),i={"":o},s=G_(n,o,!1),a={},c=new Set;return yG(e,{allKeys:!0},(u,f,d,m)=>{if(m===void 0)return;let h=s+f,y=i[m];typeof u[r]=="string"&&(y=g.call(this,u[r])),b.call(this,u.$anchor),b.call(this,u.$dynamicAnchor),i[f]=y;function g(v){let w=this.opts.uriResolver.resolve;if(v=Bi(y?w(y,v):v),c.has(v))throw l(v);c.add(v);let S=this.refs[v];return typeof S=="string"&&(S=this.refs[S]),typeof S=="object"?p(u,S.schema,v):v!==Bi(h)&&(v[0]==="#"?(p(u,a[v],v),a[v]=u):this.refs[v]=h),v}function b(v){if(typeof v=="string"){if(!wG.test(v))throw new Error(`invalid anchor "${v}"`);g.call(this,`#${v}`)}}}),a;function p(u,f,d){if(f!==void 0&&!hG(u,f))throw l(d)}function l(u){return new Error(`reference "${u}" resolves to more than one schema`)}}Ft.getSchemaRefs=_G});var Ma=x(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.getData=zn.KeywordCxt=zn.validateFunctionCode=void 0;var Z_=k_(),Y_=Ia(),ay=Xh(),Dp=Ia(),PG=D_(),Na=V_(),sy=H_(),L=Z(),K=gn(),EG=Ca(),bn=ge(),qa=ka();function $G(e){if(rP(e)&&(nP(e),tP(e))){RG(e);return}eP(e,()=>(0,Z_.topBoolOrEmptySchema)(e))}zn.validateFunctionCode=$G;function eP({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},i){o.code.es5?e.func(t,(0,L._)`${K.default.data}, ${K.default.valCxt}`,n.$async,()=>{e.code((0,L._)`"use strict"; ${Q_(r,o)}`),TG(e,o),e.code(i)}):e.func(t,(0,L._)`${K.default.data}, ${AG(o)}`,n.$async,()=>e.code(Q_(r,o)).code(i))}function AG(e){return(0,L._)`{${K.default.instancePath}="", ${K.default.parentData}, ${K.default.parentDataProperty}, ${K.default.rootData}=${K.default.data}${e.dynamicRef?(0,L._)`, ${K.default.dynamicAnchors}={}`:L.nil}}={}`}function TG(e,t){e.if(K.default.valCxt,()=>{e.var(K.default.instancePath,(0,L._)`${K.default.valCxt}.${K.default.instancePath}`),e.var(K.default.parentData,(0,L._)`${K.default.valCxt}.${K.default.parentData}`),e.var(K.default.parentDataProperty,(0,L._)`${K.default.valCxt}.${K.default.parentDataProperty}`),e.var(K.default.rootData,(0,L._)`${K.default.valCxt}.${K.default.rootData}`),t.dynamicRef&&e.var(K.default.dynamicAnchors,(0,L._)`${K.default.valCxt}.${K.default.dynamicAnchors}`)},()=>{e.var(K.default.instancePath,(0,L._)`""`),e.var(K.default.parentData,(0,L._)`undefined`),e.var(K.default.parentDataProperty,(0,L._)`undefined`),e.var(K.default.rootData,K.default.data),t.dynamicRef&&e.var(K.default.dynamicAnchors,(0,L._)`{}`)})}function RG(e){let{schema:t,opts:r,gen:n}=e;eP(e,()=>{r.$comment&&t.$comment&&iP(e),qG(e),n.let(K.default.vErrors,null),n.let(K.default.errors,0),r.unevaluated&&OG(e),oP(e),jG(e)})}function OG(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,L._)`${r}.evaluated`),t.if((0,L._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,L._)`${e.evaluated}.props`,(0,L._)`undefined`)),t.if((0,L._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,L._)`${e.evaluated}.items`,(0,L._)`undefined`))}function Q_(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,L._)`/*# sourceURL=${r} */`:L.nil}function kG(e,t){if(rP(e)&&(nP(e),tP(e))){IG(e,t);return}(0,Z_.boolOrEmptySchema)(e,t)}function tP({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 rP(e){return typeof e.schema!="boolean"}function IG(e,t){let{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&iP(e),NG(e),MG(e);let i=n.const("_errs",K.default.errors);oP(e,i),n.var(t,(0,L._)`${i} === ${K.default.errors}`)}function nP(e){(0,bn.checkUnknownRules)(e),CG(e)}function oP(e,t){if(e.opts.jtd)return J_(e,[],!1,t);let r=(0,Y_.getSchemaTypes)(e.schema),n=(0,Y_.coerceAndCheckDataType)(e,r);J_(e,r,!n,t)}function CG(e){let{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,bn.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function qG(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,bn.checkStrictMode)(e,"default is ignored in the schema root")}function NG(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,EG.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function MG(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function iP({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){let i=r.$comment;if(o.$comment===!0)e.code((0,L._)`${K.default.self}.logger.log(${i})`);else if(typeof o.$comment=="function"){let s=(0,L.str)`${n}/$comment`,a=e.scopeValue("root",{ref:t.root});e.code((0,L._)`${K.default.self}.opts.$comment(${i}, ${s}, ${a}.schema)`)}}function jG(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:i}=e;r.$async?t.if((0,L._)`${K.default.errors} === 0`,()=>t.return(K.default.data),()=>t.throw((0,L._)`new ${o}(${K.default.vErrors})`)):(t.assign((0,L._)`${n}.errors`,K.default.vErrors),i.unevaluated&&DG(e),t.return((0,L._)`${K.default.errors} === 0`))}function DG({gen:e,evaluated:t,props:r,items:n}){r instanceof L.Name&&e.assign((0,L._)`${t}.props`,r),n instanceof L.Name&&e.assign((0,L._)`${t}.items`,n)}function J_(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,bn.schemaHasRulesButRef)(i,l))){o.block(()=>aP(e,"$ref",l.all.$ref.definition));return}c.jtd||LG(e,t),o.block(()=>{for(let f of l.rules)u(f);u(l.post)});function u(f){(0,ay.shouldUseGroup)(i,f)&&(f.type?(o.if((0,Dp.checkDataType)(f.type,s,c.strictNumbers)),X_(e,f),t.length===1&&t[0]===f.type&&r&&(o.else(),(0,Dp.reportTypeError)(e)),o.endIf()):X_(e,f),a||o.if((0,L._)`${K.default.errors} === ${n||0}`))}}function X_(e,t){let{gen:r,schema:n,opts:{useDefaults:o}}=e;o&&(0,PG.assignDefaults)(e,t.type),r.block(()=>{for(let i of t.rules)(0,ay.shouldUseRule)(n,i)&&aP(e,i.keyword,i.definition,t.type)})}function LG(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(UG(e,t),e.opts.allowUnionTypes||FG(e,t),zG(e,e.dataTypes))}function UG(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{sP(e.dataTypes,r)||cy(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),BG(e,t)}}function FG(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&cy(e,"use allowUnionTypes to allow union type keyword")}function zG(e,t){let r=e.self.RULES.all;for(let n in r){let o=r[n];if(typeof o=="object"&&(0,ay.shouldUseRule)(e.schema,o)){let{type:i}=o.definition;i.length&&!i.some(s=>VG(t,s))&&cy(e,`missing type "${i.join(",")}" for keyword "${n}"`)}}}function VG(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function sP(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function BG(e,t){let r=[];for(let n of e.dataTypes)sP(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function cy(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,bn.checkStrictMode)(e,t,e.opts.strictTypes)}var Lp=class{constructor(t,r,n){if((0,Na.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,bn.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",cP(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Na.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,L.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,L.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,L._)`${r} !== undefined && (${(0,L.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?qa.reportExtraError:qa.reportError)(this,this.def.error,r)}$dataError(){(0,qa.reportError)(this,this.def.$dataError||qa.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,qa.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=L.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=L.nil,r=L.nil){if(!this.$data)return;let{gen:n,schemaCode:o,schemaType:i,def:s}=this;n.if((0,L.or)((0,L._)`${o} === undefined`,r)),t!==L.nil&&n.assign(t,!0),(i.length||s.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==L.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:o,it:i}=this;return(0,L.or)(s(),a());function s(){if(n.length){if(!(r instanceof L.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,L._)`${(0,Dp.checkDataTypes)(c,r,i.opts.strictNumbers,Dp.DataType.Wrong)}`}return L.nil}function a(){if(o.validateSchema){let c=t.scopeValue("validate$data",{ref:o.validateSchema});return(0,L._)`!${c}(${r})`}return L.nil}}subschema(t,r){let n=(0,sy.getSubschema)(this.it,t);(0,sy.extendSubschemaData)(n,this.it,t),(0,sy.extendSubschemaMode)(n,t);let o={...this.it,...n,items:void 0,props:void 0};return kG(o,r),o}mergeEvaluated(t,r){let{it:n,gen:o}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=bn.mergeEvaluated.props(o,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=bn.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,L.Name)),!0}};zn.KeywordCxt=Lp;function aP(e,t,r,n){let o=new Lp(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,Na.funcKeywordCode)(o,r):"macro"in r?(0,Na.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,Na.funcKeywordCode)(o,r)}var HG=/^\/(?:[^~]|~0|~1)*$/,KG=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function cP(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,i;if(e==="")return K.default.rootData;if(e[0]==="/"){if(!HG.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,i=K.default.rootData}else{let p=KG.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,L._)`${i}${(0,L.getProperty)((0,bn.unescapeJsonPointer)(p))}`,s=(0,L._)`${s} && ${i}`);return s;function c(p,l){return`Cannot access ${p} ${l} levels up, current level is ${t}`}}zn.getData=cP});var Up=x(ly=>{"use strict";Object.defineProperty(ly,"__esModule",{value:!0});var py=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};ly.default=py});var ja=x(fy=>{"use strict";Object.defineProperty(fy,"__esModule",{value:!0});var uy=Ca(),dy=class extends Error{constructor(t,r,n,o){super(o||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,uy.resolveUrl)(t,r,n),this.missingSchema=(0,uy.normalizeId)((0,uy.getFullPath)(t,this.missingRef))}};fy.default=dy});var zp=x(pr=>{"use strict";Object.defineProperty(pr,"__esModule",{value:!0});pr.resolveSchema=pr.getCompilingSchema=pr.resolveRef=pr.compileSchema=pr.SchemaEnv=void 0;var Pr=Z(),GG=Up(),jo=gn(),Er=Ca(),pP=ge(),WG=Ma(),Hi=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,Er.normalizeId)(n?.[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n?.$async,this.refs={}}};pr.SchemaEnv=Hi;function hy(e){let t=lP.call(this,e);if(t)return t;let r=(0,Er.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:i}=this.opts,s=new Pr.CodeGen(this.scope,{es5:n,lines:o,ownProperties:i}),a;e.$async&&(a=s.scopeValue("Error",{ref:GG.default,code:(0,Pr._)`require("ajv/dist/runtime/validation_error").default`}));let c=s.scopeName("validate");e.validateName=c;let p={gen:s,allErrors:this.opts.allErrors,data:jo.default.data,parentData:jo.default.parentData,parentDataProperty:jo.default.parentDataProperty,dataNames:[jo.default.data],dataPathArr:[Pr.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,Pr.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:Pr.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,Pr._)`""`,opts:this.opts,self:this},l;try{this._compilations.add(e),(0,WG.validateFunctionCode)(p),s.optimize(this.opts.code.optimize);let u=s.toString();l=`${s.scopeRefs(jo.default.scope)}return ${u}`,this.opts.code.process&&(l=this.opts.code.process(l,e));let d=new Function(`${jo.default.self}`,`${jo.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:m,items:h}=p;d.evaluated={props:m instanceof Pr.Name?void 0:m,items:h instanceof Pr.Name?void 0:h,dynamicProps:m instanceof Pr.Name,dynamicItems:h instanceof Pr.Name},d.source&&(d.source.evaluated=(0,Pr.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)}}pr.compileSchema=hy;function YG(e,t,r){var n;r=(0,Er.resolveUrl)(this.opts.uriResolver,t,r);let o=e.refs[r];if(o)return o;let i=XG.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 Hi({schema:s,schemaId:a,root:e,baseId:t}))}if(i!==void 0)return e.refs[r]=QG.call(this,i)}pr.resolveRef=YG;function QG(e){return(0,Er.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:hy.call(this,e)}function lP(e){for(let t of this._compilations)if(JG(t,e))return t}pr.getCompilingSchema=lP;function JG(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function XG(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Fp.call(this,e,t)}function Fp(e,t){let r=this.opts.uriResolver.parse(t),n=(0,Er._getFullPath)(this.opts.uriResolver,r),o=(0,Er.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return my.call(this,r,e);let i=(0,Er.normalizeId)(n),s=this.refs[i]||this.schemas[i];if(typeof s=="string"){let a=Fp.call(this,e,s);return typeof a?.schema!="object"?void 0:my.call(this,r,a)}if(typeof s?.schema=="object"){if(s.validate||hy.call(this,s),i===(0,Er.normalizeId)(t)){let{schema:a}=s,{schemaId:c}=this.opts,p=a[c];return p&&(o=(0,Er.resolveUrl)(this.opts.uriResolver,o,p)),new Hi({schema:a,schemaId:c,root:e,baseId:o})}return my.call(this,r,s)}}pr.resolveSchema=Fp;var ZG=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function my(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,pP.unescapeFragment)(a)];if(c===void 0)return;r=c;let p=typeof r=="object"&&r[this.opts.schemaId];!ZG.has(a)&&p&&(t=(0,Er.resolveUrl)(this.opts.uriResolver,t,p))}let i;if(typeof r!="boolean"&&r.$ref&&!(0,pP.schemaHasRulesButRef)(r,this.RULES)){let a=(0,Er.resolveUrl)(this.opts.uriResolver,t,r.$ref);i=Fp.call(this,n,a)}let{schemaId:s}=this.opts;if(i=i||new Hi({schema:r,schemaId:s,root:n,baseId:t}),i.schema!==i.root.schema)return i}});var uP=x((Xte,e5)=>{e5.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 fP=x(yy=>{"use strict";Object.defineProperty(yy,"__esModule",{value:!0});var dP=Zf();dP.code='require("ajv/dist/runtime/uri").default';yy.default=dP});var SP=x(at=>{"use strict";Object.defineProperty(at,"__esModule",{value:!0});at.CodeGen=at.Name=at.nil=at.stringify=at.str=at._=at.KeywordCxt=void 0;var t5=Ma();Object.defineProperty(at,"KeywordCxt",{enumerable:!0,get:function(){return t5.KeywordCxt}});var Ki=Z();Object.defineProperty(at,"_",{enumerable:!0,get:function(){return Ki._}});Object.defineProperty(at,"str",{enumerable:!0,get:function(){return Ki.str}});Object.defineProperty(at,"stringify",{enumerable:!0,get:function(){return Ki.stringify}});Object.defineProperty(at,"nil",{enumerable:!0,get:function(){return Ki.nil}});Object.defineProperty(at,"Name",{enumerable:!0,get:function(){return Ki.Name}});Object.defineProperty(at,"CodeGen",{enumerable:!0,get:function(){return Ki.CodeGen}});var r5=Up(),bP=ja(),n5=Jh(),Da=zp(),o5=Z(),La=Ca(),Vp=Ia(),by=ge(),mP=uP(),i5=fP(),vP=(e,t)=>new RegExp(e,t);vP.code="new RegExp";var s5=["removeAdditional","useDefaults","coerceTypes"],a5=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),c5={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."},p5={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},hP=200;function l5(e){var t,r,n,o,i,s,a,c,p,l,u,f,d,m,h,y,g,b,v,w,S,P,R,A,E;let _=e.strict,ee=(t=e.code)===null||t===void 0?void 0:t.optimize,z=ee===!0||ee===void 0?1:ee||0,pe=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:vP,T=(o=e.uriResolver)!==null&&o!==void 0?o:i5.default;return{strictSchema:(s=(i=e.strictSchema)!==null&&i!==void 0?i:_)!==null&&s!==void 0?s:!0,strictNumbers:(c=(a=e.strictNumbers)!==null&&a!==void 0?a:_)!==null&&c!==void 0?c:!0,strictTypes:(l=(p=e.strictTypes)!==null&&p!==void 0?p:_)!==null&&l!==void 0?l:"log",strictTuples:(f=(u=e.strictTuples)!==null&&u!==void 0?u:_)!==null&&f!==void 0?f:"log",strictRequired:(m=(d=e.strictRequired)!==null&&d!==void 0?d:_)!==null&&m!==void 0?m:!1,code:e.code?{...e.code,optimize:z,regExp:pe}:{optimize:z,regExp:pe},loopRequired:(h=e.loopRequired)!==null&&h!==void 0?h:hP,loopEnum:(y=e.loopEnum)!==null&&y!==void 0?y:hP,meta:(g=e.meta)!==null&&g!==void 0?g:!0,messages:(b=e.messages)!==null&&b!==void 0?b:!0,inlineRefs:(v=e.inlineRefs)!==null&&v!==void 0?v:!0,schemaId:(w=e.schemaId)!==null&&w!==void 0?w:"$id",addUsedSchema:(S=e.addUsedSchema)!==null&&S!==void 0?S:!0,validateSchema:(P=e.validateSchema)!==null&&P!==void 0?P:!0,validateFormats:(R=e.validateFormats)!==null&&R!==void 0?R:!0,unicodeRegExp:(A=e.unicodeRegExp)!==null&&A!==void 0?A:!0,int32range:(E=e.int32range)!==null&&E!==void 0?E:!0,uriResolver:T}}var Ua=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,...l5(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new o5.ValueScope({scope:{},prefixes:a5,es5:r,lines:n}),this.logger=y5(t.logger);let o=t.validateFormats;t.validateFormats=!1,this.RULES=(0,n5.getRules)(),yP.call(this,c5,t,"NOT SUPPORTED"),yP.call(this,p5,t,"DEPRECATED","warn"),this._metaOpts=m5.call(this),t.formats&&d5.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&f5.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),u5.call(this),t.validateFormats=o}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,o=mP;n==="id"&&(o={...mP},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 f=this._addSchema(l,u);return f.validate||s.call(this,f)}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 bP.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,La.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=gP.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,o=new Da.SchemaEnv({schema:{},schemaId:n});if(r=Da.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=gP.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,La.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(b5.call(this,n,r),!r)return(0,by.eachItem)(n,i=>gy.call(this,i)),this;x5.call(this,r);let o={...r,type:(0,Vp.getJSONTypes)(r.type),schemaType:(0,Vp.getJSONTypes)(r.schemaType)};return(0,by.eachItem)(n,o.type.length===0?i=>gy.call(this,i,o):i=>o.type.forEach(s=>gy.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]=xP(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,La.normalizeId)(s||n);let p=La.getSchemaRefs.call(this,t,n);return c=new Da.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):Da.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{Da.compileSchema.call(this,t)}finally{this.opts=r}}};Ua.ValidationError=r5.default;Ua.MissingRefError=bP.default;at.default=Ua;function yP(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 gP(e){return e=(0,La.normalizeId)(e),this.schemas[e]||this.refs[e]}function u5(){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 d5(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function f5(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 m5(){let e={...this.opts};for(let t of s5)delete e[t];return e}var h5={log(){},warn(){},error(){}};function y5(e){if(e===!1)return h5;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 g5=/^[a-z_$][a-z0-9_$:-]*$/i;function b5(e,t){let{RULES:r}=this;if((0,by.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!g5.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 gy(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,Vp.getJSONTypes)(t.type),schemaType:(0,Vp.getJSONTypes)(t.schemaType)}};t.before?v5.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 v5(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 x5(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=xP(t)),e.validateSchema=this.compile(t,!0))}var S5={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function xP(e){return{anyOf:[e,S5]}}});var wP=x(vy=>{"use strict";Object.defineProperty(vy,"__esModule",{value:!0});var w5={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};vy.default=w5});var $P=x(Do=>{"use strict";Object.defineProperty(Do,"__esModule",{value:!0});Do.callRef=Do.getValidate=void 0;var _5=ja(),_P=cr(),zt=Z(),Gi=gn(),PP=zp(),Bp=ge(),P5={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=PP.resolveRef.call(c,p,o,r);if(l===void 0)throw new _5.default(n.opts.uriResolver,o,r);if(l instanceof PP.SchemaEnv)return f(l);return d(l);function u(){if(i===p)return Hp(e,s,i,i.$async);let m=t.scopeValue("root",{ref:p});return Hp(e,(0,zt._)`${m}.validate`,p,p.$async)}function f(m){let h=EP(e,m);Hp(e,h,m,m.$async)}function d(m){let h=t.scopeValue("schema",a.code.source===!0?{ref:m,code:(0,zt.stringify)(m)}:{ref:m}),y=t.name("valid"),g=e.subschema({schema:m,dataTypes:[],schemaPath:zt.nil,topSchemaRef:h,errSchemaPath:r},y);e.mergeEvaluated(g),e.ok(y)}}};function EP(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,zt._)`${r.scopeValue("wrapper",{ref:t})}.validate`}Do.getValidate=EP;function Hp(e,t,r,n){let{gen:o,it:i}=e,{allErrors:s,schemaEnv:a,opts:c}=i,p=c.passContext?Gi.default.this:zt.nil;n?l():u();function l(){if(!a.$async)throw new Error("async schema referenced by sync schema");let m=o.let("valid");o.try(()=>{o.code((0,zt._)`await ${(0,_P.callValidateCode)(e,t,p)}`),d(t),s||o.assign(m,!0)},h=>{o.if((0,zt._)`!(${h} instanceof ${i.ValidationError})`,()=>o.throw(h)),f(h),s||o.assign(m,!1)}),e.ok(m)}function u(){e.result((0,_P.callValidateCode)(e,t,p),()=>d(t),()=>f(t))}function f(m){let h=(0,zt._)`${m}.errors`;o.assign(Gi.default.vErrors,(0,zt._)`${Gi.default.vErrors} === null ? ${h} : ${Gi.default.vErrors}.concat(${h})`),o.assign(Gi.default.errors,(0,zt._)`${Gi.default.vErrors}.length`)}function d(m){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=Bp.mergeEvaluated.props(o,y.props,i.props));else{let g=o.var("props",(0,zt._)`${m}.evaluated.props`);i.props=Bp.mergeEvaluated.props(o,g,i.props,zt.Name)}if(i.items!==!0)if(y&&!y.dynamicItems)y.items!==void 0&&(i.items=Bp.mergeEvaluated.items(o,y.items,i.items));else{let g=o.var("items",(0,zt._)`${m}.evaluated.items`);i.items=Bp.mergeEvaluated.items(o,g,i.items,zt.Name)}}}Do.callRef=Hp;Do.default=P5});var AP=x(xy=>{"use strict";Object.defineProperty(xy,"__esModule",{value:!0});var E5=wP(),$5=$P(),A5=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",E5.default,$5.default];xy.default=A5});var TP=x(Sy=>{"use strict";Object.defineProperty(Sy,"__esModule",{value:!0});var Kp=Z(),Vn=Kp.operators,Gp={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}},T5={message:({keyword:e,schemaCode:t})=>(0,Kp.str)`must be ${Gp[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Kp._)`{comparison: ${Gp[e].okStr}, limit: ${t}}`},R5={keyword:Object.keys(Gp),type:"number",schemaType:"number",$data:!0,error:T5,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Kp._)`${r} ${Gp[t].fail} ${n} || isNaN(${r})`)}};Sy.default=R5});var RP=x(wy=>{"use strict";Object.defineProperty(wy,"__esModule",{value:!0});var Fa=Z(),O5={message:({schemaCode:e})=>(0,Fa.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Fa._)`{multipleOf: ${e}}`},k5={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:O5,code(e){let{gen:t,data:r,schemaCode:n,it:o}=e,i=o.opts.multipleOfPrecision,s=t.let("res"),a=i?(0,Fa._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${i}`:(0,Fa._)`${s} !== parseInt(${s})`;e.fail$data((0,Fa._)`(${n} === 0 || (${s} = ${r}/${n}, ${a}))`)}};wy.default=k5});var kP=x(_y=>{"use strict";Object.defineProperty(_y,"__esModule",{value:!0});function OP(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}_y.default=OP;OP.code='require("ajv/dist/runtime/ucs2length").default'});var IP=x(Py=>{"use strict";Object.defineProperty(Py,"__esModule",{value:!0});var Lo=Z(),I5=ge(),C5=kP(),q5={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,Lo.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,Lo._)`{limit: ${e}}`},N5={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:q5,code(e){let{keyword:t,data:r,schemaCode:n,it:o}=e,i=t==="maxLength"?Lo.operators.GT:Lo.operators.LT,s=o.opts.unicode===!1?(0,Lo._)`${r}.length`:(0,Lo._)`${(0,I5.useFunc)(e.gen,C5.default)}(${r})`;e.fail$data((0,Lo._)`${s} ${i} ${n}`)}};Py.default=N5});var CP=x(Ey=>{"use strict";Object.defineProperty(Ey,"__esModule",{value:!0});var M5=cr(),j5=ge(),Wi=Z(),D5={message:({schemaCode:e})=>(0,Wi.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,Wi._)`{pattern: ${e}}`},L5={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:D5,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,Wi._)`new RegExp`:(0,j5.useFunc)(t,c),l=t.let("valid");t.try(()=>t.assign(l,(0,Wi._)`${p}(${i}, ${a}).test(${r})`),()=>t.assign(l,!1)),e.fail$data((0,Wi._)`!${l}`)}else{let c=(0,M5.usePattern)(e,o);e.fail$data((0,Wi._)`!${c}.test(${r})`)}}};Ey.default=L5});var qP=x($y=>{"use strict";Object.defineProperty($y,"__esModule",{value:!0});var za=Z(),U5={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,za.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,za._)`{limit: ${e}}`},F5={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:U5,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxProperties"?za.operators.GT:za.operators.LT;e.fail$data((0,za._)`Object.keys(${r}).length ${o} ${n}`)}};$y.default=F5});var NP=x(Ay=>{"use strict";Object.defineProperty(Ay,"__esModule",{value:!0});var Va=cr(),Ba=Z(),z5=ge(),V5={message:({params:{missingProperty:e}})=>(0,Ba.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Ba._)`{missingProperty: ${e}}`},B5={keyword:"required",type:"object",schemaType:"array",$data:!0,error:V5,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:m}=e.it;for(let h of r)if(d?.[h]===void 0&&!m.has(h)){let y=s.schemaEnv.baseId+s.errSchemaPath,g=`required property "${h}" is not defined at "${y}" (strictRequired)`;(0,z5.checkStrictMode)(s,g,s.opts.strictRequired)}}function p(){if(c||i)e.block$data(Ba.nil,u);else for(let d of r)(0,Va.checkReportMissingProp)(e,d)}function l(){let d=t.let("missing");if(c||i){let m=t.let("valid",!0);e.block$data(m,()=>f(d,m)),e.ok(m)}else t.if((0,Va.checkMissingProp)(e,r,d)),(0,Va.reportMissingProp)(e,d),t.else()}function u(){t.forOf("prop",n,d=>{e.setParams({missingProperty:d}),t.if((0,Va.noPropertyInData)(t,o,d,a.ownProperties),()=>e.error())})}function f(d,m){e.setParams({missingProperty:d}),t.forOf(d,n,()=>{t.assign(m,(0,Va.propertyInData)(t,o,d,a.ownProperties)),t.if((0,Ba.not)(m),()=>{e.error(),t.break()})},Ba.nil)}}};Ay.default=B5});var MP=x(Ty=>{"use strict";Object.defineProperty(Ty,"__esModule",{value:!0});var Ha=Z(),H5={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,Ha.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,Ha._)`{limit: ${e}}`},K5={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:H5,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxItems"?Ha.operators.GT:Ha.operators.LT;e.fail$data((0,Ha._)`${r}.length ${o} ${n}`)}};Ty.default=K5});var Wp=x(Ry=>{"use strict";Object.defineProperty(Ry,"__esModule",{value:!0});var jP=Js();jP.code='require("ajv/dist/runtime/equal").default';Ry.default=jP});var DP=x(ky=>{"use strict";Object.defineProperty(ky,"__esModule",{value:!0});var Oy=Ia(),ct=Z(),G5=ge(),W5=Wp(),Y5={message:({params:{i:e,j:t}})=>(0,ct.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,ct._)`{i: ${e}, j: ${t}}`},Q5={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:Y5,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,Oy.getSchemaTypes)(i.items):[];e.block$data(c,l,(0,ct._)`${s} === false`),e.ok(c);function l(){let m=t.let("i",(0,ct._)`${r}.length`),h=t.let("j");e.setParams({i:m,j:h}),t.assign(c,!0),t.if((0,ct._)`${m} > 1`,()=>(u()?f:d)(m,h))}function u(){return p.length>0&&!p.some(m=>m==="object"||m==="array")}function f(m,h){let y=t.name("item"),g=(0,Oy.checkDataTypes)(p,y,a.opts.strictNumbers,Oy.DataType.Wrong),b=t.const("indices",(0,ct._)`{}`);t.for((0,ct._)`;${m}--;`,()=>{t.let(y,(0,ct._)`${r}[${m}]`),t.if(g,(0,ct._)`continue`),p.length>1&&t.if((0,ct._)`typeof ${y} == "string"`,(0,ct._)`${y} += "_"`),t.if((0,ct._)`typeof ${b}[${y}] == "number"`,()=>{t.assign(h,(0,ct._)`${b}[${y}]`),e.error(),t.assign(c,!1).break()}).code((0,ct._)`${b}[${y}] = ${m}`)})}function d(m,h){let y=(0,G5.useFunc)(t,W5.default),g=t.name("outer");t.label(g).for((0,ct._)`;${m}--;`,()=>t.for((0,ct._)`${h} = ${m}; ${h}--;`,()=>t.if((0,ct._)`${y}(${r}[${m}], ${r}[${h}])`,()=>{e.error(),t.assign(c,!1).break(g)})))}}};ky.default=Q5});var LP=x(Cy=>{"use strict";Object.defineProperty(Cy,"__esModule",{value:!0});var Iy=Z(),J5=ge(),X5=Wp(),Z5={message:"must be equal to constant",params:({schemaCode:e})=>(0,Iy._)`{allowedValue: ${e}}`},eW={keyword:"const",$data:!0,error:Z5,code(e){let{gen:t,data:r,$data:n,schemaCode:o,schema:i}=e;n||i&&typeof i=="object"?e.fail$data((0,Iy._)`!${(0,J5.useFunc)(t,X5.default)}(${r}, ${o})`):e.fail((0,Iy._)`${i} !== ${r}`)}};Cy.default=eW});var UP=x(qy=>{"use strict";Object.defineProperty(qy,"__esModule",{value:!0});var Ka=Z(),tW=ge(),rW=Wp(),nW={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Ka._)`{allowedValues: ${e}}`},oW={keyword:"enum",schemaType:"array",$data:!0,error:nW,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,tW.useFunc)(t,rW.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,Ka.or)(...o.map((m,h)=>f(d,h)))}e.pass(l);function u(){t.assign(l,!1),t.forOf("v",i,d=>t.if((0,Ka._)`${p()}(${r}, ${d})`,()=>t.assign(l,!0).break()))}function f(d,m){let h=o[m];return typeof h=="object"&&h!==null?(0,Ka._)`${p()}(${r}, ${d}[${m}])`:(0,Ka._)`${r} === ${h}`}}};qy.default=oW});var FP=x(Ny=>{"use strict";Object.defineProperty(Ny,"__esModule",{value:!0});var iW=TP(),sW=RP(),aW=IP(),cW=CP(),pW=qP(),lW=NP(),uW=MP(),dW=DP(),fW=LP(),mW=UP(),hW=[iW.default,sW.default,aW.default,cW.default,pW.default,lW.default,uW.default,dW.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},fW.default,mW.default];Ny.default=hW});var jy=x(Ga=>{"use strict";Object.defineProperty(Ga,"__esModule",{value:!0});Ga.validateAdditionalItems=void 0;var Uo=Z(),My=ge(),yW={message:({params:{len:e}})=>(0,Uo.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,Uo._)`{limit: ${e}}`},gW={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:yW,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,My.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}zP(e,n)}};function zP(e,t){let{gen:r,schema:n,data:o,keyword:i,it:s}=e;s.items=!0;let a=r.const("len",(0,Uo._)`${o}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,Uo._)`${a} <= ${t.length}`);else if(typeof n=="object"&&!(0,My.alwaysValidSchema)(s,n)){let p=r.var("valid",(0,Uo._)`${a} <= ${t.length}`);r.if((0,Uo.not)(p),()=>c(p)),e.ok(p)}function c(p){r.forRange("i",t.length,a,l=>{e.subschema({keyword:i,dataProp:l,dataPropType:My.Type.Num},p),s.allErrors||r.if((0,Uo.not)(p),()=>r.break())})}}Ga.validateAdditionalItems=zP;Ga.default=gW});var Dy=x(Wa=>{"use strict";Object.defineProperty(Wa,"__esModule",{value:!0});Wa.validateTuple=void 0;var VP=Z(),Yp=ge(),bW=cr(),vW={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return BP(e,"additionalItems",t);r.items=!0,!(0,Yp.alwaysValidSchema)(r,t)&&e.ok((0,bW.validateArray)(e))}};function BP(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=Yp.mergeEvaluated.items(n,r.length,a.items));let c=n.name("valid"),p=n.const("len",(0,VP._)`${i}.length`);r.forEach((u,f)=>{(0,Yp.alwaysValidSchema)(a,u)||(n.if((0,VP._)`${p} > ${f}`,()=>e.subschema({keyword:s,schemaProp:f,dataProp:f},c)),e.ok(c))});function l(u){let{opts:f,errSchemaPath:d}=a,m=r.length,h=m===u.minItems&&(m===u.maxItems||u[t]===!1);if(f.strictTuples&&!h){let y=`"${s}" is ${m}-tuple, but minItems or maxItems/${t} are not specified or different at path "${d}"`;(0,Yp.checkStrictMode)(a,y,f.strictTuples)}}}Wa.validateTuple=BP;Wa.default=vW});var HP=x(Ly=>{"use strict";Object.defineProperty(Ly,"__esModule",{value:!0});var xW=Dy(),SW={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,xW.validateTuple)(e,"items")};Ly.default=SW});var GP=x(Uy=>{"use strict";Object.defineProperty(Uy,"__esModule",{value:!0});var KP=Z(),wW=ge(),_W=cr(),PW=jy(),EW={message:({params:{len:e}})=>(0,KP.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,KP._)`{limit: ${e}}`},$W={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:EW,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,!(0,wW.alwaysValidSchema)(n,t)&&(o?(0,PW.validateAdditionalItems)(e,o):e.ok((0,_W.validateArray)(e)))}};Uy.default=$W});var WP=x(Fy=>{"use strict";Object.defineProperty(Fy,"__esModule",{value:!0});var lr=Z(),Qp=ge(),AW={message:({params:{min:e,max:t}})=>t===void 0?(0,lr.str)`must contain at least ${e} valid item(s)`:(0,lr.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,lr._)`{minContains: ${e}}`:(0,lr._)`{minContains: ${e}, maxContains: ${t}}`},TW={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:AW,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,lr._)`${o}.length`);if(e.setParams({min:s,max:a}),a===void 0&&s===0){(0,Qp.checkStrictMode)(i,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&s>a){(0,Qp.checkStrictMode)(i,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Qp.alwaysValidSchema)(i,r)){let h=(0,lr._)`${l} >= ${s}`;a!==void 0&&(h=(0,lr._)`${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,lr._)`${o}.length > 0`,f)):(t.let(u,!1),f()),e.result(u,()=>e.reset());function f(){let h=t.name("_valid"),y=t.let("count",0);d(h,()=>t.if(h,()=>m(y)))}function d(h,y){t.forRange("i",0,l,g=>{e.subschema({keyword:"contains",dataProp:g,dataPropType:Qp.Type.Num,compositeRule:!0},h),y()})}function m(h){t.code((0,lr._)`${h}++`),a===void 0?t.if((0,lr._)`${h} >= ${s}`,()=>t.assign(u,!0).break()):(t.if((0,lr._)`${h} > ${a}`,()=>t.assign(u,!1).break()),s===1?t.assign(u,!0):t.if((0,lr._)`${h} >= ${s}`,()=>t.assign(u,!0)))}}};Fy.default=TW});var JP=x(Wr=>{"use strict";Object.defineProperty(Wr,"__esModule",{value:!0});Wr.validateSchemaDeps=Wr.validatePropertyDeps=Wr.error=void 0;var zy=Z(),RW=ge(),Ya=cr();Wr.error={message:({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,zy.str)`must have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,zy._)`{property: ${e},
|
|
19
19
|
missingProperty: ${n},
|
|
20
20
|
depsCount: ${t},
|
|
21
|
-
deps: ${r}}`};var RW={keyword:"dependencies",type:"object",schemaType:"object",error:Wr.error,code(e){let[t,r]=OW(e);YP(e,t),QP(e,r)}};function OW({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 YP(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,Ya.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,Ya.checkReportMissingProp)(e,p)}):(r.if((0,zy._)`${c} && (${(0,Ya.checkMissingProp)(e,a,i)})`),(0,Ya.reportMissingProp)(e,i),r.else())}}Wr.validatePropertyDeps=YP;function QP(e,t=e.schema){let{gen:r,data:n,keyword:o,it:i}=e,s=r.name("valid");for(let a in t)(0,TW.alwaysValidSchema)(i,t[a])||(r.if((0,Ya.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))}Wr.validateSchemaDeps=QP;Wr.default=RW});var ZP=x(Vy=>{"use strict";Object.defineProperty(Vy,"__esModule",{value:!0});var XP=Z(),kW=ge(),IW={message:"property name must be valid",params:({params:e})=>(0,XP._)`{propertyName: ${e.propertyName}}`},CW={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:IW,code(e){let{gen:t,schema:r,data:n,it:o}=e;if((0,kW.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,XP.not)(i),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(i)}};Vy.default=CW});var Hy=x(By=>{"use strict";Object.defineProperty(By,"__esModule",{value:!0});var Jp=cr(),$r=Z(),qW=gn(),Xp=ge(),NW={message:"must NOT have additional properties",params:({params:e})=>(0,$r._)`{additionalProperty: ${e.additionalProperty}}`},MW={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:NW,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,Xp.alwaysValidSchema)(s,r))return;let p=(0,Jp.allSchemaProperties)(n.properties),l=(0,Jp.allSchemaProperties)(n.patternProperties);u(),e.ok((0,$r._)`${i} === ${qW.default.errors}`);function u(){t.forIn("key",o,y=>{!p.length&&!l.length?m(y):t.if(f(y),()=>m(y))})}function f(y){let g;if(p.length>8){let b=(0,Xp.schemaRefOrVal)(s,n.properties,"properties");g=(0,Jp.isOwnProperty)(t,b,y)}else p.length?g=(0,$r.or)(...p.map(b=>(0,$r._)`${y} === ${b}`)):g=$r.nil;return l.length&&(g=(0,$r.or)(g,...l.map(b=>(0,$r._)`${(0,Jp.usePattern)(e,b)}.test(${y})`))),(0,$r.not)(g)}function d(y){t.code((0,$r._)`delete ${o}[${y}]`)}function m(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,Xp.alwaysValidSchema)(s,r)){let g=t.name("valid");c.removeAdditional==="failing"?(h(y,g,!1),t.if((0,$r.not)(g),()=>{e.reset(),d(y)})):(h(y,g),a||t.if((0,$r.not)(g),()=>t.break()))}}function h(y,g,b){let v={keyword:"additionalProperties",dataProp:y,dataPropType:Xp.Type.Str};b===!1&&Object.assign(v,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(v,g)}}};By.default=MW});var rE=x(Gy=>{"use strict";Object.defineProperty(Gy,"__esModule",{value:!0});var jW=Ma(),eE=cr(),Ky=ge(),tE=Hy(),DW={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&&tE.default.code(new jW.KeywordCxt(i,tE.default,"additionalProperties"));let s=(0,eE.allSchemaProperties)(r);for(let u of s)i.definedProperties.add(u);i.opts.unevaluated&&s.length&&i.props!==!0&&(i.props=Ky.mergeEvaluated.props(t,(0,Ky.toHash)(s),i.props));let a=s.filter(u=>!(0,Ky.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,eE.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)}}};Gy.default=DW});var sE=x(Wy=>{"use strict";Object.defineProperty(Wy,"__esModule",{value:!0});var nE=cr(),Zp=Z(),oE=ge(),iE=ge(),LW={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,nE.allSchemaProperties)(r),c=a.filter(h=>(0,oE.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 Zp.Name)&&(i.props=(0,iE.evaluatedPropsToName)(t,i.props));let{props:u}=i;f();function f(){for(let h of a)p&&d(h),i.allErrors?m(h):(t.var(l,!0),m(h),t.if(l))}function d(h){for(let y in p)new RegExp(h).test(y)&&(0,oE.checkStrictMode)(i,`property ${y} matches pattern ${h} (use allowMatchingProperties)`)}function m(h){t.forIn("key",n,y=>{t.if((0,Zp._)`${(0,nE.usePattern)(e,h)}.test(${y})`,()=>{let g=c.includes(h);g||e.subschema({keyword:"patternProperties",schemaProp:h,dataProp:y,dataPropType:iE.Type.Str},l),i.opts.unevaluated&&u!==!0?t.assign((0,Zp._)`${u}[${y}]`,!0):!g&&!i.allErrors&&t.if((0,Zp.not)(l),()=>t.break())})})}}};Wy.default=LW});var aE=x(Yy=>{"use strict";Object.defineProperty(Yy,"__esModule",{value:!0});var UW=ge(),FW={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,UW.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"}};Yy.default=FW});var cE=x(Qy=>{"use strict";Object.defineProperty(Qy,"__esModule",{value:!0});var zW=cr(),VW={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:zW.validateUnion,error:{message:"must match a schema in anyOf"}};Qy.default=VW});var pE=x(Jy=>{"use strict";Object.defineProperty(Jy,"__esModule",{value:!0});var el=Z(),BW=ge(),HW={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,el._)`{passingSchemas: ${e.passing}}`},KW={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:HW,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 f;(0,BW.alwaysValidSchema)(o,l)?t.var(c,!0):f=e.subschema({keyword:"oneOf",schemaProp:u,compositeRule:!0},c),u>0&&t.if((0,el._)`${c} && ${s}`).assign(s,!1).assign(a,(0,el._)`[${a}, ${u}]`).else(),t.if(c,()=>{t.assign(s,!0),t.assign(a,u),f&&e.mergeEvaluated(f,el.Name)})})}}};Jy.default=KW});var lE=x(Xy=>{"use strict";Object.defineProperty(Xy,"__esModule",{value:!0});var GW=ge(),WW={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,GW.alwaysValidSchema)(n,i))return;let a=e.subschema({keyword:"allOf",schemaProp:s},o);e.ok(o),e.mergeEvaluated(a)})}};Xy.default=WW});var fE=x(Zy=>{"use strict";Object.defineProperty(Zy,"__esModule",{value:!0});var tl=Z(),dE=ge(),YW={message:({params:e})=>(0,tl.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,tl._)`{failingKeyword: ${e.ifClause}}`},QW={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:YW,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,dE.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let o=uE(n,"then"),i=uE(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,tl.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 f=e.subschema({keyword:l},a);t.assign(s,a),e.mergeValidEvaluated(f,s),u?t.assign(u,(0,tl._)`${l}`):e.setParams({ifClause:l})}}}};function uE(e,t){let r=e.schema[t];return r!==void 0&&!(0,dE.alwaysValidSchema)(e,r)}Zy.default=QW});var mE=x(eg=>{"use strict";Object.defineProperty(eg,"__esModule",{value:!0});var JW=ge(),XW={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,JW.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};eg.default=XW});var hE=x(tg=>{"use strict";Object.defineProperty(tg,"__esModule",{value:!0});var ZW=jy(),eY=HP(),tY=Dy(),rY=GP(),nY=WP(),oY=JP(),iY=ZP(),sY=Hy(),aY=rE(),cY=sE(),pY=aE(),lY=cE(),uY=pE(),dY=lE(),fY=fE(),mY=mE();function hY(e=!1){let t=[pY.default,lY.default,uY.default,dY.default,fY.default,mY.default,iY.default,sY.default,oY.default,aY.default,cY.default];return e?t.push(eY.default,rY.default):t.push(ZW.default,tY.default),t.push(nY.default),t}tg.default=hY});var yE=x(rg=>{"use strict";Object.defineProperty(rg,"__esModule",{value:!0});var Be=Z(),yY={message:({schemaCode:e})=>(0,Be.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,Be._)`{format: ${e}}`},gY={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:yY,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?f():d();function f(){let m=r.scopeValue("formats",{ref:u.formats,code:c.code.formats}),h=r.const("fDef",(0,Be._)`${m}[${s}]`),y=r.let("fType"),g=r.let("format");r.if((0,Be._)`typeof ${h} == "object" && !(${h} instanceof RegExp)`,()=>r.assign(y,(0,Be._)`${h}.type || "string"`).assign(g,(0,Be._)`${h}.validate`),()=>r.assign(y,(0,Be._)`"string"`).assign(g,h)),e.fail$data((0,Be.or)(b(),v()));function b(){return c.strictSchema===!1?Be.nil:(0,Be._)`${s} && !${g}`}function v(){let w=l.$async?(0,Be._)`(${h}.async ? await ${g}(${n}) : ${g}(${n}))`:(0,Be._)`${g}(${n})`,S=(0,Be._)`(typeof ${g} == "function" ? ${w} : ${g}.test(${n}))`;return(0,Be._)`${g} && ${g} !== true && ${y} === ${t} && !${S}`}}function d(){let m=u.formats[i];if(!m){b();return}if(m===!0)return;let[h,y,g]=v(m);h===t&&e.pass(w());function b(){if(c.strictSchema===!1){u.logger.warn(S());return}throw new Error(S());function S(){return`unknown format "${i}" ignored in schema at path "${p}"`}}function v(S){let P=S instanceof RegExp?(0,Be.regexpCode)(S):c.code.formats?(0,Be._)`${c.code.formats}${(0,Be.getProperty)(i)}`:void 0,R=r.scopeValue("formats",{key:i,ref:S,code:P});return typeof S=="object"&&!(S instanceof RegExp)?[S.type||"string",S.validate,(0,Be._)`${R}.validate`]:["string",S,R]}function w(){if(typeof m=="object"&&!(m instanceof RegExp)&&m.async){if(!l.$async)throw new Error("async format in sync schema");return(0,Be._)`await ${g}(${n})`}return typeof y=="function"?(0,Be._)`${g}(${n})`:(0,Be._)`${g}.test(${n})`}}}};rg.default=gY});var gE=x(ng=>{"use strict";Object.defineProperty(ng,"__esModule",{value:!0});var bY=yE(),vY=[bY.default];ng.default=vY});var bE=x(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 xE=x(og=>{"use strict";Object.defineProperty(og,"__esModule",{value:!0});var xY=AP(),SY=FP(),wY=hE(),_Y=gE(),vE=bE(),PY=[xY.default,SY.default,(0,wY.default)(),_Y.default,vE.metadataVocabulary,vE.contentVocabulary];og.default=PY});var wE=x(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});rl.DiscrError=void 0;var SE;(function(e){e.Tag="tag",e.Mapping="mapping"})(SE||(rl.DiscrError=SE={}))});var PE=x(sg=>{"use strict";Object.defineProperty(sg,"__esModule",{value:!0});var Qi=Z(),ig=wE(),_E=zp(),EY=ja(),$Y=ge(),AY={message:({params:{discrError:e,tagName:t}})=>e===ig.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,Qi._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},TY={keyword:"discriminator",type:"object",schemaType:"object",error:AY,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,Qi._)`${r}${(0,Qi.getProperty)(a)}`);t.if((0,Qi._)`typeof ${p} == "string"`,()=>l(),()=>e.error(!1,{discrError:ig.DiscrError.Tag,tag:p,tagName:a})),e.ok(c);function l(){let d=f();t.if(!1);for(let m in d)t.elseIf((0,Qi._)`${p} === ${m}`),t.assign(c,u(d[m]));t.else(),e.error(!1,{discrError:ig.DiscrError.Mapping,tag:p,tagName:a}),t.endIf()}function u(d){let m=t.name("valid"),h=e.subschema({keyword:"oneOf",schemaProp:d},m);return e.mergeEvaluated(h,Qi.Name),m}function f(){var d;let m={},h=g(o),y=!0;for(let w=0;w<s.length;w++){let S=s[w];if(S?.$ref&&!(0,$Y.schemaHasRulesButRef)(S,i.self.RULES)){let R=S.$ref;if(S=_E.resolveRef.call(i.self,i.schemaEnv.root,i.baseId,R),S instanceof _E.SchemaEnv&&(S=S.schema),S===void 0)throw new EY.default(i.opts.uriResolver,i.baseId,R)}let P=(d=S?.properties)===null||d===void 0?void 0:d[a];if(typeof P!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);y=y&&(h||g(S)),b(P,w)}if(!y)throw new Error(`discriminator: "${a}" must be required`);return m;function g({required:w}){return Array.isArray(w)&&w.includes(a)}function b(w,S){if(w.const)v(w.const,S);else if(w.enum)for(let P of w.enum)v(P,S);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function v(w,S){if(typeof w!="string"||w in m)throw new Error(`discriminator: "${a}" values must be unique strings`);m[w]=S}}}};sg.default=TY});var EE=x((Lre,RY)=>{RY.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 AE=x((Ne,ag)=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.MissingRefError=Ne.ValidationError=Ne.CodeGen=Ne.Name=Ne.nil=Ne.stringify=Ne.str=Ne._=Ne.KeywordCxt=Ne.Ajv=void 0;var OY=SP(),kY=xE(),IY=PE(),$E=EE(),CY=["/properties"],nl="http://json-schema.org/draft-07/schema",Ji=class extends OY.default{_addVocabularies(){super._addVocabularies(),kY.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(IY.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema($E,CY):$E;this.addMetaSchema(t,nl,!1),this.refs["http://json-schema.org/schema"]=nl}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(nl)?nl:void 0)}};Ne.Ajv=Ji;ag.exports=Ne=Ji;ag.exports.Ajv=Ji;Object.defineProperty(Ne,"__esModule",{value:!0});Ne.default=Ji;var qY=Ma();Object.defineProperty(Ne,"KeywordCxt",{enumerable:!0,get:function(){return qY.KeywordCxt}});var Xi=Z();Object.defineProperty(Ne,"_",{enumerable:!0,get:function(){return Xi._}});Object.defineProperty(Ne,"str",{enumerable:!0,get:function(){return Xi.str}});Object.defineProperty(Ne,"stringify",{enumerable:!0,get:function(){return Xi.stringify}});Object.defineProperty(Ne,"nil",{enumerable:!0,get:function(){return Xi.nil}});Object.defineProperty(Ne,"Name",{enumerable:!0,get:function(){return Xi.Name}});Object.defineProperty(Ne,"CodeGen",{enumerable:!0,get:function(){return Xi.CodeGen}});var NY=Up();Object.defineProperty(Ne,"ValidationError",{enumerable:!0,get:function(){return NY.default}});var MY=ja();Object.defineProperty(Ne,"MissingRefError",{enumerable:!0,get:function(){return MY.default}})});var TE=x(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi.formatLimitDefinition=void 0;var jY=AE(),Ar=Z(),Bn=Ar.operators,ol={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}},DY={message:({keyword:e,schemaCode:t})=>(0,Ar.str)`should be ${ol[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Ar._)`{comparison: ${ol[e].okStr}, limit: ${t}}`};Zi.formatLimitDefinition={keyword:Object.keys(ol),type:"string",schemaType:"string",$data:!0,error:DY,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 jY.KeywordCxt(i,a.RULES.all.format.definition,"format");c.$data?p():l();function p(){let f=t.scopeValue("formats",{ref:a.formats,code:s.code.formats}),d=t.const("fmt",(0,Ar._)`${f}[${c.schemaCode}]`);e.fail$data((0,Ar.or)((0,Ar._)`typeof ${d} != "object"`,(0,Ar._)`${d} instanceof RegExp`,(0,Ar._)`typeof ${d}.compare != "function"`,u(d)))}function l(){let f=c.schema,d=a.formats[f];if(!d||d===!0)return;if(typeof d!="object"||d instanceof RegExp||typeof d.compare!="function")throw new Error(`"${o}": format "${f}" does not define "compare" function`);let m=t.scopeValue("formats",{key:f,ref:d,code:s.code.formats?(0,Ar._)`${s.code.formats}${(0,Ar.getProperty)(f)}`:void 0});e.fail$data(u(m))}function u(f){return(0,Ar._)`${f}.compare(${r}, ${n}) ${ol[o].fail} 0`}},dependencies:["format"]};var LY=e=>(e.addKeyword(Zi.formatLimitDefinition),e);Zi.default=LY});var IE=x((Qa,kE)=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});var es=h_(),UY=TE(),cg=Z(),RE=new cg.Name("fullFormats"),FY=new cg.Name("fastFormats"),pg=(e,t={keywords:!0})=>{if(Array.isArray(t))return OE(e,t,es.fullFormats,RE),e;let[r,n]=t.mode==="fast"?[es.fastFormats,FY]:[es.fullFormats,RE],o=t.formats||es.formatNames;return OE(e,o,r,n),t.keywords&&(0,UY.default)(e),e};pg.get=(e,t="full")=>{let n=(t==="fast"?es.fastFormats:es.fullFormats)[e];if(!n)throw new Error(`Unknown format "${e}"`);return n};function OE(e,t,r,n){var o,i;(o=(i=e.opts.code).formats)!==null&&o!==void 0||(i.formats=(0,cg._)`require("ajv-formats/dist/formats").${n}`);for(let s of t)e.addFormat(s,r[s])}kE.exports=Qa=pg;Object.defineProperty(Qa,"__esModule",{value:!0});Qa.default=pg});var p$=x((Foe,c$)=>{"use strict";c$.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,f,d,m,h,y,g,b,v,w=[];for(c=0;c<o;c++)w.push(c+1),w.push(t.charCodeAt(s+c));for(var S=w.length-1;a<i-3;)for(y=r.charCodeAt(s+(p=a)),g=r.charCodeAt(s+(l=a+1)),b=r.charCodeAt(s+(u=a+2)),v=r.charCodeAt(s+(f=a+3)),d=a+=4,c=0;c<S;c+=2)m=w[c],h=w[c+1],p=e(m,p,l,y,h),l=e(p,l,u,g,h),u=e(l,u,f,b,h),d=e(u,f,d,v,h),w[c]=d,f=u,u=l,l=p,p=m;for(;a<i;)for(y=r.charCodeAt(s+(p=a)),d=++a,c=0;c<S;c+=2)m=w[c],w[c]=d=e(m,p,d,y,w[c+1]),p=m;return d}})()});var nc=x(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});var fs;(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"})(fs=rn.Kind||(rn.Kind={}));function i6(e,t){var r=t?t.endPosition:e.endPosition+1,n={key:e,value:t,startPosition:e.startPosition,endPosition:r,kind:fs.MAPPING,parent:null,errors:[]};return n}rn.newMapping=i6;function s6(e,t,r,n){return{errors:[],referencesAnchor:e,value:n,startPosition:t,endPosition:r,kind:fs.ANCHOR_REF,parent:null}}rn.newAnchorRef=s6;function a6(e){e===void 0&&(e="");var t={errors:[],startPosition:-1,endPosition:-1,value:""+e,kind:fs.SCALAR,parent:null,doubleQuoted:!1,rawValue:""+e};return typeof e!="string"&&(t.valueObject=e),t}rn.newScalar=a6;function qT(){return{errors:[],startPosition:-1,endPosition:-1,items:[],kind:fs.SEQ,parent:null}}rn.newItems=qT;function c6(){return qT()}rn.newSeq=c6;function p6(e){return{errors:[],startPosition:-1,endPosition:-1,mappings:e||[],kind:fs.MAP,parent:null}}rn.newMap=p6});var Ko=x(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});function NT(e){return typeof e>"u"||e===null}to.isNothing=NT;function l6(e){return typeof e=="object"&&e!==null}to.isObject=l6;function u6(e){return Array.isArray(e)?e:NT(e)?[]:[e]}to.toArray=u6;function d6(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}to.extend=d6;function f6(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}to.repeat=f6;function m6(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}to.isNegativeZero=m6});var ms=x((Nme,MT)=>{"use strict";var h6=(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})();MT.exports=h6});var LT=x((Mme,DT)=>{"use strict";var jT=Ko(),y6=(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
|
|
21
|
+
deps: ${r}}`};var OW={keyword:"dependencies",type:"object",schemaType:"object",error:Wr.error,code(e){let[t,r]=kW(e);YP(e,t),QP(e,r)}};function kW({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 YP(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,Ya.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,Ya.checkReportMissingProp)(e,p)}):(r.if((0,zy._)`${c} && (${(0,Ya.checkMissingProp)(e,a,i)})`),(0,Ya.reportMissingProp)(e,i),r.else())}}Wr.validatePropertyDeps=YP;function QP(e,t=e.schema){let{gen:r,data:n,keyword:o,it:i}=e,s=r.name("valid");for(let a in t)(0,RW.alwaysValidSchema)(i,t[a])||(r.if((0,Ya.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))}Wr.validateSchemaDeps=QP;Wr.default=OW});var ZP=x(Vy=>{"use strict";Object.defineProperty(Vy,"__esModule",{value:!0});var XP=Z(),IW=ge(),CW={message:"property name must be valid",params:({params:e})=>(0,XP._)`{propertyName: ${e.propertyName}}`},qW={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:CW,code(e){let{gen:t,schema:r,data:n,it:o}=e;if((0,IW.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,XP.not)(i),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(i)}};Vy.default=qW});var Hy=x(By=>{"use strict";Object.defineProperty(By,"__esModule",{value:!0});var Jp=cr(),$r=Z(),NW=gn(),Xp=ge(),MW={message:"must NOT have additional properties",params:({params:e})=>(0,$r._)`{additionalProperty: ${e.additionalProperty}}`},jW={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:MW,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,Xp.alwaysValidSchema)(s,r))return;let p=(0,Jp.allSchemaProperties)(n.properties),l=(0,Jp.allSchemaProperties)(n.patternProperties);u(),e.ok((0,$r._)`${i} === ${NW.default.errors}`);function u(){t.forIn("key",o,y=>{!p.length&&!l.length?m(y):t.if(f(y),()=>m(y))})}function f(y){let g;if(p.length>8){let b=(0,Xp.schemaRefOrVal)(s,n.properties,"properties");g=(0,Jp.isOwnProperty)(t,b,y)}else p.length?g=(0,$r.or)(...p.map(b=>(0,$r._)`${y} === ${b}`)):g=$r.nil;return l.length&&(g=(0,$r.or)(g,...l.map(b=>(0,$r._)`${(0,Jp.usePattern)(e,b)}.test(${y})`))),(0,$r.not)(g)}function d(y){t.code((0,$r._)`delete ${o}[${y}]`)}function m(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,Xp.alwaysValidSchema)(s,r)){let g=t.name("valid");c.removeAdditional==="failing"?(h(y,g,!1),t.if((0,$r.not)(g),()=>{e.reset(),d(y)})):(h(y,g),a||t.if((0,$r.not)(g),()=>t.break()))}}function h(y,g,b){let v={keyword:"additionalProperties",dataProp:y,dataPropType:Xp.Type.Str};b===!1&&Object.assign(v,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(v,g)}}};By.default=jW});var rE=x(Gy=>{"use strict";Object.defineProperty(Gy,"__esModule",{value:!0});var DW=Ma(),eE=cr(),Ky=ge(),tE=Hy(),LW={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&&tE.default.code(new DW.KeywordCxt(i,tE.default,"additionalProperties"));let s=(0,eE.allSchemaProperties)(r);for(let u of s)i.definedProperties.add(u);i.opts.unevaluated&&s.length&&i.props!==!0&&(i.props=Ky.mergeEvaluated.props(t,(0,Ky.toHash)(s),i.props));let a=s.filter(u=>!(0,Ky.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,eE.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)}}};Gy.default=LW});var sE=x(Wy=>{"use strict";Object.defineProperty(Wy,"__esModule",{value:!0});var nE=cr(),Zp=Z(),oE=ge(),iE=ge(),UW={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,nE.allSchemaProperties)(r),c=a.filter(h=>(0,oE.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 Zp.Name)&&(i.props=(0,iE.evaluatedPropsToName)(t,i.props));let{props:u}=i;f();function f(){for(let h of a)p&&d(h),i.allErrors?m(h):(t.var(l,!0),m(h),t.if(l))}function d(h){for(let y in p)new RegExp(h).test(y)&&(0,oE.checkStrictMode)(i,`property ${y} matches pattern ${h} (use allowMatchingProperties)`)}function m(h){t.forIn("key",n,y=>{t.if((0,Zp._)`${(0,nE.usePattern)(e,h)}.test(${y})`,()=>{let g=c.includes(h);g||e.subschema({keyword:"patternProperties",schemaProp:h,dataProp:y,dataPropType:iE.Type.Str},l),i.opts.unevaluated&&u!==!0?t.assign((0,Zp._)`${u}[${y}]`,!0):!g&&!i.allErrors&&t.if((0,Zp.not)(l),()=>t.break())})})}}};Wy.default=UW});var aE=x(Yy=>{"use strict";Object.defineProperty(Yy,"__esModule",{value:!0});var FW=ge(),zW={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,FW.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"}};Yy.default=zW});var cE=x(Qy=>{"use strict";Object.defineProperty(Qy,"__esModule",{value:!0});var VW=cr(),BW={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:VW.validateUnion,error:{message:"must match a schema in anyOf"}};Qy.default=BW});var pE=x(Jy=>{"use strict";Object.defineProperty(Jy,"__esModule",{value:!0});var el=Z(),HW=ge(),KW={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,el._)`{passingSchemas: ${e.passing}}`},GW={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:KW,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 f;(0,HW.alwaysValidSchema)(o,l)?t.var(c,!0):f=e.subschema({keyword:"oneOf",schemaProp:u,compositeRule:!0},c),u>0&&t.if((0,el._)`${c} && ${s}`).assign(s,!1).assign(a,(0,el._)`[${a}, ${u}]`).else(),t.if(c,()=>{t.assign(s,!0),t.assign(a,u),f&&e.mergeEvaluated(f,el.Name)})})}}};Jy.default=GW});var lE=x(Xy=>{"use strict";Object.defineProperty(Xy,"__esModule",{value:!0});var WW=ge(),YW={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,WW.alwaysValidSchema)(n,i))return;let a=e.subschema({keyword:"allOf",schemaProp:s},o);e.ok(o),e.mergeEvaluated(a)})}};Xy.default=YW});var fE=x(Zy=>{"use strict";Object.defineProperty(Zy,"__esModule",{value:!0});var tl=Z(),dE=ge(),QW={message:({params:e})=>(0,tl.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,tl._)`{failingKeyword: ${e.ifClause}}`},JW={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:QW,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,dE.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let o=uE(n,"then"),i=uE(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,tl.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 f=e.subschema({keyword:l},a);t.assign(s,a),e.mergeValidEvaluated(f,s),u?t.assign(u,(0,tl._)`${l}`):e.setParams({ifClause:l})}}}};function uE(e,t){let r=e.schema[t];return r!==void 0&&!(0,dE.alwaysValidSchema)(e,r)}Zy.default=JW});var mE=x(eg=>{"use strict";Object.defineProperty(eg,"__esModule",{value:!0});var XW=ge(),ZW={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,XW.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};eg.default=ZW});var hE=x(tg=>{"use strict";Object.defineProperty(tg,"__esModule",{value:!0});var eY=jy(),tY=HP(),rY=Dy(),nY=GP(),oY=WP(),iY=JP(),sY=ZP(),aY=Hy(),cY=rE(),pY=sE(),lY=aE(),uY=cE(),dY=pE(),fY=lE(),mY=fE(),hY=mE();function yY(e=!1){let t=[lY.default,uY.default,dY.default,fY.default,mY.default,hY.default,sY.default,aY.default,iY.default,cY.default,pY.default];return e?t.push(tY.default,nY.default):t.push(eY.default,rY.default),t.push(oY.default),t}tg.default=yY});var yE=x(rg=>{"use strict";Object.defineProperty(rg,"__esModule",{value:!0});var Be=Z(),gY={message:({schemaCode:e})=>(0,Be.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,Be._)`{format: ${e}}`},bY={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:gY,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?f():d();function f(){let m=r.scopeValue("formats",{ref:u.formats,code:c.code.formats}),h=r.const("fDef",(0,Be._)`${m}[${s}]`),y=r.let("fType"),g=r.let("format");r.if((0,Be._)`typeof ${h} == "object" && !(${h} instanceof RegExp)`,()=>r.assign(y,(0,Be._)`${h}.type || "string"`).assign(g,(0,Be._)`${h}.validate`),()=>r.assign(y,(0,Be._)`"string"`).assign(g,h)),e.fail$data((0,Be.or)(b(),v()));function b(){return c.strictSchema===!1?Be.nil:(0,Be._)`${s} && !${g}`}function v(){let w=l.$async?(0,Be._)`(${h}.async ? await ${g}(${n}) : ${g}(${n}))`:(0,Be._)`${g}(${n})`,S=(0,Be._)`(typeof ${g} == "function" ? ${w} : ${g}.test(${n}))`;return(0,Be._)`${g} && ${g} !== true && ${y} === ${t} && !${S}`}}function d(){let m=u.formats[i];if(!m){b();return}if(m===!0)return;let[h,y,g]=v(m);h===t&&e.pass(w());function b(){if(c.strictSchema===!1){u.logger.warn(S());return}throw new Error(S());function S(){return`unknown format "${i}" ignored in schema at path "${p}"`}}function v(S){let P=S instanceof RegExp?(0,Be.regexpCode)(S):c.code.formats?(0,Be._)`${c.code.formats}${(0,Be.getProperty)(i)}`:void 0,R=r.scopeValue("formats",{key:i,ref:S,code:P});return typeof S=="object"&&!(S instanceof RegExp)?[S.type||"string",S.validate,(0,Be._)`${R}.validate`]:["string",S,R]}function w(){if(typeof m=="object"&&!(m instanceof RegExp)&&m.async){if(!l.$async)throw new Error("async format in sync schema");return(0,Be._)`await ${g}(${n})`}return typeof y=="function"?(0,Be._)`${g}(${n})`:(0,Be._)`${g}.test(${n})`}}}};rg.default=bY});var gE=x(ng=>{"use strict";Object.defineProperty(ng,"__esModule",{value:!0});var vY=yE(),xY=[vY.default];ng.default=xY});var bE=x(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 xE=x(og=>{"use strict";Object.defineProperty(og,"__esModule",{value:!0});var SY=AP(),wY=FP(),_Y=hE(),PY=gE(),vE=bE(),EY=[SY.default,wY.default,(0,_Y.default)(),PY.default,vE.metadataVocabulary,vE.contentVocabulary];og.default=EY});var wE=x(rl=>{"use strict";Object.defineProperty(rl,"__esModule",{value:!0});rl.DiscrError=void 0;var SE;(function(e){e.Tag="tag",e.Mapping="mapping"})(SE||(rl.DiscrError=SE={}))});var PE=x(sg=>{"use strict";Object.defineProperty(sg,"__esModule",{value:!0});var Qi=Z(),ig=wE(),_E=zp(),$Y=ja(),AY=ge(),TY={message:({params:{discrError:e,tagName:t}})=>e===ig.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,Qi._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},RY={keyword:"discriminator",type:"object",schemaType:"object",error:TY,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,Qi._)`${r}${(0,Qi.getProperty)(a)}`);t.if((0,Qi._)`typeof ${p} == "string"`,()=>l(),()=>e.error(!1,{discrError:ig.DiscrError.Tag,tag:p,tagName:a})),e.ok(c);function l(){let d=f();t.if(!1);for(let m in d)t.elseIf((0,Qi._)`${p} === ${m}`),t.assign(c,u(d[m]));t.else(),e.error(!1,{discrError:ig.DiscrError.Mapping,tag:p,tagName:a}),t.endIf()}function u(d){let m=t.name("valid"),h=e.subschema({keyword:"oneOf",schemaProp:d},m);return e.mergeEvaluated(h,Qi.Name),m}function f(){var d;let m={},h=g(o),y=!0;for(let w=0;w<s.length;w++){let S=s[w];if(S?.$ref&&!(0,AY.schemaHasRulesButRef)(S,i.self.RULES)){let R=S.$ref;if(S=_E.resolveRef.call(i.self,i.schemaEnv.root,i.baseId,R),S instanceof _E.SchemaEnv&&(S=S.schema),S===void 0)throw new $Y.default(i.opts.uriResolver,i.baseId,R)}let P=(d=S?.properties)===null||d===void 0?void 0:d[a];if(typeof P!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);y=y&&(h||g(S)),b(P,w)}if(!y)throw new Error(`discriminator: "${a}" must be required`);return m;function g({required:w}){return Array.isArray(w)&&w.includes(a)}function b(w,S){if(w.const)v(w.const,S);else if(w.enum)for(let P of w.enum)v(P,S);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function v(w,S){if(typeof w!="string"||w in m)throw new Error(`discriminator: "${a}" values must be unique strings`);m[w]=S}}}};sg.default=RY});var EE=x((Ure,OY)=>{OY.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 AE=x((Ne,ag)=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.MissingRefError=Ne.ValidationError=Ne.CodeGen=Ne.Name=Ne.nil=Ne.stringify=Ne.str=Ne._=Ne.KeywordCxt=Ne.Ajv=void 0;var kY=SP(),IY=xE(),CY=PE(),$E=EE(),qY=["/properties"],nl="http://json-schema.org/draft-07/schema",Ji=class extends kY.default{_addVocabularies(){super._addVocabularies(),IY.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(CY.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema($E,qY):$E;this.addMetaSchema(t,nl,!1),this.refs["http://json-schema.org/schema"]=nl}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(nl)?nl:void 0)}};Ne.Ajv=Ji;ag.exports=Ne=Ji;ag.exports.Ajv=Ji;Object.defineProperty(Ne,"__esModule",{value:!0});Ne.default=Ji;var NY=Ma();Object.defineProperty(Ne,"KeywordCxt",{enumerable:!0,get:function(){return NY.KeywordCxt}});var Xi=Z();Object.defineProperty(Ne,"_",{enumerable:!0,get:function(){return Xi._}});Object.defineProperty(Ne,"str",{enumerable:!0,get:function(){return Xi.str}});Object.defineProperty(Ne,"stringify",{enumerable:!0,get:function(){return Xi.stringify}});Object.defineProperty(Ne,"nil",{enumerable:!0,get:function(){return Xi.nil}});Object.defineProperty(Ne,"Name",{enumerable:!0,get:function(){return Xi.Name}});Object.defineProperty(Ne,"CodeGen",{enumerable:!0,get:function(){return Xi.CodeGen}});var MY=Up();Object.defineProperty(Ne,"ValidationError",{enumerable:!0,get:function(){return MY.default}});var jY=ja();Object.defineProperty(Ne,"MissingRefError",{enumerable:!0,get:function(){return jY.default}})});var TE=x(Zi=>{"use strict";Object.defineProperty(Zi,"__esModule",{value:!0});Zi.formatLimitDefinition=void 0;var DY=AE(),Ar=Z(),Bn=Ar.operators,ol={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}},LY={message:({keyword:e,schemaCode:t})=>(0,Ar.str)`should be ${ol[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Ar._)`{comparison: ${ol[e].okStr}, limit: ${t}}`};Zi.formatLimitDefinition={keyword:Object.keys(ol),type:"string",schemaType:"string",$data:!0,error:LY,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 DY.KeywordCxt(i,a.RULES.all.format.definition,"format");c.$data?p():l();function p(){let f=t.scopeValue("formats",{ref:a.formats,code:s.code.formats}),d=t.const("fmt",(0,Ar._)`${f}[${c.schemaCode}]`);e.fail$data((0,Ar.or)((0,Ar._)`typeof ${d} != "object"`,(0,Ar._)`${d} instanceof RegExp`,(0,Ar._)`typeof ${d}.compare != "function"`,u(d)))}function l(){let f=c.schema,d=a.formats[f];if(!d||d===!0)return;if(typeof d!="object"||d instanceof RegExp||typeof d.compare!="function")throw new Error(`"${o}": format "${f}" does not define "compare" function`);let m=t.scopeValue("formats",{key:f,ref:d,code:s.code.formats?(0,Ar._)`${s.code.formats}${(0,Ar.getProperty)(f)}`:void 0});e.fail$data(u(m))}function u(f){return(0,Ar._)`${f}.compare(${r}, ${n}) ${ol[o].fail} 0`}},dependencies:["format"]};var UY=e=>(e.addKeyword(Zi.formatLimitDefinition),e);Zi.default=UY});var IE=x((Qa,kE)=>{"use strict";Object.defineProperty(Qa,"__esModule",{value:!0});var es=h_(),FY=TE(),cg=Z(),RE=new cg.Name("fullFormats"),zY=new cg.Name("fastFormats"),pg=(e,t={keywords:!0})=>{if(Array.isArray(t))return OE(e,t,es.fullFormats,RE),e;let[r,n]=t.mode==="fast"?[es.fastFormats,zY]:[es.fullFormats,RE],o=t.formats||es.formatNames;return OE(e,o,r,n),t.keywords&&(0,FY.default)(e),e};pg.get=(e,t="full")=>{let n=(t==="fast"?es.fastFormats:es.fullFormats)[e];if(!n)throw new Error(`Unknown format "${e}"`);return n};function OE(e,t,r,n){var o,i;(o=(i=e.opts.code).formats)!==null&&o!==void 0||(i.formats=(0,cg._)`require("ajv-formats/dist/formats").${n}`);for(let s of t)e.addFormat(s,r[s])}kE.exports=Qa=pg;Object.defineProperty(Qa,"__esModule",{value:!0});Qa.default=pg});var p$=x((zoe,c$)=>{"use strict";c$.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,f,d,m,h,y,g,b,v,w=[];for(c=0;c<o;c++)w.push(c+1),w.push(t.charCodeAt(s+c));for(var S=w.length-1;a<i-3;)for(y=r.charCodeAt(s+(p=a)),g=r.charCodeAt(s+(l=a+1)),b=r.charCodeAt(s+(u=a+2)),v=r.charCodeAt(s+(f=a+3)),d=a+=4,c=0;c<S;c+=2)m=w[c],h=w[c+1],p=e(m,p,l,y,h),l=e(p,l,u,g,h),u=e(l,u,f,b,h),d=e(u,f,d,v,h),w[c]=d,f=u,u=l,l=p,p=m;for(;a<i;)for(y=r.charCodeAt(s+(p=a)),d=++a,c=0;c<S;c+=2)m=w[c],w[c]=d=e(m,p,d,y,w[c+1]),p=m;return d}})()});var nc=x(rn=>{"use strict";Object.defineProperty(rn,"__esModule",{value:!0});var fs;(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"})(fs=rn.Kind||(rn.Kind={}));function s6(e,t){var r=t?t.endPosition:e.endPosition+1,n={key:e,value:t,startPosition:e.startPosition,endPosition:r,kind:fs.MAPPING,parent:null,errors:[]};return n}rn.newMapping=s6;function a6(e,t,r,n){return{errors:[],referencesAnchor:e,value:n,startPosition:t,endPosition:r,kind:fs.ANCHOR_REF,parent:null}}rn.newAnchorRef=a6;function c6(e){e===void 0&&(e="");var t={errors:[],startPosition:-1,endPosition:-1,value:""+e,kind:fs.SCALAR,parent:null,doubleQuoted:!1,rawValue:""+e};return typeof e!="string"&&(t.valueObject=e),t}rn.newScalar=c6;function qT(){return{errors:[],startPosition:-1,endPosition:-1,items:[],kind:fs.SEQ,parent:null}}rn.newItems=qT;function p6(){return qT()}rn.newSeq=p6;function l6(e){return{errors:[],startPosition:-1,endPosition:-1,mappings:e||[],kind:fs.MAP,parent:null}}rn.newMap=l6});var Ko=x(to=>{"use strict";Object.defineProperty(to,"__esModule",{value:!0});function NT(e){return typeof e>"u"||e===null}to.isNothing=NT;function u6(e){return typeof e=="object"&&e!==null}to.isObject=u6;function d6(e){return Array.isArray(e)?e:NT(e)?[]:[e]}to.toArray=d6;function f6(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}to.extend=f6;function m6(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}to.repeat=m6;function h6(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}to.isNegativeZero=h6});var ms=x((Mme,MT)=>{"use strict";var y6=(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})();MT.exports=y6});var LT=x((jme,DT)=>{"use strict";var jT=Ko(),g6=(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
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
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),jT.repeat(" ",t)+n+a+i+`
|
|
24
24
|
`+jT.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})();DT.exports=
|
|
26
|
-
\r`;function
|
|
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
|
|
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 Yg(e,t){var r=Xg(e,t);e.onWarning&&e.onWarning.call(null,r)}var kR={YAML:function(t,r,n){var o,i,s;t.version!==null&&H(t,"duplication of %YAML directive"),n.length!==1&&H(t,"YAML directive accepts exactly one argument"),o=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),o===null&&H(t,"ill-formed argument of the YAML directive"),i=parseInt(o[1],10),s=parseInt(o[2],10),i!==1&&H(t,"found incompatible YAML document (version 1.2 is required)"),t.version=n[0],t.checkLineBreaks=s<2,s!==2&&H(t,"found incompatible YAML document (version 1.2 is required)")},TAG:function(t,r,n){var o,i;n.length!==2&&H(t,"TAG directive accepts exactly two arguments"),o=n[0],i=n[1],MR.test(o)||H(t,"ill-formed tag handle (first argument) of the TAG directive"),cu.call(t.tagMap,o)&&H(t,'there is a previously declared suffix for "'+o+'" tag handle'),jR.test(i)||H(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[o]=i}};function no(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||H(e,"expected valid JSON character");else
|
|
29
|
-
`,r-1))}function
|
|
25
|
+
`+r)),n},e})();DT.exports=g6});var ut=x(Dg=>{"use strict";Object.defineProperty(Dg,"__esModule",{value:!0});var UT=ms(),b6=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],v6=["scalar","sequence","mapping"];function x6(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}var S6=(function(){function e(t,r){if(r=r||{},Object.keys(r).forEach(function(n){if(b6.indexOf(n)===-1)throw new UT('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=x6(r.styleAliases||null),v6.indexOf(this.kind)===-1)throw new UT('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}return e})();Dg.Type=S6});var hs=x(Ug=>{"use strict";Object.defineProperty(Ug,"__esModule",{value:!0});var FT=Ko(),nu=ms(),w6=ut();function Lg(e,t,r){var n=[];return e.include.forEach(function(o){r=Lg(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 _6(){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 P6=(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 nu("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=Lg(this,"implicit",[]),this.compiledExplicit=Lg(this,"explicit",[]),this.compiledTypeMap=_6(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 nu("Wrong number of arguments for Schema.create function")}if(r=FT.toArray(r),n=FT.toArray(n),!r.every(function(o){return o instanceof e}))throw new nu("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!n.every(function(o){return o instanceof w6.Type}))throw new nu("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new e({include:r,explicit:n})},e})();Ug.Schema=P6});var VT=x((Ume,zT)=>{"use strict";var E6=ut();zT.exports=new E6.Type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var HT=x((Fme,BT)=>{"use strict";var $6=ut();BT.exports=new $6.Type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var GT=x((zme,KT)=>{"use strict";var A6=ut();KT.exports=new A6.Type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var YT=x((Vme,WT)=>{"use strict";var T6=hs();WT.exports=new T6.Schema({explicit:[VT(),HT(),GT()]})});var JT=x((Bme,QT)=>{"use strict";var R6=ut();function O6(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function k6(){return null}function I6(e){return e===null}QT.exports=new R6.Type("tag:yaml.org,2002:null",{kind:"scalar",resolve:O6,construct:k6,predicate:I6,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var ZT=x((Hme,XT)=>{"use strict";var C6=ut();function q6(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 N6(e){return e==="true"||e==="True"||e==="TRUE"}function M6(e){return Object.prototype.toString.call(e)==="[object Boolean]"}XT.exports=new C6.Type("tag:yaml.org,2002:bool",{kind:"scalar",resolve:q6,construct:N6,predicate:M6,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 tR=x((Kme,eR)=>{"use strict";var j6=Ko(),D6=ut();function L6(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function U6(e){return 48<=e&&e<=55}function F6(e){return 48<=e&&e<=57}function z6(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(!L6(e.charCodeAt(r)))return!1;n=!0}return n}for(;r<t;r++)if(o=e[r],o!=="_"){if(!U6(e.charCodeAt(r)))return!1;n=!0}return n}for(;r<t;r++)if(o=e[r],o!=="_"){if(o===":")break;if(!F6(e.charCodeAt(r)))return!1;n=!0}return n?o!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r)):!1}function V6(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 B6(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!j6.isNegativeZero(e)}eR.exports=new D6.Type("tag:yaml.org,2002:int",{kind:"scalar",resolve:z6,construct:V6,predicate:B6,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 oR=x((Gme,nR)=>{"use strict";var rR=Ko(),H6=ut(),K6=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 G6(e){if(e===null)return!1;var t,r,n,o;return!!K6.test(e)}function W6(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 Y6(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(rR.isNegativeZero(e))return"-0.0";return e.toString(10)}function Q6(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||rR.isNegativeZero(e))}nR.exports=new H6.Type("tag:yaml.org,2002:float",{kind:"scalar",resolve:G6,construct:W6,predicate:Q6,represent:Y6,defaultStyle:"lowercase"})});var sR=x((Wme,iR)=>{"use strict";var J6=hs();iR.exports=new J6.Schema({include:[YT()],implicit:[JT(),ZT(),tR(),oR()]})});var cR=x((Yme,aR)=>{"use strict";var X6=hs();aR.exports=new X6.Schema({include:[sR()]})});var uR=x((Qme,lR)=>{"use strict";var Z6=ut(),pR=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 e8(e){if(e===null)return!1;var t,r,n,o,i,s,a,c=0,p=null,l,u,f;return t=pR.exec(e),t!==null}function t8(e){var t,r,n,o,i,s,a,c=0,p=null,l,u,f;if(t=pR.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)),f=new Date(Date.UTC(r,n,o,i,s,a,c)),p&&f.setTime(f.getTime()-p),f}function r8(e){return e.toISOString()}lR.exports=new Z6.Type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:e8,construct:t8,instanceOf:Date,represent:r8})});var fR=x((Jme,dR)=>{"use strict";var n8=ut();function o8(e){return e==="<<"||e===null}dR.exports=new n8.Type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:o8})});var hR=x((Xme,mR)=>{"use strict";var ou=yu("buffer").Buffer,i8=ut(),Fg=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
26
|
+
\r`;function s8(e){if(e===null)return!1;var t,r,n=0,o=0,i=e.length,s=Fg;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 a8(e){var t,r,n,o=e.replace(/[\r\n=]/g,""),i=o.length,s=Fg,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),ou?new ou(c):c}function c8(e){var t="",r=0,n,o,i=e.length,s=Fg;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 p8(e){return ou&&ou.isBuffer(e)}mR.exports=new i8.Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:s8,construct:a8,predicate:p8,represent:c8})});var gR=x((Zme,yR)=>{"use strict";var l8=ut(),u8=Object.prototype.hasOwnProperty,d8=Object.prototype.toString;function f8(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,d8.call(o)!=="[object Object]")return!1;for(i in o)if(u8.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 m8(e){return e!==null?e:[]}yR.exports=new l8.Type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:f8,construct:m8})});var vR=x((ehe,bR)=>{"use strict";var h8=ut(),zg=nc(),y8=Object.prototype.toString;function g8(e){if(e===null)return!0;if(e.kind!=zg.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],y8.call(n)!=="[object Object]"||!Array.isArray(n.mappings)||n.mappings.length!==1)return!1;return!0}function b8(e){if(e===null||!Array.isArray(e.items))return[];var t,r,n,o,i=e.items;for(o=zg.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=zg.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}bR.exports=new h8.Type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:g8,construct:b8})});var SR=x((the,xR)=>{"use strict";var v8=ut(),x8=nc();function S8(e){return e===null?!0:e.kind==x8.Kind.MAP}function w8(e){return e!==null?e:{}}xR.exports=new v8.Type("tag:yaml.org,2002:set",{kind:"mapping",resolve:S8,construct:w8})});var iu=x((rhe,wR)=>{"use strict";var _8=hs(),P8=new _8.Schema({include:[cR()],implicit:[uR(),fR()],explicit:[hR(),gR(),vR(),SR()]});wR.exports=P8});var PR=x((nhe,_R)=>{"use strict";var E8=ut();function $8(){return!0}function A8(){}function T8(){return""}function R8(e){return typeof e>"u"}_R.exports=new E8.Type("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:$8,construct:A8,predicate:R8,represent:T8})});var $R=x((ohe,ER)=>{"use strict";var O8=ut();function k8(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 I8(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 C8(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function q8(e){return Object.prototype.toString.call(e)==="[object RegExp]"}ER.exports=new O8.Type("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:k8,construct:I8,predicate:q8,represent:C8})});var Vg=x((ihe,RR)=>{"use strict";var AR=hs(),TR=new AR.Schema({include:[iu()],explicit:[PR(),$R()]});AR.Schema.DEFAULT=TR;RR.exports=TR});var zR=x((vs,ic)=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});var Qt=nc(),ro=Ko(),Qg=ms(),Jg=LT(),CR=iu(),N8=Vg(),cu=Object.prototype.hasOwnProperty,su=1,qR=2,NR=3,au=4,Bg=1,M8=2,OR=3,j8=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,D8=/[\x85\u2028\u2029]/,L8=/[,\[\]\{\}]/,MR=/^(?:!|!!|![a-z\-]+!)$/i,jR=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Tr(e){return e===10||e===13}function Go(e){return e===9||e===32}function Vt(e){return e===9||e===32||e===10||e===13}function ys(e){return e===44||e===91||e===93||e===123||e===125}function U8(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function F8(e){return e===120?2:e===117?4:e===85?8:0}function z8(e){return 48<=e&&e<=57?e-48:-1}function V8(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 B8(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var Hg=new Array(256),Kg=new Array(256),DR=new Array(256),Gg=new Array(256);for(fr=0;fr<256;fr++)Gg[fr]=Kg[fr]=V8(fr),Hg[fr]=Kg[fr]?1:0,DR[fr]=1,Hg[fr]||(Gg[fr]="\\"+String.fromCharCode(fr));var fr,H8=(function(){function e(t,r){this.errorMap={},this.errors=[],this.lines=[],this.input=t,this.filename=r.filename||null,this.schema=r.schema||N8,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 Xg(e,t,r){return r===void 0&&(r=!1),new Qg(t,new Jg(e.filename,e.input,e.position,e.line,e.position-e.lineStart),r)}function Wg(e,t,r,n,o){n===void 0&&(n=!1),o===void 0&&(o=!1);var i=K8(e,t);if(i){var s=r+t;if(!e.errorMap[s]){var a=new Jg(e.filename,e.input,t,i.line,t-i.start);o&&(a.toLineEnd=!0);var c=new Qg(r,a,n);e.errors.push(c)}}}function H(e,t){var r=Xg(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 Yg(e,t){var r=Xg(e,t);e.onWarning&&e.onWarning.call(null,r)}var kR={YAML:function(t,r,n){var o,i,s;t.version!==null&&H(t,"duplication of %YAML directive"),n.length!==1&&H(t,"YAML directive accepts exactly one argument"),o=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),o===null&&H(t,"ill-formed argument of the YAML directive"),i=parseInt(o[1],10),s=parseInt(o[2],10),i!==1&&H(t,"found incompatible YAML document (version 1.2 is required)"),t.version=n[0],t.checkLineBreaks=s<2,s!==2&&H(t,"found incompatible YAML document (version 1.2 is required)")},TAG:function(t,r,n){var o,i;n.length!==2&&H(t,"TAG directive accepts exactly two arguments"),o=n[0],i=n[1],MR.test(o)||H(t,"ill-formed tag handle (first argument) of the TAG directive"),cu.call(t.tagMap,o)&&H(t,'there is a previously declared suffix for "'+o+'" tag handle'),jR.test(i)||H(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[o]=i}};function no(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||H(e,"expected valid JSON character");else j8.test(a)&&H(e,"the stream contains non-printable characters");c.value+=a,c.endPosition=r}}function gs(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:Qt.Kind.MAP});var a=Qt.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)&&(Wg(e,a.key.startPosition,"duplicate key"),Wg(e,c.key.startPosition,"duplicate key"))}),t.mappings.push(a),t.endPosition=o?o.endPosition:n.endPosition+1,t}}function Zg(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++):H(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.lines.push({start:e.lineStart,line:e.line})}function K8(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 Ke(e,t,r){for(var n=0,o=e.input.charCodeAt(e.position);o!==0;){for(;Go(o);)o===9&&e.errors.push(Xg(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(Tr(o))for(Zg(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&&Yg(e,"deficient indentation"),n}function oc(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||Vt(r)))}function eb(e,t,r){r===1?t.value+=" ":r>1&&(t.value+=ro.repeat(`
|
|
29
|
+
`,r-1))}function G8(e,t,r){var n,o,i,s,a,c,p,l,u=e.kind,f=e.result,d,m=Qt.newScalar();if(m.plainScalar=!0,e.result=m,d=e.input.charCodeAt(e.position),Vt(d)||ys(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),Vt(o)||r&&ys(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),Vt(o)||r&&ys(o))break}else if(d===35){if(n=e.input.charCodeAt(e.position-1),Vt(n))break}else{if(e.position===e.lineStart&&oc(e)||r&&ys(d))break;if(Tr(d))if(c=e.line,p=e.lineStart,l=e.lineIndent,Ke(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&&(no(e,i,s,!1),eb(e,m,e.line-c),i=s=e.position,a=!1),Go(d)||(s=e.position+1),d=e.input.charCodeAt(++e.position),e.position>=e.input.length)return!1}return no(e,i,s,!1),e.result.startPosition!=-1?(m.rawValue=e.input.substring(m.startPosition,m.endPosition),!0):(e.kind=u,e.result=f,!1)}function W8(e,t){var r,n,o;if(r=e.input.charCodeAt(e.position),r!==39)return!1;var i=Qt.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(no(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 Tr(r)?(no(e,n,o,!0),eb(e,i,Ke(e,!1,t)),n=o=e.position):e.position===e.lineStart&&oc(e)?H(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position,i.endPosition=e.position);H(e,"unexpected end of the stream within a single quoted scalar")}function Y8(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=Qt.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 no(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(no(e,r,e.position,!0),c=e.input.charCodeAt(++e.position),Tr(c))Ke(e,!1,t);else if(c<256&&(e.allowAnyEscape?DR[c]:Hg[c]))p.value+=e.allowAnyEscape?Gg[c]:Kg[c],e.position++;else if((s=F8(c))>0){for(o=s,i=0;o>0;o--)c=e.input.charCodeAt(++e.position),(s=U8(c))>=0?i=(i<<4)+s:H(e,"expected hexadecimal character");p.value+=B8(i),e.position++}else H(e,"unknown escape sequence");r=n=e.position}else Tr(c)?(no(e,r,n,!0),eb(e,p,Ke(e,!1,t)),r=n=e.position):e.position===e.lineStart&&oc(e)?H(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}H(e,"unexpected end of the stream within a double quoted scalar")}function Q8(e,t){var r=!0,n,o=e.tag,i,s=e.anchor,a,c,p,l,u,f,d,m,h;if(h=e.input.charCodeAt(e.position),h===91)c=93,u=!1,i=Qt.newItems(),i.startPosition=e.position;else if(h===123)c=125,u=!0,i=Qt.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(Ke(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;H(e,"missed comma between flow collection entries"),e.position=y+1}if(d=f=m=null,p=l=!1,h===63&&(a=e.input.charCodeAt(e.position+1),Vt(a)&&(p=l=!0,e.position++,Ke(e,!0,t))),n=e.line,bs(e,t,su,!1,!0),d=e.tag,f=e.result,Ke(e,!0,t),h=e.input.charCodeAt(e.position),(l||e.line===n)&&h===58&&(p=!0,h=e.input.charCodeAt(++e.position),Ke(e,!0,t),bs(e,t,su,!1,!0),m=e.result),u)gs(e,i,d,f,m);else if(p){var g=gs(e,null,d,f,m);g.parent=i,i.items.push(g)}else f&&(f.parent=i),i.items.push(f);i.endPosition=e.position+1,Ke(e,!0,t),h=e.input.charCodeAt(e.position),h===44?(r=!0,h=e.input.charCodeAt(++e.position)):r=!1}H(e,"unexpected end of the stream within a flow collection")}function J8(e,t){var r,n,o=Bg,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=Qt.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)Bg===o?o=l===43?OR:M8:H(e,"repeat of a chomping mode identifier");else if((p=z8(l))>=0)p===0?H(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):i?H(e,"repeat of an indentation width identifier"):(s=t+p-1,i=!0);else break;if(Go(l)){do l=e.input.charCodeAt(++e.position);while(Go(l));if(l===35)do l=e.input.charCodeAt(++e.position);while(!Tr(l)&&l!==0)}for(;l!==0;){for(Zg(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),Tr(l)){a++;continue}if(e.lineIndent<s){o===OR?u.value+=ro.repeat(`
|
|
30
30
|
`,a):o===Bg&&i&&(u.value+=`
|
|
31
31
|
`);break}for(n?Go(l)?(c=!0,u.value+=ro.repeat(`
|
|
32
32
|
`,a+1)):c?(c=!1,u.value+=ro.repeat(`
|
|
33
33
|
`,a+1)):a===0?i&&(u.value+=" "):u.value+=ro.repeat(`
|
|
34
34
|
`,a):i&&(u.value+=ro.repeat(`
|
|
35
35
|
`,a+1)),i=!0,a=0,r=e.position;!Tr(l)&&l!==0;)l=e.input.charCodeAt(++e.position);no(e,r,e.position,!1)}u.endPosition=e.position;for(var f=e.position-1,d=!1;;){var m=e.input[f];if(m=="\r"||m==`
|
|
36
|
-
`){d&&f--;break}if(m!=" "&&m!=" ")break;f--}return u.endPosition=f,u.rawValue=e.input.substring(u.startPosition,u.endPosition),!0}function IR(e,t){var r,n=e.tag,o=e.anchor,i=Qt.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),!Vt(s)));){if(a=!0,e.position++,Ke(e,!0,-1)&&e.lineIndent<=t){i.items.push(null),c=e.input.charCodeAt(e.position);continue}if(r=e.line,bs(e,t,NR,!1,!0),e.result&&(e.result.parent=i,i.items.push(e.result)),Ke(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&c!==0)H(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
|
|
37
|
-
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new
|
|
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 tb(e,t,r){r===void 0&&(r={});var n=LR(e,r),o,i;for(o=0,i=n.length;o<i;o+=1)t(n[o])}vs.loadAll=tb;function rb(e,t){t===void 0&&(t={});var r=LR(e,t),n,o;if(r.length!==0){if(r.length===1)return r[0];var i=new Qg("expected a single document in the stream, but found more");return i.mark=new Jg("","",0,0,0),i.mark.position=r[0].endPosition,r[0].errors.push(i),r[0]}}vs.load=rb;function UR(e,t,r){r===void 0&&(r={}),tb(e,t,ro.extend({schema:CR},r))}vs.safeLoadAll=UR;function FR(e,t){return t===void 0&&(t={}),rb(e,ro.extend({schema:CR},t))}vs.safeLoad=FR;ic.exports.loadAll=tb;ic.exports.load=rb;ic.exports.safeLoadAll=UR;ic.exports.safeLoad=FR});var YR=x(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});var sc=Ko(),cb=ms(),
|
|
36
|
+
`){d&&f--;break}if(m!=" "&&m!=" ")break;f--}return u.endPosition=f,u.rawValue=e.input.substring(u.startPosition,u.endPosition),!0}function IR(e,t){var r,n=e.tag,o=e.anchor,i=Qt.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),!Vt(s)));){if(a=!0,e.position++,Ke(e,!0,-1)&&e.lineIndent<=t){i.items.push(null),c=e.input.charCodeAt(e.position);continue}if(r=e.line,bs(e,t,NR,!1,!0),e.result&&(e.result.parent=i,i.items.push(e.result)),Ke(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&c!==0)H(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 X8(e,t,r){var n,o,i,s=e.tag,a=e.anchor,c=Qt.newMap(),p=null,l=null,u=null,f=!1,d=!1,m;for(c.startPosition=e.position,e.anchor!==null&&(c.anchorId=e.anchor,e.anchorMap[e.anchor]=c),m=e.input.charCodeAt(e.position);m!==0;){if(n=e.input.charCodeAt(e.position+1),i=e.line,(m===63||m===58)&&Vt(n))m===63?(f&&(gs(e,c,p,l,null),p=l=u=null),d=!0,f=!0,o=!0):f?(f=!1,o=!0):H(e,"incomplete explicit mapping pair; a key node is missed"),e.position+=1,m=n;else if(bs(e,r,qR,!1,!0))if(e.line===i){for(m=e.input.charCodeAt(e.position);Go(m);)m=e.input.charCodeAt(++e.position);if(m===58)m=e.input.charCodeAt(++e.position),Vt(m)||H(e,"a whitespace character is expected after the key-value separator within a block mapping"),f&&(gs(e,c,p,l,null),p=l=u=null),d=!0,f=!1,o=!1,p=e.tag,l=e.result;else{if(e.position==e.lineStart&&oc(e))break;if(d)H(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(H(e,"can not read a block mapping entry; a multiline key may not be an implicit key");e.position>0;)if(m=e.input.charCodeAt(--e.position),Tr(m)){e.position++;break}}else return e.tag=s,e.anchor=a,!0;else break;if((e.line===i||e.lineIndent>t)&&(bs(e,t,au,!0,o)&&(f?l=e.result:u=e.result),f||(gs(e,c,p,l,u),p=l=u=null),Ke(e,!0,-1),m=e.input.charCodeAt(e.position)),e.lineIndent>t&&m!==0)H(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return f&&gs(e,c,p,l,null),d&&(e.tag=s,e.anchor=a,e.kind="mapping",e.result=c),d}function Z8(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&&H(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)):H(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!Vt(s);)s===33&&(n?H(e,"tag suffix cannot contain exclamation marks"):(o=e.input.slice(t-1,e.position+1),MR.test(o)||H(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),L8.test(i)&&H(e,"tag suffix cannot contain flow indicator characters")}return i&&!jR.test(i)&&H(e,"tag name cannot contain such characters: "+i),r?e.tag=i:cu.call(e.tagMap,o)?e.tag=e.tagMap[o]+i:o==="!"?e.tag="!"+i:o==="!!"?e.tag="tag:yaml.org,2002:"+i:H(e,'undeclared tag handle "'+o+'"'),!0}function eJ(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&H(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!Vt(r)&&!ys(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&H(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function tJ(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&&!Vt(i)&&!ys(i);)i=e.input.charCodeAt(++e.position);return e.position<=t&&(H(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)||(H(e,'unidentified alias "'+r+'"'),e.position<=t&&(e.position=t+1)),e.result=Qt.newAnchorRef(r,t,e.position,e.anchorMap[r]),Ke(e,!0,-1),!0}function bs(e,t,r,n,o){var i,s,a,c=1,p=!1,l=!1,u,f,d,m,h,y;e.tag=null,e.anchor=null,e.kind=null,e.result=null,i=s=a=au===r||NR===r,n&&Ke(e,!0,-1)&&(p=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1));var g=e.position,b=e.position-e.lineStart;if(c===1)for(;Z8(e)||eJ(e);)Ke(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||au===r)&&(su===r||qR===r?m=t:m=t+1,h=e.position-e.lineStart,c===1?a&&(IR(e,h)||X8(e,h,m))||Q8(e,m)?l=!0:(s&&J8(e,m)||W8(e,m)||Y8(e,m)?l=!0:tJ(e)?(l=!0,(e.tag!==null||e.anchor!==null)&&H(e,"alias node should not have any properties")):G8(e,m,su===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&&IR(e,h))),e.tag!==null&&e.tag!=="!")if(e.tag=="!include")e.result||(e.result=Qt.newScalar(),e.result.startPosition=e.position,e.result.endPosition=e.position,H(e,"!include without value")),e.result.kind=Qt.Kind.INCLUDE_REF;else if(e.tag==="?")for(u=0,f=e.implicitTypes.length;u<f;u+=1){d=e.implicitTypes[u];var v=e.result.value;if(d.resolve(v)){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 cu.call(e.typeMap,e.tag)?(d=e.typeMap[e.tag],e.result!==null&&d.kind!==e.kind&&H(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)):H(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):Wg(e,g,"unknown tag <"+e.tag+">",!1,!0);return e.tag!==null||e.anchor!==null||l}function rJ(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&&(Ke(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&&!Vt(s);)s=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),o=[],n.length<1&&H(e,"directive name must not be less than one character in length");s!==0;){for(;Go(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!Tr(s));break}if(Tr(s))break;for(r=e.position;s!==0&&!Vt(s);)s=e.input.charCodeAt(++e.position);o.push(e.input.slice(r,e.position))}s!==0&&Zg(e),cu.call(kR,n)?kR[n](e,n,o):(Yg(e,'unknown document directive "'+n+'"'),e.position++)}if(Ke(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,Ke(e,!0,-1)):i&&H(e,"directives end mark is expected"),bs(e,e.lineIndent-1,au,!1,!0),Ke(e,!0,-1),e.checkLineBreaks&&D8.test(e.input.slice(t,e.position))&&Yg(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&oc(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Ke(e,!0,-1));return}if(e.position<e.length-1)H(e,"end of the stream or a document separator is expected");else return}function LR(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 H8(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(rJ(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 tb(e,t,r){r===void 0&&(r={});var n=LR(e,r),o,i;for(o=0,i=n.length;o<i;o+=1)t(n[o])}vs.loadAll=tb;function rb(e,t){t===void 0&&(t={});var r=LR(e,t),n,o;if(r.length!==0){if(r.length===1)return r[0];var i=new Qg("expected a single document in the stream, but found more");return i.mark=new Jg("","",0,0,0),i.mark.position=r[0].endPosition,r[0].errors.push(i),r[0]}}vs.load=rb;function UR(e,t,r){r===void 0&&(r={}),tb(e,t,ro.extend({schema:CR},r))}vs.safeLoadAll=UR;function FR(e,t){return t===void 0&&(t={}),rb(e,ro.extend({schema:CR},t))}vs.safeLoad=FR;ic.exports.loadAll=tb;ic.exports.load=rb;ic.exports.safeLoadAll=UR;ic.exports.safeLoad=FR});var YR=x(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});var sc=Ko(),cb=ms(),nJ=Vg(),oJ=iu(),pb=Object.prototype.toString,KR=Object.prototype.hasOwnProperty,iJ=9,Wo=10,sJ=13,nb=32,aJ=33,ob=34,cJ=35,pJ=37,lJ=38,ib=39,uJ=42,dJ=44,fJ=45,mJ=58,hJ=62,yJ=63,gJ=64,bJ=91,vJ=93,xJ=96,SJ=123,wJ=124,_J=125,tt={};tt[0]="\\0";tt[7]="\\a";tt[8]="\\b";tt[9]="\\t";tt[10]="\\n";tt[11]="\\v";tt[12]="\\f";tt[13]="\\r";tt[27]="\\e";tt[34]='\\"';tt[92]="\\\\";tt[133]="\\N";tt[160]="\\_";tt[8232]="\\L";tt[8233]="\\P";var PJ=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function EJ(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&&KR.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[s]=a;return r}function $J(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 cb("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+sc.repeat("0",n-t.length)+t}function AJ(e){this.schema=e.schema||nJ,this.indent=Math.max(1,e.indent||2),this.skipInvalid=e.skipInvalid||!1,this.flowLevel=sc.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=EJ(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 VR(e,t){for(var r=sc.repeat(" ",t),n=0,o=-1,i="",s,a=e.length;n<a;)o=e.indexOf(`
|
|
39
39
|
`,n),o===-1?(s=e.slice(n),n=a):(s=e.slice(n,o+1),n=o+1),s.length&&s!==`
|
|
40
40
|
`&&(i+=r),i+=s;return i}function sb(e,t){return`
|
|
41
|
-
`+sc.repeat(" ",e.indent*t)}function
|
|
41
|
+
`+sc.repeat(" ",e.indent*t)}function TJ(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 pu(e){this.source=e,this.result="",this.checkpoint=0}pu.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};pu.prototype.escapeChar=function(){var e,t;return e=this.source.charCodeAt(this.checkpoint),t=tt[e]||$J(e),this.result+=t,this.checkpoint+=1,this};pu.prototype.finish=function(){this.source.length>this.checkpoint&&this.takeUpTo(this.source.length)};function RJ(e,t,r){var n,o,i,s,a,c,p,l,u,f,d,m,h,y,g,b,v,w,S,P,R;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(PJ.indexOf(t)!==-1){e.dump="'"+t+"'";return}for(n=!0,o=t.length?t.charCodeAt(0):0,i=nb===o||nb===t.charCodeAt(t.length-1),(fJ===o||yJ===o||gJ===o||xJ===o)&&(n=!1),i?(n=!1,s=!1,a=!1):(s=!0,a=!0),c=!0,p=new pu(t),l=!1,u=0,f=0,d=e.indent*r,m=80,d<40?m-=d:m=40,y=0;y<t.length;y++){if(h=t.charCodeAt(y),n)if(!kJ(h))n=!1;else continue;c&&h===ib&&(c=!1),g=tt[h],b=GR(h),!(!g&&!b)&&(h!==Wo&&h!==ob&&h!==ib?(s=!1,a=!1):h===Wo&&(l=!0,c=!1,y>0&&(v=t.charCodeAt(y-1),v===nb&&(a=!1,s=!1)),s&&(w=y-u,u=y,w>f&&(f=w))),h!==ob&&(c=!1),p.takeUpTo(y),p.escapeChar())}if(n&&TJ(e,t)&&(n=!1),S="",(s||a)&&(P=0,t.charCodeAt(t.length-1)===Wo&&(P+=1,t.charCodeAt(t.length-2)===Wo&&(P+=1)),P===0?S="-":P===2&&(S="+")),a&&f<m&&(s=!1),l||(a=!1),n)e.dump=t;else if(c)e.dump="'"+t+"'";else if(s)R=OJ(t,m),e.dump=">"+S+`
|
|
42
42
|
`+VR(R,d);else if(a)S||(t=t.replace(/\n$/,"")),e.dump="|"+S+`
|
|
43
|
-
`+VR(t,d);else if(p)p.finish(),e.dump='"'+p.result+'"';else throw new Error("Failed to dump scalar value")}function
|
|
43
|
+
`+VR(t,d);else if(p)p.finish(),e.dump='"'+p.result+'"';else throw new Error("Failed to dump scalar value")}function OJ(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
44
|
`,n),s>o||s===-1?(r&&(r+=`
|
|
45
45
|
|
|
46
46
|
`),r+=BR(e.slice(n,o),t),n=o):(r&&(r+=`
|
|
@@ -49,10 +49,10 @@ import{a as rt,b as Jo,c as cO}from"./NEWT5A6S.js";import{a as yu,c as x,d as aO
|
|
|
49
49
|
`&&(r+=i[0]),r}function BR(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
50
|
`),p=e.slice(i,c),n+=p,i=c+1),o=a+1,s=r.exec(e);return n&&(n+=`
|
|
51
51
|
`),i!==o&&e.length-i>t?n+=e.slice(i,o)+`
|
|
52
|
-
`+e.slice(o+1):n+=e.slice(i),n}function
|
|
53
|
-
`:"")+e.dump)):(
|
|
54
|
-
`:"")+e.dump)):(
|
|
55
|
-
`:""}lu.dump=WR;function MJ(e,t){return WR(e,sc.extend({schema:nJ},t))}lu.safeDump=MJ});var QR=x(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});function jJ(e){if(["true","True","TRUE"].lastIndexOf(e)>=0)return!0;if(["false","False","FALSE"].lastIndexOf(e)>=0)return!1;throw'Invalid boolean "'+e+'"'}oo.parseYamlBoolean=jJ;function DJ(e){return e.lastIndexOf("0o",0)===0?parseInt(e.substring(2),8):parseInt(e)}function LJ(e){var t=DJ(e);if(isNaN(t))throw'Invalid integer "'+e+'"';return t}oo.parseYamlInteger=LJ;function UJ(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+'"'}oo.parseYamlFloat=UJ;var Pn;(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"})(Pn=oo.ScalarType||(oo.ScalarType={}));function FJ(e){if(e===void 0)return Pn.null;if(e.doubleQuoted||!e.plainScalar||e.singleQuoted)return Pn.string;var t=e.value;if(["null","Null","NULL","~",""].indexOf(t)>=0||t==null)return Pn.null;if(["true","True","TRUE","false","False","FALSE"].indexOf(t)>=0)return Pn.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 Pn.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?Pn.float:Pn.string}oo.determineScalarType=FJ});var ZR=x(Rr=>{"use strict";function JR(e){for(var t in e)Rr.hasOwnProperty(t)||(Rr[t]=e[t])}Object.defineProperty(Rr,"__esModule",{value:!0});var uu=zR();Rr.load=uu.load;Rr.loadAll=uu.loadAll;Rr.safeLoad=uu.safeLoad;Rr.safeLoadAll=uu.safeLoadAll;var XR=YR();Rr.dump=XR.dump;Rr.safeDump=XR.safeDump;Rr.YAMLException=ms();JR(nc());JR(QR())});function $(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}var db=qr(vu(),1);function pO(e,t,r){return e.split(" ").map(n=>(0,db.default)(n,t,r)).join(" ")}function lO(e){return e.charAt(0).toUpperCase()+e.slice(1)}import*as Xo from"node:path";function We(e){return!!e}function mr(e,t){return e===""&&(e="#/"),e[e.length-1]==="/"?e+t:e+"/"+t}function M(e){return $(e)&&typeof e.$ref=="string"}function Zo(e){return M(e)&&Object.keys(e).length>1}function ac(e){return $(e)&&typeof e.externalValue=="string"}var ft=class e{source;pointer;constructor(t,r){this.source=t,this.pointer=r}child(t){return new e(this.source,mr(this.pointer,(Array.isArray(t)?t:[t]).map(Nr).join("/")))}key(){return Object.assign(Object.create(e.prototype),this,{reportOnKey:!0})}get absolutePointer(){return this.source.absoluteRef+(this.pointer==="#/"?"":this.pointer)}};function fb(e){let t=e.indexOf("~")===-1?e:e.replaceAll("~1","/").replaceAll("~0","~");try{return decodeURIComponent(t)}catch{return t}}function Nr(e){return typeof e=="number"||e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replaceAll("~","~0").replaceAll("/","~1")}function En(e){let[t,r=""]=e.split("#/");return{uri:(t.endsWith("#")?t.slice(0,-1):t)||null,pointer:xu(r)}}function xu(e){return e.split("/").map(fb).filter(We)}function mb(e){let t=e.split("/");return t[t.length-1]}function hb(e){let t=e.split(/[\/\\]/);return t[t.length-1].replace(/\.[^.]+$/,"")}function oe(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("file://")||e.startsWith("data:")}function Su(e){return Xo.extname(e)?oe(e)?e.substring(0,e.lastIndexOf("/")):Xo.dirname(e):e}function cc(e,t){return oe(e)?new URL(t,e.endsWith("/")?e:`${e}/`).href:Xo.resolve(e,t)}function Mr(e){return typeof e=="string"&&(e.startsWith("#")||oe(e)||e.startsWith("./")||e.startsWith("../")||e.indexOf("/")>-1||/\.(ya?ml|json)$/i.test(e))}function yb(e){return/^#[A-Za-z][A-Za-z0-9\-_:.]*$/.test(e)}function Ss(e,t,r){if(!$(t.node)&&r.parent){r.parent[r.key]=t.node;return}delete e.$ref,$(t.node)&&Object.assign(e,{...t.node,...e})}var he=Symbol("NOT_RESOLVED"),Bu=Symbol("MERGE_KEY");function mt(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 Hu(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 yc(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 uO=mt("tag:yaml.org,2002:str",{resolve:e=>e,identify:e=>typeof e=="string"}),dO=["","~","null","Null","NULL"],fO=mt("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:e=>dO.indexOf(e)!==-1?null:he,identify:e=>e===null,represent:()=>"null"}),mO=mt("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["n"],resolve:(e,t)=>e==="null"||t&&e===""?null:he,identify:e=>e===null,represent:()=>"null"}),hO=["","~","null","Null","NULL"],yO=mt("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:e=>hO.indexOf(e)!==-1?null:he,identify:e=>e===null,represent:()=>"null"}),gO=["true","True","TRUE"],bO=["false","False","FALSE"],vO=mt("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","T","f","F"],resolve:e=>gO.indexOf(e)!==-1?!0:bO.indexOf(e)!==-1?!1:he,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),xO=["true"],SO=["false"],wO=mt("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","f"],resolve:e=>xO.indexOf(e)!==-1?!0:SO.indexOf(e)!==-1?!1:he,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),_O=["true","True","TRUE","y","Y","yes","Yes","YES","on","On","ON"],PO=["false","False","FALSE","n","N","no","No","NO","off","Off","OFF"],EO=mt("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["y","Y","n","N","t","T","f","F","o","O"],resolve:e=>_O.indexOf(e)!==-1?!0:PO.indexOf(e)!==-1?!1:he,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),$O=new RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"),AO=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function TO(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 RO(e,t){if(t){if(!AO.test(e))return he}else if(!$O.test(e))return he;let r=TO(e);return Number.isFinite(r)?r:he}var Nb=mt("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:RO,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),OO=new RegExp("^-?(?:0|[1-9][0-9]*)$"),kO=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function IO(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 CO(e,t){if(t){if(!kO.test(e))return he}else if(!OO.test(e))return he;let r=IO(e);return Number.isFinite(r)?r:he}var qO=mt("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:CO,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),NO=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 MO(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 jO(e){if(!NO.test(e))return he;let t=MO(e);return Number.isFinite(t)?t:he}var Tu=mt("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:jO,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),DO=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),LO=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function UO(e){if(!DO.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)||LO.test(e)?n:he}function FO(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 Mb=mt("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:UO,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:FO}),zO=new RegExp("^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$"),VO=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function BO(e,t){if(t){if(!VO.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(!zO.test(e))return he;let r=Number(e);return Number.isFinite(r)?r:he}function HO(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 KO=mt("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:BO,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:HO}),GO=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))$"),WO=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function YO(e){if(!GO.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)||WO.test(e)?n:he}function QO(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 Ru=mt("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:YO,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:QO}),Ku=mt("tag:yaml.org,2002:merge",{implicit:!0,implicitFirstChars:["<"],resolve:(e,t)=>e==="<<"||t&&e===""?Bu:he}),JO=/^[A-Za-z0-9+/]*={0,2}$/;function XO(e){let t=e.replace(/\s/g,"");if(t.length%4!==0||!JO.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 ZO(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}var Gu=mt("tag:yaml.org,2002:binary",{resolve:XO,identify:e=>Object.prototype.toString.call(e)==="[object Uint8Array]",represent:ZO}),e1=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),t1=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 r1(e){let t=e1.exec(e);if(t===null&&(t=t1.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 f=(l*60+u)*6e4;p.setTime(p.getTime()-(t[9]==="-"?-f:f))}return p}var n1=mt("tag:yaml.org,2002:timestamp",{implicit:!0,implicitFirstChars:[..."0123456789"],resolve:r1,identify:e=>e instanceof Date,represent:e=>e.toISOString()}),o1=Hu("tag:yaml.org,2002:seq",{create:()=>[],addItem:(e,t)=>{e.push(t)},identify:Array.isArray});function gc(e){if(e===null||typeof e!="object"||Array.isArray(e))return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Ou(e,t){let r={};for(let n of t)e[n]!==void 0&&(r[n]=e[n]);return r}var Wu=Hu("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(gc(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}),Yu=Hu("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]]]),"")}}),i1=yc("tag:yaml.org,2002:map",{create:()=>({}),identify:gc,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)]}),Qu=yc("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 s1(){return{scalar:{},sequence:{},mapping:{}}}function a1(){return{scalar:[],sequence:[],mapping:[]}}function c1(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 bc=class jb{tags;implicitScalarTags;implicitScalarByFirstChar;implicitScalarAnyFirstChar;defaultScalarTag;defaultSequenceTag;defaultMappingTag;exact;prefix;constructor(t){let r=c1(t),n=[],o=s1(),i=a1();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 jb([...this.tags,...r])}},Ju=new bc([uO,o1,i1]),mX=new bc([...Ju.tags,mO,wO,qO,KO]),Xu=new bc([...Ju.tags,fO,vO,Nb,Mb]),p1=new bc([...Ju.tags,yO,EO,Tu,Ru,n1,Ku,Gu,Wu,Yu,Qu]),hX=yc("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||gc(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 gb(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 yX=yc("tag:yaml.org,2002:map",{create:()=>({}),identify:gc,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=gb(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=gb(t);return r!==null&&Object.prototype.hasOwnProperty.call(e,r)},keys:e=>Object.keys(e),get:(e,t)=>e[String(t)]}),l1={maxLength:79,indent:1,linesBefore:3,linesAfter:2};function wu(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 _u(e,t){return" ".repeat(Math.max(t-e.length,0))+e}function u1(e,t){if(!e.buffer)return null;let r={...l1,...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 f=1;f<=r.linesBefore&&!(a-f<0);f++){let d=wu(e.buffer,o[a-f],i[a-f],e.position-(o[a]-o[a-f]),l);c=`${" ".repeat(r.indent)}${_u((e.line-f+1).toString(),p)} | ${d.str}
|
|
52
|
+
`+e.slice(o+1):n+=e.slice(i),n}function kJ(e){return iJ!==e&&Wo!==e&&sJ!==e&&dJ!==e&&bJ!==e&&vJ!==e&&SJ!==e&&_J!==e&&cJ!==e&&lJ!==e&&uJ!==e&&aJ!==e&&wJ!==e&&hJ!==e&&ib!==e&&ob!==e&&pJ!==e&&mJ!==e&&!tt[e]&&!GR(e)}function GR(e){return!(32<=e&&e<=126||e===133||160<=e&&e<=55295||57344<=e&&e<=65533||65536<=e&&e<=1114111)}function IJ(e,t,r){var n="",o=e.tag,i,s;for(i=0,s=r.length;i<s;i+=1)Yo(e,t,r[i],!1,!1)&&(i!==0&&(n+=", "),n+=e.dump);e.tag=o,e.dump="["+n+"]"}function CJ(e,t,r,n){var o="",i=e.tag,s,a;for(s=0,a=r.length;s<a;s+=1)Yo(e,t+1,r[s],!0,!0)&&((!n||s!==0)&&(o+=sb(e,t)),o+="- "+e.dump);e.tag=i,e.dump=o||"[]"}function qJ(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],Yo(e,t,c,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+": ",Yo(e,t,p,!1,!1)&&(l+=e.dump,n+=l));e.tag=o,e.dump="{"+n+"}"}function NJ(e,t,r,n){var o="",i=e.tag,s=Object.keys(r),a,c,p,l,u,f;for(a=0,c=s.length;a<c;a+=1)f="",(!n||a!==0)&&(f+=sb(e,t)),p=s[a],l=r[p],Yo(e,t+1,p,!0,!0)&&(u=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,u&&(e.dump&&Wo===e.dump.charCodeAt(0)?f+="?":f+="? "),f+=e.dump,u&&(f+=sb(e,t)),Yo(e,t+1,l,!0,u)&&(e.dump&&Wo===e.dump.charCodeAt(0)?f+=":":f+=": ",f+=e.dump,o+=f));e.tag=i,e.dump=o||"{}"}function HR(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,pb.call(a.represent)==="[object Function]")n=a.represent(t,c);else if(KR.call(a.represent,c))n=a.represent[c](t,c);else throw new cb("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');e.dump=n}return!0}return!1}function Yo(e,t,r,n,o){e.tag=null,e.dump=r,HR(e,r,!1)||HR(e,r,!0);var i=pb.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?(NJ(e,t,e.dump,o),c&&(e.dump="&ref_"+a+(t===0?`
|
|
53
|
+
`:"")+e.dump)):(qJ(e,t,e.dump),c&&(e.dump="&ref_"+a+" "+e.dump));else if(i==="[object Array]")n&&e.dump.length!==0?(CJ(e,t,e.dump,o),c&&(e.dump="&ref_"+a+(t===0?`
|
|
54
|
+
`:"")+e.dump)):(IJ(e,t,e.dump),c&&(e.dump="&ref_"+a+" "+e.dump));else if(i==="[object String]")e.tag!=="?"&&RJ(e,e.dump,t);else{if(e.skipInvalid)return!1;throw new cb("unacceptable kind of an object to dump "+i)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function MJ(e,t){var r=[],n=[],o,i;for(ab(e,r,n),o=0,i=n.length;o<i;o+=1)t.duplicates.push(r[n[o]]);t.usedDuplicates=new Array(i)}function ab(e,t,r){var n=pb.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)ab(e[i],t,r);else for(o=Object.keys(e),i=0,s=o.length;i<s;i+=1)ab(e[o[i]],t,r)}function WR(e,t){t=t||{};var r=new AJ(t);return MJ(e,r),Yo(r,0,e,!0,!0)?r.dump+`
|
|
55
|
+
`:""}lu.dump=WR;function jJ(e,t){return WR(e,sc.extend({schema:oJ},t))}lu.safeDump=jJ});var QR=x(oo=>{"use strict";Object.defineProperty(oo,"__esModule",{value:!0});function DJ(e){if(["true","True","TRUE"].lastIndexOf(e)>=0)return!0;if(["false","False","FALSE"].lastIndexOf(e)>=0)return!1;throw'Invalid boolean "'+e+'"'}oo.parseYamlBoolean=DJ;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}oo.parseYamlInteger=UJ;function FJ(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+'"'}oo.parseYamlFloat=FJ;var Pn;(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"})(Pn=oo.ScalarType||(oo.ScalarType={}));function zJ(e){if(e===void 0)return Pn.null;if(e.doubleQuoted||!e.plainScalar||e.singleQuoted)return Pn.string;var t=e.value;if(["null","Null","NULL","~",""].indexOf(t)>=0||t==null)return Pn.null;if(["true","True","TRUE","false","False","FALSE"].indexOf(t)>=0)return Pn.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 Pn.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?Pn.float:Pn.string}oo.determineScalarType=zJ});var ZR=x(Rr=>{"use strict";function JR(e){for(var t in e)Rr.hasOwnProperty(t)||(Rr[t]=e[t])}Object.defineProperty(Rr,"__esModule",{value:!0});var uu=zR();Rr.load=uu.load;Rr.loadAll=uu.loadAll;Rr.safeLoad=uu.safeLoad;Rr.safeLoadAll=uu.safeLoadAll;var XR=YR();Rr.dump=XR.dump;Rr.safeDump=XR.safeDump;Rr.YAMLException=ms();JR(nc());JR(QR())});function $(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}var db=qr(vu(),1);function pO(e,t,r){return e.split(" ").map(n=>(0,db.default)(n,t,r)).join(" ")}function lO(e){return e.charAt(0).toUpperCase()+e.slice(1)}import*as Xo from"node:path";function We(e){return!!e}function mr(e,t){return e===""&&(e="#/"),e[e.length-1]==="/"?e+t:e+"/"+t}function M(e){return $(e)&&typeof e.$ref=="string"}function Zo(e){return M(e)&&Object.keys(e).length>1}function ac(e){return $(e)&&typeof e.externalValue=="string"}var ft=class e{source;pointer;constructor(t,r){this.source=t,this.pointer=r}child(t){return new e(this.source,mr(this.pointer,(Array.isArray(t)?t:[t]).map(Nr).join("/")))}key(){return Object.assign(Object.create(e.prototype),this,{reportOnKey:!0})}get absolutePointer(){return this.source.absoluteRef+(this.pointer==="#/"?"":this.pointer)}};function fb(e){let t=e.indexOf("~")===-1?e:e.replaceAll("~1","/").replaceAll("~0","~");try{return decodeURIComponent(t)}catch{return t}}function Nr(e){return typeof e=="number"||e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replaceAll("~","~0").replaceAll("/","~1")}function En(e){let[t,r=""]=e.split("#/");return{uri:(t.endsWith("#")?t.slice(0,-1):t)||null,pointer:xu(r)}}function xu(e){return e.split("/").map(fb).filter(We)}function mb(e){let t=e.split("/");return t[t.length-1]}function hb(e){let t=e.split(/[\/\\]/);return t[t.length-1].replace(/\.[^.]+$/,"")}function oe(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("file://")||e.startsWith("data:")}function Su(e){return Xo.extname(e)?oe(e)?e.substring(0,e.lastIndexOf("/")):Xo.dirname(e):e}function cc(e,t){return oe(e)?new URL(t,e.endsWith("/")?e:`${e}/`).href:Xo.resolve(e,t)}function Mr(e){return typeof e=="string"&&(e.startsWith("#")||oe(e)||e.startsWith("./")||e.startsWith("../")||e.indexOf("/")>-1||/\.(ya?ml|json)$/i.test(e))}function yb(e){return/^#[A-Za-z][A-Za-z0-9\-_:.]*$/.test(e)}function Ss(e,t,r){if(!$(t.node)&&r.parent){r.parent[r.key]=t.node;return}delete e.$ref,$(t.node)&&Object.assign(e,{...t.node,...e})}var he=Symbol("NOT_RESOLVED"),Bu=Symbol("MERGE_KEY");function mt(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 Hu(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 yc(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 uO=mt("tag:yaml.org,2002:str",{resolve:e=>e,identify:e=>typeof e=="string"}),dO=["","~","null","Null","NULL"],fO=mt("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:e=>dO.indexOf(e)!==-1?null:he,identify:e=>e===null,represent:()=>"null"}),mO=mt("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["n"],resolve:(e,t)=>e==="null"||t&&e===""?null:he,identify:e=>e===null,represent:()=>"null"}),hO=["","~","null","Null","NULL"],yO=mt("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:e=>hO.indexOf(e)!==-1?null:he,identify:e=>e===null,represent:()=>"null"}),gO=["true","True","TRUE"],bO=["false","False","FALSE"],vO=mt("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","T","f","F"],resolve:e=>gO.indexOf(e)!==-1?!0:bO.indexOf(e)!==-1?!1:he,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),xO=["true"],SO=["false"],wO=mt("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","f"],resolve:e=>xO.indexOf(e)!==-1?!0:SO.indexOf(e)!==-1?!1:he,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),_O=["true","True","TRUE","y","Y","yes","Yes","YES","on","On","ON"],PO=["false","False","FALSE","n","N","no","No","NO","off","Off","OFF"],EO=mt("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["y","Y","n","N","t","T","f","F","o","O"],resolve:e=>_O.indexOf(e)!==-1?!0:PO.indexOf(e)!==-1?!1:he,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),$O=new RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"),AO=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function TO(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 RO(e,t){if(t){if(!AO.test(e))return he}else if(!$O.test(e))return he;let r=TO(e);return Number.isFinite(r)?r:he}var Nb=mt("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:RO,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),OO=new RegExp("^-?(?:0|[1-9][0-9]*)$"),kO=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function IO(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 CO(e,t){if(t){if(!kO.test(e))return he}else if(!OO.test(e))return he;let r=IO(e);return Number.isFinite(r)?r:he}var qO=mt("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:CO,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),NO=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 MO(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 jO(e){if(!NO.test(e))return he;let t=MO(e);return Number.isFinite(t)?t:he}var Tu=mt("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:jO,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),DO=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),LO=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function UO(e){if(!DO.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)||LO.test(e)?n:he}function FO(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 Mb=mt("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:UO,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:FO}),zO=new RegExp("^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$"),VO=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function BO(e,t){if(t){if(!VO.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(!zO.test(e))return he;let r=Number(e);return Number.isFinite(r)?r:he}function HO(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 KO=mt("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:BO,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:HO}),GO=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))$"),WO=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function YO(e){if(!GO.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)||WO.test(e)?n:he}function QO(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 Ru=mt("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:YO,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:QO}),Ku=mt("tag:yaml.org,2002:merge",{implicit:!0,implicitFirstChars:["<"],resolve:(e,t)=>e==="<<"||t&&e===""?Bu:he}),JO=/^[A-Za-z0-9+/]*={0,2}$/;function XO(e){let t=e.replace(/\s/g,"");if(t.length%4!==0||!JO.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 ZO(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}var Gu=mt("tag:yaml.org,2002:binary",{resolve:XO,identify:e=>Object.prototype.toString.call(e)==="[object Uint8Array]",represent:ZO}),e1=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),t1=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 r1(e){let t=e1.exec(e);if(t===null&&(t=t1.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 f=(l*60+u)*6e4;p.setTime(p.getTime()-(t[9]==="-"?-f:f))}return p}var n1=mt("tag:yaml.org,2002:timestamp",{implicit:!0,implicitFirstChars:[..."0123456789"],resolve:r1,identify:e=>e instanceof Date,represent:e=>e.toISOString()}),o1=Hu("tag:yaml.org,2002:seq",{create:()=>[],addItem:(e,t)=>{e.push(t)},identify:Array.isArray});function gc(e){if(e===null||typeof e!="object"||Array.isArray(e))return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Ou(e,t){let r={};for(let n of t)e[n]!==void 0&&(r[n]=e[n]);return r}var Wu=Hu("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(gc(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}),Yu=Hu("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]]]),"")}}),i1=yc("tag:yaml.org,2002:map",{create:()=>({}),identify:gc,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)]}),Qu=yc("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 s1(){return{scalar:{},sequence:{},mapping:{}}}function a1(){return{scalar:[],sequence:[],mapping:[]}}function c1(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 bc=class jb{tags;implicitScalarTags;implicitScalarByFirstChar;implicitScalarAnyFirstChar;defaultScalarTag;defaultSequenceTag;defaultMappingTag;exact;prefix;constructor(t){let r=c1(t),n=[],o=s1(),i=a1();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 jb([...this.tags,...r])}},Ju=new bc([uO,o1,i1]),hX=new bc([...Ju.tags,mO,wO,qO,KO]),Xu=new bc([...Ju.tags,fO,vO,Nb,Mb]),p1=new bc([...Ju.tags,yO,EO,Tu,Ru,n1,Ku,Gu,Wu,Yu,Qu]),yX=yc("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||gc(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 gb(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 gX=yc("tag:yaml.org,2002:map",{create:()=>({}),identify:gc,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=gb(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=gb(t);return r!==null&&Object.prototype.hasOwnProperty.call(e,r)},keys:e=>Object.keys(e),get:(e,t)=>e[String(t)]}),l1={maxLength:79,indent:1,linesBefore:3,linesAfter:2};function wu(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 _u(e,t){return" ".repeat(Math.max(t-e.length,0))+e}function u1(e,t){if(!e.buffer)return null;let r={...l1,...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 f=1;f<=r.linesBefore&&!(a-f<0);f++){let d=wu(e.buffer,o[a-f],i[a-f],e.position-(o[a]-o[a-f]),l);c=`${" ".repeat(r.indent)}${_u((e.line-f+1).toString(),p)} | ${d.str}
|
|
56
56
|
${c}`}let u=wu(e.buffer,o[a],i[a],e.position,l);c+=`${" ".repeat(r.indent)}${_u((e.line+1).toString(),p)} | ${u.str}
|
|
57
57
|
`,c+=`${"-".repeat(r.indent+p+3+u.pos)}^
|
|
58
58
|
`;for(let f=1;f<=r.linesAfter&&!(a+f>=i.length);f++){let d=wu(e.buffer,o[a+f],i[a+f],e.position-(o[a]-o[a+f]),l);c+=`${" ".repeat(r.indent)}${_u((e.line+f+1).toString(),p)} | ${d.str}
|
|
@@ -102,23 +102,23 @@ ${e.slice(s+1)}`:c+=e.slice(o),c.slice(1)}function $k(e){let t="",r=0;for(let n=
|
|
|
102
102
|
`):process.stdout.write(`
|
|
103
103
|
`)}printSeparator(t){let r=process.stdout.columns||80,n=t.repeat(Math.ceil(r/t.length)).slice(0,r),o=Ze?n:W.gray(n);return Ze?console.log(o):process.stdout.write(o)}indent(t,r){let n=Ze?" ":"\xA0";return t.split(`
|
|
104
104
|
`).map(o=>n.repeat(r)+o).join(`
|
|
105
|
-
`)}},Y=new _d;var Pd=class extends Error{},Ed=class extends Error{};import*as mC from"node:fs";import*as $d from"node:path";function hC(e){return($d.extname(e)===".yaml"||$d.extname(e)===".yml")&&!!mC?.existsSync?.(e)}function Kt(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--&&Kt(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)||!Kt(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function Gt(e){return $(e)&&Object.keys(e).length===0}function fo(e){return Array.isArray(e)&&e.length>0}function yC(e){return $(e)&&!Gt(e)}function Me(e){return typeof e=="string"}function js(e){return e?Object.keys(e):[]}async function gC(e){return new Promise(t=>setTimeout(t,e))}function Ad(e){return/^\\\\\?\\/.test(e)?e:e.replace(/\\/g,"/")}function mo(e){let t=e.match(/^\/(.*)\/(.*)|(.*)/);return t&&new RegExp(t[1]||t[3],t[2])}var bC=/^[0-9][0-9Xx]{2}$/,vC={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-"},xC={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-"},SC={properties:{url:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"},href:{type:"string"}}},wC={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},extensionsPrefix:"x-"},_C={properties:{name:{type:"string"},url:{type:"string"}},required:["name"],extensionsPrefix:"x-"},PC={extensionsPrefix:"x-",properties:{},additionalProperties:(e,t)=>t.startsWith("/")?"PathItem":void 0},EC={properties:{$ref:{type:"string"},parameters:"ParameterList",get:"Operation",put:"Operation",post:"Operation",delete:"Operation",options:"Operation",head:"Operation",patch:"Operation"},extensionsPrefix:"x-"},$C={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-"},AC={properties:{lang:{type:"string"},label:{type:"string"},source:{type:"string"}}},TC={properties:{url:{type:"string"},description:{type:"string"}},required:["url"]},RC={properties:{description:{type:"string"},url:{type:"string"}},required:["url"],extensionsPrefix:"x-"},OC={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-"},kC={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-"},IC={extensionsPrefix:"x-",properties:{default:"Response"},additionalProperties:(e,t)=>bC.test(t)?"Response":void 0},CC={properties:{description:{type:"string"},schema:"Schema",headers:q("Header"),examples:"Examples","x-summary":{type:"string"}},required:["description"],extensionsPrefix:"x-"},qC={properties:{},additionalProperties:{isExample:!0}},NC={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 $(e)&&e.type==="array"?["type","items"]:["type"]},extensionsPrefix:"x-"},MC={properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs","x-traitTag":{type:"boolean"},"x-displayName":{type:"string"}},required:["name"],extensionsPrefix:"x-"},jC={properties:{name:{type:"string"},tags:{type:"array",items:{type:"string"}}}},DC={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-"},LC={properties:{},additionalProperties:{type:"string"}},UC={properties:{},additionalProperties:"Schema"},FC={properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}},extensionsPrefix:"x-"},zC={extensionsPrefix:"x-",properties:{},additionalProperties:{type:"string"}},VC={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:"Scopes","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-"},BC={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},HC={properties:{value:{isExample:!0},summary:{type:"string"},description:{type:"string"},externalValue:{type:"string"}},extensionsPrefix:"x-"},Td={Root:vC,Tag:MC,TagList:C("Tag"),TagGroups:C("TagGroup"),TagGroup:jC,ExternalDocs:RC,Example:HC,ExamplesMap:q("Example"),EnumDescriptions:LC,SecurityRequirement:BC,SecurityRequirementList:C("SecurityRequirement"),Info:xC,Contact:wC,License:_C,Logo:SC,Paths:PC,PathItem:EC,Parameter:OC,ParameterItems:kC,ParameterList:C("Parameter"),Operation:$C,Examples:qC,Header:NC,Responses:IC,Response:CC,Schema:DC,Xml:FC,SchemaProperties:UC,NamedSchemas:q("Schema"),NamedResponses:q("Response"),NamedParameters:q("Parameter"),NamedSecuritySchemes:q("SecurityScheme"),SecurityScheme:VC,Scopes:zC,XCodeSample:AC,XCodeSampleList:C("XCodeSample"),XServerList:C("XServer"),XServer:TC};var KC=/^[0-9][0-9Xx]{2}$/,GC={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."},WC={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."},YC={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"},QC={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"},JC={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."},XC={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."},ZC={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."},eq={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"},tq={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."},rq={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."},nq={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."},oq={extensionsPrefix:"x-",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"},iq={properties:{},additionalProperties:()=>"PathItem",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/webhooks#types"},sq={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"},aq={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"},cq={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"},pq={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."},lq={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."},uq={properties:{},additionalProperties:"MediaType",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/media-type#types"},dq={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"},fq={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"},mq={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"},hq={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"},yq={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."},gq={extensionsPrefix:"x-",properties:{default:"Response"},additionalProperties:(e,t)=>KC.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"},bq={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."},vq={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."},Rd="Inline or referenced schema MUST be of a Schema Object and not a standard JSON Schema.",qv=C("Schema",{name:"AllOf",description:Rd}),Nv=C("Schema",{name:"AnyOf",description:Rd}),Mv=C("Schema",{name:"OneOf",description:Rd}),xq={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:qv,anyOf:Nv,oneOf:Mv,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"},Sq={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."},wq={properties:{},additionalProperties:"Schema"},_q={properties:{},additionalProperties:e=>typeof e=="string"&&Mr(e)?{type:"string",directResolveAs:"Schema"}:{type:"string"},documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/discriminator#types"},Pq={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."},Eq={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"},$q={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."},Aq={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."},Tq={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."},Rq={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."},Oq={properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"},extensionsPrefix:"x-",description:"Configuration details for a supported OAuth Flow."},kq={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-"},Iq={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"},qt={Root:GC,Tag:WC,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:YC,ExternalDocs:QC,Server:JC,ServerList:C("Server",{description:"A list of servers available to the API.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/servers#servers"}),ServerVariable:XC,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:ZC,SecurityRequirementList:C("SecurityRequirement"),Info:eq,Contact:rq,License:nq,Paths:oq,PathItem:sq,Parameter:aq,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:cq,Callback:q("PathItem",{extensionsPrefix:"x-",description:"https://redocly.com/learn/openapi/openapi-visual-reference/callbacks#callback-object"}),CallbacksMap:q("Callback"),RequestBody:lq,MediaTypesMap:uq,MediaType:dq,Example:fq,ExamplesMap:q("Example"),Encoding:mq,EncodingMap:q("Encoding"),EnumDescriptions:hq,Header:yq,HeadersMap:q("Header"),Responses:gq,Response:bq,Link:vq,Logo:tq,Schema:xq,AllOf:qv,AnyOf:Nv,OneOf:Mv,Xml:Sq,SchemaProperties:wq,DiscriminatorMapping:_q,Discriminator:Pq,Components:Eq,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:$q,PasswordFlow:Aq,ClientCredentials:Tq,AuthorizationCode:Rq,OAuth2Flows:Oq,SecurityScheme:kq,XCodeSample:pq,XCodeSampleList:C("XCodeSample"),XUsePkce:Iq,WebhooksMap:iq};var Cq={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."},qq={...qt.License,properties:{...qt.License.properties,identifier:{type:"string",description:"An [SPDX-Licenses] expression for the API. The identifier field is mutually exclusive of the url field."}}},Nq={...qt.Info,properties:{...qt.Info.properties,summary:{type:"string",description:"A short summary of the API. This field MAY be used by tooling as required."}}},Mq={...qt.Components,properties:{...qt.Components.properties,pathItems:"NamedPathItems"}},jq={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."},Dq={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",{name:"AllOf"}),anyOf:C("Schema",{name:"AnyOf"}),oneOf:C("Schema",{name:"OneOf"}),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-"},jv={properties:{},additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema"},Lq={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-"},Uq={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},ie={...qt,Info:Nq,Root:Cq,Schema:Dq,SchemaProperties:jv,PatternProperties:jv,License:qq,Components:Mq,NamedPathItems:q("PathItem"),SecurityScheme:Lq,Operation:jq,DependentRequired:Uq};var Fq={...ie.Root,properties:{...ie.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."}}},zq={...ie.Tag,properties:{...ie.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."},Vq={...ie.Server,properties:{...ie.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."},Bq={...ie.SecurityScheme,properties:{...ie.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."},Hq={...ie.OAuth2Flows,properties:{...ie.OAuth2Flows.properties,deviceAuthorization:"DeviceAuthorization"}},Kq={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."},Gq={...qt.PathItem,properties:{...qt.PathItem.properties,query:"Operation",additionalOperations:q("Operation")}},Wq={...ie.Parameter,properties:{...ie.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"]}}},Yq={...ie.Response,properties:{...ie.Response.properties,summary:{type:"string",description:"A short summary of the meaning of the response."}}},Qq={...ie.MediaType,properties:{...ie.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"}},Jq={...ie.Discriminator,properties:{...ie.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 Mr(e)?{type:"string",directResolveAs:"Schema",description:t}:{type:"string",description:t}}}},Xq={extensionsPrefix:"x-",properties:{...ie.Components.properties,mediaTypes:"NamedMediaTypes"}},Zq={...ie.Example,properties:{...ie.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."}}},eN={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."},tN={...ie.Schema,properties:{...ie.Schema.properties,xml:"Xml"}},Ye={...ie,Root:Fq,Tag:zq,Server:Vq,SecurityScheme:Bq,OAuth2Flows:Hq,DeviceAuthorization:Kq,PathItem:Gq,Parameter:Wq,Response:Yq,MediaType:Qq,Discriminator:Jq,Example:Zq,Xml:eN,Schema:tN,Components:Xq,NamedMediaTypes:q("MediaTypesMap")};var rN={properties:{},description:"Protocol-specific information for an HTTP channel."},nN={properties:{},description:"Protocol-specific information for an HTTP server."},oN={properties:{headers:"Schema",statusCode:{type:"number"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an HTTP message, i.e., a request or a response."},iN={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."},sN={properties:{method:{type:"string"},query:"Schema",headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a WebSockets channel."},aN={properties:{},description:"Protocol-specific information for a WebSockets server."},cN={properties:{},description:"Protocol-specific information for a WebSockets message."},pN={properties:{},description:"Protocol-specific information for a WebSockets operation."},lN={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"}}},uN={properties:{topic:{type:"string"},partitions:{type:"integer"},replicas:{type:"integer"},topicConfiguration:"KafkaTopicConfiguration",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka channel."},dN={properties:{schemaRegistryUrl:{type:"string"},schemaRegistryVendor:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka server."},fN={properties:{key:"Schema",schemaIdLocation:{type:"string"},schemaIdPayloadEncoding:{type:"string"},schemaLookupStrategy:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka message."},mN={properties:{groupId:"Schema",clientId:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka operation."},hN={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an Anypoint MQ channel."},yN={properties:{},description:"Protocol-specific information for an Anypoint MQ server."},gN={properties:{headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for an Anypoint MQ message."},bN={properties:{},description:"Protocol-specific information for an Anypoint MQ operation."},vN={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."},xN={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."},SN={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."},wN={properties:{},description:"Protocol-specific information for an AMQP 0-9-1 server."},_N={properties:{contentEncoding:{type:"string"},messageType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an AMQP 0-9-1 message."},PN={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."},EN={properties:{},description:"Protocol-specific information for an AMQP 1.0 channel."},$N={properties:{},description:"Protocol-specific information for an AMQP 1.0 server."},AN={properties:{},description:"Protocol-specific information for an AMQP 1.0 message."},TN={properties:{},description:"Protocol-specific information for an AMQP 1.0 operation."},RN={properties:{},description:"Protocol-specific information for an MQTT channel."},ON={properties:{topic:{type:"string"},qos:{type:"integer"},message:{type:"string"},retain:{type:"boolean"}}},kN={properties:{clientId:{type:"string"},cleanSession:{type:"boolean"},lastWill:"MqttServerBindingLastWill",keepAlive:{type:"integer"},sessionExpiryInterval:e=>$(e)?"Schema":{type:"integer"},maximumPacketSize:e=>$(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT server."},IN={properties:{payloadFormatIndicator:{type:"integer"},correlationData:"Schema",contentType:{type:"string"},responseTopic:e=>$(e)?"Schema":{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT message."},CN={properties:{qos:{type:"integer"},retain:{type:"boolean"},messageExpiryInterval:e=>$(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT operation."},qN={properties:{},description:"Protocol-specific information for an MQTT 5 channel."},NN={properties:{sessionExpiryInterval:e=>$(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT 5 server."},MN={properties:{},description:"Protocol-specific information for an MQTT 5 message."},jN={properties:{},description:"Protocol-specific information for an MQTT 5 operation."},DN={properties:{},description:"Protocol-specific information for a NATS channel."},LN={properties:{},description:"Protocol-specific information for a NATS server."},UN={properties:{},description:"Protocol-specific information for a NATS message."},FN={properties:{queue:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a NATS operation."},zN={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a JMS channel."},VN={properties:{name:{type:"string"},value:{}},required:["name","value"],description:"A name-value pair to set on the JMS ConnectionFactory implementation."},BN={properties:{jmsConnectionFactory:{type:"string"},properties:C("JmsServerBindingProperty"),clientID:{type:"string"},bindingVersion:{type:"string"}},required:["jmsConnectionFactory"],description:"Protocol-specific information for a JMS server."},HN={properties:{headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a JMS message."},KN={properties:{},description:"Protocol-specific information for a JMS operation."},GN={properties:{},description:"Protocol-specific information for a Solace channel."},WN={properties:{bindingVersion:{type:"string"},msgVpn:{type:"string"},clientName:{type:"string"}},description:"Protocol-specific information for a Solace server."},YN={properties:{},description:"Protocol-specific information for a Solace message."},QN={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"}}}},JN={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."},XN={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."},ZN={properties:{type:{type:"string",enum:["standard","FIFO"]},contentBasedDeduplication:{type:"boolean"}},required:["type"],description:"Defines the ordering and deduplication properties of an SNS topic."},eM={properties:{effect:{type:"string",enum:["Allow","Deny"]},principal:{},action:{},resource:{},condition:{type:"object"}},required:["effect","principal","action"],description:"An SNS access-policy statement."},tM={properties:{statements:C("SnsStatement")},required:["statements"],description:"The security policy for an SNS topic."},rM={properties:{name:{type:"string"},ordering:"SnsOrdering",policy:"SnsPolicy",tags:{type:"object"},bindingVersion:{type:"string"}},required:["name"],description:"Protocol-specific information for an SNS channel."},nM={properties:{deadLetterQueue:"SnsIdentifier",maxReceiveCount:{type:"integer"}},required:["deadLetterQueue"],description:"Defines where unprocessable SNS messages are moved."},oM={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."},iM={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."},sM={properties:{topic:"SnsIdentifier",consumers:C("SnsConsumer"),deliveryPolicy:"SnsDeliveryPolicy",bindingVersion:{type:"string"}},required:["consumers"],description:"Protocol-specific information for an SNS operation."},aM={properties:{arn:{type:"string"},name:{type:"string"}},description:"Identifies an SQS queue: exactly one of arn or name."},cM={properties:{deadLetterQueue:"SqsIdentifier",maxReceiveCount:{type:"integer"}},required:["deadLetterQueue"],description:"Defines where unprocessable SQS messages are moved."},pM={properties:{effect:{type:"string",enum:["Allow","Deny"]},principal:{},action:{},resource:{},condition:{type:"object"}},required:["effect","principal","action"],description:"An SQS access-policy statement."},lM={properties:{statements:C("SqsStatement")},required:["statements"],description:"The security policy for an SQS queue."},Dv={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)."},uM={...Dv,required:["name"],description:"Describes an SQS queue (operation-level definition)."},dM={properties:{queue:"SqsQueue",deadLetterQueue:"SqsQueue",bindingVersion:{type:"string"}},required:["queue"],description:"Protocol-specific information for an SQS channel."},fM={properties:{queues:C("SqsOperationQueue"),bindingVersion:{type:"string"}},required:["queues"],description:"Protocol-specific information for an SQS operation."},mM={properties:{},description:"Protocol-specific information for a STOMP channel."},hM={properties:{},description:"Protocol-specific information for a STOMP server."},yM={properties:{},description:"Protocol-specific information for a STOMP message."},gM={properties:{},description:"Protocol-specific information for a STOMP operation."},bM={properties:{},description:"Protocol-specific information for a Redis channel."},vM={properties:{},description:"Protocol-specific information for a Redis server."},xM={properties:{},description:"Protocol-specific information for a Redis message."},SM={properties:{},description:"Protocol-specific information for a Redis operation."},wM={properties:{},description:"Protocol-specific information for a Mercure channel."},_M={properties:{},description:"Protocol-specific information for a Mercure server."},PM={properties:{},description:"Protocol-specific information for a Mercure message."},EM={properties:{},description:"Protocol-specific information for a Mercure operation."},$M={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."},AM={properties:{objectName:{type:"string"},isPartitioned:{type:"boolean"},exclusive:{type:"boolean"}},required:["objectName"],description:"Defines the properties of an IBM MQ queue."},TM={properties:{string:{type:"string"},objectName:{type:"string"},durablePermitted:{type:"boolean"},lastMsgRetained:{type:"boolean"}},description:"Defines the properties of an IBM MQ topic."},RM={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."},OM={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."},kM={properties:{allowedPersistenceRegions:{type:"array",items:{type:"string"}}},description:"Policy constraining the regions where Google Cloud Pub/Sub messages are stored."},IM={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."},CM={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."},qM={properties:{name:{type:"string"},type:{type:"string"}},required:["name"],description:"Identifies the Google Cloud Pub/Sub schema a message is validated against."},NM={properties:{attributes:{type:"object"},orderingKey:{type:"string"},schema:"GooglepubsubSchema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Google Cloud Pub/Sub message."},MM={properties:{tenant:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Pulsar server."},jM={properties:{time:{type:"integer"},size:{type:"integer"}},description:"The retention policy of a Pulsar topic."},DM={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."},LM={properties:{rmwImplementation:{type:"string"},domainId:{type:"integer",minimum:0}},description:"Protocol-specific information for a ROS 2 server."},UM={properties:{},description:"Protocol-specific information for a ROS 2 channel."},FM={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."},zM={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."},VM={properties:{},description:"Protocol-specific information for a ROS 2 message."},BM={extensionsPrefix:"x-",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."},HM={extensionsPrefix:"x-",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."},KM={extensionsPrefix:"x-",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."},GM={extensionsPrefix:"x-",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."},er={HttpServerBinding:nN,HttpChannelBinding:rN,HttpMessageBinding:oN,HttpOperationBinding:iN,WsServerBinding:aN,WsChannelBinding:sN,WsMessageBinding:cN,WsOperationBinding:pN,KafkaServerBinding:dN,KafkaTopicConfiguration:lN,KafkaChannelBinding:uN,KafkaMessageBinding:fN,KafkaOperationBinding:mN,AnypointmqServerBinding:yN,AnypointmqChannelBinding:hN,AnypointmqMessageBinding:gN,AnypointmqOperationBinding:bN,AmqpServerBinding:wN,AmqpChannelExchange:vN,AmqpChannelQueue:xN,AmqpChannelBinding:SN,AmqpMessageBinding:_N,AmqpOperationBinding:PN,Amqp1ServerBinding:$N,Amqp1ChannelBinding:EN,Amqp1MessageBinding:AN,Amqp1OperationBinding:TN,MqttServerBindingLastWill:ON,MqttServerBinding:kN,MqttChannelBinding:RN,MqttMessageBinding:IN,MqttOperationBinding:CN,Mqtt5ServerBinding:NN,Mqtt5ChannelBinding:qN,Mqtt5MessageBinding:MN,Mqtt5OperationBinding:jN,NatsServerBinding:LN,NatsChannelBinding:DN,NatsMessageBinding:UN,NatsOperationBinding:FN,JmsServerBindingProperty:VN,JmsServerBinding:BN,JmsChannelBinding:zN,JmsMessageBinding:HN,JmsOperationBinding:KN,SolaceServerBinding:WN,SolaceChannelBinding:GN,SolaceMessageBinding:YN,SolaceDestination:QN,SolaceOperationBinding:JN,StompServerBinding:hM,StompChannelBinding:mM,StompMessageBinding:yM,StompOperationBinding:gM,RedisServerBinding:vM,RedisChannelBinding:bM,RedisMessageBinding:xM,RedisOperationBinding:SM,MercureServerBinding:_M,MercureChannelBinding:wM,MercureMessageBinding:PM,MercureOperationBinding:EM,SnsIdentifier:XN,SnsOrdering:ZN,SnsStatement:eM,SnsPolicy:tM,SnsChannelBinding:rM,SnsRedrivePolicy:nM,SnsDeliveryPolicy:oM,SnsConsumer:iM,SnsOperationBinding:sM,SqsIdentifier:aM,SqsRedrivePolicy:cM,SqsStatement:pM,SqsPolicy:lM,SqsQueue:Dv,SqsOperationQueue:uM,SqsChannelBinding:dM,SqsOperationBinding:fM,IbmmqServerBinding:$M,IbmmqChannelQueue:AM,IbmmqChannelTopic:TM,IbmmqChannelBinding:RM,IbmmqMessageBinding:OM,GooglepubsubMessageStoragePolicy:kM,GooglepubsubSchemaSettings:IM,GooglepubsubChannelBinding:CM,GooglepubsubSchema:qM,GooglepubsubMessageBinding:NM,PulsarServerBinding:MM,PulsarRetention:jM,PulsarChannelBinding:DM,ServerBindings:BM,ChannelBindings:HM,MessageBindings:GM,OperationBindings:KM},Lv={Ros2ServerBinding:LM,Ros2ChannelBinding:UM,Ros2OperationBinding:zM,Ros2QosPolicies:FM,Ros2MessageBinding:VM};var pi={extensionsPrefix:"x-",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"}},li={properties:{},additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema"},ui={properties:{},additionalProperties:e=>Array.isArray(e)?{type:"array",items:{type:"string"}}:"Schema"},di={properties:{},additionalProperties:e=>typeof e=="string"&&Mr(e)?{type:"string",directResolveAs:"Schema"}:{type:"string"}},fi={properties:{propertyName:{type:"string"},mapping:"DiscriminatorMapping"},required:["propertyName"]};var WM={extensionsPrefix:"x-",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"]},YM={extensionsPrefix:"x-",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."},QM={properties:{},additionalProperties:"Channel"},Od={extensionsPrefix:"x-",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."},kd={extensionsPrefix:"x-",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."},JM={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."},XM={extensionsPrefix:"x-",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."},Id={properties:{},additionalProperties:(e,t)=>t.match(/^[A-Za-z0-9_\-]+$/)?"Server":void 0},Cd={extensionsPrefix:"x-",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."},ZM={extensionsPrefix:"x-",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."},qd={extensionsPrefix:"x-",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."},Nd={extensionsPrefix:"x-",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."},ej={extensionsPrefix:"x-",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."},Md={extensionsPrefix:"x-",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."},tj={extensionsPrefix:"x-",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."},rj={extensionsPrefix:"x-",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."},nj={extensionsPrefix:"x-",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."},oj={extensionsPrefix:"x-",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."},jd={extensionsPrefix:"x-",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."},ij={extensionsPrefix:"x-",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"}},sj={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","scopes"],description:"Configuration for the OAuth Implicit flow."},aj={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],description:"Configuration for the OAuth Password flow."},cj={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],description:"Configuration for the OAuth Client Credentials flow."},pj={extensionsPrefix:"x-",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."},Dd={extensionsPrefix:"x-",properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"}},lj={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."},Ld={...er,Root:WM,Tag:Od,TagList:C("Tag"),ServerMap:Id,ExternalDocs:kd,Server:XM,ServerVariable:Cd,ServerVariablesMap:q("ServerVariable"),SecurityRequirement:JM,SecurityRequirementList:C("SecurityRequirement"),Info:ZM,Contact:qd,License:Nd,ChannelMap:QM,Channel:YM,Parameter:ej,ParametersMap:q("Parameter"),Operation:oj,Schema:pi,MessageExample:jd,SchemaProperties:li,DiscriminatorMapping:di,Discriminator:fi,Components:ij,NamedSchemas:q("Schema"),NamedMessages:q("Message"),NamedMessageTraits:q("MessageTrait"),NamedOperationTraits:q("OperationTrait"),NamedParameters:q("Parameter"),NamedSecuritySchemes:q("SecurityScheme"),NamedCorrelationIds:q("CorrelationId"),ImplicitFlow:sj,PasswordFlow:aj,ClientCredentials:cj,AuthorizationCode:pj,SecuritySchemeFlows:Dd,SecurityScheme:lj,Message:tj,OperationTrait:rj,OperationTraitList:C("OperationTrait"),MessageTrait:nj,MessageTraitList:C("MessageTrait"),MessageExampleList:C("MessageExample"),CorrelationId:Md,Dependencies:ui};var uj={extensionsPrefix:"x-",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."},dj={extensionsPrefix:"x-",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."},fj={extensionsPrefix:"x-",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."},mj={extensionsPrefix:"x-",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."},hj={extensionsPrefix:"x-",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."},yj={extensionsPrefix:"x-",properties:{headers:e=>$(e)&&"schema"in e?"MultiFormatSchema":"Schema",payload:e=>$(e)&&"schema"in e?"MultiFormatSchema":"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"},description:"Describes a message received on a given channel and operation."},gj={extensionsPrefix:"x-",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."},bj={extensionsPrefix:"x-",properties:{headers:e=>$(e)&&"schema"in e?"MultiFormatSchema":"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"},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."},vj={extensionsPrefix:"x-",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"]},xj={extensionsPrefix:"x-",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."},Sj={extensionsPrefix:"x-",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."},wj={extensionsPrefix:"x-",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."},_j={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","availableScopes"],description:"Configuration for the OAuth Implicit flow."},Pj={extensionsPrefix:"x-",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."},Ej={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","availableScopes"],description:"Configuration for the OAuth Client Credentials flow."},$j={extensionsPrefix:"x-",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."},Aj={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."},Tj={...er.ServerBindings,properties:{...er.ServerBindings.properties,ros2:"Ros2ServerBinding"}},Rj={...er.ChannelBindings,properties:{...er.ChannelBindings.properties,ros2:"Ros2ChannelBinding"}},Oj={...er.OperationBindings,properties:{...er.OperationBindings.properties,ros2:"Ros2OperationBinding"}},kj={...er.MessageBindings,properties:{...er.MessageBindings.properties,ros2:"Ros2MessageBinding"}},Ij={extensionsPrefix:"x-",properties:{schema:"Schema",schemaFormat:{type:"string"}},description:"Represents a schema definition. Unlike the Schema Object, it supports multiple schema formats or languages."},Cj={properties:{},additionalProperties:e=>$(e)&&"schema"in e?"MultiFormatSchema":"Schema"},Ud={...er,...Lv,ServerBindings:Tj,ChannelBindings:Rj,OperationBindings:Oj,MessageBindings:kj,CorrelationId:Md,SecuritySchemeFlows:Dd,ServerVariable:Cd,Contact:qd,License:Nd,MessageExample:jd,Tag:Od,Dependencies:ui,Schema:pi,MultiFormatSchema:Ij,Discriminator:fi,DiscriminatorMapping:di,SchemaProperties:li,ServerMap:Id,ExternalDocs:kd,Root:uj,Channel:dj,Parameter:hj,Info:mj,Server:fj,MessageTrait:bj,Operation:vj,OperationReply:xj,OperationReplyAddress:Sj,Components:wj,ImplicitFlow:_j,PasswordFlow:Pj,ClientCredentials:Ej,AuthorizationCode:$j,SecurityScheme:Aj,Message:yj,OperationTrait:gj,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:Cj,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 qj={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-"},Nj={properties:{},additionalProperties:"Parameter"},Mj={properties:{},additionalProperties:"SuccessActionObject"},jj={properties:{},additionalProperties:"FailureActionObject"},Dj={properties:{inputs:"NamedInputs",parameters:"NamedParameters",successActions:"NamedSuccessActions",failureActions:"NamedFailureActions"},extensionsPrefix:"x-"},Lj=q("Schema"),Uj={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."},Fj={properties:{},items:e=>e?.type==="openapi"?"OpenAPISourceDescription":"ArazzoSourceDescription"},zj={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."},Vj={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."},Bj={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."},Hj={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."},Kj={properties:{},items:e=>e?.reference?"ReusableObject":"Parameter"},Gj={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."},Wj=C("Workflow"),Yj=C("Step"),Qj={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."},Jj={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_.-]+$."},Xj={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."},Zj={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."},eD={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."},tD={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."},rD={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."},nD={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["draft-goessner-dispatch-jsonpath-00"]}}},oD={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-30","xpath-20","xpath-10"]}}},iD={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."},sD={properties:{},items:e=>e?.type&&e?.name?"SuccessActionObject":"ReusableObject"},aD={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."},cD={properties:{},items:e=>e?.type&&e?.name?"FailureActionObject":"ReusableObject"},Qe={Root:qj,Info:Uj,SourceDescriptions:Fj,OpenAPISourceDescription:zj,ArazzoSourceDescription:Vj,Parameters:Kj,Parameter:Hj,ReusableObject:Bj,Workflows:Wj,Workflow:Gj,Steps:Yj,Step:Qj,RequestBody:Xj,Replacement:Zj,ExtendedOperation:tD,ExtendedSecurityList:C("ExtendedSecurity"),ExtendedSecurity:eD,Outputs:Jj,CriterionObject:rD,XPathCriterion:oD,JSONPathCriterion:nD,SuccessActionObject:iD,OnSuccessActionList:sD,FailureActionObject:aD,OnFailureActionList:cD,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:Dj,NamedInputs:Lj,NamedParameters:Nj,NamedSuccessActions:Mj,NamedFailureActions:jj,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 pD={...Qe.Root,properties:{...Qe.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."}}},lD={properties:{},items:e=>e?.type==="openapi"?"OpenAPISourceDescription":e?.type==="asyncapi"?"AsyncAPISourceDescription":"ArazzoSourceDescription"},uD={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."},dD={...Qe.Parameter,properties:{...Qe.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.'}}},fD={...Qe.Step,properties:{...Qe.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"]},mD={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["rfc9535","draft-goessner-dispatch-jsonpath-00"]}},required:["type","version"]},hD={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-31","xpath-30","xpath-20","xpath-10"]}},required:["type","version"]},yD={properties:{type:{type:"string",enum:["jsonpointer"]},version:{type:"string",enum:["rfc6901"]}},required:["type","version"]},gD={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"]},bD=e=>e?.type==="jsonpath"?"JSONPathExpression":e?.type==="xpath"?"XPathExpression":e?.type==="jsonpointer"?"JSONPointerExpression":"ExpressionType",Fd=(e,t,{optional:r=!0}={})=>n=>{if(!(r&&!n))return typeof n=="string"?{enum:e,description:t}:bD(n)},vD={...Qe.CriterionObject,properties:{...Qe.CriterionObject.properties,type:Fd(["regex","jsonpath","simple","xpath"],"The type of condition to be applied.")}},xD={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:Fd(["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."},SD={properties:{},additionalProperties:e=>$(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_.-]+$."},wD={...Qe.Replacement,properties:{...Qe.Replacement.properties,value:e=>$(e)&&"selector"in e?"SelectorObject":{},targetSelectorType:Fd(["jsonpath","xpath","jsonpointer"],"The type of selector used in the target field.")}},_D={...Qe.SuccessActionObject,properties:{...Qe.SuccessActionObject.properties,parameters:"Parameters"}},PD={...Qe.FailureActionObject,properties:{...Qe.FailureActionObject.properties,parameters:"Parameters"}},zd={...Qe,Root:pD,SourceDescriptions:lD,AsyncAPISourceDescription:uD,Parameter:dD,Step:fD,CriterionObject:vD,JSONPathExpression:mD,XPathExpression:hD,JSONPointerExpression:yD,ExpressionType:gD,SelectorObject:xD,Outputs:SD,Replacement:wD,SuccessActionObject:_D,FailureActionObject:PD};var ED={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."},$D={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."},AD=C("Action"),TD={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"},Vd={Root:ED,Info:$D,Actions:AD,Action:TD};var RD={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."},OD={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."},kD={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."},ID={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."},CD={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."},qD={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."},ND={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."},MD={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."},jD={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."},DD={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."},LD={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."},UD={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."},FD={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."},zD={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."},VD={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."},Bd={Root:RD,Info:OD,Contact:kD,License:ID,Server:CD,ServerList:C("Server"),ServerVariable:qD,ServerVariablesMap:q("ServerVariable"),Method:ND,MethodList:C("Method"),ContentDescriptor:MD,ContentDescriptorList:C("ContentDescriptor"),ExamplePairing:jD,ExamplePairingList:C("ExamplePairing"),Example:DD,ExampleList:C("Example"),Link:LD,LinkList:C("Link"),ErrorObject:UD,ErrorList:C("ErrorObject"),Components:FD,Tag:zD,TagList:C("Tag"),ExternalDocs:VD,Schema:pi,SchemaProperties:li,Dependencies:ui,DiscriminatorMapping:di,Discriminator:fi,NamedContentDescriptors:q("ContentDescriptor"),NamedSchemas:q("Schema"),NamedExamples:q("Example"),NamedLinks:q("Link"),NamedErrors:q("ErrorObject"),NamedExamplePairingObjects:q("ExamplePairing"),NamedTags:q("Tag")};var e0={hide:{type:"boolean"},component:{type:"string",enum:["radio","checkbox"]},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Ds={type:"object",properties:e0,additionalProperties:!1},BD={type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Us={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:{...e0,like:Ds,dislike:Ds,satisfied:Ds,neutral:Ds,dissatisfied:Ds},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:BD},additionalProperties:!1}},additionalProperties:!1},HD={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},Wd={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},Oc={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},feedback:Us,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string"},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:Wd,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:HD,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1},mi={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},KD={type:"object",properties:{name:{type:"string"},items:mi,queries:mi,mutations:mi,subscriptions:mi,types:mi,directives:mi},required:["name"],additionalProperties:!1},GD={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:KD},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},WD={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},YD={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},QD={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri"},contact:WD,license:YD},additionalProperties:!1},kc={type:"object",properties:{menu:{type:"object",properties:{...GD.properties},additionalProperties:!1},downloadUrls:Wd,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:Us,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},excludeFromSearch:{type:"boolean"},info:QD},additionalProperties:!1},JD={type:"object",properties:{downloadUrls:Wd,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:Us,layout:{type:"string",enum:["stacked","three-panel"]}},additionalProperties:!1},XD={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"]},ZD={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"}}},Uv={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},eL={type:"object",properties:{beforeInfo:{type:"array",items:Uv},end:{type:"array",items:Uv}}},ho={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},$c={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},tL={type:"object",properties:jc(ho.properties,["light","dark"])},rL={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"}}},nL={type:"object",properties:{error:$c,info:$c,redirect:$c,success:$c}},oL={type:"object",properties:hi(ho.properties,["dark"])},iL={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},sL={type:"object",properties:{accent:ho,border:tL,error:ho,http:rL,primary:ho,responses:nL,secondary:oL,success:ho,text:iL,tonalOffset:{type:"number"},warning:ho}},Ac={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},aL={type:"object",properties:{small:Ac,medium:Ac,large:Ac,xlarge:Ac}},Ur={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},cL={type:"object",properties:{...hi(Ur.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:aL}},Fv={type:"object",properties:jc(Ur.properties,["fontSize","lineHeight"])},pL={type:"object",properties:{medium:Fv,small:Fv}},lL={type:"object",properties:{...hi(Ur.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},color:{type:"string"},sizes:pL}},uL={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},dL={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},zv={type:"object",properties:{fullWidth:{type:"boolean"}}},fL={type:"object",properties:{buttons:cL,httpBadges:lL,layoutControls:uL,panels:dL,tryItButton:zv,tryItSendButton:zv}},Ic={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},mL={type:"object",properties:{maxWidth:Ic}},hL={type:"object",properties:{maxWidth:Ic,middlePanelMaxWidth:Ic}},yL={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:mL,"three-panel":hL}},Vv={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},gL={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:Vv,defaultDetailsWidth:{type:"string"},examples:Vv,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},t0={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},bL={type:"object",properties:jc(t0.properties,["textTransform"])},vL={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},xL={type:"object",properties:{...hi(Ur.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:t0,level1items:bL,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:vL,textColor:{type:"string"},width:{type:"string"}}},Tc={type:"object",properties:{...Ur.properties,color:{type:"string"},transform:{type:"string"}}},SL={type:"object",properties:{...Ur.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"}}},wL={type:"object",properties:hi(Ur.properties,["fontSize"])},_L={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},PL={type:"object",properties:{code:SL,fieldName:Ur,...jc(Ur.properties,["fontSize","fontFamily"]),fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:Tc,heading2:Tc,heading3:Tc,headings:wL,lineHeight:{type:"string"},links:_L,optimizeSpeed:{type:"boolean"},rightPanelHeading:Tc,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}}},EL={type:"object",properties:{color:{type:"string"},...hi(Ur.properties,["fontWeight"])}},$L={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:EL}},AL={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},TL={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},Bv={type:"object",properties:{custom:{type:"string"}}},RL={type:"object",properties:{DownloadButton:Bv,NextSectionButton:Bv}},OL={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},kL={type:"object",properties:{borderRadius:{type:"string"}}},IL={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},CL={type:"object",properties:{breakpoints:Ic,codeBlock:$L,colors:sL,components:fL,layout:yL,logo:AL,fab:TL,overrides:RL,rightPanel:OL,schema:gL,shape:kL,sidebar:xL,spacing:IL,typography:PL,links:{type:"object",properties:{color:{type:"string"}}},codeSample:{type:"object",properties:{backgroundColor:{type:"string"}}}}},qL={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:XD}},required:["languages"]},r0={type:"object",properties:{theme:CL,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:qL,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:ZD,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:eL,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 jc(e,t){return Object.fromEntries(t.filter(r=>r in e).map(r=>[r,e[r]]))}function hi(e,t){return Object.fromEntries(Object.entries(e).filter(([r])=>!t.includes(r)))}var tr={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 NL={rules:tr,oas2Rules:tr,oas3_0Rules:tr,oas3_1Rules:tr,oas3_2Rules:tr,async2Rules:tr,async3Rules:tr,arazzo1Rules:tr,arazzo1_1Rules:tr,overlay1Rules:tr,openrpc1Rules:tr,graphqlRules:tr};var gr={nodeTypeName:void 0,type:"object",additionalProperties:!0},ML={preprocessors:gr,oas2Preprocessors:gr,oas3_0Preprocessors:gr,oas3_1Preprocessors:gr,oas3_2Preprocessors:gr,async2Preprocessors:gr,async3Preprocessors:gr,arazzo1Preprocessors:gr,arazzo1_1Preprocessors:gr,overlay1Preprocessors:gr,openrpc1Preprocessors:gr},br={nodeTypeName:void 0,type:"object",additionalProperties:!0};var jL={decorators:br,oas2Decorators:br,oas3_0Decorators:br,oas3_1Decorators:br,oas3_2Decorators:br,async2Decorators:br,async3Decorators:br,arazzo1Decorators:br,arazzo1_1Decorators:br,overlay1Decorators:br,openrpc1Decorators:br},DL={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"},Dc={...NL,...jL,...ML,extends:DL},n0=e=>e,nt=n0({RedirectSource:"RedirectSource",Redirects:"Redirects",ScorecardClassic:"ScorecardClassic",ScorecardClassicLevelList:"ScorecardClassicLevelList",ScorecardClassicLevel:"ScorecardClassicLevel",ScorecardClassicTargetList:"ScorecardClassicTargetList",ScorecardClassicTarget:"ScorecardClassicTarget",ScorecardClassicTargetWhere:"ScorecardClassicTargetWhere",ScorecardClassicTargetWhereMetadata:"ScorecardClassicTargetWhereMetadata",ScorecardClassicTeamMetadataProperty:"ScorecardClassicTeamMetadataProperty"}),et={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},Hv={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},Hd={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}}},Yd={type:"array",items:{...Hd,properties:{...Hd.properties,items:{type:"array",items:Hd}}}},LL={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},UL={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},FL={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}},zL={type:"object",properties:{facets:FL,...et.properties},additionalProperties:!1},VL={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},o0={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},i0={type:"object",properties:{items:Yd,...et.properties},additionalProperties:!1},s0={type:"object",additionalProperties:LL},a0={type:"object",properties:{items:Yd,copyrightText:{type:"string"},logo:et,...et.properties},additionalProperties:!1},c0={type:"object",properties:{separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"]},...et.properties},additionalProperties:!1},p0={type:"object",properties:{head:{type:"array",items:Hv},body:{type:"array",items:Hv}},additionalProperties:!1},l0={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}},u0={type:"object",properties:{engine:{type:"string",enum:["flexsearch","typesense"]},ai:UL,filters:zL,placement:{type:"string"},shortcuts:{type:"array",items:{type:"string"}},suggestedPages:{type:"array",items:VL},...et.properties},additionalProperties:!1},d0={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},f0={type:"object",properties:{ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"}},...et.properties},additionalProperties:!1},Qd={type:"string",enum:["slate","pink","coral","amber","jade","cyan","ocean","indigo","iris"]},BL={type:"object",properties:{...et.properties,items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]}}},additionalProperties:!1},m0={type:"object",properties:{nextButton:{type:"object",properties:{text:{type:"string"},...et.properties},additionalProperties:!1},previousButton:{type:"object",properties:{text:{type:"string"},...et.properties},additionalProperties:!1},actions:BL},additionalProperties:!1},h0={type:"object",properties:{elementFormat:{type:"string"},copy:{type:"object",properties:{...et.properties},additionalProperties:!1},report:{type:"object",properties:{tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"},...et.properties},additionalProperties:!1},expand:{type:"object",properties:{...et.properties},additionalProperties:!1},collapse:{type:"object",properties:{...et.properties},additionalProperties:!1}},additionalProperties:!1},y0={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"},...et.properties},additionalProperties:!1},toc:{type:"object",properties:{header:{type:"string"},depth:{type:"integer",minimum:1},...et.properties},additionalProperties:!1},editPage:{type:"object",properties:{baseUrl:{type:"string"},...et.properties},additionalProperties:!1},template:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},Cc={...Oc,properties:{...Oc.properties,...r0.properties}},tZ={...Oc,properties:{...Oc.properties,...r0.properties}},HL={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},KL={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"]},GL={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},WL={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},YL={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"]},QL={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},JL={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"]},g0={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"]},XL={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:g0}},additionalProperties:!1,required:["trackingId"]},b0={type:"object",properties:{adobe:HL,amplitude:KL,fullstory:GL,heap:WL,rudderstack:YL,segment:QL,gtm:JL,ga:XL}},v0={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"},...et.properties},additionalProperties:!1},x0={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},S0={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},ZL={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"}}}},e2={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:ZL},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:Yd,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},qc={type:"object",patternProperties:{".*":e2}},Nc={nodeTypeName:nt.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:nt.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:nt.ScorecardClassicLevelList,description:"List of levels to score against.",type:"array",items:{nodeTypeName:nt.ScorecardClassicLevel,documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#level-object",type:"object",required:["name"],properties:{name:{type:"string"},color:{type:"string"},...Dc},additionalProperties:!1}},targets:{nodeTypeName:nt.ScorecardClassicTargetList,description:"Provide custom `minimumLevel` for specific targets.",type:"array",items:{nodeTypeName:nt.ScorecardClassicTarget,type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{nodeTypeName:nt.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:nt.ScorecardClassicTargetWhereMetadata,type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}},t2={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},r2={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},n2={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},pn={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:r2},excludes:{type:"array",items:t2},filters:{type:"array",items:n2},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},o2={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},i2={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:o2},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},s2={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:i2,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},a2={type:"object",additionalProperties:s2},w0={type:"object",properties:{show:{type:"boolean"},entityTypes:a2,catalogs:{type:"object",properties:{all:pn,services:pn,domains:pn,teams:pn,users:pn,apiDescriptions:pn,dataSchemas:pn,apiOperations:pn},additionalProperties:pn}},additionalProperties:!1},Kv={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none"]},Jd={type:"string",enum:["and","or"]},Kd={type:"object",properties:{field:{type:"string"},operator:Kv,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:Kv,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]}}}}}},c2={type:"object",properties:{operator:Jd,conditions:{type:"array",items:Kd}},required:["operator","conditions"],additionalProperties:!1},Gv={type:"array",items:{oneOf:[Kd,{type:"object",properties:{operator:Jd,conditions:{type:"array",items:{oneOf:[Kd,c2]}}},required:["operator","conditions"],additionalProperties:!1}]}},_0={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},p2={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:_0},required:["subject","assertions"],additionalProperties:!1}},l2={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:_0,where:p2,weight:{type:"number"}},required:["subject","assertions"],additionalProperties:!1},u2={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number"}},additionalProperties:!0},l2]}},d2={type:"object",properties:{name:{type:"string"},extends:Dc.extends,rules:u2},required:["name"],additionalProperties:!1},Wv={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},f2={oneOf:[Wv,{type:"array",items:Wv}]},m2={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[Gv,{type:"object",properties:{operator:Jd,conditions:Gv},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:d2,minItems:1},trigger:f2},required:["name","key","entities","levels"],additionalProperties:!1},P0={type:"array",items:m2},Lr={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:o0,navbar:i0,products:s0,footer:a0,sidebar:c0,scripts:p0,links:l0,feedback:Us,search:u0,aiAssistant:d0,colorMode:f0,palette:Qd,navigation:m0,codeSnippet:h0,markdown:y0,openapi:Cc,asyncapi:JD,graphql:kc,analytics:b0,userMenu:v0,versionPicker:x0,breadcrumbs:S0,catalog:qc,entitiesCatalog:w0,catalogClassic:qc,scorecard:Nc,scorecardClassic:Nc,scorecards:P0},additionalProperties:!0};var h2=(e=>(e.OIDC="OIDC",e.SAML2="SAML2",e))(h2||{}),y2=(e=>(e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2",e))(y2||{});var g2=(e=>(e.STACKED="stacked",e.THREE_PANEL="three-panel",e))(g2||{});var E0="^[a-z0-9]+(?:-[a-z0-9]+)*$",rZ=new RegExp(E0);var b2=63,nZ=`Unique ID cannot exceed ${b2} characters`,$0="redocly",A0=[$0,"corporate","guest"],oZ=`Unique ID cannot be a reserved word (${A0.join(", ")})`,Yv=["REDOCLY","CORPORATE","GUEST"],v2={type:"object",additionalProperties:{type:"string"}},x2={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},Rc={type:"string",enum:["error","warn","off"]},S2={type:"object",additionalProperties:!1,properties:{schemaCheck:Rc,statusCodeCheck:Rc,contentTypeCheck:Rc,successCriteriaCheck:Rc}},w2={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},_2={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},P2={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},E2={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:[w2,_2]},inputs:v2,servers:x2,severity:S2,slo:P2},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1},T0={type:"string",enum:["off","info","warn","error"]},Ls={type:"array",items:{type:"string"}},$2={type:"object",properties:{severity:T0,message:{type:"string",minLength:1},fix:{type:"boolean"},tags:Ls,description:{type:"string"},link:{type:"string"},scope:{oneOf:[{type:"string",minLength:1},{type:"array",items:{type:"string",minLength:1},minItems:1}]},appliesTo:Ls,excludes:Ls,exceptions:{type:"object",properties:{files:Ls,lines:Ls},additionalProperties:!1},assertions:{type:"object",additionalProperties:!0}},additionalProperties:!1},A2={oneOf:[T0,$2]},Qv={type:"object",additionalProperties:A2},T2={type:"object",properties:{type:{type:"string",enum:["string","number","boolean"]},required:{type:"boolean"},default:{oneOf:[{type:"string"},{type:"number"},{type:"boolean"}]},enum:{type:"array",items:{type:"string"},minItems:1},dynamic:{type:"boolean"}},required:["type"],additionalProperties:!1},R2={type:"object",properties:{selfClosing:{type:"boolean"},attributes:{type:"object",additionalProperties:T2}},additionalProperties:!1},O2={type:"object",properties:{schema:{oneOf:[{type:"string",enum:["realm"]},{type:"boolean"}]},extend:{type:"object",properties:{tags:{type:"object",additionalProperties:R2},tagsFile:{type:"string",minLength:1}},additionalProperties:!1}},required:["schema"],additionalProperties:!1},k2={type:"object",properties:{rules:Qv,excludes:{type:"array",items:{type:"string",minLength:1}},baseline:{type:"string",minLength:1},markdoc:{oneOf:[{type:"boolean"},O2]},apiDescriptions:{type:"object",properties:{rules:Qv},additionalProperties:!1}},additionalProperties:!1},I2={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},C2={type:"object",properties:{type:{type:"string",const:"OIDC"},title:{type:"string"},pkce:{type:"boolean"},configurationUrl:{type:"string",minLength:1},configuration:I2,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},q2={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"]},N2={oneOf:[C2,q2],discriminator:{propertyName:"type"}},M2={type:"object",additionalProperties:N2},R0={oneOf:[{type:"array",items:{type:"string",enum:Yv},uniqueItems:!0},{type:"string",enum:Yv}]},Jv={type:"string",pattern:E0,not:{enum:A0.filter(e=>e!==$0)}},O0={oneOf:[{type:"array",items:Jv,uniqueItems:!0},Jv]},k0={type:"boolean"},I0={type:"string",pattern:"^https?://.*"},C0={type:"string",pattern:"^https?://.*"},j2={type:"object",properties:{to:{type:"string"},type:{type:"number"}},additionalProperties:!1,nodeTypeName:nt.RedirectSource,description:"Source is an absolute path that must start with a forward slash.",documentationLink:"https://redocly.com/docs/realm/config/redirects#sources-map"},D2={type:"object",additionalProperties:j2,nodeTypeName:nt.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"},L2={type:"string",enum:["info","success","warning","error"]},Ee={type:"object",additionalProperties:{type:"string"}},U2={type:"object",properties:{trackingId:{type:"string"},content:{type:"string"},dismissible:{type:"boolean"},target:{type:"string"},color:L2,rbac:Ee,startAt:{type:"string",format:"date-time"},endAt:{type:"string",format:"date-time"}},required:["content"],additionalProperties:!1},F2={type:"array",items:U2},q0={type:"object",properties:{root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:Ee,openapi:Cc,graphql:kc,theme:{type:"object",properties:{openapi:Cc,graphql:kc},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0},...Dc},required:["root"]},z2={type:"object",additionalProperties:!0},V2={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},B2={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},H2={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:B2},additionalProperties:!1},K2={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},G2={type:"object",properties:{catalogs:{type:"object",properties:{all:Ee,services:Ee,domains:Ee,teams:Ee,users:Ee,apiDescriptions:Ee,dataSchemas:Ee,apiOperations:Ee},additionalProperties:Ee},entitiesTypes:{type:"object",properties:{service:Ee,domain:Ee,team:Ee,user:Ee,apiDescription:Ee,apiOperation:Ee,dataSchema:Ee},additionalProperties:Ee},entitiesGroups:{type:"array",items:{type:"object",properties:{entities:{type:"array",items:{type:"string"}},config:Ee},additionalProperties:!1}},entities:{type:"object",properties:{"**":Ee},additionalProperties:Ee}},additionalProperties:!1},N0={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:Ee,cms:Ee,reunite:Ee,features:{type:"object",properties:{aiSearch:Ee,mcp:Ee},additionalProperties:!1},content:{type:"object",properties:{"**":Ee},additionalProperties:Ee},entitiesCatalog:G2},additionalProperties:Ee},W2={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},Y2={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},Q2={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean"},stage:{type:"string"},auth:{oneOf:[W2,Y2]}},additionalProperties:!1,required:["type","apiBaseUrl"]},J2={type:"object",properties:{type:{type:"string",const:"OAUTH2"},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},X2={type:"object",properties:{type:{type:"string",const:"SERVICE_ACCOUNT"},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},Gd={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:[J2,X2],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},Z2={...Gd,properties:{...Gd.properties,type:{type:"string",const:"APIGEE_EDGE"}}},eU={type:"object",oneOf:[Gd,Z2,Q2],discriminator:{propertyName:"type"}},tU={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:eU}}},Xv={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"]},rU={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},nU={type:"object",properties:{hide:{type:"boolean"},docs:{type:"object",properties:{hide:{type:"boolean"},name:{type:"string"},ignore:{type:"array",items:{type:"string"}},publicEndpoint:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1},oU={type:"object",properties:{hide:{type:"boolean"},excludeFiles:{type:"array",items:{type:"string"}}},additionalProperties:!1},iU={type:"object",properties:{requiresLogin:k0,logoutReturnUrl:I0,residency:C0,sso:R0,idps:O0,rbac:N0},additionalProperties:!1,not:{required:["sso","idps"]},description:"Use either `access.sso` (filter by category) or `access.idps` (filter by slug), not both."},Mc={type:"object",properties:{imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:D2,seo:H2,rbac:N0,apiFunctions:K2,requiresLogin:k0,responseHeaders:{type:"object",additionalProperties:{type:"array",items:rU}},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:q0},...Dc,ssoDirect:M2,sso:R0,idps:O0,residency:C0,logoutReturnUrl:I0,access:iU,developerOnboarding:tU,removeAttribution:{type:"boolean"},i18n:Xv,l10n:Xv,metadata:z2,metadataGlobs:V2,ignore:{type:"array",items:{type:"string"}},theme:Lr,reunite:E2,logo:o0,navbar:i0,products:s0,footer:a0,sidebar:c0,scripts:p0,links:l0,feedback:Us,search:u0,aiAssistant:d0,colorMode:f0,palette:Qd,navigation:m0,codeSnippet:h0,markdown:y0,openapi:Cc,graphql:kc,analytics:b0,userMenu:v0,versionPicker:x0,breadcrumbs:S0,catalog:qc,entitiesCatalog:w0,catalogClassic:qc,scorecard:Nc,scorecardClassic:Nc,scorecards:P0,mcp:nU,skills:oU,recheck:k2,corsProxy:{type:"object",properties:{allowedTargets:{type:"array",items:{type:"string"}}},additionalProperties:!1},banner:F2},not:{required:["sso","idps"]},additionalProperties:!0},sU={...Mc,additionalProperties:!1},yi={$id:"root-redocly-config",...Mc,properties:{plugins:{type:"array",items:{type:"string"}},...Mc.properties,env:{type:"object",additionalProperties:sU}},additionalProperties:!1},Zv={type:"object",properties:{logo:Lr.properties.logo,navbar:Lr.properties.navbar,footer:Lr.properties.footer,sidebar:Lr.properties.sidebar,search:Lr.properties.search,codeSnippet:Lr.properties.codeSnippet,breadcrumbs:Lr.properties.breadcrumbs,openapi:Lr.properties.openapi,feedback:Lr.properties.feedback,palette:Qd,mockServer:Mc.properties.mockServer,analytics:{type:"object",properties:{ga:g0}}},additionalProperties:!0},iZ={$id:"product-config-override",type:"object",properties:{...Zv.properties,apis:{type:"object",additionalProperties:q0},theme:Zv},additionalProperties:!1},aU=["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=n0({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"}),cU={type:"object",nodeTypeName:ze.UserEntityMetadata,properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},pU={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},lU={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},uU={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},dU={type:"object",properties:{},nodeTypeName:ze.EntityMetadata,additionalProperties:!0},fU={type:"object",nodeTypeName:ze.EntitySlackChannel,properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1},mU={type:"object",nodeTypeName:ze.EntitySlackContact,properties:{channels:{type:"array",items:fU}},required:["channels"],additionalProperties:!1},hU={type:"object",nodeTypeName:ze.EntityContact,properties:{slack:mU},additionalProperties:!1},yU={type:"object",nodeTypeName:ze.EntityLink,properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},gU={type:"object",nodeTypeName:ze.EntityRelation,properties:{type:{type:"string",enum:aU},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},Rn={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:hU,links:{type:"array",nodeTypeName:ze.EntityLinkList,items:yU},relations:{type:"array",nodeTypeName:ze.EntityRelationList,items:gU},metadata:dU},bU={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:{...Rn,type:{type:"string",const:"user"},metadata:cU},required:["key","title","type","metadata"],additionalProperties:!1,nodeTypeName:ze.UserEntity},{type:"object",nodeTypeName:ze.ApiOperationEntity,properties:{...Rn,type:{type:"string",const:"api-operation"},metadata:lU},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:ze.DataSchemaEntity,properties:{...Rn,type:{type:"string",const:"data-schema"},metadata:uU},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:ze.ApiDescriptionEntity,properties:{...Rn,type:{type:"string",const:"api-description"},metadata:pU},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:ze.ServiceEntity,properties:{...Rn,type:{type:"string",const:"service"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:ze.DomainEntity,properties:{...Rn,type:{type:"string",const:"domain"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:ze.TeamEntity,properties:{...Rn,type:{type:"string",const:"team"}},required:["key","title","type"],additionalProperties:!1}]},vU={type:"object",nodeTypeName:ze.Entity,properties:{...Rn},required:["key","title","type"],additionalProperties:!1};import w9 from"node:path";var M0=["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 gi=["oas2","oas3_0","oas3_1","oas3_2","async2","async3","arazzo1","arazzo1_1","overlay1","openrpc1","graphql"],Lc="a-zA-Z0-9\\.\\-_",xU={oas2:Td,oas3_0:qt,oas3_1:ie,oas3_2:Ye,async2:Ld,async3:Ud,arazzo1:Qe,arazzo1_1:zd,overlay1:Vd,openrpc1:Bd};function yo(e){return e==="graphql"?{}:xU[e]}function Uc(e){return e.includes("/")}function Fc(e,t){let r={...e};return t.forEach(n=>{delete r[n]}),r}var Hw=qr(gh(),1);var x9=new Hw.default({strictSchema:!1,allowUnionTypes:!0,useDefaults:!0,allErrors:!0,discriminator:!0,strictTypes:!1,verbose:!0});function Bw(e,t){if(t.some(r=>typeof r=="function"))throw new Error("Unexpected oneOf inside oneOf.");return r=>{let n=e.findIndex(o=>x9.validate(o,r));return n===-1&&(n=0),t[n]}}function Ni(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($(t.properties)||$(t.additionalProperties)||$(t.items)&&($(t.items.properties)||$(t.items.additionalProperties)||t.items.oneOf))return S9(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=Ni(p,s,r);return typeof l=="string"&&(o[p]=l),l});return(s,a)=>{if($(s)){let c=s[n];if(typeof c=="string"){let p=o[c];if(p&&r[p])return p}}return Bw(t.oneOf,i)(s,a)}}else{let n=t.oneOf.map((o,i)=>Ni(e+"_"+i,o,r));return Bw(t.oneOf,n)}return t}function S9(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]=Ni(n+"."+c,p,r);let i;$(t.additionalProperties)&&(i=Ni(e+"_additionalProperties",t.additionalProperties,r)),t.additionalProperties===!0&&(i={});let s;$(t.items)&&($(t.items.properties)||$(t.items.additionalProperties)||t.items.oneOf)&&(s=Ni(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(f=>c[f]!==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 bh(e,t){let r={},n=Ni(e,t,r);return{ctx:r,discriminatorResolver:typeof n=="function"?n:void 0}}var _9=["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","spec-ref-siblings"],P9=["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-illogical-composition-keywords","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","spec-ref-siblings"],E9=["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","spec-ref-siblings","security-scopes-defined"],$9=["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","spec-ref-siblings","security-scopes-defined"],A9=["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"],T9=["info-contact"],R9=["info-contact","info-license","no-unused-components","spec-no-duplicated-method-params","spec-no-required-params-after-optional","spec-ref-siblings"],O9=["no-unused-types","type-description"],k9=["struct","no-unresolved-refs"],I9=[..._9,...P9,...E9,...$9,...A9,...T9,...R9,...O9,...k9],C9=["operation-description-override","tag-description-override","info-description-override","info-override","remove-x-internal","filter-in","filter-out","remove-unused-components"],q9=["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"],Kw=[...q9,...C9],Gw={extends:{name:"Extends",properties:{},items:e=>typeof e=="string"&&!oe(e)&&!w9.extname(e)?{type:"string"}:{...va,directResolveAs:{name:"ConfigGovernance",...va}},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"},va={properties:Gw},N9=e=>({...e.rootRedoclyConfigSchema,properties:{...e.rootRedoclyConfigSchema.properties,...va.properties,apis:"ConfigApis",client:"Client",telemetry:{enum:["on","off"]},resolve:{properties:{http:"ConfigHTTP",doNotResolveExamples:{type:"boolean"}}}}}),M9={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"},j9=e=>({...e["rootRedoclyConfigSchema.apis_additionalProperties"],properties:{...e["rootRedoclyConfigSchema.apis_additionalProperties"]?.properties,...Fc(va.properties,["plugins"]),client:"Client",clientOutput:{type:"string"}}}),D9={properties:{headers:{type:"array",items:{type:"string"}}}},L9={properties:{generators:{type:"array",items:{type:"string"}},argsStyle:{enum:["flat","grouped"]},serverUrl:{type:"string"},outputMode:{enum:["single","split"]},runtime:{enum:["inline","module"]},importExt:{enum:["js","ts"]},goPackage:{type:"string"},cliOutput:{type:"string"},errorMode:{enum:["throw","result"]},dateType:{enum:["string","Date"]},mockData:{enum:["static","faker"]},mockSeed:{type:"number"},queryKeyPrefix:{type:"string"},codeSamples:{type:"boolean"},docs:{type:"boolean"},docsFrontmatter:{type:"boolean"},setup:{type:"string"},options:q("ClientGeneratorOptions"),pagination:"ClientPagination"}},U9={properties:{},additionalProperties:{}},Ww={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"}}},F9={properties:{...Ww.properties,exclude:{type:"array",items:{type:"string"}},operations:q("ClientPaginationRule")}},z9={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(I9.includes(t))return typeof e=="string"?{enum:["error","warn","off"]}:"BuiltinRule";if(Uc(t))return typeof e=="string"?{enum:["error","warn","off"]}:"CustomRule";if(t==="metadata-schema"||t==="custom-fields-schema")return"Schema"}},V9={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"},B9={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"},H9={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(Kw.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinDecorator";if(Uc(t))return typeof e=="string"?{type:"string"}:"CustomDecorator"}},K9={properties:{},additionalProperties:{},description:"Built-in decorators are the default decorators included with Redocly CLI.",documentationLink:"https://redocly.com/docs/cli/decorators#list-of-decorators"},G9={properties:{},additionalProperties:{},description:"Custom decorators are defined by users via plugins.",documentationLink:"https://redocly.com/docs/cli/custom-plugins/custom-decorators"},W9={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(Kw.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinPreprocessor";if(Uc(t))return typeof e=="string"?{type:"string"}:"CustomPreprocessor"}},Y9={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"},Q9={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"};function J9(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 X9(e){return{...e[nt.ScorecardClassicLevel],properties:{...e[nt.ScorecardClassicLevel]?.properties,...Gw}}}var Z9={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"},schema:"Schema",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"},eK={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"},tK={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 _p(e,t){let r=gi.flatMap(o=>{let i=yo(o),s=t?t.extendTypes(i,o):i;return Object.keys(s)}),{ctx:n}=bh("rootRedoclyConfigSchema",e);return{...rK,ConfigRoot:N9(n),ConfigApisProperties:j9(n),Subject:J9([...r,...M0]),...n,[nt.ScorecardClassicLevel]:X9(n)}}var rK={ConfigurableRule:tK,ConfigApis:M9,ConfigGovernance:va,ConfigHTTP:D9,Client:L9,ClientGeneratorOptions:U9,ClientPagination:F9,ClientPaginationRule:Ww,Where:eK,BuiltinRule:V9,CustomRule:B9,BuiltinDecorator:K9,CustomDecorator:G9,BuiltinPreprocessor:Y9,CustomPreprocessor:Q9,Schema:ie.Schema,SchemaProperties:ie.SchemaProperties,PatternProperties:ie.PatternProperties,NamedSchemas:ie.NamedSchemas,DependentRequired:ie.DependentRequired,Discriminator:ie.Discriminator,DiscriminatorMapping:ie.DiscriminatorMapping,ExternalDocs:ie.ExternalDocs,Xml:ie.Xml,Rules:z9,Decorators:H9,Preprocessors:W9,Assertions:Z9},{theme:yte,...nK}=yi.properties,oK={...yi,properties:nK},Yw=_p(oK),Mn=an(Yw);function sr(e,t){if(M(t.parent))return;let r=t.key.toString(),n=e.counts??={};n[r]=(n[r]??0)+1}function vh(e){for(let o of Object.values(e))o.items&&(o.total=o.items.size);let{xExtensions:t}=e,r=t.counts??{},n=Object.keys(r).sort();t.total=n.length,t.counts=Object.fromEntries(n.map(o=>[o,r[o]]))}var iK=e=>({SpecExtension:{enter(t,r){sr(e.xExtensions,r)}},XCodeSampleList:{enter(t,r){sr(e.xExtensions,r)}},ExamplesMap:{enter(t,r){r.key.toString()==="x-examples"&&sr(e.xExtensions,r)}},EnumDescriptions:{enter(t,r){sr(e.xExtensions,r)}},TagGroups:{enter(t,r){sr(e.xExtensions,r)}},Logo:{enter(t,r){sr(e.xExtensions,r)}},XServerList:{enter(t,r){sr(e.xExtensions,r)}},XUsePkce:{enter(t,r){sr(e.xExtensions,r)}},Operation:{enter(t,r){r.key.toString()==="x-query"&&sr(e.xExtensions,r)}},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:{enter(t,r){r.key.toString()==="x-webhooks"&&sr(e.xExtensions,r)},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(){vh(e)}}}),sK=e=>({SpecExtension:{enter(t,r){sr(e.xExtensions,r)}},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,{key:r}){e.parameters.items.add(r.toString())}}}},NamedSchemas:{Schema:{leave(){e.schemas.total++}}},Root:{leave(){vh(e)}}}),aK=e=>({SpecExtension:{enter(t,r){sr(e.xExtensions,r)}},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,{key:r}){e.parameters.items.add(r.toString())}}}},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(){vh(e)}}});import*as FE from"node:fs";import*as vn from"node:path";var Mi="redocly.yaml",Qw={extends:["recommended"]},xa=".redocly.lint-ignore.yaml",Jw=`# This file instructs Redocly's linter to ignore the rules contained for specific parts of your API.
|
|
105
|
+
`)}},Y=new _d;var Pd=class extends Error{},Ed=class extends Error{};import*as mC from"node:fs";import*as $d from"node:path";function hC(e){return($d.extname(e)===".yaml"||$d.extname(e)===".yml")&&!!mC?.existsSync?.(e)}function Kt(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--&&Kt(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)||!Kt(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function Gt(e){return $(e)&&Object.keys(e).length===0}function fo(e){return Array.isArray(e)&&e.length>0}function yC(e){return $(e)&&!Gt(e)}function Me(e){return typeof e=="string"}function js(e){return e?Object.keys(e):[]}async function gC(e){return new Promise(t=>setTimeout(t,e))}function Ad(e){return/^\\\\\?\\/.test(e)?e:e.replace(/\\/g,"/")}function mo(e){let t=e.match(/^\/(.*)\/(.*)|(.*)/);return t&&new RegExp(t[1]||t[3],t[2])}var bC=/^[0-9][0-9Xx]{2}$/,vC={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-"},xC={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-"},SC={properties:{url:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"},href:{type:"string"}}},wC={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},extensionsPrefix:"x-"},_C={properties:{name:{type:"string"},url:{type:"string"}},required:["name"],extensionsPrefix:"x-"},PC={extensionsPrefix:"x-",properties:{},additionalProperties:(e,t)=>t.startsWith("/")?"PathItem":void 0},EC={properties:{$ref:{type:"string"},parameters:"ParameterList",get:"Operation",put:"Operation",post:"Operation",delete:"Operation",options:"Operation",head:"Operation",patch:"Operation"},extensionsPrefix:"x-"},$C={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-"},AC={properties:{lang:{type:"string"},label:{type:"string"},source:{type:"string"}}},TC={properties:{url:{type:"string"},description:{type:"string"}},required:["url"]},RC={properties:{description:{type:"string"},url:{type:"string"}},required:["url"],extensionsPrefix:"x-"},OC={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-"},kC={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-"},IC={extensionsPrefix:"x-",properties:{default:"Response"},additionalProperties:(e,t)=>bC.test(t)?"Response":void 0},CC={properties:{description:{type:"string"},schema:"Schema",headers:q("Header"),examples:"Examples","x-summary":{type:"string"}},required:["description"],extensionsPrefix:"x-"},qC={properties:{},additionalProperties:{isExample:!0}},NC={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 $(e)&&e.type==="array"?["type","items"]:["type"]},extensionsPrefix:"x-"},MC={properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs","x-traitTag":{type:"boolean"},"x-displayName":{type:"string"}},required:["name"],extensionsPrefix:"x-"},jC={properties:{name:{type:"string"},tags:{type:"array",items:{type:"string"}}}},DC={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-"},LC={properties:{},additionalProperties:{type:"string"}},UC={properties:{},additionalProperties:"Schema"},FC={properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}},extensionsPrefix:"x-"},zC={extensionsPrefix:"x-",properties:{},additionalProperties:{type:"string"}},VC={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:"Scopes","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-"},BC={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},HC={properties:{value:{isExample:!0},summary:{type:"string"},description:{type:"string"},externalValue:{type:"string"}},extensionsPrefix:"x-"},Td={Root:vC,Tag:MC,TagList:C("Tag"),TagGroups:C("TagGroup"),TagGroup:jC,ExternalDocs:RC,Example:HC,ExamplesMap:q("Example"),EnumDescriptions:LC,SecurityRequirement:BC,SecurityRequirementList:C("SecurityRequirement"),Info:xC,Contact:wC,License:_C,Logo:SC,Paths:PC,PathItem:EC,Parameter:OC,ParameterItems:kC,ParameterList:C("Parameter"),Operation:$C,Examples:qC,Header:NC,Responses:IC,Response:CC,Schema:DC,Xml:FC,SchemaProperties:UC,NamedSchemas:q("Schema"),NamedResponses:q("Response"),NamedParameters:q("Parameter"),NamedSecuritySchemes:q("SecurityScheme"),SecurityScheme:VC,Scopes:zC,XCodeSample:AC,XCodeSampleList:C("XCodeSample"),XServerList:C("XServer"),XServer:TC};var KC=/^[0-9][0-9Xx]{2}$/,GC={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."},WC={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."},YC={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"},QC={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"},JC={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."},XC={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."},ZC={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."},eq={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"},tq={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."},rq={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."},nq={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."},oq={extensionsPrefix:"x-",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"},iq={properties:{},additionalProperties:()=>"PathItem",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/webhooks#types"},sq={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"},aq={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"},cq={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"},pq={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."},lq={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."},uq={properties:{},additionalProperties:"MediaType",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/media-type#types"},dq={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"},fq={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"},mq={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"},hq={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"},yq={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."},gq={extensionsPrefix:"x-",properties:{default:"Response"},additionalProperties:(e,t)=>KC.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"},bq={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."},vq={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."},Rd="Inline or referenced schema MUST be of a Schema Object and not a standard JSON Schema.",qv=C("Schema",{name:"AllOf",description:Rd}),Nv=C("Schema",{name:"AnyOf",description:Rd}),Mv=C("Schema",{name:"OneOf",description:Rd}),xq={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:qv,anyOf:Nv,oneOf:Mv,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"},Sq={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."},wq={properties:{},additionalProperties:"Schema"},_q={properties:{},additionalProperties:e=>typeof e=="string"&&Mr(e)?{type:"string",directResolveAs:"Schema"}:{type:"string"},documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/discriminator#types"},Pq={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."},Eq={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"},$q={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."},Aq={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."},Tq={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."},Rq={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."},Oq={properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"},extensionsPrefix:"x-",description:"Configuration details for a supported OAuth Flow."},kq={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-"},Iq={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"},qt={Root:GC,Tag:WC,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:YC,ExternalDocs:QC,Server:JC,ServerList:C("Server",{description:"A list of servers available to the API.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/servers#servers"}),ServerVariable:XC,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:ZC,SecurityRequirementList:C("SecurityRequirement"),Info:eq,Contact:rq,License:nq,Paths:oq,PathItem:sq,Parameter:aq,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:cq,Callback:q("PathItem",{extensionsPrefix:"x-",description:"https://redocly.com/learn/openapi/openapi-visual-reference/callbacks#callback-object"}),CallbacksMap:q("Callback"),RequestBody:lq,MediaTypesMap:uq,MediaType:dq,Example:fq,ExamplesMap:q("Example"),Encoding:mq,EncodingMap:q("Encoding"),EnumDescriptions:hq,Header:yq,HeadersMap:q("Header"),Responses:gq,Response:bq,Link:vq,Logo:tq,Schema:xq,AllOf:qv,AnyOf:Nv,OneOf:Mv,Xml:Sq,SchemaProperties:wq,DiscriminatorMapping:_q,Discriminator:Pq,Components:Eq,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:$q,PasswordFlow:Aq,ClientCredentials:Tq,AuthorizationCode:Rq,OAuth2Flows:Oq,SecurityScheme:kq,XCodeSample:pq,XCodeSampleList:C("XCodeSample"),XUsePkce:Iq,WebhooksMap:iq};var Cq={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."},qq={...qt.License,properties:{...qt.License.properties,identifier:{type:"string",description:"An [SPDX-Licenses] expression for the API. The identifier field is mutually exclusive of the url field."}}},Nq={...qt.Info,properties:{...qt.Info.properties,summary:{type:"string",description:"A short summary of the API. This field MAY be used by tooling as required."}}},Mq={...qt.Components,properties:{...qt.Components.properties,pathItems:"NamedPathItems"}},jq={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."},Dq={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",{name:"AllOf"}),anyOf:C("Schema",{name:"AnyOf"}),oneOf:C("Schema",{name:"OneOf"}),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-"},jv={properties:{},additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema"},Lq={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-"},Uq={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},ie={...qt,Info:Nq,Root:Cq,Schema:Dq,SchemaProperties:jv,PatternProperties:jv,License:qq,Components:Mq,NamedPathItems:q("PathItem"),SecurityScheme:Lq,Operation:jq,DependentRequired:Uq};var Fq={...ie.Root,properties:{...ie.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."}}},zq={...ie.Tag,properties:{...ie.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."},Vq={...ie.Server,properties:{...ie.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."},Bq={...ie.SecurityScheme,properties:{...ie.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."},Hq={...ie.OAuth2Flows,properties:{...ie.OAuth2Flows.properties,deviceAuthorization:"DeviceAuthorization"}},Kq={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."},Gq={...qt.PathItem,properties:{...qt.PathItem.properties,query:"Operation",additionalOperations:q("Operation")}},Wq={...ie.Parameter,properties:{...ie.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"]}}},Yq={...ie.Response,properties:{...ie.Response.properties,summary:{type:"string",description:"A short summary of the meaning of the response."}}},Qq={...ie.MediaType,properties:{...ie.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"}},Jq={...ie.Discriminator,properties:{...ie.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 Mr(e)?{type:"string",directResolveAs:"Schema",description:t}:{type:"string",description:t}}}},Xq={extensionsPrefix:"x-",properties:{...ie.Components.properties,mediaTypes:"NamedMediaTypes"}},Zq={...ie.Example,properties:{...ie.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."}}},eN={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."},tN={...ie.Schema,properties:{...ie.Schema.properties,xml:"Xml"}},Ye={...ie,Root:Fq,Tag:zq,Server:Vq,SecurityScheme:Bq,OAuth2Flows:Hq,DeviceAuthorization:Kq,PathItem:Gq,Parameter:Wq,Response:Yq,MediaType:Qq,Discriminator:Jq,Example:Zq,Xml:eN,Schema:tN,Components:Xq,NamedMediaTypes:q("MediaTypesMap")};var rN={properties:{},description:"Protocol-specific information for an HTTP channel."},nN={properties:{},description:"Protocol-specific information for an HTTP server."},oN={properties:{headers:"Schema",statusCode:{type:"number"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an HTTP message, i.e., a request or a response."},iN={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."},sN={properties:{method:{type:"string"},query:"Schema",headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a WebSockets channel."},aN={properties:{},description:"Protocol-specific information for a WebSockets server."},cN={properties:{},description:"Protocol-specific information for a WebSockets message."},pN={properties:{},description:"Protocol-specific information for a WebSockets operation."},lN={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"}}},uN={properties:{topic:{type:"string"},partitions:{type:"integer"},replicas:{type:"integer"},topicConfiguration:"KafkaTopicConfiguration",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka channel."},dN={properties:{schemaRegistryUrl:{type:"string"},schemaRegistryVendor:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka server."},fN={properties:{key:"Schema",schemaIdLocation:{type:"string"},schemaIdPayloadEncoding:{type:"string"},schemaLookupStrategy:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka message."},mN={properties:{groupId:"Schema",clientId:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka operation."},hN={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an Anypoint MQ channel."},yN={properties:{},description:"Protocol-specific information for an Anypoint MQ server."},gN={properties:{headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for an Anypoint MQ message."},bN={properties:{},description:"Protocol-specific information for an Anypoint MQ operation."},vN={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."},xN={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."},SN={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."},wN={properties:{},description:"Protocol-specific information for an AMQP 0-9-1 server."},_N={properties:{contentEncoding:{type:"string"},messageType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an AMQP 0-9-1 message."},PN={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."},EN={properties:{},description:"Protocol-specific information for an AMQP 1.0 channel."},$N={properties:{},description:"Protocol-specific information for an AMQP 1.0 server."},AN={properties:{},description:"Protocol-specific information for an AMQP 1.0 message."},TN={properties:{},description:"Protocol-specific information for an AMQP 1.0 operation."},RN={properties:{},description:"Protocol-specific information for an MQTT channel."},ON={properties:{topic:{type:"string"},qos:{type:"integer"},message:{type:"string"},retain:{type:"boolean"}}},kN={properties:{clientId:{type:"string"},cleanSession:{type:"boolean"},lastWill:"MqttServerBindingLastWill",keepAlive:{type:"integer"},sessionExpiryInterval:e=>$(e)?"Schema":{type:"integer"},maximumPacketSize:e=>$(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT server."},IN={properties:{payloadFormatIndicator:{type:"integer"},correlationData:"Schema",contentType:{type:"string"},responseTopic:e=>$(e)?"Schema":{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT message."},CN={properties:{qos:{type:"integer"},retain:{type:"boolean"},messageExpiryInterval:e=>$(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT operation."},qN={properties:{},description:"Protocol-specific information for an MQTT 5 channel."},NN={properties:{sessionExpiryInterval:e=>$(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT 5 server."},MN={properties:{},description:"Protocol-specific information for an MQTT 5 message."},jN={properties:{},description:"Protocol-specific information for an MQTT 5 operation."},DN={properties:{},description:"Protocol-specific information for a NATS channel."},LN={properties:{},description:"Protocol-specific information for a NATS server."},UN={properties:{},description:"Protocol-specific information for a NATS message."},FN={properties:{queue:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a NATS operation."},zN={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a JMS channel."},VN={properties:{name:{type:"string"},value:{}},required:["name","value"],description:"A name-value pair to set on the JMS ConnectionFactory implementation."},BN={properties:{jmsConnectionFactory:{type:"string"},properties:C("JmsServerBindingProperty"),clientID:{type:"string"},bindingVersion:{type:"string"}},required:["jmsConnectionFactory"],description:"Protocol-specific information for a JMS server."},HN={properties:{headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a JMS message."},KN={properties:{},description:"Protocol-specific information for a JMS operation."},GN={properties:{},description:"Protocol-specific information for a Solace channel."},WN={properties:{bindingVersion:{type:"string"},msgVpn:{type:"string"},clientName:{type:"string"}},description:"Protocol-specific information for a Solace server."},YN={properties:{},description:"Protocol-specific information for a Solace message."},QN={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"}}}},JN={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."},XN={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."},ZN={properties:{type:{type:"string",enum:["standard","FIFO"]},contentBasedDeduplication:{type:"boolean"}},required:["type"],description:"Defines the ordering and deduplication properties of an SNS topic."},eM={properties:{effect:{type:"string",enum:["Allow","Deny"]},principal:{},action:{},resource:{},condition:{type:"object"}},required:["effect","principal","action"],description:"An SNS access-policy statement."},tM={properties:{statements:C("SnsStatement")},required:["statements"],description:"The security policy for an SNS topic."},rM={properties:{name:{type:"string"},ordering:"SnsOrdering",policy:"SnsPolicy",tags:{type:"object"},bindingVersion:{type:"string"}},required:["name"],description:"Protocol-specific information for an SNS channel."},nM={properties:{deadLetterQueue:"SnsIdentifier",maxReceiveCount:{type:"integer"}},required:["deadLetterQueue"],description:"Defines where unprocessable SNS messages are moved."},oM={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."},iM={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."},sM={properties:{topic:"SnsIdentifier",consumers:C("SnsConsumer"),deliveryPolicy:"SnsDeliveryPolicy",bindingVersion:{type:"string"}},required:["consumers"],description:"Protocol-specific information for an SNS operation."},aM={properties:{arn:{type:"string"},name:{type:"string"}},description:"Identifies an SQS queue: exactly one of arn or name."},cM={properties:{deadLetterQueue:"SqsIdentifier",maxReceiveCount:{type:"integer"}},required:["deadLetterQueue"],description:"Defines where unprocessable SQS messages are moved."},pM={properties:{effect:{type:"string",enum:["Allow","Deny"]},principal:{},action:{},resource:{},condition:{type:"object"}},required:["effect","principal","action"],description:"An SQS access-policy statement."},lM={properties:{statements:C("SqsStatement")},required:["statements"],description:"The security policy for an SQS queue."},Dv={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)."},uM={...Dv,required:["name"],description:"Describes an SQS queue (operation-level definition)."},dM={properties:{queue:"SqsQueue",deadLetterQueue:"SqsQueue",bindingVersion:{type:"string"}},required:["queue"],description:"Protocol-specific information for an SQS channel."},fM={properties:{queues:C("SqsOperationQueue"),bindingVersion:{type:"string"}},required:["queues"],description:"Protocol-specific information for an SQS operation."},mM={properties:{},description:"Protocol-specific information for a STOMP channel."},hM={properties:{},description:"Protocol-specific information for a STOMP server."},yM={properties:{},description:"Protocol-specific information for a STOMP message."},gM={properties:{},description:"Protocol-specific information for a STOMP operation."},bM={properties:{},description:"Protocol-specific information for a Redis channel."},vM={properties:{},description:"Protocol-specific information for a Redis server."},xM={properties:{},description:"Protocol-specific information for a Redis message."},SM={properties:{},description:"Protocol-specific information for a Redis operation."},wM={properties:{},description:"Protocol-specific information for a Mercure channel."},_M={properties:{},description:"Protocol-specific information for a Mercure server."},PM={properties:{},description:"Protocol-specific information for a Mercure message."},EM={properties:{},description:"Protocol-specific information for a Mercure operation."},$M={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."},AM={properties:{objectName:{type:"string"},isPartitioned:{type:"boolean"},exclusive:{type:"boolean"}},required:["objectName"],description:"Defines the properties of an IBM MQ queue."},TM={properties:{string:{type:"string"},objectName:{type:"string"},durablePermitted:{type:"boolean"},lastMsgRetained:{type:"boolean"}},description:"Defines the properties of an IBM MQ topic."},RM={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."},OM={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."},kM={properties:{allowedPersistenceRegions:{type:"array",items:{type:"string"}}},description:"Policy constraining the regions where Google Cloud Pub/Sub messages are stored."},IM={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."},CM={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."},qM={properties:{name:{type:"string"},type:{type:"string"}},required:["name"],description:"Identifies the Google Cloud Pub/Sub schema a message is validated against."},NM={properties:{attributes:{type:"object"},orderingKey:{type:"string"},schema:"GooglepubsubSchema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Google Cloud Pub/Sub message."},MM={properties:{tenant:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Pulsar server."},jM={properties:{time:{type:"integer"},size:{type:"integer"}},description:"The retention policy of a Pulsar topic."},DM={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."},LM={properties:{rmwImplementation:{type:"string"},domainId:{type:"integer",minimum:0}},description:"Protocol-specific information for a ROS 2 server."},UM={properties:{},description:"Protocol-specific information for a ROS 2 channel."},FM={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."},zM={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."},VM={properties:{},description:"Protocol-specific information for a ROS 2 message."},BM={extensionsPrefix:"x-",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."},HM={extensionsPrefix:"x-",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."},KM={extensionsPrefix:"x-",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."},GM={extensionsPrefix:"x-",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."},er={HttpServerBinding:nN,HttpChannelBinding:rN,HttpMessageBinding:oN,HttpOperationBinding:iN,WsServerBinding:aN,WsChannelBinding:sN,WsMessageBinding:cN,WsOperationBinding:pN,KafkaServerBinding:dN,KafkaTopicConfiguration:lN,KafkaChannelBinding:uN,KafkaMessageBinding:fN,KafkaOperationBinding:mN,AnypointmqServerBinding:yN,AnypointmqChannelBinding:hN,AnypointmqMessageBinding:gN,AnypointmqOperationBinding:bN,AmqpServerBinding:wN,AmqpChannelExchange:vN,AmqpChannelQueue:xN,AmqpChannelBinding:SN,AmqpMessageBinding:_N,AmqpOperationBinding:PN,Amqp1ServerBinding:$N,Amqp1ChannelBinding:EN,Amqp1MessageBinding:AN,Amqp1OperationBinding:TN,MqttServerBindingLastWill:ON,MqttServerBinding:kN,MqttChannelBinding:RN,MqttMessageBinding:IN,MqttOperationBinding:CN,Mqtt5ServerBinding:NN,Mqtt5ChannelBinding:qN,Mqtt5MessageBinding:MN,Mqtt5OperationBinding:jN,NatsServerBinding:LN,NatsChannelBinding:DN,NatsMessageBinding:UN,NatsOperationBinding:FN,JmsServerBindingProperty:VN,JmsServerBinding:BN,JmsChannelBinding:zN,JmsMessageBinding:HN,JmsOperationBinding:KN,SolaceServerBinding:WN,SolaceChannelBinding:GN,SolaceMessageBinding:YN,SolaceDestination:QN,SolaceOperationBinding:JN,StompServerBinding:hM,StompChannelBinding:mM,StompMessageBinding:yM,StompOperationBinding:gM,RedisServerBinding:vM,RedisChannelBinding:bM,RedisMessageBinding:xM,RedisOperationBinding:SM,MercureServerBinding:_M,MercureChannelBinding:wM,MercureMessageBinding:PM,MercureOperationBinding:EM,SnsIdentifier:XN,SnsOrdering:ZN,SnsStatement:eM,SnsPolicy:tM,SnsChannelBinding:rM,SnsRedrivePolicy:nM,SnsDeliveryPolicy:oM,SnsConsumer:iM,SnsOperationBinding:sM,SqsIdentifier:aM,SqsRedrivePolicy:cM,SqsStatement:pM,SqsPolicy:lM,SqsQueue:Dv,SqsOperationQueue:uM,SqsChannelBinding:dM,SqsOperationBinding:fM,IbmmqServerBinding:$M,IbmmqChannelQueue:AM,IbmmqChannelTopic:TM,IbmmqChannelBinding:RM,IbmmqMessageBinding:OM,GooglepubsubMessageStoragePolicy:kM,GooglepubsubSchemaSettings:IM,GooglepubsubChannelBinding:CM,GooglepubsubSchema:qM,GooglepubsubMessageBinding:NM,PulsarServerBinding:MM,PulsarRetention:jM,PulsarChannelBinding:DM,ServerBindings:BM,ChannelBindings:HM,MessageBindings:GM,OperationBindings:KM},Lv={Ros2ServerBinding:LM,Ros2ChannelBinding:UM,Ros2OperationBinding:zM,Ros2QosPolicies:FM,Ros2MessageBinding:VM};var pi={extensionsPrefix:"x-",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"}},li={properties:{},additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema"},ui={properties:{},additionalProperties:e=>Array.isArray(e)?{type:"array",items:{type:"string"}}:"Schema"},di={properties:{},additionalProperties:e=>typeof e=="string"&&Mr(e)?{type:"string",directResolveAs:"Schema"}:{type:"string"}},fi={properties:{propertyName:{type:"string"},mapping:"DiscriminatorMapping"},required:["propertyName"]};var WM={extensionsPrefix:"x-",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"]},YM={extensionsPrefix:"x-",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."},QM={properties:{},additionalProperties:"Channel"},Od={extensionsPrefix:"x-",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."},kd={extensionsPrefix:"x-",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."},JM={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."},XM={extensionsPrefix:"x-",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."},Id={properties:{},additionalProperties:(e,t)=>t.match(/^[A-Za-z0-9_\-]+$/)?"Server":void 0},Cd={extensionsPrefix:"x-",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."},ZM={extensionsPrefix:"x-",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."},qd={extensionsPrefix:"x-",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."},Nd={extensionsPrefix:"x-",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."},ej={extensionsPrefix:"x-",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."},Md={extensionsPrefix:"x-",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."},tj={extensionsPrefix:"x-",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."},rj={extensionsPrefix:"x-",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."},nj={extensionsPrefix:"x-",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."},oj={extensionsPrefix:"x-",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."},jd={extensionsPrefix:"x-",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."},ij={extensionsPrefix:"x-",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"}},sj={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","scopes"],description:"Configuration for the OAuth Implicit flow."},aj={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],description:"Configuration for the OAuth Password flow."},cj={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],description:"Configuration for the OAuth Client Credentials flow."},pj={extensionsPrefix:"x-",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."},Dd={extensionsPrefix:"x-",properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"}},lj={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."},Ld={...er,Root:WM,Tag:Od,TagList:C("Tag"),ServerMap:Id,ExternalDocs:kd,Server:XM,ServerVariable:Cd,ServerVariablesMap:q("ServerVariable"),SecurityRequirement:JM,SecurityRequirementList:C("SecurityRequirement"),Info:ZM,Contact:qd,License:Nd,ChannelMap:QM,Channel:YM,Parameter:ej,ParametersMap:q("Parameter"),Operation:oj,Schema:pi,MessageExample:jd,SchemaProperties:li,DiscriminatorMapping:di,Discriminator:fi,Components:ij,NamedSchemas:q("Schema"),NamedMessages:q("Message"),NamedMessageTraits:q("MessageTrait"),NamedOperationTraits:q("OperationTrait"),NamedParameters:q("Parameter"),NamedSecuritySchemes:q("SecurityScheme"),NamedCorrelationIds:q("CorrelationId"),ImplicitFlow:sj,PasswordFlow:aj,ClientCredentials:cj,AuthorizationCode:pj,SecuritySchemeFlows:Dd,SecurityScheme:lj,Message:tj,OperationTrait:rj,OperationTraitList:C("OperationTrait"),MessageTrait:nj,MessageTraitList:C("MessageTrait"),MessageExampleList:C("MessageExample"),CorrelationId:Md,Dependencies:ui};var uj={extensionsPrefix:"x-",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."},dj={extensionsPrefix:"x-",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."},fj={extensionsPrefix:"x-",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."},mj={extensionsPrefix:"x-",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."},hj={extensionsPrefix:"x-",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."},yj={extensionsPrefix:"x-",properties:{headers:e=>$(e)&&"schema"in e?"MultiFormatSchema":"Schema",payload:e=>$(e)&&"schema"in e?"MultiFormatSchema":"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"},description:"Describes a message received on a given channel and operation."},gj={extensionsPrefix:"x-",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."},bj={extensionsPrefix:"x-",properties:{headers:e=>$(e)&&"schema"in e?"MultiFormatSchema":"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"},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."},vj={extensionsPrefix:"x-",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"]},xj={extensionsPrefix:"x-",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."},Sj={extensionsPrefix:"x-",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."},wj={extensionsPrefix:"x-",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."},_j={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","availableScopes"],description:"Configuration for the OAuth Implicit flow."},Pj={extensionsPrefix:"x-",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."},Ej={extensionsPrefix:"x-",properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","availableScopes"],description:"Configuration for the OAuth Client Credentials flow."},$j={extensionsPrefix:"x-",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."},Aj={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."},Tj={...er.ServerBindings,properties:{...er.ServerBindings.properties,ros2:"Ros2ServerBinding"}},Rj={...er.ChannelBindings,properties:{...er.ChannelBindings.properties,ros2:"Ros2ChannelBinding"}},Oj={...er.OperationBindings,properties:{...er.OperationBindings.properties,ros2:"Ros2OperationBinding"}},kj={...er.MessageBindings,properties:{...er.MessageBindings.properties,ros2:"Ros2MessageBinding"}},Ij={extensionsPrefix:"x-",properties:{schema:"Schema",schemaFormat:{type:"string"}},description:"Represents a schema definition. Unlike the Schema Object, it supports multiple schema formats or languages."},Cj={properties:{},additionalProperties:e=>$(e)&&"schema"in e?"MultiFormatSchema":"Schema"},Ud={...er,...Lv,ServerBindings:Tj,ChannelBindings:Rj,OperationBindings:Oj,MessageBindings:kj,CorrelationId:Md,SecuritySchemeFlows:Dd,ServerVariable:Cd,Contact:qd,License:Nd,MessageExample:jd,Tag:Od,Dependencies:ui,Schema:pi,MultiFormatSchema:Ij,Discriminator:fi,DiscriminatorMapping:di,SchemaProperties:li,ServerMap:Id,ExternalDocs:kd,Root:uj,Channel:dj,Parameter:hj,Info:mj,Server:fj,MessageTrait:bj,Operation:vj,OperationReply:xj,OperationReplyAddress:Sj,Components:wj,ImplicitFlow:_j,PasswordFlow:Pj,ClientCredentials:Ej,AuthorizationCode:$j,SecurityScheme:Aj,Message:yj,OperationTrait:gj,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:Cj,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 qj={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-"},Nj={properties:{},additionalProperties:"Parameter"},Mj={properties:{},additionalProperties:"SuccessActionObject"},jj={properties:{},additionalProperties:"FailureActionObject"},Dj={properties:{inputs:"NamedInputs",parameters:"NamedParameters",successActions:"NamedSuccessActions",failureActions:"NamedFailureActions"},extensionsPrefix:"x-"},Lj=q("Schema"),Uj={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."},Fj={properties:{},items:e=>e?.type==="openapi"?"OpenAPISourceDescription":"ArazzoSourceDescription"},zj={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."},Vj={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."},Bj={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."},Hj={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."},Kj={properties:{},items:e=>e?.reference?"ReusableObject":"Parameter"},Gj={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."},Wj=C("Workflow"),Yj=C("Step"),Qj={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."},Jj={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_.-]+$."},Xj={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."},Zj={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."},eD={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."},tD={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."},rD={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."},nD={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["draft-goessner-dispatch-jsonpath-00"]}}},oD={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-30","xpath-20","xpath-10"]}}},iD={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."},sD={properties:{},items:e=>e?.type&&e?.name?"SuccessActionObject":"ReusableObject"},aD={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."},cD={properties:{},items:e=>e?.type&&e?.name?"FailureActionObject":"ReusableObject"},Qe={Root:qj,Info:Uj,SourceDescriptions:Fj,OpenAPISourceDescription:zj,ArazzoSourceDescription:Vj,Parameters:Kj,Parameter:Hj,ReusableObject:Bj,Workflows:Wj,Workflow:Gj,Steps:Yj,Step:Qj,RequestBody:Xj,Replacement:Zj,ExtendedOperation:tD,ExtendedSecurityList:C("ExtendedSecurity"),ExtendedSecurity:eD,Outputs:Jj,CriterionObject:rD,XPathCriterion:oD,JSONPathCriterion:nD,SuccessActionObject:iD,OnSuccessActionList:sD,FailureActionObject:aD,OnFailureActionList:cD,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:Dj,NamedInputs:Lj,NamedParameters:Nj,NamedSuccessActions:Mj,NamedFailureActions:jj,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 pD={...Qe.Root,properties:{...Qe.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."}}},lD={properties:{},items:e=>e?.type==="openapi"?"OpenAPISourceDescription":e?.type==="asyncapi"?"AsyncAPISourceDescription":"ArazzoSourceDescription"},uD={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."},dD={...Qe.Parameter,properties:{...Qe.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.'}}},fD={...Qe.Step,properties:{...Qe.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"]},mD={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["rfc9535","draft-goessner-dispatch-jsonpath-00"]}},required:["type","version"]},hD={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-31","xpath-30","xpath-20","xpath-10"]}},required:["type","version"]},yD={properties:{type:{type:"string",enum:["jsonpointer"]},version:{type:"string",enum:["rfc6901"]}},required:["type","version"]},gD={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"]},bD=e=>e?.type==="jsonpath"?"JSONPathExpression":e?.type==="xpath"?"XPathExpression":e?.type==="jsonpointer"?"JSONPointerExpression":"ExpressionType",Fd=(e,t,{optional:r=!0}={})=>n=>{if(!(r&&!n))return typeof n=="string"?{enum:e,description:t}:bD(n)},vD={...Qe.CriterionObject,properties:{...Qe.CriterionObject.properties,type:Fd(["regex","jsonpath","simple","xpath"],"The type of condition to be applied.")}},xD={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:Fd(["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."},SD={properties:{},additionalProperties:e=>$(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_.-]+$."},wD={...Qe.Replacement,properties:{...Qe.Replacement.properties,value:e=>$(e)&&"selector"in e?"SelectorObject":{},targetSelectorType:Fd(["jsonpath","xpath","jsonpointer"],"The type of selector used in the target field.")}},_D={...Qe.SuccessActionObject,properties:{...Qe.SuccessActionObject.properties,parameters:"Parameters"}},PD={...Qe.FailureActionObject,properties:{...Qe.FailureActionObject.properties,parameters:"Parameters"}},zd={...Qe,Root:pD,SourceDescriptions:lD,AsyncAPISourceDescription:uD,Parameter:dD,Step:fD,CriterionObject:vD,JSONPathExpression:mD,XPathExpression:hD,JSONPointerExpression:yD,ExpressionType:gD,SelectorObject:xD,Outputs:SD,Replacement:wD,SuccessActionObject:_D,FailureActionObject:PD};var ED={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."},$D={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."},AD=C("Action"),TD={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"},Vd={Root:ED,Info:$D,Actions:AD,Action:TD};var RD={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."},OD={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."},kD={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."},ID={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."},CD={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."},qD={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."},ND={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."},MD={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."},jD={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."},DD={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."},LD={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."},UD={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."},FD={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."},zD={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."},VD={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."},Bd={Root:RD,Info:OD,Contact:kD,License:ID,Server:CD,ServerList:C("Server"),ServerVariable:qD,ServerVariablesMap:q("ServerVariable"),Method:ND,MethodList:C("Method"),ContentDescriptor:MD,ContentDescriptorList:C("ContentDescriptor"),ExamplePairing:jD,ExamplePairingList:C("ExamplePairing"),Example:DD,ExampleList:C("Example"),Link:LD,LinkList:C("Link"),ErrorObject:UD,ErrorList:C("ErrorObject"),Components:FD,Tag:zD,TagList:C("Tag"),ExternalDocs:VD,Schema:pi,SchemaProperties:li,Dependencies:ui,DiscriminatorMapping:di,Discriminator:fi,NamedContentDescriptors:q("ContentDescriptor"),NamedSchemas:q("Schema"),NamedExamples:q("Example"),NamedLinks:q("Link"),NamedErrors:q("ErrorObject"),NamedExamplePairingObjects:q("ExamplePairing"),NamedTags:q("Tag")};var e0={hide:{type:"boolean"},component:{type:"string",enum:["radio","checkbox"]},label:{type:"string"},items:{type:"array",items:{type:"string"}}},Ds={type:"object",properties:e0,additionalProperties:!1},BD={type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Us={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:{...e0,like:Ds,dislike:Ds,satisfied:Ds,neutral:Ds,dissatisfied:Ds},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:BD},additionalProperties:!1}},additionalProperties:!1},HD={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},Wd={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},Oc={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},feedback:Us,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string"},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:Wd,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:HD,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1},mi={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},KD={type:"object",properties:{name:{type:"string"},items:mi,queries:mi,mutations:mi,subscriptions:mi,types:mi,directives:mi},required:["name"],additionalProperties:!1},GD={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:KD},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},WD={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},YD={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},QD={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri"},contact:WD,license:YD},additionalProperties:!1},kc={type:"object",properties:{menu:{type:"object",properties:{...GD.properties},additionalProperties:!1},downloadUrls:Wd,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:Us,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},excludeFromSearch:{type:"boolean"},info:QD},additionalProperties:!1},JD={type:"object",properties:{downloadUrls:Wd,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:Us,layout:{type:"string",enum:["stacked","three-panel"]}},additionalProperties:!1},XD={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"]},ZD={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"}}},Uv={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},eL={type:"object",properties:{beforeInfo:{type:"array",items:Uv},end:{type:"array",items:Uv}}},ho={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},$c={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},tL={type:"object",properties:jc(ho.properties,["light","dark"])},rL={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"}}},nL={type:"object",properties:{error:$c,info:$c,redirect:$c,success:$c}},oL={type:"object",properties:hi(ho.properties,["dark"])},iL={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},sL={type:"object",properties:{accent:ho,border:tL,error:ho,http:rL,primary:ho,responses:nL,secondary:oL,success:ho,text:iL,tonalOffset:{type:"number"},warning:ho}},Ac={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},aL={type:"object",properties:{small:Ac,medium:Ac,large:Ac,xlarge:Ac}},Ur={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},cL={type:"object",properties:{...hi(Ur.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:aL}},Fv={type:"object",properties:jc(Ur.properties,["fontSize","lineHeight"])},pL={type:"object",properties:{medium:Fv,small:Fv}},lL={type:"object",properties:{...hi(Ur.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},color:{type:"string"},sizes:pL}},uL={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},dL={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},zv={type:"object",properties:{fullWidth:{type:"boolean"}}},fL={type:"object",properties:{buttons:cL,httpBadges:lL,layoutControls:uL,panels:dL,tryItButton:zv,tryItSendButton:zv}},Ic={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},mL={type:"object",properties:{maxWidth:Ic}},hL={type:"object",properties:{maxWidth:Ic,middlePanelMaxWidth:Ic}},yL={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:mL,"three-panel":hL}},Vv={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},gL={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:Vv,defaultDetailsWidth:{type:"string"},examples:Vv,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},t0={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},bL={type:"object",properties:jc(t0.properties,["textTransform"])},vL={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},xL={type:"object",properties:{...hi(Ur.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:t0,level1items:bL,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:vL,textColor:{type:"string"},width:{type:"string"}}},Tc={type:"object",properties:{...Ur.properties,color:{type:"string"},transform:{type:"string"}}},SL={type:"object",properties:{...Ur.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"}}},wL={type:"object",properties:hi(Ur.properties,["fontSize"])},_L={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},PL={type:"object",properties:{code:SL,fieldName:Ur,...jc(Ur.properties,["fontSize","fontFamily"]),fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:Tc,heading2:Tc,heading3:Tc,headings:wL,lineHeight:{type:"string"},links:_L,optimizeSpeed:{type:"boolean"},rightPanelHeading:Tc,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}}},EL={type:"object",properties:{color:{type:"string"},...hi(Ur.properties,["fontWeight"])}},$L={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:EL}},AL={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},TL={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},Bv={type:"object",properties:{custom:{type:"string"}}},RL={type:"object",properties:{DownloadButton:Bv,NextSectionButton:Bv}},OL={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},kL={type:"object",properties:{borderRadius:{type:"string"}}},IL={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},CL={type:"object",properties:{breakpoints:Ic,codeBlock:$L,colors:sL,components:fL,layout:yL,logo:AL,fab:TL,overrides:RL,rightPanel:OL,schema:gL,shape:kL,sidebar:xL,spacing:IL,typography:PL,links:{type:"object",properties:{color:{type:"string"}}},codeSample:{type:"object",properties:{backgroundColor:{type:"string"}}}}},qL={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:XD}},required:["languages"]},r0={type:"object",properties:{theme:CL,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:qL,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:ZD,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:eL,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 jc(e,t){return Object.fromEntries(t.filter(r=>r in e).map(r=>[r,e[r]]))}function hi(e,t){return Object.fromEntries(Object.entries(e).filter(([r])=>!t.includes(r)))}var tr={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 NL={rules:tr,oas2Rules:tr,oas3_0Rules:tr,oas3_1Rules:tr,oas3_2Rules:tr,async2Rules:tr,async3Rules:tr,arazzo1Rules:tr,arazzo1_1Rules:tr,overlay1Rules:tr,openrpc1Rules:tr,graphqlRules:tr};var gr={nodeTypeName:void 0,type:"object",additionalProperties:!0},ML={preprocessors:gr,oas2Preprocessors:gr,oas3_0Preprocessors:gr,oas3_1Preprocessors:gr,oas3_2Preprocessors:gr,async2Preprocessors:gr,async3Preprocessors:gr,arazzo1Preprocessors:gr,arazzo1_1Preprocessors:gr,overlay1Preprocessors:gr,openrpc1Preprocessors:gr},br={nodeTypeName:void 0,type:"object",additionalProperties:!0};var jL={decorators:br,oas2Decorators:br,oas3_0Decorators:br,oas3_1Decorators:br,oas3_2Decorators:br,async2Decorators:br,async3Decorators:br,arazzo1Decorators:br,arazzo1_1Decorators:br,overlay1Decorators:br,openrpc1Decorators:br},DL={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"},Dc={...NL,...jL,...ML,extends:DL},n0=e=>e,nt=n0({RedirectSource:"RedirectSource",Redirects:"Redirects",ScorecardClassic:"ScorecardClassic",ScorecardClassicLevelList:"ScorecardClassicLevelList",ScorecardClassicLevel:"ScorecardClassicLevel",ScorecardClassicTargetList:"ScorecardClassicTargetList",ScorecardClassicTarget:"ScorecardClassicTarget",ScorecardClassicTargetWhere:"ScorecardClassicTargetWhere",ScorecardClassicTargetWhereMetadata:"ScorecardClassicTargetWhereMetadata",ScorecardClassicTeamMetadataProperty:"ScorecardClassicTeamMetadataProperty"}),et={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},Hv={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},Hd={type:"object",properties:{page:{type:"string",uiHint:"file"},directory:{type:"string",uiHint:"file"},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}}},Yd={type:"array",items:{...Hd,properties:{...Hd.properties,items:{type:"array",items:Hd}}}},LL={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},UL={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},FL={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}},zL={type:"object",properties:{facets:FL,...et.properties},additionalProperties:!1},VL={type:"object",properties:{page:{type:"string",uiHint:"file"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},o0={type:"object",properties:{image:{type:"string",uiHint:"file"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string",uiHint:"file"}},additionalProperties:!1},i0={type:"object",properties:{items:Yd,...et.properties},additionalProperties:!1},s0={type:"object",additionalProperties:LL},a0={type:"object",properties:{items:Yd,copyrightText:{type:"string"},logo:et,...et.properties},additionalProperties:!1},c0={type:"object",properties:{separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"]},...et.properties},additionalProperties:!1},p0={type:"object",properties:{head:{type:"array",items:Hv},body:{type:"array",items:Hv}},additionalProperties:!1},l0={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}},u0={type:"object",properties:{engine:{type:"string",enum:["flexsearch","typesense"]},ai:UL,filters:zL,placement:{type:"string"},shortcuts:{type:"array",items:{type:"string"}},suggestedPages:{type:"array",items:VL},...et.properties},additionalProperties:!1},d0={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},f0={type:"object",properties:{ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"}},...et.properties},additionalProperties:!1},Qd={type:"string",enum:["slate","pink","coral","amber","jade","cyan","ocean","indigo","iris"]},BL={type:"object",properties:{...et.properties,items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]}}},additionalProperties:!1},m0={type:"object",properties:{nextButton:{type:"object",properties:{text:{type:"string"},...et.properties},additionalProperties:!1},previousButton:{type:"object",properties:{text:{type:"string"},...et.properties},additionalProperties:!1},actions:BL},additionalProperties:!1},h0={type:"object",properties:{elementFormat:{type:"string"},copy:{type:"object",properties:{...et.properties},additionalProperties:!1},report:{type:"object",properties:{tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"},...et.properties},additionalProperties:!1},expand:{type:"object",properties:{...et.properties},additionalProperties:!1},collapse:{type:"object",properties:{...et.properties},additionalProperties:!1}},additionalProperties:!1},y0={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"},...et.properties},additionalProperties:!1},toc:{type:"object",properties:{header:{type:"string"},depth:{type:"integer",minimum:1},...et.properties},additionalProperties:!1},editPage:{type:"object",properties:{baseUrl:{type:"string"},...et.properties},additionalProperties:!1},template:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},Cc={...Oc,properties:{...Oc.properties,...r0.properties}},rZ={...Oc,properties:{...Oc.properties,...r0.properties}},HL={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},KL={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"]},GL={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},WL={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},YL={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"]},QL={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},JL={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"]},g0={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"]},XL={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:g0}},additionalProperties:!1,required:["trackingId"]},b0={type:"object",properties:{adobe:HL,amplitude:KL,fullstory:GL,heap:WL,rudderstack:YL,segment:QL,gtm:JL,ga:XL}},v0={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"},...et.properties},additionalProperties:!1},x0={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},S0={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},ZL={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"}}}},e2={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:ZL},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:Yd,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},qc={type:"object",patternProperties:{".*":e2}},Nc={nodeTypeName:nt.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:nt.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:nt.ScorecardClassicLevelList,description:"List of levels to score against.",type:"array",items:{nodeTypeName:nt.ScorecardClassicLevel,documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#level-object",type:"object",required:["name"],properties:{name:{type:"string"},color:{type:"string"},...Dc},additionalProperties:!1}},targets:{nodeTypeName:nt.ScorecardClassicTargetList,description:"Provide custom `minimumLevel` for specific targets.",type:"array",items:{nodeTypeName:nt.ScorecardClassicTarget,type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{nodeTypeName:nt.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:nt.ScorecardClassicTargetWhereMetadata,type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}},t2={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},r2={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},n2={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},pn={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:r2},excludes:{type:"array",items:t2},filters:{type:"array",items:n2},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},o2={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},i2={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:o2},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},s2={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:i2,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},a2={type:"object",additionalProperties:s2},w0={type:"object",properties:{show:{type:"boolean"},entityTypes:a2,catalogs:{type:"object",properties:{all:pn,services:pn,domains:pn,teams:pn,users:pn,apiDescriptions:pn,dataSchemas:pn,apiOperations:pn},additionalProperties:pn}},additionalProperties:!1},Kv={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none"]},Jd={type:"string",enum:["and","or"]},Kd={type:"object",properties:{field:{type:"string"},operator:Kv,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:Kv,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]}}}}}},c2={type:"object",properties:{operator:Jd,conditions:{type:"array",items:Kd}},required:["operator","conditions"],additionalProperties:!1},Gv={type:"array",items:{oneOf:[Kd,{type:"object",properties:{operator:Jd,conditions:{type:"array",items:{oneOf:[Kd,c2]}}},required:["operator","conditions"],additionalProperties:!1}]}},_0={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},p2={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:_0},required:["subject","assertions"],additionalProperties:!1}},l2={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:_0,where:p2,weight:{type:"number"}},required:["subject","assertions"],additionalProperties:!1},u2={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number"}},additionalProperties:!0},l2]}},d2={type:"object",properties:{name:{type:"string"},extends:Dc.extends,rules:u2},required:["name"],additionalProperties:!1},Wv={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},f2={oneOf:[Wv,{type:"array",items:Wv}]},m2={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[Gv,{type:"object",properties:{operator:Jd,conditions:Gv},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:d2,minItems:1},trigger:f2},required:["name","key","entities","levels"],additionalProperties:!1},P0={type:"array",items:m2},Lr={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:o0,navbar:i0,products:s0,footer:a0,sidebar:c0,scripts:p0,links:l0,feedback:Us,search:u0,aiAssistant:d0,colorMode:f0,palette:Qd,navigation:m0,codeSnippet:h0,markdown:y0,openapi:Cc,asyncapi:JD,graphql:kc,analytics:b0,userMenu:v0,versionPicker:x0,breadcrumbs:S0,catalog:qc,entitiesCatalog:w0,catalogClassic:qc,scorecard:Nc,scorecardClassic:Nc,scorecards:P0},additionalProperties:!0};var h2=(e=>(e.OIDC="OIDC",e.SAML2="SAML2",e))(h2||{}),y2=(e=>(e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2",e))(y2||{});var g2=(e=>(e.STACKED="stacked",e.THREE_PANEL="three-panel",e))(g2||{});var E0="^[a-z0-9]+(?:-[a-z0-9]+)*$",nZ=new RegExp(E0);var b2=63,oZ=`Unique ID cannot exceed ${b2} characters`,$0="redocly",A0=[$0,"corporate","guest"],iZ=`Unique ID cannot be a reserved word (${A0.join(", ")})`,Yv=["REDOCLY","CORPORATE","GUEST"],v2={type:"object",additionalProperties:{type:"string"}},x2={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},Rc={type:"string",enum:["error","warn","off"]},S2={type:"object",additionalProperties:!1,properties:{schemaCheck:Rc,statusCodeCheck:Rc,contentTypeCheck:Rc,successCriteriaCheck:Rc}},w2={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},_2={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},P2={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},E2={type:"object",additionalProperties:{type:"object",properties:{type:{type:"string",enum:["http"]},url:{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"},description:{type:"string"},headers:{type:"object",additionalProperties:{type:"string"}}},required:["url"],additionalProperties:!1}},$2={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:[w2,_2]},inputs:v2,servers:x2,severity:S2,slo:P2},required:["path","trigger","agent"],additionalProperties:!1}},mcpServers:E2},additionalProperties:!1},T0={type:"string",enum:["off","info","warn","error"]},Ls={type:"array",items:{type:"string"}},A2={type:"object",properties:{severity:T0,message:{type:"string",minLength:1},fix:{type:"boolean"},tags:Ls,description:{type:"string"},link:{type:"string"},scope:{oneOf:[{type:"string",minLength:1},{type:"array",items:{type:"string",minLength:1},minItems:1}]},appliesTo:Ls,excludes:Ls,exceptions:{type:"object",properties:{files:Ls,lines:Ls},additionalProperties:!1},assertions:{type:"object",additionalProperties:!0}},additionalProperties:!1},T2={oneOf:[T0,A2]},Qv={type:"object",additionalProperties:T2},R2={type:"object",properties:{type:{type:"string",enum:["string","number","boolean"]},required:{type:"boolean"},default:{oneOf:[{type:"string"},{type:"number"},{type:"boolean"}]},enum:{type:"array",items:{type:"string"},minItems:1},dynamic:{type:"boolean"}},required:["type"],additionalProperties:!1},O2={type:"object",properties:{selfClosing:{type:"boolean"},attributes:{type:"object",additionalProperties:R2}},additionalProperties:!1},k2={type:"object",properties:{schema:{oneOf:[{type:"string",enum:["realm"]},{type:"boolean"}]},extend:{type:"object",properties:{tags:{type:"object",additionalProperties:O2},tagsFile:{type:"string",minLength:1}},additionalProperties:!1}},required:["schema"],additionalProperties:!1},I2={type:"object",properties:{rules:Qv,excludes:{type:"array",items:{type:"string",minLength:1}},baseline:{type:"string",minLength:1},markdoc:{oneOf:[{type:"boolean"},k2]},apiDescriptions:{type:"object",properties:{rules:Qv},additionalProperties:!1}},additionalProperties:!1},C2={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},q2={type:"object",properties:{type:{type:"string",const:"OIDC"},title:{type:"string"},pkce:{type:"boolean"},configurationUrl:{type:"string",minLength:1},configuration:C2,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},N2={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"]},M2={oneOf:[q2,N2],discriminator:{propertyName:"type"}},j2={type:"object",additionalProperties:M2},R0={oneOf:[{type:"array",items:{type:"string",enum:Yv},uniqueItems:!0},{type:"string",enum:Yv}]},Jv={type:"string",pattern:E0,not:{enum:A0.filter(e=>e!==$0)}},O0={oneOf:[{type:"array",items:Jv,uniqueItems:!0},Jv]},k0={type:"boolean"},I0={type:"string",pattern:"^https?://.*"},C0={type:"string",pattern:"^https?://.*"},D2={type:"object",properties:{to:{type:"string"},type:{type:"number"}},additionalProperties:!1,nodeTypeName:nt.RedirectSource,description:"Source is an absolute path that must start with a forward slash.",documentationLink:"https://redocly.com/docs/realm/config/redirects#sources-map"},L2={type:"object",additionalProperties:D2,nodeTypeName:nt.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"},U2={type:"string",enum:["info","success","warning","error"]},Ee={type:"object",additionalProperties:{type:"string"}},F2={type:"object",properties:{trackingId:{type:"string"},content:{type:"string",uiHint:"textarea"},dismissible:{type:"boolean"},target:{type:"string"},color:U2,rbac:Ee,startAt:{type:"string",format:"date-time"},endAt:{type:"string",format:"date-time"}},required:["content"],additionalProperties:!1},z2={type:"array",items:F2},q0={type:"object",properties:{root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:Ee,openapi:Cc,graphql:kc,theme:{type:"object",properties:{openapi:Cc,graphql:kc},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0},...Dc},required:["root"]},V2={type:"object",additionalProperties:!0},B2={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},H2={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},K2={type:"object",properties:{title:{type:"string"},projectTitle:{type:"string"},description:{type:"string",uiHint:"textarea"},siteUrl:{type:"string"},image:{type:"string",uiHint:"file"},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:H2},additionalProperties:!1},G2={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},W2={type:"object",properties:{catalogs:{type:"object",properties:{all:Ee,services:Ee,domains:Ee,teams:Ee,users:Ee,apiDescriptions:Ee,dataSchemas:Ee,apiOperations:Ee},additionalProperties:Ee},entitiesTypes:{type:"object",properties:{service:Ee,domain:Ee,team:Ee,user:Ee,apiDescription:Ee,apiOperation:Ee,dataSchema:Ee},additionalProperties:Ee},entitiesGroups:{type:"array",items:{type:"object",properties:{entities:{type:"array",items:{type:"string"}},config:Ee},additionalProperties:!1}},entities:{type:"object",properties:{"**":Ee},additionalProperties:Ee}},additionalProperties:!1},N0={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:Ee,cms:Ee,reunite:Ee,features:{type:"object",properties:{aiSearch:Ee,mcp:Ee},additionalProperties:!1},content:{type:"object",properties:{"**":Ee},additionalProperties:Ee},entitiesCatalog:W2},additionalProperties:Ee},Y2={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},Q2={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},J2={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean"},stage:{type:"string"},auth:{oneOf:[Y2,Q2]}},additionalProperties:!1,required:["type","apiBaseUrl"]},X2={type:"object",properties:{type:{type:"string",const:"OAUTH2"},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},Z2={type:"object",properties:{type:{type:"string",const:"SERVICE_ACCOUNT"},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},Gd={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:[X2,Z2],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},eU={...Gd,properties:{...Gd.properties,type:{type:"string",const:"APIGEE_EDGE"}}},tU={type:"object",oneOf:[Gd,eU,J2],discriminator:{propertyName:"type"}},rU={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:tU}}},Xv={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"]},nU={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},oU={type:"object",properties:{hide:{type:"boolean"},docs:{type:"object",properties:{hide:{type:"boolean"},name:{type:"string"},ignore:{type:"array",items:{type:"string"}},publicEndpoint:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1},iU={type:"object",properties:{hide:{type:"boolean"},excludeFiles:{type:"array",items:{type:"string"}}},additionalProperties:!1},sU={type:"object",properties:{requiresLogin:k0,logoutReturnUrl:I0,residency:C0,sso:R0,idps:O0,rbac:N0},additionalProperties:!1,not:{required:["sso","idps"]},description:"Use either `access.sso` (filter by category) or `access.idps` (filter by slug), not both."},Mc={type:"object",properties:{imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:L2,seo:K2,rbac:N0,apiFunctions:G2,requiresLogin:k0,responseHeaders:{type:"object",additionalProperties:{type:"array",items:nU}},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:q0},...Dc,ssoDirect:j2,sso:R0,idps:O0,residency:C0,logoutReturnUrl:I0,access:sU,developerOnboarding:rU,removeAttribution:{type:"boolean"},i18n:Xv,l10n:Xv,metadata:V2,metadataGlobs:B2,ignore:{type:"array",items:{type:"string"}},theme:Lr,reunite:$2,logo:o0,navbar:i0,products:s0,footer:a0,sidebar:c0,scripts:p0,links:l0,feedback:Us,search:u0,aiAssistant:d0,colorMode:f0,palette:Qd,navigation:m0,codeSnippet:h0,markdown:y0,openapi:Cc,graphql:kc,analytics:b0,userMenu:v0,versionPicker:x0,breadcrumbs:S0,catalog:qc,entitiesCatalog:w0,catalogClassic:qc,scorecard:Nc,scorecardClassic:Nc,scorecards:P0,mcp:oU,skills:iU,recheck:I2,corsProxy:{type:"object",properties:{allowedTargets:{type:"array",items:{type:"string"}}},additionalProperties:!1},banner:z2},not:{required:["sso","idps"]},additionalProperties:!0},aU={...Mc,additionalProperties:!1},yi={$id:"root-redocly-config",...Mc,properties:{plugins:{type:"array",items:{type:"string"}},...Mc.properties,env:{type:"object",additionalProperties:aU}},additionalProperties:!1},Zv={type:"object",properties:{logo:Lr.properties.logo,navbar:Lr.properties.navbar,footer:Lr.properties.footer,sidebar:Lr.properties.sidebar,search:Lr.properties.search,codeSnippet:Lr.properties.codeSnippet,breadcrumbs:Lr.properties.breadcrumbs,openapi:Lr.properties.openapi,feedback:Lr.properties.feedback,palette:Qd,mockServer:Mc.properties.mockServer,analytics:{type:"object",properties:{ga:g0}}},additionalProperties:!0},sZ={$id:"product-config-override",type:"object",properties:{...Zv.properties,apis:{type:"object",additionalProperties:q0},theme:Zv},additionalProperties:!1},cU=["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=n0({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"}),pU={type:"object",nodeTypeName:ze.UserEntityMetadata,properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},lU={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},uU={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},dU={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},fU={type:"object",properties:{},nodeTypeName:ze.EntityMetadata,additionalProperties:!0},mU={type:"object",nodeTypeName:ze.EntitySlackChannel,properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1},hU={type:"object",nodeTypeName:ze.EntitySlackContact,properties:{channels:{type:"array",items:mU}},required:["channels"],additionalProperties:!1},yU={type:"object",nodeTypeName:ze.EntityContact,properties:{slack:hU},additionalProperties:!1},gU={type:"object",nodeTypeName:ze.EntityLink,properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},bU={type:"object",nodeTypeName:ze.EntityRelation,properties:{type:{type:"string",enum:cU},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},Rn={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:yU,links:{type:"array",nodeTypeName:ze.EntityLinkList,items:gU},relations:{type:"array",nodeTypeName:ze.EntityRelationList,items:bU},metadata:fU},vU={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:{...Rn,type:{type:"string",const:"user"},metadata:pU},required:["key","title","type","metadata"],additionalProperties:!1,nodeTypeName:ze.UserEntity},{type:"object",nodeTypeName:ze.ApiOperationEntity,properties:{...Rn,type:{type:"string",const:"api-operation"},metadata:uU},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:ze.DataSchemaEntity,properties:{...Rn,type:{type:"string",const:"data-schema"},metadata:dU},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:ze.ApiDescriptionEntity,properties:{...Rn,type:{type:"string",const:"api-description"},metadata:lU},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:ze.ServiceEntity,properties:{...Rn,type:{type:"string",const:"service"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:ze.DomainEntity,properties:{...Rn,type:{type:"string",const:"domain"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:ze.TeamEntity,properties:{...Rn,type:{type:"string",const:"team"}},required:["key","title","type"],additionalProperties:!1}]},xU={type:"object",nodeTypeName:ze.Entity,properties:{...Rn},required:["key","title","type"],additionalProperties:!1};import _9 from"node:path";var M0=["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 gi=["oas2","oas3_0","oas3_1","oas3_2","async2","async3","arazzo1","arazzo1_1","overlay1","openrpc1","graphql"],Lc="a-zA-Z0-9\\.\\-_",SU={oas2:Td,oas3_0:qt,oas3_1:ie,oas3_2:Ye,async2:Ld,async3:Ud,arazzo1:Qe,arazzo1_1:zd,overlay1:Vd,openrpc1:Bd};function yo(e){return e==="graphql"?{}:SU[e]}function Uc(e){return e.includes("/")}function Fc(e,t){let r={...e};return t.forEach(n=>{delete r[n]}),r}var Hw=qr(gh(),1);var S9=new Hw.default({strictSchema:!1,allowUnionTypes:!0,useDefaults:!0,allErrors:!0,discriminator:!0,strictTypes:!1,verbose:!0});function Bw(e,t){if(t.some(r=>typeof r=="function"))throw new Error("Unexpected oneOf inside oneOf.");return r=>{let n=e.findIndex(o=>S9.validate(o,r));return n===-1&&(n=0),t[n]}}function Ni(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($(t.properties)||$(t.additionalProperties)||$(t.items)&&($(t.items.properties)||$(t.items.additionalProperties)||t.items.oneOf))return w9(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=Ni(p,s,r);return typeof l=="string"&&(o[p]=l),l});return(s,a)=>{if($(s)){let c=s[n];if(typeof c=="string"){let p=o[c];if(p&&r[p])return p}}return Bw(t.oneOf,i)(s,a)}}else{let n=t.oneOf.map((o,i)=>Ni(e+"_"+i,o,r));return Bw(t.oneOf,n)}return t}function w9(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]=Ni(n+"."+c,p,r);let i;$(t.additionalProperties)&&(i=Ni(e+"_additionalProperties",t.additionalProperties,r)),t.additionalProperties===!0&&(i={});let s;$(t.items)&&($(t.items.properties)||$(t.items.additionalProperties)||t.items.oneOf)&&(s=Ni(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(f=>c[f]!==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 bh(e,t){let r={},n=Ni(e,t,r);return{ctx:r,discriminatorResolver:typeof n=="function"?n:void 0}}var P9=["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","spec-ref-siblings"],E9=["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-illogical-composition-keywords","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","spec-ref-siblings"],$9=["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","spec-ref-siblings","security-scopes-defined"],A9=["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","spec-ref-siblings","security-scopes-defined"],T9=["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"],R9=["info-contact"],O9=["info-contact","info-license","no-unused-components","spec-no-duplicated-method-params","spec-no-required-params-after-optional","spec-ref-siblings"],k9=["no-unused-types","type-description"],I9=["struct","no-unresolved-refs"],C9=[...P9,...E9,...$9,...A9,...T9,...R9,...O9,...k9,...I9],q9=["operation-description-override","tag-description-override","info-description-override","info-override","remove-x-internal","filter-in","filter-out","remove-unused-components"],N9=["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"],Kw=[...N9,...q9],Gw={extends:{name:"Extends",properties:{},items:e=>typeof e=="string"&&!oe(e)&&!_9.extname(e)?{type:"string"}:{...va,directResolveAs:{name:"ConfigGovernance",...va}},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"},va={properties:Gw},M9=e=>({...e.rootRedoclyConfigSchema,properties:{...e.rootRedoclyConfigSchema.properties,...va.properties,apis:"ConfigApis",client:"Client",telemetry:{enum:["on","off"]},resolve:{properties:{http:"ConfigHTTP",doNotResolveExamples:{type:"boolean"}}}}}),j9={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"},D9=e=>({...e["rootRedoclyConfigSchema.apis_additionalProperties"],properties:{...e["rootRedoclyConfigSchema.apis_additionalProperties"]?.properties,...Fc(va.properties,["plugins"]),client:"Client",clientOutput:{type:"string"}}}),L9={properties:{headers:{type:"array",items:{type:"string"}}}},U9={properties:{generators:{type:"array",items:{type:"string"}},argsStyle:{enum:["flat","grouped"]},serverUrl:{type:"string"},outputMode:{enum:["single","split"]},runtime:{enum:["inline","module"]},importExt:{enum:["js","ts"]},goPackage:{type:"string"},cliOutput:{type:"string"},errorMode:{enum:["throw","result"]},dateType:{enum:["string","Date"]},mockData:{enum:["static","faker"]},mockSeed:{type:"number"},queryKeyPrefix:{type:"string"},codeSamples:{type:"boolean"},docs:{type:"boolean"},docsFrontmatter:{type:"boolean"},setup:{type:"string"},options:q("ClientGeneratorOptions"),pagination:"ClientPagination"}},F9={properties:{},additionalProperties:{}},Ww={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"}}},z9={properties:{...Ww.properties,exclude:{type:"array",items:{type:"string"}},operations:q("ClientPaginationRule")}},V9={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(C9.includes(t))return typeof e=="string"?{enum:["error","warn","off"]}:"BuiltinRule";if(Uc(t))return typeof e=="string"?{enum:["error","warn","off"]}:"CustomRule";if(t==="metadata-schema"||t==="custom-fields-schema")return"Schema"}},B9={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"},H9={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"},K9={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(Kw.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinDecorator";if(Uc(t))return typeof e=="string"?{type:"string"}:"CustomDecorator"}},G9={properties:{},additionalProperties:{},description:"Built-in decorators are the default decorators included with Redocly CLI.",documentationLink:"https://redocly.com/docs/cli/decorators#list-of-decorators"},W9={properties:{},additionalProperties:{},description:"Custom decorators are defined by users via plugins.",documentationLink:"https://redocly.com/docs/cli/custom-plugins/custom-decorators"},Y9={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(Kw.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinPreprocessor";if(Uc(t))return typeof e=="string"?{type:"string"}:"CustomPreprocessor"}},Q9={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"},J9={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"};function X9(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 Z9(e){return{...e[nt.ScorecardClassicLevel],properties:{...e[nt.ScorecardClassicLevel]?.properties,...Gw}}}var eK={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"},schema:"Schema",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"},tK={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"},rK={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 _p(e,t){let r=gi.flatMap(o=>{let i=yo(o),s=t?t.extendTypes(i,o):i;return Object.keys(s)}),{ctx:n}=bh("rootRedoclyConfigSchema",e);return{...nK,ConfigRoot:M9(n),ConfigApisProperties:D9(n),Subject:X9([...r,...M0]),...n,[nt.ScorecardClassicLevel]:Z9(n)}}var nK={ConfigurableRule:rK,ConfigApis:j9,ConfigGovernance:va,ConfigHTTP:L9,Client:U9,ClientGeneratorOptions:F9,ClientPagination:z9,ClientPaginationRule:Ww,Where:tK,BuiltinRule:B9,CustomRule:H9,BuiltinDecorator:G9,CustomDecorator:W9,BuiltinPreprocessor:Q9,CustomPreprocessor:J9,Schema:ie.Schema,SchemaProperties:ie.SchemaProperties,PatternProperties:ie.PatternProperties,NamedSchemas:ie.NamedSchemas,DependentRequired:ie.DependentRequired,Discriminator:ie.Discriminator,DiscriminatorMapping:ie.DiscriminatorMapping,ExternalDocs:ie.ExternalDocs,Xml:ie.Xml,Rules:V9,Decorators:K9,Preprocessors:Y9,Assertions:eK},{theme:gte,...oK}=yi.properties,iK={...yi,properties:oK},Yw=_p(iK),Mn=an(Yw);function sr(e,t){if(M(t.parent))return;let r=t.key.toString(),n=e.counts??={};n[r]=(n[r]??0)+1}function vh(e){for(let o of Object.values(e))o.items&&(o.total=o.items.size);let{xExtensions:t}=e,r=t.counts??{},n=Object.keys(r).sort();t.total=n.length,t.counts=Object.fromEntries(n.map(o=>[o,r[o]]))}var sK=e=>({SpecExtension:{enter(t,r){sr(e.xExtensions,r)}},XCodeSampleList:{enter(t,r){sr(e.xExtensions,r)}},ExamplesMap:{enter(t,r){r.key.toString()==="x-examples"&&sr(e.xExtensions,r)}},EnumDescriptions:{enter(t,r){sr(e.xExtensions,r)}},TagGroups:{enter(t,r){sr(e.xExtensions,r)}},Logo:{enter(t,r){sr(e.xExtensions,r)}},XServerList:{enter(t,r){sr(e.xExtensions,r)}},XUsePkce:{enter(t,r){sr(e.xExtensions,r)}},Operation:{enter(t,r){r.key.toString()==="x-query"&&sr(e.xExtensions,r)}},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:{enter(t,r){r.key.toString()==="x-webhooks"&&sr(e.xExtensions,r)},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(){vh(e)}}}),aK=e=>({SpecExtension:{enter(t,r){sr(e.xExtensions,r)}},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,{key:r}){e.parameters.items.add(r.toString())}}}},NamedSchemas:{Schema:{leave(){e.schemas.total++}}},Root:{leave(){vh(e)}}}),cK=e=>({SpecExtension:{enter(t,r){sr(e.xExtensions,r)}},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,{key:r}){e.parameters.items.add(r.toString())}}}},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(){vh(e)}}});import*as FE from"node:fs";import*as vn from"node:path";var Mi="redocly.yaml",Qw={extends:["recommended"]},xa=".redocly.lint-ignore.yaml",Jw=`# This file instructs Redocly's linter to ignore the rules contained for specific parts of your API.
|
|
106
106
|
# See https://redocly.com/docs/cli/ for more information.
|
|
107
|
-
`,Pp="configBundler",Ep="pluginsCollector",Xw=["@theme/plugin.js","@theme/plugin.cjs","@theme/plugin.mjs"];function $p(e){return{http:{headers:e?.http?.headers??[],customFetch:void 0}}}function Sa(e,t){let r=new Set(t),n=0;for(let o of e)r.has(o)&&n++;return n}function Zw(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 qE=qr(gh(),1),NE=qr(a_(),1),ME=qr(IE(),1);function CE(e){return e==="draft4"?"id":"$id"}function zY(e){return e==="oas2"||e==="oas3_0"?"draft4":"2020"}var Yr=class{instances={};validate(t,r,n){let{schemaLoc:o,instancePath:i,resolve:s,allowAdditionalProperties:a,ajvContext:c,specVersion:p}=n,l=zY(p),u=this.getValidator(r,o,s,a,l);if(!u)return{valid:!0,errors:[]};let f={instancePath:i,parentData:{fake:{}},parentDataProperty:"fake",rootData:{},dynamicAnchors:{}};return{valid:!!u.call(c??{},t,f),errors:(u.errors||[]).map(m)};function m(h){let y=h.message,g=h.keyword==="enum"?h.params.allowedValues:void 0;g&&(y+=` ${g.map(w=>`"${w}"`).join(", ")}`),h.keyword==="type"&&(y=`type ${y}`);let b=h.instancePath.substring(i.length+1),v=b.substring(b.lastIndexOf("/")+1);if(v&&(y=`\`${v}\` property ${y}`),h.keyword==="additionalProperties"||h.keyword==="unevaluatedProperties"){let w=h.params.additionalProperty||h.params.unevaluatedProperty;y=`${y} \`${w}\``,h.instancePath+="/"+Nr(w)}return{...h,message:y,suggest:g}}}getAjv(t,r){if(!this.instances[r]){let n=CE(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 qE.default(o):new NE.default(o),(0,ME.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=CE(i);return s.getSchema(a)||(s.setDefaultUnevaluatedProperties(o),s.addSchema({[c]:a,...t},a)),s.getSchema(a)}};var il=new Set(["mutuallyExclusive","mutuallyRequired","enum","pattern","notPattern","minLength","maxLength","casing","sortOrder","disallowed","required","requireAny","ref","const","defined"]),sl=new Set(["pattern","notPattern","enum","defined","nonEmpty","minLength","maxLength","casing","sortOrder","ref","const","contains","schema"]),jE=new WeakMap,VY=new ft(new Dr("assertion",""),"#/schema"),Qr={pattern:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof e>"u"||$(e))return[];let o=Array.isArray(e)?e:[e],i=mo(t);return o.map(s=>!i?.test(s)&&{message:`${JSON.stringify(s)} should match a regex ${t}`,location:Me(e)?r:$(n)?r.child(s).key():r.key()}).filter(We)},notPattern:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof e>"u"||$(e))return[];let o=Array.isArray(e)?e:[e],i=mo(t);return o.map(s=>i?.test(s)&&{message:`${JSON.stringify(s)} should not match a regex ${t}`,location:Me(e)?r:$(n)?r.child(s).key():r.key()}).filter(We)},enum:(e,t,{baseLocation:r})=>typeof e>"u"||$(e)?[]:(Array.isArray(e)?e:[e]).map(o=>!t.includes(o)&&{message:`${JSON.stringify(o)} should be one of the predefined values`,location:Me(e)?r:r.child(o).key()}).filter(We),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(We),contains:(e,t,{baseLocation:r})=>{if(typeof e>"u"||$(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(We)},disallowed:(e,t,{baseLocation:r})=>typeof e>"u"||$(e)?[]:(Array.isArray(e)?e:[e]).map(o=>t.includes(o)&&{message:`${JSON.stringify(o)} is disallowed`,location:Me(e)?r:r.child(o).key()}).filter(We),const:(e,t,{baseLocation:r})=>typeof e>"u"?[]:Array.isArray(e)?e.map(n=>t!==n&&{message:`${JSON.stringify(n)} should be equal ${JSON.stringify(t)}`,location:Me(e)?r:r.child(n).key()}).filter(We):e!==t?[{message:`${JSON.stringify(e)} should be equal ${JSON.stringify(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"||$(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:`${JSON.stringify(i)} should use ${t}`,location:Me(e)?r:r.child(i).key()}).filter(We)},sortOrder:(e,t,{baseLocation:r})=>{let n=t.direction||t,o=t.property;return Array.isArray(e)&&e.length>0&&$(e[0])&&!o?[{message:"Please define a property to sort objects by",location:r}]:typeof e>"u"||Zw(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})=>Sa(e,t)<2?[]:[{message:`${t.join(", ")} keys should be mutually exclusive`,location:r.key()}],mutuallyRequired:(e,t,{baseLocation:r})=>(Sa(e,t)>0?Sa(e,t)===t.length:!0)?[]:[{message:`Properties ${t.join(", ")} are mutually required`,location:r.key()}],requireAny:(e,t,{baseLocation:r})=>Sa(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=mo(t);return o&&i?.test(n.$ref)?[]:[{message:`$ref value should match ${t}`,location:o?r:r.key()}]},schema:(e,t,{baseLocation:r,rawValue:n,resolve:o})=>{if(typeof e>"u")return[];if(typeof t=="boolean")return t?[]:[{message:"boolean schema is false",location:r}];let i=jE.get(t);i||(i=new Yr,jE.set(t,i));let s=M(n)&&o(n)?.location||r,a;try{({errors:a}=i.validate(e,t,{schemaLoc:VY,instancePath:"",resolve:o,allowAdditionalProperties:!1,specVersion:"oas3_1"}))}catch(c){throw new Error(`the 'schema' assertion has an invalid schema: ${c.message}`)}return a.map(c=>{let p=c.instancePath?mr(s.pointer,c.instancePath.slice(1)):s.pointer,l=new ft(s.source,p),u=c.keyword==="additionalProperties"||c.keyword==="unevaluatedProperties";return{message:c.message,location:u?l.key():l}})}};function DE(e){return(t,r,n)=>e.call(null,t,r,n)}function UE(e,t){if(!e.rules)return{};let r={},n=[];for(let[o,i]of Object.entries(e.rules))if(o.startsWith("rule/")&&$(i)){let s=i;if(t){LE(t,s);for(let a of s.where||[])LE(t,a)}n.push({...s,assertionId:o})}else r[o]=i;return n.length>0&&(r.assertions=n),r}function LE(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}.`);Qr[r]=DE(i.assertions[o])}}var ts=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=$p(this.resolvedConfig.resolve),this._alias=r.alias,this.plugins=r.plugins||[],this.doNotResolveExamples=!!t.resolve?.doNotResolveExamples;let n=o=>UE({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({...Fc(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||!$(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?vn.dirname(this.configPath):process.cwd(),n=oe(t)?t:vn.resolve(r,t);delete this.ignore[n]}saveIgnore(){let t=this.configPath?vn.dirname(this.configPath):process.cwd(),r=vn.join(t,xa),n={};for(let o of Object.keys(this.ignore)){let i=oe(o)?o:Ad(vn.relative(t,o)),s=n[i]=this.ignore[o];for(let a of Object.keys(s))s[a]=Array.from(s[a])}FE.writeFileSync(r,Jw+xc(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 gi)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 gi)this.preprocessors[n][r]&&(this.preprocessors[n][r]="off")}skipDecorators(t){for(let r of t||[])for(let n of gi)this.decorators[n][r]&&(this.decorators[n][r]="off")}};var zE={};var VE={};var BE={};function al(e){return Array.isArray(e)&&e.length===0}function cl(e,t,r){let{parent:n,key:o}=t,i=!1;if(Array.isArray(e))for(let s=0;s<e.length;s++){if(M(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($(e))for(let s of Object.keys(e)){if(M(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&&(Gt(e)||al(e))&&delete n[o]}function Hn(e,t,r){return e===void 0||t===void 0?!1:!Array.isArray(t)&&!Array.isArray(e)?e===t:(t=HE(t),e=HE(e),r==="any"?t.some(n=>e.includes(n)):r==="all"?t.every(n=>e.includes(n)):!1)}function HE(e){return Array.isArray(e)?e:[e]}var BY="any",pl=({property:e,value:t,matchStrategy:r,applyTo:n})=>{let o=r||BY;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=M(a[l])?c.resolve(a[l]).node:a[l];if($(u)){let f=u[e];Hn(f,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];Hn(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]&&!Hn(s?.[e],t,o);return{any:{enter:(s,a)=>{cl(s,a,i)}}}};var HY="any",ll=({property:e,value:t,matchStrategy:r,applyTo:n})=>{let o=r||HY;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=M(a[l])?c.resolve(a[l]).node:a[l];if($(u)){let f=u[e];Hn(f,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];Hn(c,t,o)&&delete a.parent[a.key]}}};throw new Error("The 'target' option must be 'Operation' or 'PathItem' when provided.")}let i=s=>Hn(s?.[e],t,o);return{any:{enter:(s,a)=>{cl(s,a,i)}}}};import*as ul from"node:fs";import*as dl from"node:path";function lg(e){let t=ul.readFileSync(e,"utf-8");return lo(t)}function xn(e,t){return oe(e)||t===void 0?e:dl.resolve(dl.dirname(t),e)}function rs(e){return ul.readFileSync(e,"utf-8")}var fl=({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=rs(xn(e,o?.configPath))}catch(i){r({message:`Failed to read markdown override file for "info.description".
|
|
107
|
+
`,Pp="configBundler",Ep="pluginsCollector",Xw=["@theme/plugin.js","@theme/plugin.cjs","@theme/plugin.mjs"];function $p(e){return{http:{headers:e?.http?.headers??[],customFetch:void 0}}}function Sa(e,t){let r=new Set(t),n=0;for(let o of e)r.has(o)&&n++;return n}function Zw(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 qE=qr(gh(),1),NE=qr(a_(),1),ME=qr(IE(),1);function CE(e){return e==="draft4"?"id":"$id"}function VY(e){return e==="oas2"||e==="oas3_0"?"draft4":"2020"}var Yr=class{instances={};validate(t,r,n){let{schemaLoc:o,instancePath:i,resolve:s,allowAdditionalProperties:a,ajvContext:c,specVersion:p}=n,l=VY(p),u=this.getValidator(r,o,s,a,l);if(!u)return{valid:!0,errors:[]};let f={instancePath:i,parentData:{fake:{}},parentDataProperty:"fake",rootData:{},dynamicAnchors:{}};return{valid:!!u.call(c??{},t,f),errors:(u.errors||[]).map(m)};function m(h){let y=h.message,g=h.keyword==="enum"?h.params.allowedValues:void 0;g&&(y+=` ${g.map(w=>`"${w}"`).join(", ")}`),h.keyword==="type"&&(y=`type ${y}`);let b=h.instancePath.substring(i.length+1),v=b.substring(b.lastIndexOf("/")+1);if(v&&(y=`\`${v}\` property ${y}`),h.keyword==="additionalProperties"||h.keyword==="unevaluatedProperties"){let w=h.params.additionalProperty||h.params.unevaluatedProperty;y=`${y} \`${w}\``,h.instancePath+="/"+Nr(w)}return{...h,message:y,suggest:g}}}getAjv(t,r){if(!this.instances[r]){let n=CE(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 qE.default(o):new NE.default(o),(0,ME.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=CE(i);return s.getSchema(a)||(s.setDefaultUnevaluatedProperties(o),s.addSchema({[c]:a,...t},a)),s.getSchema(a)}};var il=new Set(["mutuallyExclusive","mutuallyRequired","enum","pattern","notPattern","minLength","maxLength","casing","sortOrder","disallowed","required","requireAny","ref","const","defined"]),sl=new Set(["pattern","notPattern","enum","defined","nonEmpty","minLength","maxLength","casing","sortOrder","ref","const","contains","schema"]),jE=new WeakMap,BY=new ft(new Dr("assertion",""),"#/schema"),Qr={pattern:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof e>"u"||$(e))return[];let o=Array.isArray(e)?e:[e],i=mo(t);return o.map(s=>!i?.test(s)&&{message:`${JSON.stringify(s)} should match a regex ${t}`,location:Me(e)?r:$(n)?r.child(s).key():r.key()}).filter(We)},notPattern:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof e>"u"||$(e))return[];let o=Array.isArray(e)?e:[e],i=mo(t);return o.map(s=>i?.test(s)&&{message:`${JSON.stringify(s)} should not match a regex ${t}`,location:Me(e)?r:$(n)?r.child(s).key():r.key()}).filter(We)},enum:(e,t,{baseLocation:r})=>typeof e>"u"||$(e)?[]:(Array.isArray(e)?e:[e]).map(o=>!t.includes(o)&&{message:`${JSON.stringify(o)} should be one of the predefined values`,location:Me(e)?r:r.child(o).key()}).filter(We),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(We),contains:(e,t,{baseLocation:r})=>{if(typeof e>"u"||$(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(We)},disallowed:(e,t,{baseLocation:r})=>typeof e>"u"||$(e)?[]:(Array.isArray(e)?e:[e]).map(o=>t.includes(o)&&{message:`${JSON.stringify(o)} is disallowed`,location:Me(e)?r:r.child(o).key()}).filter(We),const:(e,t,{baseLocation:r})=>typeof e>"u"?[]:Array.isArray(e)?e.map(n=>t!==n&&{message:`${JSON.stringify(n)} should be equal ${JSON.stringify(t)}`,location:Me(e)?r:r.child(n).key()}).filter(We):e!==t?[{message:`${JSON.stringify(e)} should be equal ${JSON.stringify(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"||$(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:`${JSON.stringify(i)} should use ${t}`,location:Me(e)?r:r.child(i).key()}).filter(We)},sortOrder:(e,t,{baseLocation:r})=>{let n=t.direction||t,o=t.property;return Array.isArray(e)&&e.length>0&&$(e[0])&&!o?[{message:"Please define a property to sort objects by",location:r}]:typeof e>"u"||Zw(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})=>Sa(e,t)<2?[]:[{message:`${t.join(", ")} keys should be mutually exclusive`,location:r.key()}],mutuallyRequired:(e,t,{baseLocation:r})=>(Sa(e,t)>0?Sa(e,t)===t.length:!0)?[]:[{message:`Properties ${t.join(", ")} are mutually required`,location:r.key()}],requireAny:(e,t,{baseLocation:r})=>Sa(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=mo(t);return o&&i?.test(n.$ref)?[]:[{message:`$ref value should match ${t}`,location:o?r:r.key()}]},schema:(e,t,{baseLocation:r,rawValue:n,resolve:o})=>{if(typeof e>"u")return[];if(typeof t=="boolean")return t?[]:[{message:"boolean schema is false",location:r}];let i=jE.get(t);i||(i=new Yr,jE.set(t,i));let s=M(n)&&o(n)?.location||r,a;try{({errors:a}=i.validate(e,t,{schemaLoc:BY,instancePath:"",resolve:o,allowAdditionalProperties:!1,specVersion:"oas3_1"}))}catch(c){throw new Error(`the 'schema' assertion has an invalid schema: ${c.message}`)}return a.map(c=>{let p=c.instancePath?mr(s.pointer,c.instancePath.slice(1)):s.pointer,l=new ft(s.source,p),u=c.keyword==="additionalProperties"||c.keyword==="unevaluatedProperties";return{message:c.message,location:u?l.key():l}})}};function DE(e){return(t,r,n)=>e.call(null,t,r,n)}function UE(e,t){if(!e.rules)return{};let r={},n=[];for(let[o,i]of Object.entries(e.rules))if(o.startsWith("rule/")&&$(i)){let s=i;if(t){LE(t,s);for(let a of s.where||[])LE(t,a)}n.push({...s,assertionId:o})}else r[o]=i;return n.length>0&&(r.assertions=n),r}function LE(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}.`);Qr[r]=DE(i.assertions[o])}}var ts=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=$p(this.resolvedConfig.resolve),this._alias=r.alias,this.plugins=r.plugins||[],this.doNotResolveExamples=!!t.resolve?.doNotResolveExamples;let n=o=>UE({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({...Fc(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||!$(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?vn.dirname(this.configPath):process.cwd(),n=oe(t)?t:vn.resolve(r,t);delete this.ignore[n]}saveIgnore(){let t=this.configPath?vn.dirname(this.configPath):process.cwd(),r=vn.join(t,xa),n={};for(let o of Object.keys(this.ignore)){let i=oe(o)?o:Ad(vn.relative(t,o)),s=n[i]=this.ignore[o];for(let a of Object.keys(s))s[a]=Array.from(s[a])}FE.writeFileSync(r,Jw+xc(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 gi)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 gi)this.preprocessors[n][r]&&(this.preprocessors[n][r]="off")}skipDecorators(t){for(let r of t||[])for(let n of gi)this.decorators[n][r]&&(this.decorators[n][r]="off")}};var zE={};var VE={};var BE={};function al(e){return Array.isArray(e)&&e.length===0}function cl(e,t,r){let{parent:n,key:o}=t,i=!1;if(Array.isArray(e))for(let s=0;s<e.length;s++){if(M(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($(e))for(let s of Object.keys(e)){if(M(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&&(Gt(e)||al(e))&&delete n[o]}function Hn(e,t,r){return e===void 0||t===void 0?!1:!Array.isArray(t)&&!Array.isArray(e)?e===t:(t=HE(t),e=HE(e),r==="any"?t.some(n=>e.includes(n)):r==="all"?t.every(n=>e.includes(n)):!1)}function HE(e){return Array.isArray(e)?e:[e]}var HY="any",pl=({property:e,value:t,matchStrategy:r,applyTo:n})=>{let o=r||HY;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=M(a[l])?c.resolve(a[l]).node:a[l];if($(u)){let f=u[e];Hn(f,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];Hn(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]&&!Hn(s?.[e],t,o);return{any:{enter:(s,a)=>{cl(s,a,i)}}}};var KY="any",ll=({property:e,value:t,matchStrategy:r,applyTo:n})=>{let o=r||KY;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=M(a[l])?c.resolve(a[l]).node:a[l];if($(u)){let f=u[e];Hn(f,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];Hn(c,t,o)&&delete a.parent[a.key]}}};throw new Error("The 'target' option must be 'Operation' or 'PathItem' when provided.")}let i=s=>Hn(s?.[e],t,o);return{any:{enter:(s,a)=>{cl(s,a,i)}}}};import*as ul from"node:fs";import*as dl from"node:path";function lg(e){let t=ul.readFileSync(e,"utf-8");return lo(t)}function xn(e,t){return oe(e)||t===void 0?e:dl.resolve(dl.dirname(t),e)}function rs(e){return ul.readFileSync(e,"utf-8")}var fl=({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=rs(xn(e,o?.configPath))}catch(i){r({message:`Failed to read markdown override file for "info.description".
|
|
108
108
|
${i.message}`,location:n.child("description")})}}}});var ml=e=>({Info:{leave(t){if(!$(e))throw new Error('"info-override" decorator should be called with an object');let{severity:r,...n}=e;Object.assign(t,n)}}});var hl=({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=rs(xn(s,o?.configPath))}catch(s){r({message:`Failed to read markdown override file for operation "${i}".
|
|
109
|
-
${s.message}`,location:n.child("operationId").key()})}}}});var
|
|
110
|
-
${i.message}`})}}}});var
|
|
111
|
-
- ${t.message??""}`).join("")}function fg(e){return oe(e)?e.split("/").at(-1)||e:e.split(/[/\\]/).at(-1)||e}function mg(e,t){let r=e;for(let n of Object.keys(ug)){let o=ug[n],i=t[n];o&&(r=r.split(o).join(i))}return r}function r$({assert:e,ctx:t,assertionProperty:r}){let n=e.name==="ref"?t.rawLocation:t.location;if(r){let o=M(t.node[r])?t.resolve(t.node[r])?.node:t.node[r],i=t.rawNode[r],s=n.child(r);return Qr[e.name](o,e.conditions,{...t,baseLocation:s,rawValue:i})}else{let o=Array.isArray(t.node)?t.node:Object.keys(t.node);return Qr[e.name](o,e.conditions,{...t,rawValue:t.rawNode,baseLocation:n})}}var Rt=e=>{let t=[],r=Object.values(e).filter(n=>$(n));for(let[n,o]of r.entries()){if(!Me(o.subject.type))throw new Error(`${o.assertionId}: 'type' (String) is required`);if(!$(o.assertions))throw new Error(`${o.assertionId}: 'assertions' (Object) is required`);let i=a$(o.assertionId,o),s=s$(o,i);t.push(s)}return t};function QY(e){return $(e)||Array.isArray(e)}var Jr=()=>({Schema(e,{report:t,location:r}){if(!Array.isArray(e.enum))return;let n=new Set,o=[];for(let[i,s]of e.enum.entries()){let a=QY(s);(a?o.some(p=>Kt(p,s)):n.has(s))&&t({message:`Duplicated enum value found: '${a?JSON.stringify(s):s}'.`,location:r.child(["enum",i]),reference:"https://redocly.com/docs/cli/rules/common/no-duplicated-enum-values"}),a?o.push(s):n.add(s)}}});var l$=qr(p$(),1);var Fo=(e,t,r)=>{if(M(e)){let n=t.resolve(e,r?.source.absoluteRef);return n?{schema:n.node,location:n.location,chain:n.chain}:{schema:void 0,location:r}}return{schema:e,location:r}},hg=(e,t,r,n,o)=>!!(e.properties&&Ue(e.properties,t)!==void 0||e.allOf?.some(i=>Sn(i,t,r,n,o))||fo(e.anyOf)&&e.anyOf.every(i=>Sn(i,t,r,new Set(n),o))||fo(e.oneOf)&&e.oneOf.every(i=>Sn(i,t,r,new Set(n),o))),Sn=(e,t,r,n=new Set,o)=>{if(M(e)&&hg(e,t,r,n,o))return!0;let{schema:i,location:s,chain:a}=Fo(e,r,o);if(!i)return!1;if(!n.has(i)&&(n.add(i),hg(i,t,r,n,s)))return!0;for(let c of a??[])if(!(!$(c.node)||n.has(c.node))&&(n.add(c.node),hg(c.node,t,r,n,c.location)))return!0;return!1};function os(e){return Array.isArray(e)?"array":e===null?"null":Number.isInteger(e)?"integer":typeof e}function ns(e){let t=e?.security;return Array.isArray(t)&&t.length>0}function xl(e,t,r){if(ns(e))return!0;if(!Array.isArray(e?.traits))return!1;for(let n of e.traits){let o=M(n)?t(n,r).node:n;if(ns(o))return!0}return!1}function is(e,t,r){if(r&&e===null)return!0;switch(t){case"array":return Array.isArray(e);case"object":return $(e);case"null":return e===null;case"integer":return Number.isInteger(e);default:return typeof e===t}}function zo(e,t){return`${e} object should contain \`${t}\` field.`}function JY(e,t){return`${e} object should contain one of the fields: ${t.map(r=>`\`${r}\``).join(", ")}.`}function u$(e,t){return`${e} object \`${t}\` must be non-empty string.`}function ur({fieldName:e,value:t,ctx:r,reference:n}){$(t)&&(t[e]===void 0?r.report({message:zo(r.type.name,e),location:r.location.child([e]).key(),reference:n}):t[e]||r.report({message:u$(r.type.name,e),location:r.location.child([e]).key(),reference:n}))}function d$({fieldNames:e,value:t,ctx:r,reference:n}){if($(t)){e.some(o=>t.hasOwnProperty(o))||r.report({message:JY(r.type.name,e),location:r.location.key(),reference:n});for(let o of e)t.hasOwnProperty(o)&&!t[o]&&r.report({message:u$(r.type.name,o),location:r.location.child([o]).key(),reference:n})}}function Vo(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,l$.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 Sl(e){if($(e)){if(rt(e.dataValue))return{value:e.dataValue,field:"dataValue"};if(rt(e.value))return{value:e.value,field:"value"}}}function Kn({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:f}=i;try{let{valid:d,errors:m}=s.validate(e,t,{schemaLoc:l.child("schema"),instancePath:o.pointer,resolve:p,allowAdditionalProperties:a,ajvContext:c,specVersion:f});if(!d)for(let h of m)u({message:`Example value must conform to the schema: ${h.message}.`,location:{...new ft(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 XY=10;function yg(e,t,r,n,{report:o,location:i},s){if(e&&!e.includes(t)){let a=e.length>XY?`\`${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:Vo(t,e)})}}function ss({responseCodes:e,codeRange:t,report:r,reference:n,disallowDefault:o=!1}){let i=new RegExp(`^${t[0]}[0-9Xx]{2}$`);e.some(a=>!o&&t==="2XX"&&a==="default"||i.test(a))||r({message:`Operation must have at least one \`${t}\` response.`,location:{reportOnKey:!0},reference:n})}function Ja(e,t){return t?e.name.toLowerCase():e.name}var Xr=()=>({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=>!is(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 "${os(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)is(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 Gn=()=>({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 Zr=()=>{let e=[],t=new Set,r=(n,o,i)=>{if(fo(n.required))for(let[s,a]of n.required.entries())Sn(n,a,i,new Set,o)||i.report({message:`Required property '${a}' is not defined.`,location:o.child(["required",s]),reference:"https://redocly.com/docs/cli/rules/common/no-required-schema-properties-undefined"})};return{ref:{leave(n,o,i){if(o.type.name!=="Schema")return;let s=[{node:n,location:o.location},...i.chain??[]];for(let{node:a,location:c}of s)!$(a)||t.has(a)||(t.add(a),r(a,c,o))}},Schema:{leave(n){e.pop()},enter(n,o){if(e.push(n),!fo(n.required))return;let i=(c,p)=>{let l=u=>Fo(u,o).schema===p;return!!(c.allOf?.some(l)||c.anyOf?.some(l)||c.oneOf?.some(l))},s=(c,p)=>{if(c<0)return;let l=e[c];return i(l,p)?s(c-1,l)??l:void 0},a=s(e.length-2,n);for(let[c,p]of n.required.entries())!Sn(n,p,o)&&!Sn(a,p,o)&&o.report({message:`Required property '${p}' is not defined.`,location:o.location.child(["required",c]),reference:"https://redocly.com/docs/cli/rules/common/no-required-schema-properties-undefined"})}}}};var en=()=>({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 pt=()=>({ref:{leave(e,{report:t,location:r},n){n.node===void 0&&Bo(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;Bo(i,t,n.child(o))}}});function Bo(e,t,r){let n=e.error;n instanceof jr&&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 tn=()=>({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 lt=()=>({any(e,{report:t,type:r,location:n,rawLocation:o,key:i,resolve:s,ignoreNextVisitorsOnNode:a}){let c=os(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!==yr&&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&&$(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 f=r.requiredOneOf||null;if(f){let d=!1;for(let m of f||[])e.hasOwnProperty(m)&&(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 m=n.child([d]),h=e[d],y=Ue(r.properties,d);if(y===void 0&&(y=r.additionalProperties),typeof y=="function"&&(y=y(h,d)),Xt(y))continue;let g=y,b=os(h);if(g===void 0){if(d.startsWith("x-"))continue;t({message:`Property \`${d}\` is not expected here.`,suggest:Vo(d,Object.keys(r.properties)),from:p,location:m.key()});continue}if(g!==null){if(g.resolvable!==!1&&M(h)&&(h=s(h).node),g.items&&g.items?.enum&&Array.isArray(h))for(let v=0;v<h.length;v++)yg(g.items?.enum,h[v],d,p,{report:t,location:n.child([d,v])},g.items?.documentationLink);if(g.enum)yg(g.enum,h,d,p,{report:t,location:n.child([d])},g.documentationLink);else if(g.type&&!is(h,g.type,!1))t({message:`Expected type \`${g.type}\` but got \`${b}\`.`,from:p,location:m}),a();else if(b==="array"&&g.items?.type){let v=g.items?.type;for(let w=0;w<h.length;w++){let S=h[w];is(S,v,!1)||t({message:`Expected type \`${v}\` but got \`${os(S)}\`.`,from:p,location:m.child([w])})}}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 f$=()=>({CriterionObject:{enter(e,{report:t,location:r}){e.type&&(e.type==="xpath"||$(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 m$=()=>{function e(t,{report:r,location:n}){if(Array.isArray(t))for(let o of t){let i=Ue(o,"scheme"),s=Ue(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 h$=()=>({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 y$=()=>{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 ZY={apiKey:["apiKey"],basic:["username","password"],digest:["username","password"],bearer:["token"],oauth2:["accessToken"],openIdConnect:["accessToken"],mutualTLS:[]};function g$(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,a=o?.type==="http"?s?.toLowerCase():s;if(s==="mutualTLS"){Y.warn("Please use CLI option to provide mutualTLS certificates for mutualTls authentication security schema.");continue}let c=ZY[a];if(c)for(let p of c)(!i||!(p in i))&&t({message:`The \`${p}\` 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 b$=()=>({Step:{enter(e,t){g$(e?.["x-security"],t)}},Workflow:{enter(e,t){g$(e?.["x-security"],t)}}});var v$=()=>({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 x$=()=>{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,f;for(;(f=u.exec(s))!==null;){let[d,m,h]=f,y=l.get(m);y?y.includes(h)||a({message:`Output key "${h}" is not defined in workflow "${m}". Available outputs: [ ${y.join(", ")} ].`,location:c.child(p)}):a({message:`Workflow "${m}" 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,f;for(;(f=u.exec(s))!==null;){let[d,m,h]=f,y=l.get(m);y?y.includes(h)||a({message:`Output key "${h}" is not defined in step "${m}". Available outputs: [ ${y.join(", ")} ].`,location:c.child(p)}):a({message:`Step "${m}" 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($(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 S$=()=>({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 w$=()=>{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 _$=()=>{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 P$=()=>({SourceDescriptions:{enter(e,{report:t,location:r}){e?.length||t({message:"The `sourceDescriptions` list must have at least one entry.",location:r})}}});var eQ=["x-operation","operationId","operationPath","channelPath","workflowId"],E$=()=>({Step:{enter(e,{report:t,location:r}){let n=eQ.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 $$=()=>({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 A$=()=>({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 T$=()=>({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 R$=()=>{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 O$=()=>{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 k$={assertions:Rt,"criteria-unique":v$,"no-criteria-xpath":f$,"no-duplicated-enum-values":Jr,"no-unsafe-markdown":tn,"no-enum-type-mismatch":Xr,"no-mixed-number-range-constraints":Gn,"no-required-schema-properties-undefined":Zr,"no-schema-type-mismatch":en,"no-unresolved-refs":pt,"no-x-security-both-scheme-and-scheme-name":m$,"no-x-security-scheme-name-without-openapi":h$,"outputs-defined":x$,"parameters-unique":S$,"requestBody-replacements-unique":w$,"sourceDescription-name-unique":_$,"sourceDescription-type":e$,"sourceDescriptions-not-empty":P$,"spec-step-mutually-exclusive-fields":E$,"step-onFailure-unique":$$,"step-onSuccess-unique":A$,"stepId-unique":T$,struct:lt,"workflow-dependsOn":R$,"workflowId-unique":O$,"x-security-scheme-name-reference":y$,"x-security-scheme-required-values":b$},I$={};var dr=()=>({Info(e,{report:t,location:r}){e.contact||t({message:zo("Info","contact"),location:r.child("contact").key(),reference:"https://redocly.com/docs/cli/rules/oas/info-contact"})}});var C$=/^1\.0\.\d+(-.+)?$/;function Xa(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 wn(e){if(!$(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"&&C$.test(e.overlay))return"overlay1";throw new Error("Unsupported specification")}var Wn=()=>{let e;return{Root:{enter(t){e=wn(t)},License:{leave(t,r){e==="oas3_1"||e==="oas3_2"?d$({fieldNames:["url","identifier"],value:t,ctx:r,reference:"https://redocly.com/docs/cli/rules/oas/info-license-strict"}):ur({fieldName:"url",value:t,ctx:r,reference:"https://redocly.com/docs/cli/rules/oas/info-license-strict"})}}}}};var Yn=({ignoreCase:e=!1})=>{let t=new Set;return{Tag:{leave(r,n){let o=Ja(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){ur({fieldName:"operationId",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-operationId"})}}}});function tQ(e,t,r){if("flows"in e&&e.flows){let{node:n,location:o}=M(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=M(a)?t(a,i).node:a;return Object.keys(c?.scopes||{})});return[...new Set(s)]}return Object.keys(e.scopes||{})}var as=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:Vo(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"?tQ(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 Jn=()=>({ref:{leave(e,{report:t,location:r,type:n}){if(n.name!=="PathItem")for(let o of Object.keys(e))o!=="$ref"&&t({message:`Property \`${o}\` is not expected here because it is defined alongside \`$ref\`.`,location:r.child(o).key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-ref-siblings"})}}});var Xn=()=>({Tag(e,t){ur({fieldName:"description",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/tag-description"})}});var Zn=({ignoreCase:e=!1})=>({Root(t,{report:r,location:n}){if(t.tags)for(let o=0;o<t.tags.length-1;o++)Ja(t.tags[o],e)>Ja(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 q$=()=>({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 N$=()=>({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 M$="https://redocly.com/docs/cli/rules/async/security-defined",j$=()=>{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:M$});let a=[...t.keys()];for(let{location:c,channelServers:p}of r){let l=p??a;l.length>0&&l.every(f=>t.get(f))||s({message:"Every operation should have security defined on it.",location:c.key(),reference:M$})}}},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(),ns(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}){xl(i,a)||r.push({location:s,channelServers:n})}}}};var D$={struct:lt,"no-unresolved-refs":pt,assertions:Rt,"info-contact":dr,"info-license-strict":Wn,"operation-operationId":Qn,"security-defined":j$,"channels-kebab-case":q$,"no-channel-trailing-slash":N$,"tag-description":Xn,"tags-alphabetical":Zn,"no-duplicated-enum-values":Jr,"no-unsafe-markdown":tn,"no-duplicated-tag-names":Yn,"no-required-schema-properties-undefined":Zr,"no-enum-type-mismatch":Xr,"no-mixed-number-range-constraints":Gn,"no-schema-type-mismatch":en,"security-scopes-defined":as,"spec-ref-siblings":Jn},L$={};var U$=()=>({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 F$=()=>({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 z$="#/components/securitySchemes/",rQ="#/components/",gg="https://redocly.com/docs/cli/rules/async/security-defined";function nQ(e){let t=e.indexOf("#");return t===-1?e:e.slice(t)}function oQ(e){if(!e.startsWith(z$))return!1;let t=e.slice(z$.length);return t!==""&&!t.includes("/")}var V$=()=>{let e=[],t,r,n,o,i,s=(a,c,p)=>{let l=a.channel,u=M(l)?c(l,p):void 0,d=(M(l)?u?.node:l)?.servers,m,h;return d&&d.length>0?(m=d,h=u?.location?.source.absoluteRef??p):(m=t?Object.values(t):[],h=r),m.length===0?!1:m.every(y=>{let g=M(y)?c(y,h).node:y;return ns(g)})};return{Root:{enter(a,{location:c,resolve:p}){let l=a?.servers;if(M(l)){let f=p(l);t=f.node??void 0,r=f.location?.source.absoluteRef}else t=l,r=void 0;let u=a?.operations;if(M(u)){let f=p(u);n=f.node??void 0,o=f.location?.source.absoluteRef,i=f.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(rQ))&&!oQ(l.refPointer)){c({message:"Security scheme `$ref` must point to `#/components/securitySchemes`.",location:l.location.key(),reference:gg});continue}l.resolved||c({message:`There is no \`${l.name}\` security scheme defined.`,location:l.location.key(),reference:gg})}if(n&&i){let l=i;for(let[u,f]of Object.entries(n)){let d,m;if(M(f)){let h=p(f,o);d=h.node,m=h.location?.source.absoluteRef}else d=f,m=o;d&&(xl(d,p,m)||s(d,p,m)||c({message:"Every operation should have security defined on it.",location:l.child([u]).key(),reference:gg}))}}}},SecuritySchemeList:{enter(a,{location:c,resolve:p}){if(a)for(let l=0;l<a.length;l++){let u=a[l];if(!M(u))continue;let f=c.child([l]),d=p(u),m=nQ(u.$ref),h=m.split("/").pop()??u.$ref;e.push({location:f,name:h,refPointer:m,resolved:d.node!=null,local:u.$ref.startsWith("#")})}}}}};function iQ(e,t,r){if(!e.flows)return[];let{node:n,location:o}=M(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=M(a)?t(a,i).node:a;return Object.keys(c?.availableScopes||{})});return[...new Set(s)]}var B$=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=M(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"?iQ(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:Vo(p,s),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"})}}}}}};var H$={struct:lt,"no-unresolved-refs":pt,assertions:Rt,"info-contact":dr,"info-license-strict":Wn,"operation-operationId":Qn,"security-defined":V$,"channels-kebab-case":U$,"no-channel-trailing-slash":F$,"tag-description":Xn,"tags-alphabetical":Zn,"no-duplicated-enum-values":Jr,"no-unsafe-markdown":tn,"no-duplicated-tag-names":Yn,"no-required-schema-properties-undefined":Zr,"no-enum-type-mismatch":Xr,"no-mixed-number-range-constraints":Gn,"no-schema-type-mismatch":en,"security-scopes-defined":B$,"spec-ref-siblings":Jn},K$={};function W$(e){return js(Qr).filter(t=>e.assertions[t]!==void 0).map(t=>({name:t,conditions:e.assertions[t],runsOnKeys:il.has(t),runsOnValues:sl.has(t)}))}var Y$=e=>{let t=Object.values(e).filter($),r=[];for(let n of t){if(n.severity==="off")continue;let o=n.subject?.type;if(!o)continue;if(!$(n.assertions))throw new Error(`${n.assertionId}: 'assertions' (Object) is required`);let i=W$(n),s=sQ(n);r.push({[o]:(a,c)=>{aQ(a,c,s)&&cQ(a,c,n,i)}})}return r};function sQ(e){return Array.isArray(e.where)?e.where.map((t,r)=>{if(!Me(t.subject?.type))throw new Error(`${e.assertionId} -> where -> [${r}]: 'type' (String) is required`);if(!$(t.assertions))throw new Error(`${e.assertionId} -> where -> [${r}]: 'assertions' (Object) is required`);return{kind:t.subject.type,definition:t,assertsToApply:W$(t)}}):[]}function aQ(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}=Q$(e,t.definition.subject.property),o=new ft(r.source,"#/");return t.assertsToApply.every(i=>Qr[i.name](n,i.conditions,{baseLocation:o,rawValue:n}).length===0)}function cQ(e,t,r,n){let o=J$(r.subject.property),{value:i,locNode:s}=Q$(e,r.subject.property),a=new ft(t.source,"#/"),c=n.flatMap(l=>Qr[l.name](i,l.conditions,{baseLocation:a,rawValue:i}));if(!c.length)return;let p=`${W.blue(r.assertionId)} failed because the ${W.blue(r.subject.type)} ${W.blue(o??"")} didn't meet the assertions: {{problems}}`.replace(/ +/g," ");t.report({message:mg(r.message??p,{problems:dg(c),assertionName:r.assertionId,nodeType:r.subject.type,property:o??"",key:"",pointer:"",file:fg(t.source.absoluteRef)}),node:s,suggest:r.suggest,ruleId:r.assertionId,severity:r.severity})}function bg(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 Q$(e,t){let r=J$(t);if(r===void 0)return bg(e);let n=e[r];if(Array.isArray(n))return{value:n.map(i=>bg(i).value),locNode:e};let o=bg(n);return{value:o.value,locNode:pQ(o.locNode)?o.locNode:e}}function pQ(e){return $(e)&&"kind"in e}function J$(e){return Array.isArray(e)?e[0]:e}var lQ=["Query","Mutation","Subscription"];function uQ(e){let t=e;for(;t.kind==="ListType"||t.kind==="NonNullType";)t=t.type;return t.name.value}var X$=()=>{let e=new Map,t=new Set,r=new Set,n=!1,o=l=>t.add(uQ(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 f of u.arguments??[])o(f.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 f of lQ)e.has(f)&&r.add(f);if(r.size!==0)for(let[f,d]of e)t.has(f)||r.has(f)||u.report({message:`Type \`${f}\` is declared but never used.`,node:d})}}}};var cs=qr(cO(),1),Z$=()=>({Document:{enter:(e,t)=>{let r;try{r=(0,cs.buildASTSchema)(e,{assumeValidSDL:!1})}catch(n){dQ(n,t);return}for(let n of(0,cs.validateSchema)(r))eA(n,t)}}});function dQ(e,t){if(e instanceof cs.GraphQLError)eA(e,t);else if(e instanceof Error)t.report({message:e.message});else throw e}function eA(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 tA=()=>{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 rA={struct:Z$,assertions:Y$,"no-unused-types":X$,"type-description":tA};var ps=()=>({Info(e,{report:t}){e.license||t({message:zo("Info","license"),location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/info-license"})}});var wl=()=>({Paths(e,{report:t,location:r}){let n=[];for(let o of Object.keys(e)){let i=n.find(s=>fQ(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 fQ(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 _l(e){return e.startsWith("{")&&e.endsWith("}")}function nA(e){let t=e.split(/(?:[-._])|([A-Z][a-z]+)/).filter(We).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 mQ=["get","head","post","put","patch","delete","options","trace"],Pl=({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||_l(c))continue;let p=l=>e?nA(c).has(l):c.toLocaleLowerCase().includes(l);for(let l of mQ)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 El=()=>({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 $l=e=>{let t=new Yr;return{Parameter:{leave(r,n){if(rt(r.example)&&Kn({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"}),$(r.examples))for(let[o,i]of Object.entries(r.examples)){let s=Sl(i);s&&Kn({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 Al=e=>{let t=new Yr;return{Schema:{leave(r,n){let o=r.examples;if(Array.isArray(o))for(let i of o)Kn({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(rt(r.example)){if(r.nullable===!0&&r.example===null&&r.type!==void 0)return;Kn({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 Tl=()=>({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 Rl=({validateWebhooks:e,disallowDefault:t=!1})=>({Paths:{Responses(r,{report:n}){let o=Object.keys(r||{});ss({responseCodes:o,codeRange:"2XX",report:n,reference:"https://redocly.com/docs/cli/rules/oas/operation-2xx-response",disallowDefault:t})}},WebhooksMap:{Responses(r,{report:n}){if(!e)return;let o=Object.keys(r||{});ss({responseCodes:o,codeRange:"2XX",report:n,reference:"https://redocly.com/docs/cli/rules/oas/operation-2xx-response",disallowDefault:t})}}});var Ol=({validateWebhooks:e})=>({Paths:{Responses(t,{report:r}){let n=Object.keys(t||{});ss({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||{});ss({responseCodes:n,codeRange:"4XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-4xx-response"})}}});var kl=()=>({Operation(e,t){ur({fieldName:"description",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-description"})}});var Il=()=>{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 hQ=/^[A-Za-z0-9-._~:/?#\[\]@!\$&'()*+,;=]*$/,Cl=()=>({Operation(e,{report:t,location:r}){e.operationId&&!hQ.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 ql=()=>{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.
|
|
112
|
-
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 Nl=()=>({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 Ml=()=>({Operation(e,t){ur({fieldName:"summary",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-summary"})}});var jl=()=>{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 Dl=()=>({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 Ll=()=>({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 yQ=["get","head","post","put","patch","delete","options","query","trace"],Ul=e=>{let t=e&&e.order||yQ;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 Fl=()=>({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 gQ=/\{([a-zA-Z0-9_.-]+)\}+/g,bQ=2,ls=()=>{let e={current:null};return{PathItem:{enter(r,{key:n}){oA(e,n)},leave(){vQ(e)},Parameter(r,{report:n,location:o,rawLocation:i}){iA({parameter:r,pathContext:e,report:n,location:o,rawLocation:i})},Operation:sA(e,new Set)}}},oA=(e,t)=>{e.current={path:t,templateParams:xQ(t),definedParams:new Set}},vQ=e=>{e.current=null},iA=({parameter:e,pathContext:t,report:r,location:n,rawLocation:o})=>{e.in==="path"&&e.name&&t.current&&(t.current.definedParams.add(e.name),aA({paramName:e.name,templateParams:t.current.templateParams,path:t.current.path,report:r,location:n,rawLocation:o}))},sA=(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>=bQ)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,oA(e,a)},leave(){e.current=i},Parameter(s,{report:a,location:c,rawLocation:p}){iA({parameter:s,pathContext:e,report:a,location:c,rawLocation:p})},get Operation(){return sA(e,t,r+1)}}};return{enter(){t=new Set},leave(i,{report:s,location:a}){!e.current||!t||wQ({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}){SQ(i,t),i.in==="path"&&i.name&&e.current&&(t.add(i.name),aA({paramName:i.name,templateParams:e.current.templateParams,path:e.current.path,report:s,location:a,rawLocation:c}))},Callback:{get PathItem(){return o()}}}},xQ=e=>new Set(Array.from(e.matchAll(gQ)).map(t=>t[1])),SQ=(e,t)=>{$(e)&&"in"in e&&"name"in e&&e.in==="path"&&e.name&&t.add(e.name)},aA=({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"})}},wQ=({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 cA=qr(vu(),1);var zl=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)||!_l(p)&&cA.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 Vl=()=>({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 Bl=()=>{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 _n(e){return`${e}`.replace(/^(\d)\d\d$/,(t,r)=>`${r}XX`)}var Hl=e=>{let t=e.names||{};return{Operation:{Response:{enter:(r,{report:n,location:o,key:i})=>{let s=t[i]||t[_n(i)]||t[_n(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 pA=["string","integer","number","boolean","null"],Kl=()=>({SchemaProperties(e,{report:t,location:r,specVersion:n,resolve:o}){for(let i of Object.keys(e)){let s=o(Ue(e,i)).node;!s||!_Q(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 _Q(e){return!e.type||e.allOf||e.anyOf||e.oneOf||e.format==="binary"?!1:Array.isArray(e.type)?e.type.every(t=>pA.includes(t)):pA.includes(e.type)}var Gl=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 Wl=()=>{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)&&M(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 lA=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 us({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 eo({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 uA=({allowedValues:e})=>({Root(t,r){us({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})},Operation:{leave(t,r){us({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}});var dA=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[_n(r)]||t[_n(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 fA=({allowedValues:e})=>({Root(t,r){us({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})},Operation:{leave(t,r){us({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}});var mA={struct:lt,"no-invalid-schema-examples":Al,"no-invalid-parameter-examples":$l,"info-contact":dr,"info-license":ps,"info-license-strict":Wn,"tag-description":Xn,"tags-alphabetical":Zn,"paths-kebab-case":Vl,"no-enum-type-mismatch":Xr,"boolean-parameter-prefixes":lA,"no-path-trailing-slash":Tl,"operation-2xx-response":Rl,"operation-4xx-response":Ol,assertions:Rt,"operation-operationId-unique":Il,"operation-parameters-unique":ql,"path-parameters-defined":ls,"operation-tag-defined":jl,"path-declaration-must-exist":Ll,"operation-operationId-url-safe":Cl,"operation-operationId":Qn,"operation-summary":Ml,"operation-description":kl,"path-not-include-query":Fl,"path-params-defined":ls,"parameter-description":Dl,"operation-singular-tag":Nl,"security-defined":Gl,"security-scopes-defined":as,"no-unresolved-refs":pt,"no-identical-paths":El,"no-ambiguous-paths":wl,"path-http-verbs-order":Ul,"no-http-verbs-in-paths":Pl,"request-mime-type":uA,"response-mime-type":fA,"path-segment-plural":zl,"response-contains-header":Hl,"response-contains-property":dA,"scalar-property-missing-example":Kl,"required-string-property-missing-min-length":Bl,"spec-strict-refs":Wl,"spec-ref-siblings":Jn,"no-required-schema-properties-undefined":Zr,"no-schema-type-mismatch":en,"no-duplicated-enum-values":Jr,"no-unsafe-markdown":tn,"no-duplicated-tag-names":Yn},hA={};var yA=e=>({Parameter:{leave(t,r){if(!t.schema)return;let n=M(t.schema)?r.resolve(t.schema).node:t.schema;n&&PQ(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 PQ(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 gA=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 bA(e){return e.trim().split(/\s+/).map(t=>t.replace(/^[a-z]/,r=>r.toUpperCase())).join("")}function Yl(e){let t=$(e)&&Me(e.title)?e.title.trim():"",r=bA(t).replace(new RegExp(`[^${Lc}]`,"g"),"-");return{title:t,name:r}}function Ho(e){return e.chain?.[0]??{node:e.node,location:e.location}}var ds="Schema",vg="Parameter",xg="Response",Sg="RequestBody",EQ={[ds]:"schemas",[vg]:"parameters",[xg]:"responses",[Sg]:"requestBodies"},vA=e=>{let t=new Map,r=new Map,n=e.strategy==="title",o,i=[];e.schemas!=="off"&&i.push(ds),e.parameters!=="off"&&i.push(vg),e.responses!=="off"&&i.push(xg),e.requestBodies!=="off"&&i.push(Sg);let s={ref:{leave(u,{type:f,resolve:d,location:m}){let h=f.name;if(i.includes(h)){let y=d(u);if(!y.location)return;let g=Ho(y);if(l(h,g.location,m)){let{title:b,name:v}=Yl(g.node);if(b){c(h,v,g.location,g.location.child("title"));return}r.set(g.location.absolutePointer.toString(),g.location),p(h,g.location);return}p(h,y.location)}}},Root:{enter(u,{location:f}){o=f.source.absoluteRef},leave(u,f){t.forEach((d,m,h)=>{if(d.size>1){let y=TQ(m),g=$Q(y.typeName),b=g?e[g]:null;for(let[v,w]of d){let S=Array.from(d.keys()).filter(R=>R!==v).map(R=>`- ${R}`).join(`
|
|
109
|
+
${s.message}`,location:n.child("operationId").key()})}}}});var GY="x-internal",yl=({internalFlagProperty:e=GY})=>{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(M(n[p])&&o.resolve(n[p]).node?.[e]){if($(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($(n))for(let p of Object.keys(n)){if(M(n[p])){let l=o.resolve(n[p]);$(l.node)&&l.node?.[e]&&(delete n[p],c=!0)}$(n[p])&&n[p]?.[e]&&(delete n[p],c=!0)}c&&(Gt(n)||al(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 gl=({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=rs(xn(o,n?.configPath))}catch(i){r({message:`Failed to read markdown override file for tag "${t.name}".
|
|
110
|
+
${i.message}`})}}}});var WY=["definitions","parameters","responses","securityDefinitions"],bl=()=>{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]=En(o).pointer;if(!(!i||!s)&&WY.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(f=>f!==a&&!i.has(f))&&l&&(i.add(a),delete o[l][p],e.delete(a),Gt(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 KE={"operation-description-override":hl,"tag-description-override":gl,"info-description-override":fl,"info-override":ml,"remove-x-internal":yl,"filter-in":pl,"filter-out":ll,"remove-unused-components":bl};var WE=({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=GE(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:lg(xn(c,r.config?.configPath))}}),t.responses[i]=s)}if(o.request&&t.requestBody){let i=GE(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:lg(xn(a,r.config?.configPath))}}),t.requestBody=i}}}}});function GE(e,t){if(!M(e))return e;let r=t(e);return r.error?void 0:JSON.parse(JSON.stringify(r.node))}function YE(e,t){return t in e}function QE(e){if(!e.startsWith("#/components/"))return;let[t,r,n]=En(e).pointer;if(!(!r||!n))return`${r}/${n}`}var vl=()=>{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(f=>f!==s&&!o.has(f))||l)&&p&&n.components&&YE(n.components,p)){o.add(s);let f=n.components[p];delete f[c],e.delete(s),Gt(f)&&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=QE(n.$ref);if(!a)return;let c=QE(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),Gt(n.components)&&delete n.components}},NamedSchemas:{Schema(n,o){let i=n.allOf?.some(s=>M(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 JE={"operation-description-override":hl,"tag-description-override":gl,"info-description-override":fl,"info-override":ml,"remove-x-internal":yl,"filter-in":pl,"filter-out":ll,"media-type-examples-override":WE,"remove-unused-components":vl};var XE={};var ZE={};var e$=()=>({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 ug={problems:"{{problems}}",assertionName:"{{assertionName}}",nodeType:"{{nodeType}}",key:"{{key}}",property:"{{property}}",file:"{{file}}",pointer:"{{pointer}}"};function t$(e){let{filterInParentKeys:t,filterOutParentKeys:r,matchParentKeys:n}=e,o=n&&mo(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(We)}function n$(e){let t=js(Qr).filter(o=>e.assertions[o]!==void 0).map(o=>({name:o,conditions:e.assertions[o],runsOnKeys:il.has(o),runsOnValues:sl.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 o$({subject:e}){return(Array.isArray(e.property)?e.property:[e?.property]).filter(Boolean)}function i$(e,t,r){let n=o$(e),o=[];for(let i of t)if(n.length)for(let s of n)o.push(r$({assert:i,ctx:r,assertionProperty:s}));else o.push(r$({assert:i,ctx:r}));return o.flat()}function s$(e,t){let r=t$(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(!Me(p.subject?.type))throw new Error(`${e.assertionId} -> where -> [${c}]: 'type' (String) is required`);if(!$(p.assertions))throw new Error(`${e.assertionId} -> where -> [${c}]: 'assertions' (Object) is required`);let l=t$(p.subject),u=n$(p),f=(m,h,y)=>!l.every(g=>g(h))||!!i$(p,u,{...y,node:m}).length,d={...(l.length||u.length)&&{skip:f}};p.subject.type===e.subject.type&&c===a.length-1?o[e.subject.type]={enter:t,...d.skip&&{skip:d.skip}||n&&{skip:(m,h,y)=>!!(d.skip?.(m,h,y)||n?.(m,h))}}:i=i[p.subject?.type]=d}return i[e.subject.type]=o[e.subject.type],s}function a$(e,t){return(r,n)=>{let o=o$(t),i=`${W.blue(e)} failed because the ${W.blue(t.subject.type)} ${W.blue(o.join(", "))} didn't meet the assertions: ${ug.problems}`.replace(/ +/g," "),s=i$(t,n$(t),{...n,node:r});if(s.length)for(let a of YY(s)){let c=t.message||i,l={problems:dg(a),assertionName:e,nodeType:t.subject.type,property:o.join(", "),key:String(n.key),pointer:n.location.pointer,file:fg(n.location.source.absoluteRef)};n.report({message:mg(c,l),location:QY(a)||n.location,forceSeverity:t.severity||"error",suggest:t.suggest||[],...t.reference&&{reference:t.reference},ruleId:e})}}}function YY(e){let t={};for(let r of e){if(!r.location)continue;let n=r.location.absolutePointer;t[n]=t[n]||[],t[n].push(r)}return Object.values(t)}function QY(e){return e.length?e[0].location:void 0}function dg(e){return e.length===1?e[0].message??"":e.map(t=>`
|
|
111
|
+
- ${t.message??""}`).join("")}function fg(e){return oe(e)?e.split("/").at(-1)||e:e.split(/[/\\]/).at(-1)||e}function mg(e,t){let r=e;for(let n of Object.keys(ug)){let o=ug[n],i=t[n];o&&(r=r.split(o).join(i))}return r}function r$({assert:e,ctx:t,assertionProperty:r}){let n=e.name==="ref"?t.rawLocation:t.location;if(r){let o=M(t.node[r])?t.resolve(t.node[r])?.node:t.node[r],i=t.rawNode[r],s=n.child(r);return Qr[e.name](o,e.conditions,{...t,baseLocation:s,rawValue:i})}else{let o=Array.isArray(t.node)?t.node:Object.keys(t.node);return Qr[e.name](o,e.conditions,{...t,rawValue:t.rawNode,baseLocation:n})}}var Rt=e=>{let t=[],r=Object.values(e).filter(n=>$(n));for(let[n,o]of r.entries()){if(!Me(o.subject.type))throw new Error(`${o.assertionId}: 'type' (String) is required`);if(!$(o.assertions))throw new Error(`${o.assertionId}: 'assertions' (Object) is required`);let i=a$(o.assertionId,o),s=s$(o,i);t.push(s)}return t};function JY(e){return $(e)||Array.isArray(e)}var Jr=()=>({Schema(e,{report:t,location:r}){if(!Array.isArray(e.enum))return;let n=new Set,o=[];for(let[i,s]of e.enum.entries()){let a=JY(s);(a?o.some(p=>Kt(p,s)):n.has(s))&&t({message:`Duplicated enum value found: '${a?JSON.stringify(s):s}'.`,location:r.child(["enum",i]),reference:"https://redocly.com/docs/cli/rules/common/no-duplicated-enum-values"}),a?o.push(s):n.add(s)}}});var l$=qr(p$(),1);var Fo=(e,t,r)=>{if(M(e)){let n=t.resolve(e,r?.source.absoluteRef);return n?{schema:n.node,location:n.location,chain:n.chain}:{schema:void 0,location:r}}return{schema:e,location:r}},hg=(e,t,r,n,o)=>!!(e.properties&&Ue(e.properties,t)!==void 0||e.allOf?.some(i=>Sn(i,t,r,n,o))||fo(e.anyOf)&&e.anyOf.every(i=>Sn(i,t,r,new Set(n),o))||fo(e.oneOf)&&e.oneOf.every(i=>Sn(i,t,r,new Set(n),o))),Sn=(e,t,r,n=new Set,o)=>{if(M(e)&&hg(e,t,r,n,o))return!0;let{schema:i,location:s,chain:a}=Fo(e,r,o);if(!i)return!1;if(!n.has(i)&&(n.add(i),hg(i,t,r,n,s)))return!0;for(let c of a??[])if(!(!$(c.node)||n.has(c.node))&&(n.add(c.node),hg(c.node,t,r,n,c.location)))return!0;return!1};function os(e){return Array.isArray(e)?"array":e===null?"null":Number.isInteger(e)?"integer":typeof e}function ns(e){let t=e?.security;return Array.isArray(t)&&t.length>0}function xl(e,t,r){if(ns(e))return!0;if(!Array.isArray(e?.traits))return!1;for(let n of e.traits){let o=M(n)?t(n,r).node:n;if(ns(o))return!0}return!1}function is(e,t,r){if(r&&e===null)return!0;switch(t){case"array":return Array.isArray(e);case"object":return $(e);case"null":return e===null;case"integer":return Number.isInteger(e);default:return typeof e===t}}function zo(e,t){return`${e} object should contain \`${t}\` field.`}function XY(e,t){return`${e} object should contain one of the fields: ${t.map(r=>`\`${r}\``).join(", ")}.`}function u$(e,t){return`${e} object \`${t}\` must be non-empty string.`}function ur({fieldName:e,value:t,ctx:r,reference:n}){$(t)&&(t[e]===void 0?r.report({message:zo(r.type.name,e),location:r.location.child([e]).key(),reference:n}):t[e]||r.report({message:u$(r.type.name,e),location:r.location.child([e]).key(),reference:n}))}function d$({fieldNames:e,value:t,ctx:r,reference:n}){if($(t)){e.some(o=>t.hasOwnProperty(o))||r.report({message:XY(r.type.name,e),location:r.location.key(),reference:n});for(let o of e)t.hasOwnProperty(o)&&!t[o]&&r.report({message:u$(r.type.name,o),location:r.location.child([o]).key(),reference:n})}}function Vo(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,l$.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 Sl(e){if($(e)){if(rt(e.dataValue))return{value:e.dataValue,field:"dataValue"};if(rt(e.value))return{value:e.value,field:"value"}}}function Kn({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:f}=i;try{let{valid:d,errors:m}=s.validate(e,t,{schemaLoc:l.child("schema"),instancePath:o.pointer,resolve:p,allowAdditionalProperties:a,ajvContext:c,specVersion:f});if(!d)for(let h of m)u({message:`Example value must conform to the schema: ${h.message}.`,location:{...new ft(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 ZY=10;function yg(e,t,r,n,{report:o,location:i},s){if(e&&!e.includes(t)){let a=e.length>ZY?`\`${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:Vo(t,e)})}}function ss({responseCodes:e,codeRange:t,report:r,reference:n,disallowDefault:o=!1}){let i=new RegExp(`^${t[0]}[0-9Xx]{2}$`);e.some(a=>!o&&t==="2XX"&&a==="default"||i.test(a))||r({message:`Operation must have at least one \`${t}\` response.`,location:{reportOnKey:!0},reference:n})}function Ja(e,t){return t?e.name.toLowerCase():e.name}var Xr=()=>({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=>!is(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 "${os(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)is(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 Gn=()=>({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 Zr=()=>{let e=[],t=new Set,r=(n,o,i)=>{if(fo(n.required))for(let[s,a]of n.required.entries())Sn(n,a,i,new Set,o)||i.report({message:`Required property '${a}' is not defined.`,location:o.child(["required",s]),reference:"https://redocly.com/docs/cli/rules/common/no-required-schema-properties-undefined"})};return{ref:{leave(n,o,i){if(o.type.name!=="Schema")return;let s=[{node:n,location:o.location},...i.chain??[]];for(let{node:a,location:c}of s)!$(a)||t.has(a)||(t.add(a),r(a,c,o))}},Schema:{leave(n){e.pop()},enter(n,o){if(e.push(n),!fo(n.required))return;let i=(c,p)=>{let l=u=>Fo(u,o).schema===p;return!!(c.allOf?.some(l)||c.anyOf?.some(l)||c.oneOf?.some(l))},s=(c,p)=>{if(c<0)return;let l=e[c];return i(l,p)?s(c-1,l)??l:void 0},a=s(e.length-2,n);for(let[c,p]of n.required.entries())!Sn(n,p,o)&&!Sn(a,p,o)&&o.report({message:`Required property '${p}' is not defined.`,location:o.location.child(["required",c]),reference:"https://redocly.com/docs/cli/rules/common/no-required-schema-properties-undefined"})}}}};var en=()=>({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 pt=()=>({ref:{leave(e,{report:t,location:r},n){n.node===void 0&&Bo(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;Bo(i,t,n.child(o))}}});function Bo(e,t,r){let n=e.error;n instanceof jr&&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 tn=()=>({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 lt=()=>({any(e,{report:t,type:r,location:n,rawLocation:o,key:i,resolve:s,ignoreNextVisitorsOnNode:a}){let c=os(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!==yr&&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&&$(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 f=r.requiredOneOf||null;if(f){let d=!1;for(let m of f||[])e.hasOwnProperty(m)&&(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 m=n.child([d]),h=e[d],y=Ue(r.properties,d);if(y===void 0&&(y=r.additionalProperties),typeof y=="function"&&(y=y(h,d)),Xt(y))continue;let g=y,b=os(h);if(g===void 0){if(d.startsWith("x-"))continue;t({message:`Property \`${d}\` is not expected here.`,suggest:Vo(d,Object.keys(r.properties)),from:p,location:m.key()});continue}if(g!==null){if(g.resolvable!==!1&&M(h)&&(h=s(h).node),g.items&&g.items?.enum&&Array.isArray(h))for(let v=0;v<h.length;v++)yg(g.items?.enum,h[v],d,p,{report:t,location:n.child([d,v])},g.items?.documentationLink);if(g.enum)yg(g.enum,h,d,p,{report:t,location:n.child([d])},g.documentationLink);else if(g.type&&!is(h,g.type,!1))t({message:`Expected type \`${g.type}\` but got \`${b}\`.`,from:p,location:m}),a();else if(b==="array"&&g.items?.type){let v=g.items?.type;for(let w=0;w<h.length;w++){let S=h[w];is(S,v,!1)||t({message:`Expected type \`${v}\` but got \`${os(S)}\`.`,from:p,location:m.child([w])})}}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 f$=()=>({CriterionObject:{enter(e,{report:t,location:r}){e.type&&(e.type==="xpath"||$(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 m$=()=>{function e(t,{report:r,location:n}){if(Array.isArray(t))for(let o of t){let i=Ue(o,"scheme"),s=Ue(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 h$=()=>({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 y$=()=>{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 eQ={apiKey:["apiKey"],basic:["username","password"],digest:["username","password"],bearer:["token"],oauth2:["accessToken"],openIdConnect:["accessToken"],mutualTLS:[]};function g$(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,a=o?.type==="http"?s?.toLowerCase():s;if(s==="mutualTLS"){Y.warn("Please use CLI option to provide mutualTLS certificates for mutualTls authentication security schema.");continue}let c=eQ[a];if(c)for(let p of c)(!i||!(p in i))&&t({message:`The \`${p}\` 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 b$=()=>({Step:{enter(e,t){g$(e?.["x-security"],t)}},Workflow:{enter(e,t){g$(e?.["x-security"],t)}}});var v$=()=>({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 x$=()=>{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,f;for(;(f=u.exec(s))!==null;){let[d,m,h]=f,y=l.get(m);y?y.includes(h)||a({message:`Output key "${h}" is not defined in workflow "${m}". Available outputs: [ ${y.join(", ")} ].`,location:c.child(p)}):a({message:`Workflow "${m}" 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,f;for(;(f=u.exec(s))!==null;){let[d,m,h]=f,y=l.get(m);y?y.includes(h)||a({message:`Output key "${h}" is not defined in step "${m}". Available outputs: [ ${y.join(", ")} ].`,location:c.child(p)}):a({message:`Step "${m}" 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($(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 S$=()=>({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 w$=()=>{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 _$=()=>{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 P$=()=>({SourceDescriptions:{enter(e,{report:t,location:r}){e?.length||t({message:"The `sourceDescriptions` list must have at least one entry.",location:r})}}});var tQ=["x-operation","operationId","operationPath","channelPath","workflowId"],E$=()=>({Step:{enter(e,{report:t,location:r}){let n=tQ.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 $$=()=>({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 A$=()=>({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 T$=()=>({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 R$=()=>{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 O$=()=>{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 k$={assertions:Rt,"criteria-unique":v$,"no-criteria-xpath":f$,"no-duplicated-enum-values":Jr,"no-unsafe-markdown":tn,"no-enum-type-mismatch":Xr,"no-mixed-number-range-constraints":Gn,"no-required-schema-properties-undefined":Zr,"no-schema-type-mismatch":en,"no-unresolved-refs":pt,"no-x-security-both-scheme-and-scheme-name":m$,"no-x-security-scheme-name-without-openapi":h$,"outputs-defined":x$,"parameters-unique":S$,"requestBody-replacements-unique":w$,"sourceDescription-name-unique":_$,"sourceDescription-type":e$,"sourceDescriptions-not-empty":P$,"spec-step-mutually-exclusive-fields":E$,"step-onFailure-unique":$$,"step-onSuccess-unique":A$,"stepId-unique":T$,struct:lt,"workflow-dependsOn":R$,"workflowId-unique":O$,"x-security-scheme-name-reference":y$,"x-security-scheme-required-values":b$},I$={};var dr=()=>({Info(e,{report:t,location:r}){e.contact||t({message:zo("Info","contact"),location:r.child("contact").key(),reference:"https://redocly.com/docs/cli/rules/oas/info-contact"})}});var C$=/^1\.0\.\d+(-.+)?$/;function Xa(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 wn(e){if(!$(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"&&C$.test(e.overlay))return"overlay1";throw new Error("Unsupported specification")}var Wn=()=>{let e;return{Root:{enter(t){e=wn(t)},License:{leave(t,r){e==="oas3_1"||e==="oas3_2"?d$({fieldNames:["url","identifier"],value:t,ctx:r,reference:"https://redocly.com/docs/cli/rules/oas/info-license-strict"}):ur({fieldName:"url",value:t,ctx:r,reference:"https://redocly.com/docs/cli/rules/oas/info-license-strict"})}}}}};var Yn=({ignoreCase:e=!1})=>{let t=new Set;return{Tag:{leave(r,n){let o=Ja(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){ur({fieldName:"operationId",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-operationId"})}}}});function rQ(e,t,r){if("flows"in e&&e.flows){let{node:n,location:o}=M(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=M(a)?t(a,i).node:a;return Object.keys(c?.scopes||{})});return[...new Set(s)]}return Object.keys(e.scopes||{})}var as=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:Vo(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"?rQ(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 Jn=()=>({ref:{leave(e,{report:t,location:r,type:n}){if(n.name!=="PathItem")for(let o of Object.keys(e))o!=="$ref"&&t({message:`Property \`${o}\` is not expected here because it is defined alongside \`$ref\`.`,location:r.child(o).key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-ref-siblings"})}}});var Xn=()=>({Tag(e,t){ur({fieldName:"description",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/tag-description"})}});var Zn=({ignoreCase:e=!1})=>({Root(t,{report:r,location:n}){if(t.tags)for(let o=0;o<t.tags.length-1;o++)Ja(t.tags[o],e)>Ja(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 q$=()=>({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 N$=()=>({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 M$="https://redocly.com/docs/cli/rules/async/security-defined",j$=()=>{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:M$});let a=[...t.keys()];for(let{location:c,channelServers:p}of r){let l=p??a;l.length>0&&l.every(f=>t.get(f))||s({message:"Every operation should have security defined on it.",location:c.key(),reference:M$})}}},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(),ns(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}){xl(i,a)||r.push({location:s,channelServers:n})}}}};var D$={struct:lt,"no-unresolved-refs":pt,assertions:Rt,"info-contact":dr,"info-license-strict":Wn,"operation-operationId":Qn,"security-defined":j$,"channels-kebab-case":q$,"no-channel-trailing-slash":N$,"tag-description":Xn,"tags-alphabetical":Zn,"no-duplicated-enum-values":Jr,"no-unsafe-markdown":tn,"no-duplicated-tag-names":Yn,"no-required-schema-properties-undefined":Zr,"no-enum-type-mismatch":Xr,"no-mixed-number-range-constraints":Gn,"no-schema-type-mismatch":en,"security-scopes-defined":as,"spec-ref-siblings":Jn},L$={};var U$=()=>({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 F$=()=>({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 z$="#/components/securitySchemes/",nQ="#/components/",gg="https://redocly.com/docs/cli/rules/async/security-defined";function oQ(e){let t=e.indexOf("#");return t===-1?e:e.slice(t)}function iQ(e){if(!e.startsWith(z$))return!1;let t=e.slice(z$.length);return t!==""&&!t.includes("/")}var V$=()=>{let e=[],t,r,n,o,i,s=(a,c,p)=>{let l=a.channel,u=M(l)?c(l,p):void 0,d=(M(l)?u?.node:l)?.servers,m,h;return d&&d.length>0?(m=d,h=u?.location?.source.absoluteRef??p):(m=t?Object.values(t):[],h=r),m.length===0?!1:m.every(y=>{let g=M(y)?c(y,h).node:y;return ns(g)})};return{Root:{enter(a,{location:c,resolve:p}){let l=a?.servers;if(M(l)){let f=p(l);t=f.node??void 0,r=f.location?.source.absoluteRef}else t=l,r=void 0;let u=a?.operations;if(M(u)){let f=p(u);n=f.node??void 0,o=f.location?.source.absoluteRef,i=f.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(nQ))&&!iQ(l.refPointer)){c({message:"Security scheme `$ref` must point to `#/components/securitySchemes`.",location:l.location.key(),reference:gg});continue}l.resolved||c({message:`There is no \`${l.name}\` security scheme defined.`,location:l.location.key(),reference:gg})}if(n&&i){let l=i;for(let[u,f]of Object.entries(n)){let d,m;if(M(f)){let h=p(f,o);d=h.node,m=h.location?.source.absoluteRef}else d=f,m=o;d&&(xl(d,p,m)||s(d,p,m)||c({message:"Every operation should have security defined on it.",location:l.child([u]).key(),reference:gg}))}}}},SecuritySchemeList:{enter(a,{location:c,resolve:p}){if(a)for(let l=0;l<a.length;l++){let u=a[l];if(!M(u))continue;let f=c.child([l]),d=p(u),m=oQ(u.$ref),h=m.split("/").pop()??u.$ref;e.push({location:f,name:h,refPointer:m,resolved:d.node!=null,local:u.$ref.startsWith("#")})}}}}};function sQ(e,t,r){if(!e.flows)return[];let{node:n,location:o}=M(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=M(a)?t(a,i).node:a;return Object.keys(c?.availableScopes||{})});return[...new Set(s)]}var B$=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=M(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"?sQ(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:Vo(p,s),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"})}}}}}};var H$={struct:lt,"no-unresolved-refs":pt,assertions:Rt,"info-contact":dr,"info-license-strict":Wn,"operation-operationId":Qn,"security-defined":V$,"channels-kebab-case":U$,"no-channel-trailing-slash":F$,"tag-description":Xn,"tags-alphabetical":Zn,"no-duplicated-enum-values":Jr,"no-unsafe-markdown":tn,"no-duplicated-tag-names":Yn,"no-required-schema-properties-undefined":Zr,"no-enum-type-mismatch":Xr,"no-mixed-number-range-constraints":Gn,"no-schema-type-mismatch":en,"security-scopes-defined":B$,"spec-ref-siblings":Jn},K$={};function W$(e){return js(Qr).filter(t=>e.assertions[t]!==void 0).map(t=>({name:t,conditions:e.assertions[t],runsOnKeys:il.has(t),runsOnValues:sl.has(t)}))}var Y$=e=>{let t=Object.values(e).filter($),r=[];for(let n of t){if(n.severity==="off")continue;let o=n.subject?.type;if(!o)continue;if(!$(n.assertions))throw new Error(`${n.assertionId}: 'assertions' (Object) is required`);let i=W$(n),s=aQ(n);r.push({[o]:(a,c)=>{cQ(a,c,s)&&pQ(a,c,n,i)}})}return r};function aQ(e){return Array.isArray(e.where)?e.where.map((t,r)=>{if(!Me(t.subject?.type))throw new Error(`${e.assertionId} -> where -> [${r}]: 'type' (String) is required`);if(!$(t.assertions))throw new Error(`${e.assertionId} -> where -> [${r}]: 'assertions' (Object) is required`);return{kind:t.subject.type,definition:t,assertsToApply:W$(t)}}):[]}function cQ(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}=Q$(e,t.definition.subject.property),o=new ft(r.source,"#/");return t.assertsToApply.every(i=>Qr[i.name](n,i.conditions,{baseLocation:o,rawValue:n}).length===0)}function pQ(e,t,r,n){let o=J$(r.subject.property),{value:i,locNode:s}=Q$(e,r.subject.property),a=new ft(t.source,"#/"),c=n.flatMap(l=>Qr[l.name](i,l.conditions,{baseLocation:a,rawValue:i}));if(!c.length)return;let p=`${W.blue(r.assertionId)} failed because the ${W.blue(r.subject.type)} ${W.blue(o??"")} didn't meet the assertions: {{problems}}`.replace(/ +/g," ");t.report({message:mg(r.message??p,{problems:dg(c),assertionName:r.assertionId,nodeType:r.subject.type,property:o??"",key:"",pointer:"",file:fg(t.source.absoluteRef)}),node:s,suggest:r.suggest,ruleId:r.assertionId,severity:r.severity})}function bg(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 Q$(e,t){let r=J$(t);if(r===void 0)return bg(e);let n=e[r];if(Array.isArray(n))return{value:n.map(i=>bg(i).value),locNode:e};let o=bg(n);return{value:o.value,locNode:lQ(o.locNode)?o.locNode:e}}function lQ(e){return $(e)&&"kind"in e}function J$(e){return Array.isArray(e)?e[0]:e}var uQ=["Query","Mutation","Subscription"];function dQ(e){let t=e;for(;t.kind==="ListType"||t.kind==="NonNullType";)t=t.type;return t.name.value}var X$=()=>{let e=new Map,t=new Set,r=new Set,n=!1,o=l=>t.add(dQ(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 f of u.arguments??[])o(f.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 f of uQ)e.has(f)&&r.add(f);if(r.size!==0)for(let[f,d]of e)t.has(f)||r.has(f)||u.report({message:`Type \`${f}\` is declared but never used.`,node:d})}}}};var cs=qr(cO(),1),Z$=()=>({Document:{enter:(e,t)=>{let r;try{r=(0,cs.buildASTSchema)(e,{assumeValidSDL:!1})}catch(n){fQ(n,t);return}for(let n of(0,cs.validateSchema)(r))eA(n,t)}}});function fQ(e,t){if(e instanceof cs.GraphQLError)eA(e,t);else if(e instanceof Error)t.report({message:e.message});else throw e}function eA(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 tA=()=>{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 rA={struct:Z$,assertions:Y$,"no-unused-types":X$,"type-description":tA};var ps=()=>({Info(e,{report:t}){e.license||t({message:zo("Info","license"),location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/info-license"})}});var wl=()=>({Paths(e,{report:t,location:r}){let n=[];for(let o of Object.keys(e)){let i=n.find(s=>mQ(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 mQ(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 _l(e){return e.startsWith("{")&&e.endsWith("}")}function nA(e){let t=e.split(/(?:[-._])|([A-Z][a-z]+)/).filter(We).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 hQ=["get","head","post","put","patch","delete","options","trace"],Pl=({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||_l(c))continue;let p=l=>e?nA(c).has(l):c.toLocaleLowerCase().includes(l);for(let l of hQ)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 El=()=>({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 $l=e=>{let t=new Yr;return{Parameter:{leave(r,n){if(rt(r.example)&&Kn({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"}),$(r.examples))for(let[o,i]of Object.entries(r.examples)){let s=Sl(i);s&&Kn({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 Al=e=>{let t=new Yr;return{Schema:{leave(r,n){let o=r.examples;if(Array.isArray(o))for(let i of o)Kn({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(rt(r.example)){if(r.nullable===!0&&r.example===null&&r.type!==void 0)return;Kn({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 Tl=()=>({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 Rl=({validateWebhooks:e,disallowDefault:t=!1})=>({Paths:{Responses(r,{report:n}){let o=Object.keys(r||{});ss({responseCodes:o,codeRange:"2XX",report:n,reference:"https://redocly.com/docs/cli/rules/oas/operation-2xx-response",disallowDefault:t})}},WebhooksMap:{Responses(r,{report:n}){if(!e)return;let o=Object.keys(r||{});ss({responseCodes:o,codeRange:"2XX",report:n,reference:"https://redocly.com/docs/cli/rules/oas/operation-2xx-response",disallowDefault:t})}}});var Ol=({validateWebhooks:e})=>({Paths:{Responses(t,{report:r}){let n=Object.keys(t||{});ss({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||{});ss({responseCodes:n,codeRange:"4XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-4xx-response"})}}});var kl=()=>({Operation(e,t){ur({fieldName:"description",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-description"})}});var Il=()=>{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 yQ=/^[A-Za-z0-9-._~:/?#\[\]@!\$&'()*+,;=]*$/,Cl=()=>({Operation(e,{report:t,location:r}){e.operationId&&!yQ.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 ql=()=>{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.
|
|
112
|
+
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 Nl=()=>({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 Ml=()=>({Operation(e,t){ur({fieldName:"summary",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-summary"})}});var jl=()=>{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 Dl=()=>({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 Ll=()=>({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 gQ=["get","head","post","put","patch","delete","options","query","trace"],Ul=e=>{let t=e&&e.order||gQ;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 Fl=()=>({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 bQ=/\{([a-zA-Z0-9_.-]+)\}+/g,vQ=2,ls=()=>{let e={current:null};return{PathItem:{enter(r,{key:n}){oA(e,n)},leave(){xQ(e)},Parameter(r,{report:n,location:o,rawLocation:i}){iA({parameter:r,pathContext:e,report:n,location:o,rawLocation:i})},Operation:sA(e,new Set)}}},oA=(e,t)=>{e.current={path:t,templateParams:SQ(t),definedParams:new Set}},xQ=e=>{e.current=null},iA=({parameter:e,pathContext:t,report:r,location:n,rawLocation:o})=>{e.in==="path"&&e.name&&t.current&&(t.current.definedParams.add(e.name),aA({paramName:e.name,templateParams:t.current.templateParams,path:t.current.path,report:r,location:n,rawLocation:o}))},sA=(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>=vQ)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,oA(e,a)},leave(){e.current=i},Parameter(s,{report:a,location:c,rawLocation:p}){iA({parameter:s,pathContext:e,report:a,location:c,rawLocation:p})},get Operation(){return sA(e,t,r+1)}}};return{enter(){t=new Set},leave(i,{report:s,location:a}){!e.current||!t||_Q({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}){wQ(i,t),i.in==="path"&&i.name&&e.current&&(t.add(i.name),aA({paramName:i.name,templateParams:e.current.templateParams,path:e.current.path,report:s,location:a,rawLocation:c}))},Callback:{get PathItem(){return o()}}}},SQ=e=>new Set(Array.from(e.matchAll(bQ)).map(t=>t[1])),wQ=(e,t)=>{$(e)&&"in"in e&&"name"in e&&e.in==="path"&&e.name&&t.add(e.name)},aA=({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"})}},_Q=({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 cA=qr(vu(),1);var zl=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)||!_l(p)&&cA.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 Vl=()=>({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 Bl=()=>{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 _n(e){return`${e}`.replace(/^(\d)\d\d$/,(t,r)=>`${r}XX`)}var Hl=e=>{let t=e.names||{};return{Operation:{Response:{enter:(r,{report:n,location:o,key:i})=>{let s=t[i]||t[_n(i)]||t[_n(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 pA=["string","integer","number","boolean","null"],Kl=()=>({SchemaProperties(e,{report:t,location:r,specVersion:n,resolve:o}){for(let i of Object.keys(e)){let s=o(Ue(e,i)).node;!s||!PQ(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 PQ(e){return!e.type||e.allOf||e.anyOf||e.oneOf||e.format==="binary"?!1:Array.isArray(e.type)?e.type.every(t=>pA.includes(t)):pA.includes(e.type)}var Gl=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 Wl=()=>{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)&&M(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 lA=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 us({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 eo({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 uA=({allowedValues:e})=>({Root(t,r){us({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})},Operation:{leave(t,r){us({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}});var dA=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[_n(r)]||t[_n(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 fA=({allowedValues:e})=>({Root(t,r){us({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})},Operation:{leave(t,r){us({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}});var mA={struct:lt,"no-invalid-schema-examples":Al,"no-invalid-parameter-examples":$l,"info-contact":dr,"info-license":ps,"info-license-strict":Wn,"tag-description":Xn,"tags-alphabetical":Zn,"paths-kebab-case":Vl,"no-enum-type-mismatch":Xr,"boolean-parameter-prefixes":lA,"no-path-trailing-slash":Tl,"operation-2xx-response":Rl,"operation-4xx-response":Ol,assertions:Rt,"operation-operationId-unique":Il,"operation-parameters-unique":ql,"path-parameters-defined":ls,"operation-tag-defined":jl,"path-declaration-must-exist":Ll,"operation-operationId-url-safe":Cl,"operation-operationId":Qn,"operation-summary":Ml,"operation-description":kl,"path-not-include-query":Fl,"path-params-defined":ls,"parameter-description":Dl,"operation-singular-tag":Nl,"security-defined":Gl,"security-scopes-defined":as,"no-unresolved-refs":pt,"no-identical-paths":El,"no-ambiguous-paths":wl,"path-http-verbs-order":Ul,"no-http-verbs-in-paths":Pl,"request-mime-type":uA,"response-mime-type":fA,"path-segment-plural":zl,"response-contains-header":Hl,"response-contains-property":dA,"scalar-property-missing-example":Kl,"required-string-property-missing-min-length":Bl,"spec-strict-refs":Wl,"spec-ref-siblings":Jn,"no-required-schema-properties-undefined":Zr,"no-schema-type-mismatch":en,"no-duplicated-enum-values":Jr,"no-unsafe-markdown":tn,"no-duplicated-tag-names":Yn},hA={};var yA=e=>({Parameter:{leave(t,r){if(!t.schema)return;let n=M(t.schema)?r.resolve(t.schema).node:t.schema;n&&EQ(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 EQ(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 gA=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 bA(e){return e.trim().split(/\s+/).map(t=>t.replace(/^[a-z]/,r=>r.toUpperCase())).join("")}function Yl(e){let t=$(e)&&Me(e.title)?e.title.trim():"",r=bA(t).replace(new RegExp(`[^${Lc}]`,"g"),"-");return{title:t,name:r}}function Ho(e){return e.chain?.[0]??{node:e.node,location:e.location}}var ds="Schema",vg="Parameter",xg="Response",Sg="RequestBody",$Q={[ds]:"schemas",[vg]:"parameters",[xg]:"responses",[Sg]:"requestBodies"},vA=e=>{let t=new Map,r=new Map,n=e.strategy==="title",o,i=[];e.schemas!=="off"&&i.push(ds),e.parameters!=="off"&&i.push(vg),e.responses!=="off"&&i.push(xg),e.requestBodies!=="off"&&i.push(Sg);let s={ref:{leave(u,{type:f,resolve:d,location:m}){let h=f.name;if(i.includes(h)){let y=d(u);if(!y.location)return;let g=Ho(y);if(l(h,g.location,m)){let{title:b,name:v}=Yl(g.node);if(b){c(h,v,g.location,g.location.child("title"));return}r.set(g.location.absolutePointer.toString(),g.location),p(h,g.location);return}p(h,y.location)}}},Root:{enter(u,{location:f}){o=f.source.absoluteRef},leave(u,f){t.forEach((d,m,h)=>{if(d.size>1){let y=RQ(m),g=AQ(y.typeName),b=g?e[g]:null;for(let[v,w]of d){let S=Array.from(d.keys()).filter(R=>R!==v).map(R=>`- ${R}`).join(`
|
|
113
113
|
`),P={message:`Component '${g}/${y.componentName}' is not unique. It is also defined at:
|
|
114
|
-
${S}`,location:w,reference:"https://redocly.com/docs/cli/rules/oas/component-name-unique"};b&&(P.forceSeverity=b),f.report(P)}}});for(let d of r.values()){let m={message:"Schema must define a `title` when using `strategy: title`. Bundling fails without it.",location:d,reference:"https://redocly.com/docs/cli/rules/oas/component-name-unique"};e.schemas&&(m.forceSeverity=e.schemas),f.report(m)}}}};return e.schemas!="off"&&(s.NamedSchemas={Schema(u,{location:f,key:d,parentLocations:m}){if(l(ds,f)){c(ds,String(d),m.NamedSchemas.child(d));return}p(ds,f)}}),e.responses!="off"&&(s.NamedResponses={Response(u,{location:f}){p(xg,f)}}),e.parameters!="off"&&(s.NamedParameters={Parameter(u,{location:f}){p(vg,f)}}),e.requestBodies!="off"&&(s.NamedRequestBodies={RequestBody(u,{location:f}){p(Sg,f)}}),s;function a(u){let f=u.split("/").slice(-1)[0];return Os(f)?f.slice(0,f.lastIndexOf(".")):f}function c(u,f,d,m=d){let h=AQ(u,f),y=t.get(h)??new Map,g=d.absolutePointer.toString();y.has(g)||y.set(g,m),t.set(h,y)}function p(u,f){let d=a(f.absolutePointer.toString());c(u,d,f)}function l(u,f,d=f){return n&&u===ds&&(f.source.absoluteRef!==o||d.source.absoluteRef!==o)}};function $Q(e){return EQ[e]??null}function AQ(e,t){return`${e}/${t}`}function TQ(e){let[t,r]=e.split("/");return{typeName:t,componentName:r}}var xA=()=>({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 SA=()=>({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 RQ=new Set(["type","format","enum","const","nullable","properties","required","additionalProperties","discriminator","$ref","$id","$schema","$anchor","$comment","title","description","default","example","examples","deprecated","readOnly","writeOnly","externalDocs","xml"]),$A=()=>({AllOf(e,t){let r=t.parent;Array.isArray(e)&&((e.length===0||e.length===1&&Object.keys(r).length===1&&!OQ(e[0],t.resolve))&&wg(e,"allOf",t),_g(e,"allOf",t),Pg(e,"allOf",t))},AnyOf(e,t){let r=t.parent;if(!Array.isArray(e))return;let n=$(r.discriminator);e.length<2&&!n&&wg(e,"anyOf",t),_g(e,"anyOf",t),Pg(e,"anyOf",t),n&&wA(e,"anyOf",t)},OneOf(e,t){let r=t.parent;if(!Array.isArray(e))return;let{discriminator:n}=r,o=$(n);e.length<2&&!o&&wg(e,"oneOf",t),_g(e,"oneOf",t),Pg(e,"oneOf",t),o&&wA(e,"oneOf",t),Jl(r)&&kQ(e,t),IQ(e,o?n:void 0,t)}});function wg(e,t,r){let n=e.length===1?" Use the schema directly instead.":"";r.report({message:`\`${t}\` should have at least two schemas.${n}`,location:r.location.key()})}function OQ(e,t){return $(Za(e,t)?.schema.discriminator)}function _g(e,t,r){for(let[n,o]of e.entries())$(o)&&Object.keys(o).length===0&&r.report({message:`Schema in \`${t}\` is empty, so it matches any value.`,location:r.location.child([n])})}function wA(e,t,r){for(let[n,o]of e.entries())M(o)||$(o)&&"$id"in o||r.report({message:`Schema in \`${t}\` is inline, so the \`discriminator\` cannot select it. Use a \`$ref\` to a named schema.`,location:r.location.child([n])})}function Pg(e,t,r){for(let n=1;n<e.length;n++){let o=e.findIndex(i=>Kt(i,e[n]));o<n&&r.report({message:`Schema in \`${t}\` duplicates the schema at position ${o+1}.`,location:r.location.child([n])})}}function kQ(e,t){e.some(n=>{let o=Za(n,t.resolve);return o?Jl(o.schema):!1})&&t.report({message:"The schema and a schema in `oneOf` both accept `null`, so nothing decides which one applies to a null value.",location:t.location.key()})}function IQ(e,t,r){let{resolve:n,report:o,location:i}=r,s=r.specVersion!=="oas3_2",a=e.map(c=>Za(c,n));for(let c=0;c<a.length-1;c++){let p=a[c];if(p)for(let l=c+1;l<a.length;l++){let u=a[l];if(!u||Kt(e[c],e[l]))continue;let f=CQ(p,u,n,t,s);f&&o({message:`Schemas in \`oneOf\` must be mutually exclusive. Found overlapping schemas: ${_A(e[c],c)} and ${_A(e[l],l)}. ${f}`,location:i.key()})}}}function _A(e,t){return M(e)?`\`${e.$ref}\``:e.title?`\`${e.title}\``:`schema at position ${t+1}`}function CQ(e,t,r,n,o){let i=e.schema,s=t.schema;if(Ql(i)||Ql(s)||AA(i,s))return null;if(Jl(i)&&Jl(s))return"Both schemas accept `null`.";let a=tc(i),c=tc(s);if(a&&c){let l=a.filter(u=>c.some(f=>Kt(u,f)));return`Both schemas allow the values ${JSON.stringify(l)}.`}if(n)return o?qQ(i,s,n):null;let p=NQ(e,t,r);if(p)return p;if(!i.properties&&!s.properties){let l=RA(i,s);if(l?.length)return`Both schemas accept ${l.map(u=>`\`${u}\``).join(", ")}.`}return null}function qQ(e,t,r){let{propertyName:n}=r;return typeof n!="string"||!!e.required?.includes(n)&&!!t.required?.includes(n)?null:rt(Ue(e.properties??{},n))&&rt(Ue(t.properties??{},n))?`Add \`${n}\` to \`required\` in every schema; the \`discriminator\` cannot read a property a value may omit.`:`Declare \`${n}\` in every schema and add it to \`required\`; the \`discriminator\` cannot read a property a value may omit.`}function NQ(e,t,r){let n=MQ(e,t);if(!n||PA(e.schema,n.leftProperties,n.rightRequired)||PA(t.schema,n.rightProperties,n.leftRequired)||jQ(n)||n.sharedNames.length===0)return null;let o=DQ(n,r);if(!o)return null;let{optionalDistinguishingNames:i,ambiguousNames:s}=o;if(i.length>0){let a=s.length>0?` Other shared properties: ${Eg(s)}.`:"";return`Add ${Eg(i)} to \`required\` in every schema; an optional property cannot distinguish the schemas.${a}`}return s.length>0?`Both schemas define ${Eg(s)} without constraints that exclude each other. Add a discriminator, or constrain the shared properties to different values.`:null}function MQ(e,t){let r=e.schema.properties,n=t.schema.properties;return!r||!n?null:{leftSource:e.source,rightSource:t.source,leftProperties:r,rightProperties:n,leftRequired:new Set(e.schema.required??[]),rightRequired:new Set(t.schema.required??[]),sharedNames:Object.keys(r).filter(o=>Ue(n,o))}}function jQ({leftProperties:e,rightProperties:t,leftRequired:r,rightRequired:n}){let o=[...r].some(s=>!Ue(t,s)&&!n.has(s)),i=[...n].some(s=>!Ue(e,s)&&!r.has(s));return o&&i}function DQ({leftSource:e,rightSource:t,leftProperties:r,rightProperties:n,leftRequired:o,rightRequired:i,sharedNames:s},a){let c=[],p=[];for(let l of s){let u=o.has(l)&&i.has(l),f=Za(Ue(r,l),a,e),d=Za(Ue(n,l),a,t);if(!(!f||!d)&&!(Ql(f.schema)||Ql(d.schema))){if(AA(f.schema,d.schema)){if(u)return null;c.push(l);continue}p.push(l)}}return{optionalDistinguishingNames:c,ambiguousNames:p}}function PA(e,t,r){return e.additionalProperties!==!1?!1:[...r].some(n=>!Ue(t,n))}function AA(e,t){let r=tc(e),n=tc(t);return r&&n?!r.some(o=>n.some(i=>Kt(o,i))):RA(e,t)?.length===0}function Za(e,t,r){if(M(e)){let{node:n,location:o}=t(e,r);return $(n)?{schema:n,source:o?.source.absoluteRef}:void 0}return $(e)?{schema:e,source:r}:void 0}function Ql(e){return Object.keys(e).some(t=>!RQ.has(t)&&!t.startsWith("x-"))}function TA(e){return"nullable"in e&&e.nullable===!0}function ec(e){let t=e.type;if(t===void 0)return;let r=new Set(Array.isArray(t)?t:[t]);return TA(e)&&r.add("null"),r}function RA(e,t){let r=ec(e),n=ec(t);if(!r||!n)return;let o=[...r].filter(i=>n.has(i));return o.length===0&&LQ(e,t)?["integer"]:o}function LQ(e,t){let r=ec(e),n=ec(t);return r?.has("integer")&&n?.has("number")?EA(t):r?.has("number")&&n?.has("integer")?EA(e):!1}function EA(e){let t=tc(e);return!t||t.some(r=>typeof r=="number"&&Number.isInteger(r))}function Jl(e){return TA(e)||ec(e)?.has("null")===!0}function tc(e){if(e.enum)return e.enum;let t="const"in e?e.const:void 0;return rt(t)?[t]:void 0}function Eg(e){return e.map(t=>`\`${t}\``).join(", ")}var OA=e=>{let t=new Yr,r=o=>o.schema===void 0,n=o=>(i,s)=>{let{location:a,resolve:c}=s;if(rt(i.example))p(i.example,a.child("example"));else if($(i.examples))for(let l of Object.keys(i.examples))p(i.examples[l],a.child(["examples",l]),!0);function p(l,u,f){if(M(l)){let m=c(l);if(!m.location)return;u=m.location,l=m.node}let d=l;if(f){let m=Sl(l);if(!m)return;d=m.value,u=u.child(m.field)}Kn({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 kA=()=>({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 IA=()=>({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 qA=()=>({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=CA(o);i&&n.push(...i)}else{let o=CA(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 CA(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 NA=()=>({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 MA=()=>{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=>M(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 jA=()=>({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 $g="https://redocly.com/docs/cli/rules/oas/operation-4xx-problem-details-rfc7807",DA=()=>({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:$g})},MediaType:{skip(e,t){return t!=="application/problem+json"},enter(e,t){if(ur({fieldName:"schema",value:e,ctx:t,reference:$g}),!e.schema)return;let{schema:r,location:n}=Fo(e.schema,t,t.location.child("schema"));if(!(!r||!n))for(let o of["type","title"])Sn(e.schema,o,t)||t.report({message:zo("SchemaProperties",o),location:r.properties?n.child(["properties",o]).key():n.key(),reference:$g})}}}});var LA=({allowedValues:e})=>({Paths:{RequestBody:{leave(t,r){eo({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){eo({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}},WebhooksMap:{Response:{leave(t,r){eo({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}});var UA=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[_n(r)]||t[_n(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 FA=({allowedValues:e})=>({Paths:{Response:{leave(t,r){eo({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){eo({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}},WebhooksMap:{RequestBody:{leave(t,r){eo({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}});var zA=()=>{let e=`^[${Lc}]+$`;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 VA=()=>{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=Fo(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 BA=()=>({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 HA=()=>({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 KA=()=>{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 GA(e){return e.filter(t=>!("$ref"in t)&&t.in==="querystring").length}function WA(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 YA(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 QA=()=>{let e={},t={},r=0;return{PathItem:{enter(n,o){e={},t={},r=0,WA(GA(n.parameters||[]),o)},Parameter(n,o){YA(n,o.location,e,o),n.in==="querystring"&&(r+=1)},Operation:{enter(n,o){t={...e};let i=r+GA(n.parameters||[]);WA(i,o)},Parameter(n,o){YA(n,o.location,t,o)}}}}};var JA=()=>({ref:{leave(e,{report:t,location:r,type:n,specVersion:o}){let i=o!=="oas3_0";if(!(i&&n.name==="Schema"||n.name==="PathItem"))for(let s of Object.keys(e))s!=="$ref"&&(i&&(s==="summary"||s==="description")||t({message:`Property \`${s}\` is not expected here because it is defined alongside \`$ref\`.`,location:r.child(s).key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-ref-siblings"}))}}});var XA={struct:lt,"info-contact":dr,"info-license":ps,"info-license-strict":Wn,"operation-2xx-response":Rl,"operation-4xx-response":Ol,"operation-4xx-problem-details-rfc7807":DA,assertions:Rt,"operation-operationId-unique":Il,"operation-parameters-unique":ql,"operation-tag-defined":jl,"no-example-value-and-externalValue":SA,"no-mixed-number-range-constraints":Gn,"no-enum-type-mismatch":Xr,"no-path-trailing-slash":Tl,"no-empty-servers":xA,"path-declaration-must-exist":Ll,"operation-operationId-url-safe":Cl,"operation-operationId":Qn,"operation-summary":Ml,"tags-alphabetical":Zn,"no-server-example.com":kA,"no-server-trailing-slash":IA,"tag-description":Xn,"operation-description":kl,"no-unused-components":MA,"path-not-include-query":Fl,"path-parameters-defined":ls,"path-params-defined":ls,"parameter-description":Dl,"operation-singular-tag":Nl,"security-defined":Gl,"security-scopes-defined":as,"no-unresolved-refs":pt,"paths-kebab-case":Vl,"boolean-parameter-prefixes":gA,"path-http-verbs-order":Ul,"no-illogical-composition-keywords":$A,"no-invalid-media-type-examples":OA,"no-identical-paths":El,"no-ambiguous-paths":wl,"no-undefined-server-variable":NA,"no-server-variables-empty-enum":qA,"no-http-verbs-in-paths":Pl,"request-mime-type":LA,"response-mime-type":FA,"path-segment-plural":zl,"no-invalid-schema-examples":Al,"no-invalid-parameter-examples":$l,"response-contains-header":Hl,"response-contains-property":UA,"scalar-property-missing-example":Kl,"spec-components-invalid-map-name":zA,"required-string-property-missing-min-length":Bl,"spec-strict-refs":Wl,"component-name-unique":vA,"array-parameter-serialization":yA,"no-required-schema-properties-undefined":Zr,"no-schema-type-mismatch":en,"no-duplicated-enum-values":Jr,"no-unsafe-markdown":tn,"no-duplicated-tag-names":Yn,"nullable-type-sibling":jA,"spec-no-invalid-tag-parents":KA,"spec-no-invalid-encoding-combinations":HA,"spec-discriminator-defaultMapping":VA,"spec-example-values":BA,"spec-querystring-parameters":QA,"spec-ref-siblings":JA},ZA={};var eT=()=>{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 tT=()=>({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 rT=()=>({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 nT={struct:lt,"no-unresolved-refs":pt,assertions:Rt,"info-license":ps,"no-unused-components":eT,"info-contact":dr,"spec-no-duplicated-method-params":tT,"spec-no-required-params-after-optional":rT,"spec-ref-siblings":Jn},oT={};var iT={"info-contact":dr,struct:lt,"no-unresolved-refs":pt,assertions:Rt},sT={};var UQ={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-ref-siblings":"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-illogical-composition-keywords":"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-ref-siblings":"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-illogical-composition-keywords":"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-ref-siblings":"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-illogical-composition-keywords":"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-ref-siblings":"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","spec-ref-siblings":"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","spec-ref-siblings":"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","spec-ref-siblings":"error"},graphqlRules:{"no-unused-types":"error","type-description":"error"}},aT=UQ;var FQ={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-ref-siblings":"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-illogical-composition-keywords":"off","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-ref-siblings":"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-illogical-composition-keywords":"off","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-ref-siblings":"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-illogical-composition-keywords":"off","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-ref-siblings":"off","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","spec-ref-siblings":"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","spec-ref-siblings":"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","spec-ref-siblings":"off"}},cT=FQ;var zQ={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-ref-siblings":"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-illogical-composition-keywords":"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-ref-siblings":"error","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-illogical-composition-keywords":"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-ref-siblings":"error","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-illogical-composition-keywords":"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-ref-siblings":"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","spec-ref-siblings":"error"},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","spec-ref-siblings":"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":"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","spec-ref-siblings":"error"},graphqlRules:{"no-unused-types":"error","type-description":"off"}},pT=zQ;var VQ={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-ref-siblings":"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-illogical-composition-keywords":"warn","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-ref-siblings":"warn","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-illogical-composition-keywords":"warn","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-ref-siblings":"warn","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-illogical-composition-keywords":"warn","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-ref-siblings":"warn","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":"warn","security-scopes-defined":"warn","tag-description":"warn","tags-alphabetical":"off","spec-ref-siblings":"warn"},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":"warn","security-scopes-defined":"warn","tag-description":"warn","tags-alphabetical":"off","spec-ref-siblings":"warn"},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","spec-ref-siblings":"warn"},graphqlRules:{"no-unused-types":"warn","type-description":"off"}},lT=VQ;var BQ={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-ref-siblings":"error","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-illogical-composition-keywords":"off","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-ref-siblings":"error","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-illogical-composition-keywords":"off","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-ref-siblings":"error","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-illogical-composition-keywords":"off","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-ref-siblings":"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","spec-ref-siblings":"error"},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","spec-ref-siblings":"error"},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","spec-ref-siblings":"error"},graphqlRules:{"no-unused-types":"off","type-description":"off"}},uT=BQ;var HQ={recommended:lT,"recommended-strict":pT,minimal:cT,all:aT,spec:uT},Ag={id:"",rules:{oas3:XA,oas2:mA,async2:D$,async3:H$,arazzo1:k$,overlay1:iT,openrpc1:nT,graphql:rA},preprocessors:{oas3:ZA,oas2:hA,async2:L$,async3:K$,arazzo1:I$,overlay1:sT,openrpc1:oT},decorators:{oas3:JE,oas2:KE,async2:VE,async3:BE,arazzo1:zE,overlay1:ZE,openrpc1:XE},configs:HQ};import*as rc from"node:fs";import*as RT from"node:path";import*as Mg from"node:fs";import ZQ from"node:module";import*as Ot from"node:path";import*as AT from"node:url";var KQ={Root:"DefinitionRoot",ServerVariablesMap:"ServerVariableMap",Paths:["PathMap","PathsMap"],CallbacksMap:"CallbackMap",MediaTypesMap:"MediaTypeMap",ExamplesMap:"ExampleMap",EncodingMap:"EncodingsMap",HeadersMap:"HeaderMap",LinksMap:"LinkMap",OAuth2Flows:"SecuritySchemeFlows",Responses:"ResponsesMap"};function Wt(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){f(s,l);continue}$(d)&&d.name!==void 0&&u.add(d)}a.additionalProperties&&typeof a.additionalProperties!="function"&&(a.additionalProperties===c?f(s,l):a.additionalProperties.name!==void 0&&u.add(a.additionalProperties)),a.items&&typeof a.items!="function"&&(a.items===c?f(s,l):a.items.name!==void 0&&u.add(a.items)),a.extensionsPrefix&&u.add(yr);for(let d of Array.from(u.values()))n(s,d,c,p,l);function f(d,m){for(let h of m.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 f=a[u]||o(a,KQ[u]),d=r[u];if(!f)continue;let m,h,y,g=$(f);if(u==="ref"&&g&&f.skip)throw new Error("ref() visitor does not support skip");typeof f=="function"?m=f:g&&(m=f.enter,h=f.leave,y=f.skip);let b=(m?1:0)+(h?1:0)+(y?1:0),v=g&&Object.keys(f).length>b,w={activatedOn:null,type:t[u],parent:c,isSkippedLevel:!1};if(v&&i(s,f,w,p+1),c&&n(s,c.type,t[u],c),m||g){if(m&&typeof m!="function")throw new Error("DEV: should be function");d.enter.push({...s,visit:m||(()=>{}),skip:y,depth:p,context:w})}if(h){if(typeof h!="function")throw new Error("DEV: should be function");d.leave.push({...s,visit:h,depth:p,context:w})}}}}import GQ from"node:path";var de=(e,t)=>{if(t)for(let r of Object.keys(t))$(e[r])&&typeof t[r]=="string"?e[r]={...e[r],severity:t[r]}:e[r]=t[r]};function Pe(e,t){if(t)for(let r of Object.keys(t))e.hasOwnProperty(r)&&($(e[r])&&typeof t[r]=="string"?e[r]={...e[r],severity:t[r]}:e[r]=t[r])}function dT(e){if(e.indexOf("/")>-1){let[t,r]=e.split("/");return{pluginId:t,configName:r}}else return{pluginId:"",configName:e}}function je(e,t){if(!t)return e;let r={};for(let n of Object.keys(e))r[`${t}/${n}`]=e[n];return r}function Xl(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($(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)}`);de(t.rules,r.rules),de(t.oas2Rules,r.oas2Rules),Pe(t.oas2Rules,r.rules),de(t.oas3_0Rules,r.oas3_0Rules),Pe(t.oas3_0Rules,r.rules),de(t.oas3_1Rules,r.oas3_1Rules),Pe(t.oas3_1Rules,r.rules),de(t.oas3_2Rules,r.oas3_2Rules),Pe(t.oas3_2Rules,r.rules),de(t.async2Rules,r.async2Rules),Pe(t.async2Rules,r.rules),de(t.async3Rules,r.async3Rules),Pe(t.async3Rules,r.rules),de(t.arazzo1Rules,r.arazzo1Rules),Pe(t.arazzo1Rules,r.rules),de(t.arazzo1_1Rules,r.arazzo1_1Rules),Pe(t.arazzo1_1Rules,r.rules),de(t.overlay1Rules,r.overlay1Rules),Pe(t.overlay1Rules,r.rules),de(t.openrpc1Rules,r.openrpc1Rules),Pe(t.openrpc1Rules,r.rules),de(t.graphqlRules,r.graphqlRules),Pe(t.graphqlRules,r.rules),de(t.preprocessors,r.preprocessors),de(t.oas2Preprocessors,r.oas2Preprocessors),Pe(t.oas2Preprocessors,r.preprocessors),de(t.oas3_0Preprocessors,r.oas3_0Preprocessors),Pe(t.oas3_0Preprocessors,r.preprocessors),de(t.oas3_1Preprocessors,r.oas3_1Preprocessors),Pe(t.oas3_1Preprocessors,r.preprocessors),de(t.oas3_2Preprocessors,r.oas3_2Preprocessors),Pe(t.oas3_2Preprocessors,r.preprocessors),de(t.async2Preprocessors,r.async2Preprocessors),Pe(t.async2Preprocessors,r.preprocessors),de(t.async3Preprocessors,r.async3Preprocessors),Pe(t.async3Preprocessors,r.preprocessors),de(t.arazzo1Preprocessors,r.arazzo1Preprocessors),Pe(t.arazzo1Preprocessors,r.preprocessors),de(t.arazzo1_1Preprocessors,r.arazzo1_1Preprocessors),Pe(t.arazzo1_1Preprocessors,r.preprocessors),de(t.overlay1Preprocessors,r.overlay1Preprocessors),Pe(t.overlay1Preprocessors,r.preprocessors),de(t.openrpc1Preprocessors,r.openrpc1Preprocessors),Pe(t.openrpc1Preprocessors,r.preprocessors),de(t.decorators,r.decorators),de(t.oas2Decorators,r.oas2Decorators),Pe(t.oas2Decorators,r.decorators),de(t.oas3_0Decorators,r.oas3_0Decorators),Pe(t.oas3_0Decorators,r.decorators),de(t.oas3_1Decorators,r.oas3_1Decorators),Pe(t.oas3_1Decorators,r.decorators),de(t.oas3_2Decorators,r.oas3_2Decorators),Pe(t.oas3_2Decorators,r.decorators),de(t.async2Decorators,r.async2Decorators),Pe(t.async2Decorators,r.decorators),de(t.async3Decorators,r.async3Decorators),Pe(t.async3Decorators,r.decorators),de(t.arazzo1Decorators,r.arazzo1Decorators),Pe(t.arazzo1Decorators,r.decorators),de(t.arazzo1_1Decorators,r.arazzo1_1Decorators),Pe(t.arazzo1_1Decorators,r.decorators),de(t.overlay1Decorators,r.overlay1Decorators),Pe(t.overlay1Decorators,r.decorators),de(t.openrpc1Decorators,r.openrpc1Decorators),Pe(t.openrpc1Decorators,r.decorators)}return t}var Tg=class extends Error{};function fT(e){return new Map(JSON.parse(JSON.stringify([...e])))}function Rg(e){return $(e)&&"id"in e}function mT(e){return typeof e=="function"}function Og({node:e,ctx:t,plugins:r}){if(!e.extends)return e;let n=(e.extends||[]).filter(We).map(o=>{if(!oe(o)&&!GQ.extname(o))return hT(o,r);let i=t.resolve({$ref:o});return i.location&&i.node!==void 0?i.node:null}).filter(We);return Xl([...n.map(o=>Og({node:o,ctx:t,plugins:r})),{...e,extends:void 0}])}function Zl(e,t){if($(e)&&Array.isArray(e.plugins)){let{plugins:r,rootConfigDir:n}=t.getVisitorData();r.push(...e.plugins.map(o=>tu(o,t.location.source.absoluteRef.replace(/^file:\/\//,""),n)))}}var yT=Wt([{severity:"error",ruleId:Ep,visitor:{ref:{},ConfigGovernance:{leave(e,t){Zl(e,t)}},ConfigApisProperties:{leave(e,t){Zl(e,t)}},[nt.ScorecardClassicLevel]:{leave(e,t){Zl(e,t)}},ConfigRoot:{leave(e,t){Zl(e,t)}}}}],Mn);function eu(e,t){if($(e)&&e.extends){let{plugins:r,skipPluginEval:n}=t.getVisitorData();if(n)return;let o=Og({node:e,ctx:t,plugins:r});Object.assign(e,o),delete e.extends}}var gT=Wt([{severity:"error",ruleId:Pp,visitor:{ref:{leave(e,t,r){Ss(e,r,t)}},ConfigGovernance:{leave(e,t){eu(e,t)}},ConfigApisProperties:{leave(e,t){eu(e,t)}},[nt.ScorecardClassicLevel]:{leave(e,t){eu(e,t)}},ConfigRoot:{leave(e,t){eu(e,t)}}}}],Mn);function kg(e,t){return{prev:e,value:t}}function Ig(e){return e?.prev??null}function WQ(e){let t={};for(;e.parent;)t[e.parent.type.name]=e.parent.activatedOn?.value.node,e=e.parent;return t}function YQ(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 Yt(e){let{document:t,rootType:r,normalizedVisitors:n,resolvedRefMap:o,ctx:i}=e,s={},a=new Set,c=(y,g)=>`${y.name}::${g.absolutePointer}`,p=new Set,l={},u=n.any.enter,f=n.any.leave,d={},m={};for(let y of Object.keys(n))y==="any"||y==="ref"||(d[y]=u.concat(n[y]?.enter||[]),m[y]=(n[y]?.leave||[]).concat(f));h(t.parsed,r,new ft(t.source,"#/"),void 0,"");function h(y,g,b,v,w){let S=(G,De=R.source.absoluteRef)=>{if(!M(G))return{location:b,node:G};let $e=cn(De,G.$ref),fe=o.get($e);if(!fe)return{location:void 0,node:void 0};let{resolved:Bt,node:Je,document:Ge,nodePointer:V,error:Jt,chain:j}=fe;return{location:Bt?new ft(Ge.source,V):Jt instanceof jr?new ft(Jt.source,""):void 0,node:Je,error:Jt,chain:j}},P=b,R=b,A=M(y),{node:E,location:_,error:ee,chain:z}=S(y),pe=new Set,T=Zo(y)&&a.has(c(g,b));if(Zo(y)&&a.add(c(g,b)),A&&!T){let G=n.ref.enter;for(let{visit:De,ruleId:$e,severity:fe,message:Bt,context:Je}of G)pe.add(Je),De(y,{report:V=>dt($e,fe,Bt,V),resolve:S,rawNode:y,rawLocation:P,location:b,type:g,parent:v,key:w,parentLocations:{},specVersion:i.specVersion,config:i.config,getVisitorData:()=>Se($e)},{node:E,location:_,error:ee,chain:z}),_?.source.absoluteRef&&i.refTypes&&i.refTypes.set(_?.source.absoluteRef,g)}if(E!==void 0&&_&&g.name!=="scalar"){let G=(j,k,X,I)=>{let N=Ue(g.properties,j),me=g.extensionsPrefix!==void 0&&j.startsWith(g.extensionsPrefix);N===void 0&&!me&&(N=g.additionalProperties),typeof N=="function"&&(N=N(k,j)),me&&!Xt(N)&&(N=yr),!Xt(N)&&N?.directResolveAs&&(N=N.directResolveAs,k={$ref:k}),N&&N.name===void 0&&N.resolvable!==!1&&(N={name:"scalar",properties:{}}),!(!Xt(N)||N.name==="scalar"&&!M(k))&&h(k,N,X.child([j]),I,j)};R=_;let De=$(E)||Array.isArray(E)?E:b.absolutePointer,$e=s[g.name]?.has?.(De),fe=!1,Bt=d[g.name]||u.concat(n[g.name]?.enter||[]),Je=[],Ge=`${R.absolutePointer}${R.pointer}`;for(let{context:j,visit:k,skip:X,ruleId:I,severity:N,message:me}of Bt){if(p.has(Ge))break;if(j.isSkippedLevel)j.parent.activatedOn&&!j.parent.activatedOn.value.nextLevelTypeActivated&&!j.seen.has(y)&&(j.seen.add(y),fe=!0,Je.push(j));else if(j.parent&&j.parent.activatedOn&&j.parent.activatedOn.value.node===l[j.parent.type.name]&&j.activatedOn?.value.withParentNode!==j.parent.activatedOn.value.node&&j.parent.activatedOn.value.nextLevelTypeActivated?.value!==g||!j.parent&&!$e){Je.push(j);let Le={node:E,location:_,nextLevelTypeActivated:null,withParentNode:j.parent?.activatedOn?.value.node,skipped:(j.parent?.activatedOn?.value.skipped||X?.(E,w,{location:b,rawLocation:P,resolve:S,rawNode:y}))??!1};j.activatedOn=kg(j.activatedOn,Le);let we=j.parent;for(;we;)we.activatedOn.value.nextLevelTypeActivated=kg(we.activatedOn.value.nextLevelTypeActivated,g),we=we.parent;Le.skipped||(fe=!0,pe.add(j),O(k,E,y,j,I,N,me))}}let V=l[g.name];if(l[g.name]=E,fe||!$e){if(s[g.name]=s[g.name]||new Set,s[g.name].add(De),Array.isArray(E)){let j=g.items;if(j!==void 0){let k=typeof j=="function";for(let X=0;X<E.length;X++){let I=_.child([X]),N=k?j(E[X],I.absolutePointer):j,me=E[X];N?.directResolveAs&&(N=N.directResolveAs,me={$ref:me}),Xt(N)&&h(me,N,I,E,X)}}}else if($(E)){let j=Object.keys(g.properties);g.additionalProperties?j.push(...Object.keys(E).filter(k=>!j.includes(k))):g.extensionsPrefix&&j.push(...Object.keys(E).filter(k=>k.startsWith(g.extensionsPrefix)&&!j.includes(k)));for(let k of j){let X=E[k];X!==void 0&&G(k,X,_,E)}}}if(A&&z?.length){let j=z[0];a.has(c(g,j.location))||h(j.node,g,j.location,void 0,w)}if(Zo(y)&&!T)for(let j of Object.keys(y))j!=="$ref"&&y[j]!==E?.[j]&&G(j,y[j],b,y);l[g.name]=V;let Jt=m[g.name]||(n[g.name]?.leave||[]).concat(f);for(let j of Je.reverse())if(j.isSkippedLevel)j.seen.delete(E);else if(j.activatedOn=Ig(j.activatedOn),j.parent){let k=j.parent;for(;k;)k.activatedOn.value.nextLevelTypeActivated=Ig(k.activatedOn.value.nextLevelTypeActivated),k=k.parent}for(let{context:j,visit:k,ruleId:X,severity:I,message:N}of Jt)!j.isSkippedLevel&&pe.has(j)&&O(k,E,y,j,X,I,N)}if(R=b,A&&!T){let G=n.ref.leave;for(let{visit:De,ruleId:$e,severity:fe,context:Bt,message:Je}of G)pe.has(Bt)&&De(y,{report:V=>dt($e,fe,Je,V),resolve:S,rawNode:y,rawLocation:P,location:b,type:g,parent:v,key:w,parentLocations:{},specVersion:i.specVersion,config:i.config,getVisitorData:()=>Se($e)},{node:E,location:_,error:ee,chain:z})}function O(G,De,$e,fe,Bt,Je,Ge){G(De,{report:Jt=>dt(Bt,Je,Ge,Jt),resolve:S,rawNode:$e,location:R,rawLocation:P,type:g,parent:v,key:w,parentLocations:YQ(fe),specVersion:i.specVersion,config:i.config,ignoreNextVisitorsOnNode:()=>{p.add(`${R.absolutePointer}${R.pointer}`)},getVisitorData:()=>Se(Bt)},WQ(fe),fe)}function dt(G,De,$e,fe){let Je=(fe.location?Array.isArray(fe.location)?fe.location:[fe.location]:[{...R,reportOnKey:!1}]).map(V=>({...R,reportOnKey:!1,...V})),Ge=fe.forceSeverity||De;Ge!=="off"&&i.problems.push({ruleId:fe.ruleId||G,severity:Ge,...fe,message:$e?$e.replace("{{message}}",fe.message):fe.message,suggest:fe.suggest||[],location:Je})}function Se(G){return i.visitorsData[G]=i.visitorsData[G]||{},i.visitorsData[G]}}}function Cg(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 bT({version:e,dereference:t,rootDocument:r,resolvedRefMap:n,keepUrlRefs:o,componentRenamingConflicts:i="warn",componentNamesStrategy:s="basename"}){let a,c,p=new Map,l=Cg("Schema",e),u={ref:{leave(b,v,w){if(!w.location||w.node===void 0){Bo(w,v.report,v.location);return}let S=Ho(w);if(S.location.source===r.source&&S.location.source===v.location.source&&v.type.name!=="scalar"&&!t){En(b.$ref).uri!==null&&b.$ref!==S.location.pointer&&(b.$ref=S.location.pointer);return}if(o&&oe(b.$ref))return;let P=Cg(v.type.name,e);P?t?(d(P,S,v),Ss(b,S,v)):(b.$ref=d(P,S,v),f(b,w,v)):Ss(b,S,v)}},Example:{leave(b,v){if(ac(b)&&b.value===void 0){let w=v.resolve({$ref:b.externalValue});if(!w.location||w.node===void 0){Bo(w,v.report,v.location);return}if(o&&oe(b.externalValue))return;b.value=v.resolve({$ref:b.externalValue}).node,delete b.externalValue}}},Root:{enter(b,v){c=v.location,e==="oas3"?a=b.components=b.components||{}:e==="oas2"?a=b:e==="async2"?a=b.components=b.components||{}:e==="async3"?a=b.components=b.components||{}:e==="arazzo1"?a=b.components=b.components||{}:e==="openrpc1"&&(a=b.components=b.components||{})}}};e==="oas3"&&(u.Discriminator={leave(b,v){if(typeof b.defaultMapping!="string"||!Mr(b.defaultMapping))return;let w=v.resolve({$ref:b.defaultMapping});if(!w.location||w.node===void 0){Bo(w,v.report,v.location.child("defaultMapping"));return}b.defaultMapping=d(l,Ho(w),v)},DiscriminatorMapping:{leave(b,v){for(let w of Object.keys(b)){let S=b[w];if(!Mr(S))continue;let P=v.resolve({$ref:S});if(!P.location||P.node===void 0){Bo(P,v.report,v.location.child(w));return}b[w]=d(l,Ho(P),v)}}}});function f(b,v,w){let S={resolved:!0,isRemote:!1,node:v.node,chain:v.chain,document:r,nodePointer:b.$ref};n.set(cn(w.location.source.absoluteRef,b.$ref),S),n.set(cn(r.source.absoluteRef,b.$ref),S)}function d(b,v,w){a[b]=a[b]||{};let S=g(v,b,w);return a[b][S]=v.node,e==="oas3"||e==="async2"||e==="async3"||e==="openrpc1"?`#/components/${b}/${S}`:`#/${b}/${S}`}function m(b,v,w){if(M(b)){let S=w.resolve(b,c.absolutePointer);if((S.location&&Ho(S).location)?.absolutePointer===v.location.absolutePointer)return!0}return Kt(b,v.node)}function h(b,v,w){let{title:S,name:P}=Yl(b.node),R=b.location.child("title");return S===""?{key:P,problem:{message:"Schema must define a `title` when using `--component-names-strategy title`.",location:b.location,forceSeverity:"error"}}:v[P]&&!m(v[P],b,w)?{key:P,problem:{message:`Title "${S}" maps to component name \`${P}\`, already used by another schema. Rename one of the titles.`,location:R,from:p.get(P),forceSeverity:i}}:{key:P}}function y(b,v,w){let S=mb(b.location.pointer)||hb(b.location.source.absoluteRef),P=S;for(let R=2;v[P]&&!m(v[P],b,w);R++)P=`${S}-${R}`;return{name:P,prevName:S}}function g(b,v,w){let S=a[v];if(s==="title"&&v===l){let{key:A,problem:E}=h(b,S,w);if(!E)return p.set(A,b.location.child("title")),A;let{name:_}=y(b,S,w);return S[_]||(w.report(E),p.set(_,b.location)),_}let{name:P,prevName:R}=y(b,S,w);return!S[P]&&R!==P&&w.report({message:`Two schemas are referenced with the same name but different content. Renamed ${R} to ${P}.`,location:w.location,forceSeverity:i}),P}return u}async function qg(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=wn(t.parsed),u=Xa(l),f=r.getRulesForSpecVersion(u),d=an(r.extendTypes(n,l),r),m=Jo(f,r,"preprocessors",l),h=Jo(f,r,"decorators",l),y={problems:[],specVersion:l,config:r,refTypes:new Map,visitorsData:{}},g=await Zt({rootDocument:t,rootType:d.Root,externalRefResolver:o});m.length>0&&(Yt({document:t,rootType:d.Root,normalizedVisitors:Wt(m,d),resolvedRefMap:g,ctx:y}),g=await Zt({rootDocument:t,rootType:d.Root,externalRefResolver:o}));let b=Wt([{severity:"error",ruleId:"bundler",visitor:bT({version:u,dereference:i,rootDocument:t,resolvedRefMap:g,keepUrlRefs:a,componentRenamingConflicts:c,componentNamesStrategy:p})},...h.filter(v=>v.ruleId!=="remove-unused-components")],d);if(Yt({document:t,rootType:d.Root,normalizedVisitors:b,resolvedRefMap:g,ctx:y}),s||r.getDecoratorSettings("remove-unused-components",l).severity!=="off"){let v=await Zt({rootDocument:t,rootType:d.Root,externalRefResolver:o}),w=Wt([{severity:"error",ruleId:"remove-unused-components",visitor:u==="oas2"?bl({}):vl({})}],d);Yt({document:t,rootType:d.Root,normalizedVisitors:w,resolvedRefMap:v,ctx:y})}return{bundle:t,problems:y.problems.map(v=>r.addProblemToIgnore(v)),fileDependencies:o.getFiles(),rootType:d.Root,refTypes:y.refTypes,visitorsData:y.visitorsData}}function vT(e,t,r){let n={plugins:[],rootConfigDir:r},o={problems:[],specVersion:"config",refTypes:new Map,visitorsData:{[Ep]:n}};return Yt({document:e,rootType:Mn.ConfigRoot,normalizedVisitors:yT,resolvedRefMap:t,ctx:o}),n.plugins}function xT(e,t,r,n=!1){let o={plugins:r,skipPluginEval:n},i={problems:[],specVersion:"config",refTypes:new Map,visitorsData:{[Pp]:o}};return Yt({document:e,rootType:Mn.ConfigRoot,normalizedVisitors:gT,resolvedRefMap:t,ctx:i}),e.parsed??{}}async function QQ(e){let{ref:t,doc:r,externalRefResolver:n=new Ct(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),qg({document:i,...e,externalRefResolver:n,types:yo(wn(i.parsed))})}function ru(e){return!Me(e)}import*as ST from"node:url";var Ng=new Map,
|
|
114
|
+
${S}`,location:w,reference:"https://redocly.com/docs/cli/rules/oas/component-name-unique"};b&&(P.forceSeverity=b),f.report(P)}}});for(let d of r.values()){let m={message:"Schema must define a `title` when using `strategy: title`. Bundling fails without it.",location:d,reference:"https://redocly.com/docs/cli/rules/oas/component-name-unique"};e.schemas&&(m.forceSeverity=e.schemas),f.report(m)}}}};return e.schemas!="off"&&(s.NamedSchemas={Schema(u,{location:f,key:d,parentLocations:m}){if(l(ds,f)){c(ds,String(d),m.NamedSchemas.child(d));return}p(ds,f)}}),e.responses!="off"&&(s.NamedResponses={Response(u,{location:f}){p(xg,f)}}),e.parameters!="off"&&(s.NamedParameters={Parameter(u,{location:f}){p(vg,f)}}),e.requestBodies!="off"&&(s.NamedRequestBodies={RequestBody(u,{location:f}){p(Sg,f)}}),s;function a(u){let f=u.split("/").slice(-1)[0];return Os(f)?f.slice(0,f.lastIndexOf(".")):f}function c(u,f,d,m=d){let h=TQ(u,f),y=t.get(h)??new Map,g=d.absolutePointer.toString();y.has(g)||y.set(g,m),t.set(h,y)}function p(u,f){let d=a(f.absolutePointer.toString());c(u,d,f)}function l(u,f,d=f){return n&&u===ds&&(f.source.absoluteRef!==o||d.source.absoluteRef!==o)}};function AQ(e){return $Q[e]??null}function TQ(e,t){return`${e}/${t}`}function RQ(e){let[t,r]=e.split("/");return{typeName:t,componentName:r}}var xA=()=>({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 SA=()=>({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 OQ=new Set(["type","format","enum","const","nullable","properties","required","additionalProperties","discriminator","$ref","$id","$schema","$anchor","$comment","title","description","default","example","examples","deprecated","readOnly","writeOnly","externalDocs","xml"]),$A=()=>({AllOf(e,t){let r=t.parent;Array.isArray(e)&&((e.length===0||e.length===1&&Object.keys(r).length===1&&!kQ(e[0],t.resolve))&&wg(e,"allOf",t),_g(e,"allOf",t),Pg(e,"allOf",t))},AnyOf(e,t){let r=t.parent;if(!Array.isArray(e))return;let n=$(r.discriminator);e.length<2&&!n&&wg(e,"anyOf",t),_g(e,"anyOf",t),Pg(e,"anyOf",t),n&&wA(e,"anyOf",t)},OneOf(e,t){let r=t.parent;if(!Array.isArray(e))return;let{discriminator:n}=r,o=$(n);e.length<2&&!o&&wg(e,"oneOf",t),_g(e,"oneOf",t),Pg(e,"oneOf",t),o&&wA(e,"oneOf",t),Jl(r)&&IQ(e,t),CQ(e,o?n:void 0,t)}});function wg(e,t,r){let n=e.length===1?" Use the schema directly instead.":"";r.report({message:`\`${t}\` should have at least two schemas.${n}`,location:r.location.key()})}function kQ(e,t){return $(Za(e,t)?.schema.discriminator)}function _g(e,t,r){for(let[n,o]of e.entries())$(o)&&Object.keys(o).length===0&&r.report({message:`Schema in \`${t}\` is empty, so it matches any value.`,location:r.location.child([n])})}function wA(e,t,r){for(let[n,o]of e.entries())M(o)||$(o)&&"$id"in o||r.report({message:`Schema in \`${t}\` is inline, so the \`discriminator\` cannot select it. Use a \`$ref\` to a named schema.`,location:r.location.child([n])})}function Pg(e,t,r){for(let n=1;n<e.length;n++){let o=e.findIndex(i=>Kt(i,e[n]));o<n&&r.report({message:`Schema in \`${t}\` duplicates the schema at position ${o+1}.`,location:r.location.child([n])})}}function IQ(e,t){e.some(n=>{let o=Za(n,t.resolve);return o?Jl(o.schema):!1})&&t.report({message:"The schema and a schema in `oneOf` both accept `null`, so nothing decides which one applies to a null value.",location:t.location.key()})}function CQ(e,t,r){let{resolve:n,report:o,location:i}=r,s=r.specVersion!=="oas3_2",a=e.map(c=>Za(c,n));for(let c=0;c<a.length-1;c++){let p=a[c];if(p)for(let l=c+1;l<a.length;l++){let u=a[l];if(!u||Kt(e[c],e[l]))continue;let f=qQ(p,u,n,t,s);f&&o({message:`Schemas in \`oneOf\` must be mutually exclusive. Found overlapping schemas: ${_A(e[c],c)} and ${_A(e[l],l)}. ${f}`,location:i.key()})}}}function _A(e,t){return M(e)?`\`${e.$ref}\``:e.title?`\`${e.title}\``:`schema at position ${t+1}`}function qQ(e,t,r,n,o){let i=e.schema,s=t.schema;if(Ql(i)||Ql(s)||AA(i,s))return null;if(Jl(i)&&Jl(s))return"Both schemas accept `null`.";let a=tc(i),c=tc(s);if(a&&c){let l=a.filter(u=>c.some(f=>Kt(u,f)));return`Both schemas allow the values ${JSON.stringify(l)}.`}if(n)return o?NQ(i,s,n):null;let p=MQ(e,t,r);if(p)return p;if(!i.properties&&!s.properties){let l=RA(i,s);if(l?.length)return`Both schemas accept ${l.map(u=>`\`${u}\``).join(", ")}.`}return null}function NQ(e,t,r){let{propertyName:n}=r;return typeof n!="string"||!!e.required?.includes(n)&&!!t.required?.includes(n)?null:rt(Ue(e.properties??{},n))&&rt(Ue(t.properties??{},n))?`Add \`${n}\` to \`required\` in every schema; the \`discriminator\` cannot read a property a value may omit.`:`Declare \`${n}\` in every schema and add it to \`required\`; the \`discriminator\` cannot read a property a value may omit.`}function MQ(e,t,r){let n=jQ(e,t);if(!n||PA(e.schema,n.leftProperties,n.rightRequired)||PA(t.schema,n.rightProperties,n.leftRequired)||DQ(n)||n.sharedNames.length===0)return null;let o=LQ(n,r);if(!o)return null;let{optionalDistinguishingNames:i,ambiguousNames:s}=o;if(i.length>0){let a=s.length>0?` Other shared properties: ${Eg(s)}.`:"";return`Add ${Eg(i)} to \`required\` in every schema; an optional property cannot distinguish the schemas.${a}`}return s.length>0?`Both schemas define ${Eg(s)} without constraints that exclude each other. Add a discriminator, or constrain the shared properties to different values.`:null}function jQ(e,t){let r=e.schema.properties,n=t.schema.properties;return!r||!n?null:{leftSource:e.source,rightSource:t.source,leftProperties:r,rightProperties:n,leftRequired:new Set(e.schema.required??[]),rightRequired:new Set(t.schema.required??[]),sharedNames:Object.keys(r).filter(o=>Ue(n,o))}}function DQ({leftProperties:e,rightProperties:t,leftRequired:r,rightRequired:n}){let o=[...r].some(s=>!Ue(t,s)&&!n.has(s)),i=[...n].some(s=>!Ue(e,s)&&!r.has(s));return o&&i}function LQ({leftSource:e,rightSource:t,leftProperties:r,rightProperties:n,leftRequired:o,rightRequired:i,sharedNames:s},a){let c=[],p=[];for(let l of s){let u=o.has(l)&&i.has(l),f=Za(Ue(r,l),a,e),d=Za(Ue(n,l),a,t);if(!(!f||!d)&&!(Ql(f.schema)||Ql(d.schema))){if(AA(f.schema,d.schema)){if(u)return null;c.push(l);continue}p.push(l)}}return{optionalDistinguishingNames:c,ambiguousNames:p}}function PA(e,t,r){return e.additionalProperties!==!1?!1:[...r].some(n=>!Ue(t,n))}function AA(e,t){let r=tc(e),n=tc(t);return r&&n?!r.some(o=>n.some(i=>Kt(o,i))):RA(e,t)?.length===0}function Za(e,t,r){if(M(e)){let{node:n,location:o}=t(e,r);return $(n)?{schema:n,source:o?.source.absoluteRef}:void 0}return $(e)?{schema:e,source:r}:void 0}function Ql(e){return Object.keys(e).some(t=>!OQ.has(t)&&!t.startsWith("x-"))}function TA(e){return"nullable"in e&&e.nullable===!0}function ec(e){let t=e.type;if(t===void 0)return;let r=new Set(Array.isArray(t)?t:[t]);return TA(e)&&r.add("null"),r}function RA(e,t){let r=ec(e),n=ec(t);if(!r||!n)return;let o=[...r].filter(i=>n.has(i));return o.length===0&&UQ(e,t)?["integer"]:o}function UQ(e,t){let r=ec(e),n=ec(t);return r?.has("integer")&&n?.has("number")?EA(t):r?.has("number")&&n?.has("integer")?EA(e):!1}function EA(e){let t=tc(e);return!t||t.some(r=>typeof r=="number"&&Number.isInteger(r))}function Jl(e){return TA(e)||ec(e)?.has("null")===!0}function tc(e){if(e.enum)return e.enum;let t="const"in e?e.const:void 0;return rt(t)?[t]:void 0}function Eg(e){return e.map(t=>`\`${t}\``).join(", ")}var OA=e=>{let t=new Yr,r=o=>o.schema===void 0,n=o=>(i,s)=>{let{location:a,resolve:c}=s;if(rt(i.example))p(i.example,a.child("example"));else if($(i.examples))for(let l of Object.keys(i.examples))p(i.examples[l],a.child(["examples",l]),!0);function p(l,u,f){if(M(l)){let m=c(l);if(!m.location)return;u=m.location,l=m.node}let d=l;if(f){let m=Sl(l);if(!m)return;d=m.value,u=u.child(m.field)}Kn({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 kA=()=>({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 IA=()=>({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 qA=()=>({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=CA(o);i&&n.push(...i)}else{let o=CA(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 CA(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 NA=()=>({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 MA=()=>{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=>M(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 jA=()=>({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 $g="https://redocly.com/docs/cli/rules/oas/operation-4xx-problem-details-rfc7807",DA=()=>({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:$g})},MediaType:{skip(e,t){return t!=="application/problem+json"},enter(e,t){if(ur({fieldName:"schema",value:e,ctx:t,reference:$g}),!e.schema)return;let{schema:r,location:n}=Fo(e.schema,t,t.location.child("schema"));if(!(!r||!n))for(let o of["type","title"])Sn(e.schema,o,t)||t.report({message:zo("SchemaProperties",o),location:r.properties?n.child(["properties",o]).key():n.key(),reference:$g})}}}});var LA=({allowedValues:e})=>({Paths:{RequestBody:{leave(t,r){eo({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){eo({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}},WebhooksMap:{Response:{leave(t,r){eo({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}});var UA=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[_n(r)]||t[_n(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 FA=({allowedValues:e})=>({Paths:{Response:{leave(t,r){eo({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){eo({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}},WebhooksMap:{RequestBody:{leave(t,r){eo({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}});var zA=()=>{let e=`^[${Lc}]+$`;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 VA=()=>{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=Fo(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 BA=()=>({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 HA=()=>({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 KA=()=>{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 GA(e){return e.filter(t=>!("$ref"in t)&&t.in==="querystring").length}function WA(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 YA(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 QA=()=>{let e={},t={},r=0;return{PathItem:{enter(n,o){e={},t={},r=0,WA(GA(n.parameters||[]),o)},Parameter(n,o){YA(n,o.location,e,o),n.in==="querystring"&&(r+=1)},Operation:{enter(n,o){t={...e};let i=r+GA(n.parameters||[]);WA(i,o)},Parameter(n,o){YA(n,o.location,t,o)}}}}};var JA=()=>({ref:{leave(e,{report:t,location:r,type:n,specVersion:o}){let i=o!=="oas3_0";if(!(i&&n.name==="Schema"||n.name==="PathItem"))for(let s of Object.keys(e))s!=="$ref"&&(i&&(s==="summary"||s==="description")||t({message:`Property \`${s}\` is not expected here because it is defined alongside \`$ref\`.`,location:r.child(s).key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-ref-siblings"}))}}});var XA={struct:lt,"info-contact":dr,"info-license":ps,"info-license-strict":Wn,"operation-2xx-response":Rl,"operation-4xx-response":Ol,"operation-4xx-problem-details-rfc7807":DA,assertions:Rt,"operation-operationId-unique":Il,"operation-parameters-unique":ql,"operation-tag-defined":jl,"no-example-value-and-externalValue":SA,"no-mixed-number-range-constraints":Gn,"no-enum-type-mismatch":Xr,"no-path-trailing-slash":Tl,"no-empty-servers":xA,"path-declaration-must-exist":Ll,"operation-operationId-url-safe":Cl,"operation-operationId":Qn,"operation-summary":Ml,"tags-alphabetical":Zn,"no-server-example.com":kA,"no-server-trailing-slash":IA,"tag-description":Xn,"operation-description":kl,"no-unused-components":MA,"path-not-include-query":Fl,"path-parameters-defined":ls,"path-params-defined":ls,"parameter-description":Dl,"operation-singular-tag":Nl,"security-defined":Gl,"security-scopes-defined":as,"no-unresolved-refs":pt,"paths-kebab-case":Vl,"boolean-parameter-prefixes":gA,"path-http-verbs-order":Ul,"no-illogical-composition-keywords":$A,"no-invalid-media-type-examples":OA,"no-identical-paths":El,"no-ambiguous-paths":wl,"no-undefined-server-variable":NA,"no-server-variables-empty-enum":qA,"no-http-verbs-in-paths":Pl,"request-mime-type":LA,"response-mime-type":FA,"path-segment-plural":zl,"no-invalid-schema-examples":Al,"no-invalid-parameter-examples":$l,"response-contains-header":Hl,"response-contains-property":UA,"scalar-property-missing-example":Kl,"spec-components-invalid-map-name":zA,"required-string-property-missing-min-length":Bl,"spec-strict-refs":Wl,"component-name-unique":vA,"array-parameter-serialization":yA,"no-required-schema-properties-undefined":Zr,"no-schema-type-mismatch":en,"no-duplicated-enum-values":Jr,"no-unsafe-markdown":tn,"no-duplicated-tag-names":Yn,"nullable-type-sibling":jA,"spec-no-invalid-tag-parents":KA,"spec-no-invalid-encoding-combinations":HA,"spec-discriminator-defaultMapping":VA,"spec-example-values":BA,"spec-querystring-parameters":QA,"spec-ref-siblings":JA},ZA={};var eT=()=>{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 tT=()=>({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 rT=()=>({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 nT={struct:lt,"no-unresolved-refs":pt,assertions:Rt,"info-license":ps,"no-unused-components":eT,"info-contact":dr,"spec-no-duplicated-method-params":tT,"spec-no-required-params-after-optional":rT,"spec-ref-siblings":Jn},oT={};var iT={"info-contact":dr,struct:lt,"no-unresolved-refs":pt,assertions:Rt},sT={};var FQ={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-ref-siblings":"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-illogical-composition-keywords":"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-ref-siblings":"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-illogical-composition-keywords":"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-ref-siblings":"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-illogical-composition-keywords":"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-ref-siblings":"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","spec-ref-siblings":"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","spec-ref-siblings":"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","spec-ref-siblings":"error"},graphqlRules:{"no-unused-types":"error","type-description":"error"}},aT=FQ;var zQ={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-ref-siblings":"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-illogical-composition-keywords":"off","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-ref-siblings":"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-illogical-composition-keywords":"off","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-ref-siblings":"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-illogical-composition-keywords":"off","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-ref-siblings":"off","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","spec-ref-siblings":"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","spec-ref-siblings":"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","spec-ref-siblings":"off"}},cT=zQ;var VQ={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-ref-siblings":"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-illogical-composition-keywords":"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-ref-siblings":"error","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-illogical-composition-keywords":"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-ref-siblings":"error","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-illogical-composition-keywords":"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-ref-siblings":"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","spec-ref-siblings":"error"},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","spec-ref-siblings":"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":"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","spec-ref-siblings":"error"},graphqlRules:{"no-unused-types":"error","type-description":"off"}},pT=VQ;var BQ={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-ref-siblings":"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-illogical-composition-keywords":"warn","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-ref-siblings":"warn","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-illogical-composition-keywords":"warn","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-ref-siblings":"warn","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-illogical-composition-keywords":"warn","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-ref-siblings":"warn","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":"warn","security-scopes-defined":"warn","tag-description":"warn","tags-alphabetical":"off","spec-ref-siblings":"warn"},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":"warn","security-scopes-defined":"warn","tag-description":"warn","tags-alphabetical":"off","spec-ref-siblings":"warn"},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","spec-ref-siblings":"warn"},graphqlRules:{"no-unused-types":"warn","type-description":"off"}},lT=BQ;var HQ={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-ref-siblings":"error","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-illogical-composition-keywords":"off","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-ref-siblings":"error","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-illogical-composition-keywords":"off","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-ref-siblings":"error","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-illogical-composition-keywords":"off","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-ref-siblings":"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","spec-ref-siblings":"error"},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","spec-ref-siblings":"error"},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","spec-ref-siblings":"error"},graphqlRules:{"no-unused-types":"off","type-description":"off"}},uT=HQ;var KQ={recommended:lT,"recommended-strict":pT,minimal:cT,all:aT,spec:uT},Ag={id:"",rules:{oas3:XA,oas2:mA,async2:D$,async3:H$,arazzo1:k$,overlay1:iT,openrpc1:nT,graphql:rA},preprocessors:{oas3:ZA,oas2:hA,async2:L$,async3:K$,arazzo1:I$,overlay1:sT,openrpc1:oT},decorators:{oas3:JE,oas2:KE,async2:VE,async3:BE,arazzo1:zE,overlay1:ZE,openrpc1:XE},configs:KQ};import*as rc from"node:fs";import*as RT from"node:path";import*as Mg from"node:fs";import e6 from"node:module";import*as Ot from"node:path";import*as AT from"node:url";var GQ={Root:"DefinitionRoot",ServerVariablesMap:"ServerVariableMap",Paths:["PathMap","PathsMap"],CallbacksMap:"CallbackMap",MediaTypesMap:"MediaTypeMap",ExamplesMap:"ExampleMap",EncodingMap:"EncodingsMap",HeadersMap:"HeaderMap",LinksMap:"LinkMap",OAuth2Flows:"SecuritySchemeFlows",Responses:"ResponsesMap"};function Wt(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){f(s,l);continue}$(d)&&d.name!==void 0&&u.add(d)}a.additionalProperties&&typeof a.additionalProperties!="function"&&(a.additionalProperties===c?f(s,l):a.additionalProperties.name!==void 0&&u.add(a.additionalProperties)),a.items&&typeof a.items!="function"&&(a.items===c?f(s,l):a.items.name!==void 0&&u.add(a.items)),a.extensionsPrefix&&u.add(yr);for(let d of Array.from(u.values()))n(s,d,c,p,l);function f(d,m){for(let h of m.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 f=a[u]||o(a,GQ[u]),d=r[u];if(!f)continue;let m,h,y,g=$(f);if(u==="ref"&&g&&f.skip)throw new Error("ref() visitor does not support skip");typeof f=="function"?m=f:g&&(m=f.enter,h=f.leave,y=f.skip);let b=(m?1:0)+(h?1:0)+(y?1:0),v=g&&Object.keys(f).length>b,w={activatedOn:null,type:t[u],parent:c,isSkippedLevel:!1};if(v&&i(s,f,w,p+1),c&&n(s,c.type,t[u],c),m||g){if(m&&typeof m!="function")throw new Error("DEV: should be function");d.enter.push({...s,visit:m||(()=>{}),skip:y,depth:p,context:w})}if(h){if(typeof h!="function")throw new Error("DEV: should be function");d.leave.push({...s,visit:h,depth:p,context:w})}}}}import WQ from"node:path";var de=(e,t)=>{if(t)for(let r of Object.keys(t))$(e[r])&&typeof t[r]=="string"?e[r]={...e[r],severity:t[r]}:e[r]=t[r]};function Pe(e,t){if(t)for(let r of Object.keys(t))e.hasOwnProperty(r)&&($(e[r])&&typeof t[r]=="string"?e[r]={...e[r],severity:t[r]}:e[r]=t[r])}function dT(e){if(e.indexOf("/")>-1){let[t,r]=e.split("/");return{pluginId:t,configName:r}}else return{pluginId:"",configName:e}}function je(e,t){if(!t)return e;let r={};for(let n of Object.keys(e))r[`${t}/${n}`]=e[n];return r}function Xl(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($(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)}`);de(t.rules,r.rules),de(t.oas2Rules,r.oas2Rules),Pe(t.oas2Rules,r.rules),de(t.oas3_0Rules,r.oas3_0Rules),Pe(t.oas3_0Rules,r.rules),de(t.oas3_1Rules,r.oas3_1Rules),Pe(t.oas3_1Rules,r.rules),de(t.oas3_2Rules,r.oas3_2Rules),Pe(t.oas3_2Rules,r.rules),de(t.async2Rules,r.async2Rules),Pe(t.async2Rules,r.rules),de(t.async3Rules,r.async3Rules),Pe(t.async3Rules,r.rules),de(t.arazzo1Rules,r.arazzo1Rules),Pe(t.arazzo1Rules,r.rules),de(t.arazzo1_1Rules,r.arazzo1_1Rules),Pe(t.arazzo1_1Rules,r.rules),de(t.overlay1Rules,r.overlay1Rules),Pe(t.overlay1Rules,r.rules),de(t.openrpc1Rules,r.openrpc1Rules),Pe(t.openrpc1Rules,r.rules),de(t.graphqlRules,r.graphqlRules),Pe(t.graphqlRules,r.rules),de(t.preprocessors,r.preprocessors),de(t.oas2Preprocessors,r.oas2Preprocessors),Pe(t.oas2Preprocessors,r.preprocessors),de(t.oas3_0Preprocessors,r.oas3_0Preprocessors),Pe(t.oas3_0Preprocessors,r.preprocessors),de(t.oas3_1Preprocessors,r.oas3_1Preprocessors),Pe(t.oas3_1Preprocessors,r.preprocessors),de(t.oas3_2Preprocessors,r.oas3_2Preprocessors),Pe(t.oas3_2Preprocessors,r.preprocessors),de(t.async2Preprocessors,r.async2Preprocessors),Pe(t.async2Preprocessors,r.preprocessors),de(t.async3Preprocessors,r.async3Preprocessors),Pe(t.async3Preprocessors,r.preprocessors),de(t.arazzo1Preprocessors,r.arazzo1Preprocessors),Pe(t.arazzo1Preprocessors,r.preprocessors),de(t.arazzo1_1Preprocessors,r.arazzo1_1Preprocessors),Pe(t.arazzo1_1Preprocessors,r.preprocessors),de(t.overlay1Preprocessors,r.overlay1Preprocessors),Pe(t.overlay1Preprocessors,r.preprocessors),de(t.openrpc1Preprocessors,r.openrpc1Preprocessors),Pe(t.openrpc1Preprocessors,r.preprocessors),de(t.decorators,r.decorators),de(t.oas2Decorators,r.oas2Decorators),Pe(t.oas2Decorators,r.decorators),de(t.oas3_0Decorators,r.oas3_0Decorators),Pe(t.oas3_0Decorators,r.decorators),de(t.oas3_1Decorators,r.oas3_1Decorators),Pe(t.oas3_1Decorators,r.decorators),de(t.oas3_2Decorators,r.oas3_2Decorators),Pe(t.oas3_2Decorators,r.decorators),de(t.async2Decorators,r.async2Decorators),Pe(t.async2Decorators,r.decorators),de(t.async3Decorators,r.async3Decorators),Pe(t.async3Decorators,r.decorators),de(t.arazzo1Decorators,r.arazzo1Decorators),Pe(t.arazzo1Decorators,r.decorators),de(t.arazzo1_1Decorators,r.arazzo1_1Decorators),Pe(t.arazzo1_1Decorators,r.decorators),de(t.overlay1Decorators,r.overlay1Decorators),Pe(t.overlay1Decorators,r.decorators),de(t.openrpc1Decorators,r.openrpc1Decorators),Pe(t.openrpc1Decorators,r.decorators)}return t}var Tg=class extends Error{};function fT(e){return new Map(JSON.parse(JSON.stringify([...e])))}function Rg(e){return $(e)&&"id"in e}function mT(e){return typeof e=="function"}function Og({node:e,ctx:t,plugins:r}){if(!e.extends)return e;let n=(e.extends||[]).filter(We).map(o=>{if(!oe(o)&&!WQ.extname(o))return hT(o,r);let i=t.resolve({$ref:o});return i.location&&i.node!==void 0?i.node:null}).filter(We);return Xl([...n.map(o=>Og({node:o,ctx:t,plugins:r})),{...e,extends:void 0}])}function Zl(e,t){if($(e)&&Array.isArray(e.plugins)){let{plugins:r,rootConfigDir:n}=t.getVisitorData();r.push(...e.plugins.map(o=>tu(o,t.location.source.absoluteRef.replace(/^file:\/\//,""),n)))}}var yT=Wt([{severity:"error",ruleId:Ep,visitor:{ref:{},ConfigGovernance:{leave(e,t){Zl(e,t)}},ConfigApisProperties:{leave(e,t){Zl(e,t)}},[nt.ScorecardClassicLevel]:{leave(e,t){Zl(e,t)}},ConfigRoot:{leave(e,t){Zl(e,t)}}}}],Mn);function eu(e,t){if($(e)&&e.extends){let{plugins:r,skipPluginEval:n}=t.getVisitorData();if(n)return;let o=Og({node:e,ctx:t,plugins:r});Object.assign(e,o),delete e.extends}}var gT=Wt([{severity:"error",ruleId:Pp,visitor:{ref:{leave(e,t,r){Ss(e,r,t)}},ConfigGovernance:{leave(e,t){eu(e,t)}},ConfigApisProperties:{leave(e,t){eu(e,t)}},[nt.ScorecardClassicLevel]:{leave(e,t){eu(e,t)}},ConfigRoot:{leave(e,t){eu(e,t)}}}}],Mn);function kg(e,t){return{prev:e,value:t}}function Ig(e){return e?.prev??null}function YQ(e){let t={};for(;e.parent;)t[e.parent.type.name]=e.parent.activatedOn?.value.node,e=e.parent;return t}function QQ(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 Yt(e){let{document:t,rootType:r,normalizedVisitors:n,resolvedRefMap:o,ctx:i}=e,s={},a=new Set,c=(y,g)=>`${y.name}::${g.absolutePointer}`,p=new Set,l={},u=n.any.enter,f=n.any.leave,d={},m={};for(let y of Object.keys(n))y==="any"||y==="ref"||(d[y]=u.concat(n[y]?.enter||[]),m[y]=(n[y]?.leave||[]).concat(f));h(t.parsed,r,new ft(t.source,"#/"),void 0,"");function h(y,g,b,v,w){let S=(G,De=R.source.absoluteRef)=>{if(!M(G))return{location:b,node:G};let $e=cn(De,G.$ref),fe=o.get($e);if(!fe)return{location:void 0,node:void 0};let{resolved:Bt,node:Je,document:Ge,nodePointer:V,error:Jt,chain:j}=fe;return{location:Bt?new ft(Ge.source,V):Jt instanceof jr?new ft(Jt.source,""):void 0,node:Je,error:Jt,chain:j}},P=b,R=b,A=M(y),{node:E,location:_,error:ee,chain:z}=S(y),pe=new Set,T=Zo(y)&&a.has(c(g,b));if(Zo(y)&&a.add(c(g,b)),A&&!T){let G=n.ref.enter;for(let{visit:De,ruleId:$e,severity:fe,message:Bt,context:Je}of G)pe.add(Je),De(y,{report:V=>dt($e,fe,Bt,V),resolve:S,rawNode:y,rawLocation:P,location:b,type:g,parent:v,key:w,parentLocations:{},specVersion:i.specVersion,config:i.config,getVisitorData:()=>Se($e)},{node:E,location:_,error:ee,chain:z}),_?.source.absoluteRef&&i.refTypes&&i.refTypes.set(_?.source.absoluteRef,g)}if(E!==void 0&&_&&g.name!=="scalar"){let G=(j,k,X,I)=>{let N=Ue(g.properties,j),me=g.extensionsPrefix!==void 0&&j.startsWith(g.extensionsPrefix);N===void 0&&!me&&(N=g.additionalProperties),typeof N=="function"&&(N=N(k,j)),me&&!Xt(N)&&(N=yr),!Xt(N)&&N?.directResolveAs&&(N=N.directResolveAs,k={$ref:k}),N&&N.name===void 0&&N.resolvable!==!1&&(N={name:"scalar",properties:{}}),!(!Xt(N)||N.name==="scalar"&&!M(k))&&h(k,N,X.child([j]),I,j)};R=_;let De=$(E)||Array.isArray(E)?E:b.absolutePointer,$e=s[g.name]?.has?.(De),fe=!1,Bt=d[g.name]||u.concat(n[g.name]?.enter||[]),Je=[],Ge=`${R.absolutePointer}${R.pointer}`;for(let{context:j,visit:k,skip:X,ruleId:I,severity:N,message:me}of Bt){if(p.has(Ge))break;if(j.isSkippedLevel)j.parent.activatedOn&&!j.parent.activatedOn.value.nextLevelTypeActivated&&!j.seen.has(y)&&(j.seen.add(y),fe=!0,Je.push(j));else if(j.parent&&j.parent.activatedOn&&j.parent.activatedOn.value.node===l[j.parent.type.name]&&j.activatedOn?.value.withParentNode!==j.parent.activatedOn.value.node&&j.parent.activatedOn.value.nextLevelTypeActivated?.value!==g||!j.parent&&!$e){Je.push(j);let Le={node:E,location:_,nextLevelTypeActivated:null,withParentNode:j.parent?.activatedOn?.value.node,skipped:(j.parent?.activatedOn?.value.skipped||X?.(E,w,{location:b,rawLocation:P,resolve:S,rawNode:y}))??!1};j.activatedOn=kg(j.activatedOn,Le);let we=j.parent;for(;we;)we.activatedOn.value.nextLevelTypeActivated=kg(we.activatedOn.value.nextLevelTypeActivated,g),we=we.parent;Le.skipped||(fe=!0,pe.add(j),O(k,E,y,j,I,N,me))}}let V=l[g.name];if(l[g.name]=E,fe||!$e){if(s[g.name]=s[g.name]||new Set,s[g.name].add(De),Array.isArray(E)){let j=g.items;if(j!==void 0){let k=typeof j=="function";for(let X=0;X<E.length;X++){let I=_.child([X]),N=k?j(E[X],I.absolutePointer):j,me=E[X];N?.directResolveAs&&(N=N.directResolveAs,me={$ref:me}),Xt(N)&&h(me,N,I,E,X)}}}else if($(E)){let j=Object.keys(g.properties);g.additionalProperties?j.push(...Object.keys(E).filter(k=>!j.includes(k))):g.extensionsPrefix&&j.push(...Object.keys(E).filter(k=>k.startsWith(g.extensionsPrefix)&&!j.includes(k)));for(let k of j){let X=E[k];X!==void 0&&G(k,X,_,E)}}}if(A&&z?.length){let j=z[0];a.has(c(g,j.location))||h(j.node,g,j.location,void 0,w)}if(Zo(y)&&!T)for(let j of Object.keys(y))j!=="$ref"&&y[j]!==E?.[j]&&G(j,y[j],b,y);l[g.name]=V;let Jt=m[g.name]||(n[g.name]?.leave||[]).concat(f);for(let j of Je.reverse())if(j.isSkippedLevel)j.seen.delete(E);else if(j.activatedOn=Ig(j.activatedOn),j.parent){let k=j.parent;for(;k;)k.activatedOn.value.nextLevelTypeActivated=Ig(k.activatedOn.value.nextLevelTypeActivated),k=k.parent}for(let{context:j,visit:k,ruleId:X,severity:I,message:N}of Jt)!j.isSkippedLevel&&pe.has(j)&&O(k,E,y,j,X,I,N)}if(R=b,A&&!T){let G=n.ref.leave;for(let{visit:De,ruleId:$e,severity:fe,context:Bt,message:Je}of G)pe.has(Bt)&&De(y,{report:V=>dt($e,fe,Je,V),resolve:S,rawNode:y,rawLocation:P,location:b,type:g,parent:v,key:w,parentLocations:{},specVersion:i.specVersion,config:i.config,getVisitorData:()=>Se($e)},{node:E,location:_,error:ee,chain:z})}function O(G,De,$e,fe,Bt,Je,Ge){G(De,{report:Jt=>dt(Bt,Je,Ge,Jt),resolve:S,rawNode:$e,location:R,rawLocation:P,type:g,parent:v,key:w,parentLocations:QQ(fe),specVersion:i.specVersion,config:i.config,ignoreNextVisitorsOnNode:()=>{p.add(`${R.absolutePointer}${R.pointer}`)},getVisitorData:()=>Se(Bt)},YQ(fe),fe)}function dt(G,De,$e,fe){let Je=(fe.location?Array.isArray(fe.location)?fe.location:[fe.location]:[{...R,reportOnKey:!1}]).map(V=>({...R,reportOnKey:!1,...V})),Ge=fe.forceSeverity||De;Ge!=="off"&&i.problems.push({ruleId:fe.ruleId||G,severity:Ge,...fe,message:$e?$e.replace("{{message}}",fe.message):fe.message,suggest:fe.suggest||[],location:Je})}function Se(G){return i.visitorsData[G]=i.visitorsData[G]||{},i.visitorsData[G]}}}function Cg(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 bT({version:e,dereference:t,rootDocument:r,resolvedRefMap:n,keepUrlRefs:o,componentRenamingConflicts:i="warn",componentNamesStrategy:s="basename"}){let a,c,p=new Map,l=Cg("Schema",e),u={ref:{leave(b,v,w){if(!w.location||w.node===void 0){Bo(w,v.report,v.location);return}let S=Ho(w);if(S.location.source===r.source&&S.location.source===v.location.source&&v.type.name!=="scalar"&&!t){En(b.$ref).uri!==null&&b.$ref!==S.location.pointer&&(b.$ref=S.location.pointer);return}if(o&&oe(b.$ref))return;let P=Cg(v.type.name,e);P?t?(d(P,S,v),Ss(b,S,v)):(b.$ref=d(P,S,v),f(b,w,v)):Ss(b,S,v)}},Example:{leave(b,v){if(ac(b)&&b.value===void 0){let w=v.resolve({$ref:b.externalValue});if(!w.location||w.node===void 0){Bo(w,v.report,v.location);return}if(o&&oe(b.externalValue))return;b.value=v.resolve({$ref:b.externalValue}).node,delete b.externalValue}}},Root:{enter(b,v){c=v.location,e==="oas3"?a=b.components=b.components||{}:e==="oas2"?a=b:e==="async2"?a=b.components=b.components||{}:e==="async3"?a=b.components=b.components||{}:e==="arazzo1"?a=b.components=b.components||{}:e==="openrpc1"&&(a=b.components=b.components||{})}}};e==="oas3"&&(u.Discriminator={leave(b,v){if(typeof b.defaultMapping!="string"||!Mr(b.defaultMapping))return;let w=v.resolve({$ref:b.defaultMapping});if(!w.location||w.node===void 0){Bo(w,v.report,v.location.child("defaultMapping"));return}b.defaultMapping=d(l,Ho(w),v)},DiscriminatorMapping:{leave(b,v){for(let w of Object.keys(b)){let S=b[w];if(!Mr(S))continue;let P=v.resolve({$ref:S});if(!P.location||P.node===void 0){Bo(P,v.report,v.location.child(w));return}b[w]=d(l,Ho(P),v)}}}});function f(b,v,w){let S={resolved:!0,isRemote:!1,node:v.node,chain:v.chain,document:r,nodePointer:b.$ref};n.set(cn(w.location.source.absoluteRef,b.$ref),S),n.set(cn(r.source.absoluteRef,b.$ref),S)}function d(b,v,w){a[b]=a[b]||{};let S=g(v,b,w);return a[b][S]=v.node,e==="oas3"||e==="async2"||e==="async3"||e==="openrpc1"?`#/components/${b}/${S}`:`#/${b}/${S}`}function m(b,v,w){if(M(b)){let S=w.resolve(b,c.absolutePointer);if((S.location&&Ho(S).location)?.absolutePointer===v.location.absolutePointer)return!0}return Kt(b,v.node)}function h(b,v,w){let{title:S,name:P}=Yl(b.node),R=b.location.child("title");return S===""?{key:P,problem:{message:"Schema must define a `title` when using `--component-names-strategy title`.",location:b.location,forceSeverity:"error"}}:v[P]&&!m(v[P],b,w)?{key:P,problem:{message:`Title "${S}" maps to component name \`${P}\`, already used by another schema. Rename one of the titles.`,location:R,from:p.get(P),forceSeverity:i}}:{key:P}}function y(b,v,w){let S=mb(b.location.pointer)||hb(b.location.source.absoluteRef),P=S;for(let R=2;v[P]&&!m(v[P],b,w);R++)P=`${S}-${R}`;return{name:P,prevName:S}}function g(b,v,w){let S=a[v];if(s==="title"&&v===l){let{key:A,problem:E}=h(b,S,w);if(!E)return p.set(A,b.location.child("title")),A;let{name:_}=y(b,S,w);return S[_]||(w.report(E),p.set(_,b.location)),_}let{name:P,prevName:R}=y(b,S,w);return!S[P]&&R!==P&&w.report({message:`Two schemas are referenced with the same name but different content. Renamed ${R} to ${P}.`,location:w.location,forceSeverity:i}),P}return u}async function qg(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=wn(t.parsed),u=Xa(l),f=r.getRulesForSpecVersion(u),d=an(r.extendTypes(n,l),r),m=Jo(f,r,"preprocessors",l),h=Jo(f,r,"decorators",l),y={problems:[],specVersion:l,config:r,refTypes:new Map,visitorsData:{}},g=await Zt({rootDocument:t,rootType:d.Root,externalRefResolver:o});m.length>0&&(Yt({document:t,rootType:d.Root,normalizedVisitors:Wt(m,d),resolvedRefMap:g,ctx:y}),g=await Zt({rootDocument:t,rootType:d.Root,externalRefResolver:o}));let b=Wt([{severity:"error",ruleId:"bundler",visitor:bT({version:u,dereference:i,rootDocument:t,resolvedRefMap:g,keepUrlRefs:a,componentRenamingConflicts:c,componentNamesStrategy:p})},...h.filter(v=>v.ruleId!=="remove-unused-components")],d);if(Yt({document:t,rootType:d.Root,normalizedVisitors:b,resolvedRefMap:g,ctx:y}),s||r.getDecoratorSettings("remove-unused-components",l).severity!=="off"){let v=await Zt({rootDocument:t,rootType:d.Root,externalRefResolver:o}),w=Wt([{severity:"error",ruleId:"remove-unused-components",visitor:u==="oas2"?bl({}):vl({})}],d);Yt({document:t,rootType:d.Root,normalizedVisitors:w,resolvedRefMap:v,ctx:y})}return{bundle:t,problems:y.problems.map(v=>r.addProblemToIgnore(v)),fileDependencies:o.getFiles(),rootType:d.Root,refTypes:y.refTypes,visitorsData:y.visitorsData}}function vT(e,t,r){let n={plugins:[],rootConfigDir:r},o={problems:[],specVersion:"config",refTypes:new Map,visitorsData:{[Ep]:n}};return Yt({document:e,rootType:Mn.ConfigRoot,normalizedVisitors:yT,resolvedRefMap:t,ctx:o}),n.plugins}function xT(e,t,r,n=!1){let o={plugins:r,skipPluginEval:n},i={problems:[],specVersion:"config",refTypes:new Map,visitorsData:{[Pp]:o}};return Yt({document:e,rootType:Mn.ConfigRoot,normalizedVisitors:gT,resolvedRefMap:t,ctx:i}),e.parsed??{}}async function JQ(e){let{ref:t,doc:r,externalRefResolver:n=new Ct(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),qg({document:i,...e,externalRefResolver:n,types:yo(wn(i.parsed))})}function ru(e){return!Me(e)}import*as ST from"node:url";var Ng=new Map,XQ="v",ZQ=0;function wT(e){return Ng.has(e)}function _T(e){return Ng.get(e)}function PT(e,t){Ng.set(e,t)}async function ET(e){let t=ST.pathToFileURL(e);return t.searchParams.set(XQ,String(ZQ)),import(t.href)}async function jg({rawConfigDocument:e,configPath:t,externalRefResolver:r,customExtends:n,skipPluginEval:o}){let i=e===void 0?Qw:e.parsed;if(n!==void 0&&$(i)&&(i.extends=n),$(i)&&(i?.extends?.some(ru)||i?.scorecardClassic?.levels?.some(d=>d?.extends?.some(ru))||i?.scorecard?.levels?.some(d=>d?.extends?.some(ru))))throw new Error("Configuration format not detected in extends: values must be strings.");let s=e??{source:new Dr(t??"",JSON.stringify(i)),parsed:i},a=await Zt({rootDocument:s,rootType:Mn.ConfigRoot,externalRefResolver:r??new Ct($p(i?.resolve))}),c=[],p,l="";Ze?p=[...(i?.plugins||[]).filter(m=>!Me(m)),Ag]:(l=Ot.dirname(t??""),c=vT(s,a,l),p=[...await TT(c.map(m=>$T(m)?m.absolutePath:m),l,o),Ag]);let u=xT(s,fT(a),p,o);u.apis&&!o&&(u.apis=Object.fromEntries(Object.entries(u.apis).map(([d,m])=>{let h=Xl([u,m]);return[d,{...m,...h}]})));let f=c.length?c.map(d=>$T(d)&&d.isModule?d.rawPath:d.absolutePath&&Ot.relative(l,d.absolutePath)).filter(rt):void 0;return{resolvedConfig:{...u,plugins:f},resolvedRefMap:a,plugins:p}}function t6(e){for(let t of Xw){let r=Ot.resolve(e,t);if(Mg.existsSync(r))return t}}function $T(e){return"isModule"in e}var tu=(e,t,r)=>{if(!Me(e))return e;let n=Ot.resolve(Ot.dirname(t),e);if(Mg.existsSync(n))return{absolutePath:n,rawPath:e,isModule:!1};try{return{absolutePath:e6.createRequire(import.meta.url??__dirname).resolve(e,{paths:[r,import.meta.url?Ot.dirname(AT.fileURLToPath(import.meta.url)):__dirname]}),isModule:!0,rawPath:e}}catch{throw new Error(`Plugin "${e}" not found.`)}};async function TT(e,t,r=!1){if(!e)return[];let n=async c=>{if(!Me(c))return c;try{let p=Ot.isAbsolute(c)?c:tu(c,Ot.join(t,Mi),t).absolutePath;if(!wT(p)){let l=await ET(p),u=l.default||l,f={contentDir:t},d=Array.isArray(u)?u:[u];for(let y of d)y?.id&&Rg(y)&&Y.info(`Deprecated plugin format detected: ${y.id}
|
|
117
117
|
`);let m=Rg(u)?u:mT(u)?await u(f):await u?.default?.(f),h=Array.isArray(m)?m:[m];m&&PT(p,h.map(y=>({...y,path:c,absolutePath:p})))}return _T(p)}catch(p){throw new Error(`Failed to load plugin "${c}": ${p.message}
|
|
118
118
|
|
|
119
|
-
${p.stack}`)}},o=new Map,i=
|
|
120
|
-
`)}function
|
|
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 tO(e,t,r){let n=xu(t.substr(2));if(e===void 0)return;let o=e;for(let i of n)if(o.kind===Qo.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===Qo.Kind.SEQ){let s=o.items[parseInt(i,10)];if(!s)break;o=s}if(r){let i=o.parent;return!i||i.kind===Qo.Kind.SEQ?o:i.kind===Qo.Kind.MAPPING?i.key:o}else return o}import*as kr from"node:path";var
|
|
119
|
+
${p.stack}`)}},o=new Map,i=t6(t);i&&e.push(i);let s=new Set;if(r){let c=[];for(let p of e){if(!Me(p)){c.push(p);continue}let l=Ot.isAbsolute(p)?p:tu(p,Ot.join(t,Mi),t).absolutePath;s.has(l)||(s.add(l),c.push({absolutePath:l}))}return c}return(await Promise.all(e.map(async c=>{if(Me(c)){if(oe(c))throw new Error(W.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 f=u.id;if(typeof f!="string")throw new Error(W.red(`Plugin must define \`id\` property in ${W.blue(c.toString())}.`));let d=u.absolutePath??c.toString(),m=o.get(f);if(m){if(d!==m)throw new Error(W.red(`Plugin "id" must be unique. Plugin ${W.blue(d)} uses id "${W.blue(f)}" already seen in ${W.blue(d)}`));return}o.set(f,d);let h={id:f,...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=je(u.rules.oas3,f)),u.rules.oas2&&(h.rules.oas2=je(u.rules.oas2,f)),u.rules.async2&&(h.rules.async2=je(u.rules.async2,f)),u.rules.async3&&(h.rules.async3=je(u.rules.async3,f)),u.rules.arazzo1&&(h.rules.arazzo1=je(u.rules.arazzo1,f)),u.rules.overlay1&&(h.rules.overlay1=je(u.rules.overlay1,f)),u.rules.openrpc1&&(h.rules.openrpc1=je(u.rules.openrpc1,f)),u.rules.graphql&&(h.rules.graphql=je(u.rules.graphql,f))}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=je(u.preprocessors.oas3,f)),u.preprocessors.oas2&&(h.preprocessors.oas2=je(u.preprocessors.oas2,f)),u.preprocessors.async2&&(h.preprocessors.async2=je(u.preprocessors.async2,f)),u.preprocessors.async3&&(h.preprocessors.async3=je(u.preprocessors.async3,f)),u.preprocessors.arazzo1&&(h.preprocessors.arazzo1=je(u.preprocessors.arazzo1,f)),u.preprocessors.overlay1&&(h.preprocessors.overlay1=je(u.preprocessors.overlay1,f)),u.preprocessors.openrpc1&&(h.preprocessors.openrpc1=je(u.preprocessors.openrpc1,f))}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=je(u.decorators.oas3,f)),u.decorators.oas2&&(h.decorators.oas2=je(u.decorators.oas2,f)),u.decorators.async2&&(h.decorators.async2=je(u.decorators.async2,f)),u.decorators.async3&&(h.decorators.async3=je(u.decorators.async3,f)),u.decorators.arazzo1&&(h.decorators.arazzo1=je(u.decorators.arazzo1,f)),u.decorators.overlay1&&(h.decorators.overlay1=je(u.decorators.overlay1,f)),u.decorators.openrpc1&&(h.decorators.openrpc1=je(u.decorators.openrpc1,f))}return u.assertions&&(h.assertions=u.assertions),{...u,...h}}))).filter(rt)}))).filter(rt).flat()}function hT(e,t){let{pluginId:r,configName:n}=dT(e),o=t.find(s=>s.id===r);if(!o)throw new Error(`Invalid config ${W.red(e)}: plugin ${r} is not included.`);let i=o.configs?.[n];if(!i)throw new Error(r?`Invalid config ${W.red(e)}: plugin ${r} doesn't export config with name ${n}.`:`Invalid config ${W.red(e)}: there is no such built-in config.`);return i}function r6(e,t){let r=Object.create(null);for(let n of Object.keys(e)){let o=e[n],i=oe(n)?n:cc(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 OT(e,t){let r=e?Su(e):Ze?"":process.cwd(),n=r?cc(r,xa):xa;if(rc?.existsSync&&!oe(n)&&!rc.existsSync(n))return{};let o=await t.resolveDocument(null,n,!0);return o instanceof Error||!o.parsed?{}:r6(o.parsed||{},r)}async function n6(e={}){let{configPath:t=kT(),customExtends:r,externalRefResolver:n,skipPluginEval:o}=e,i=n??new Ct,s=t?await i.resolveDocument(null,t,!0):void 0;if(s instanceof Error)throw s;let{resolvedConfig:a,resolvedRefMap:c,plugins:p}=await jg({rawConfigDocument:s?CT(s):void 0,customExtends:r,configPath:t,externalRefResolver:n,skipPluginEval:o}),l=await OT(t,i);return new ts(a,{configPath:t,document:s,resolvedRefMap:c,plugins:p,ignore:l})}function kT(e){if(!rc?.existsSync)return;let t=e?RT.resolve(e,Mi):Mi;return rc.existsSync(t)?t:void 0}async function IT(e,{configPath:t,externalRefResolver:r,ignore:n}={}){let i=uo(typeof e=="string"?e:"",t??"");typeof e!="string"&&e&&(i.parsed=e);let{resolvedConfig:s,resolvedRefMap:a,plugins:c}=await jg({rawConfigDocument:CT(i),configPath:t,externalRefResolver:r});return new ts(s,{configPath:t,document:i,resolvedRefMap:a,plugins:c,ignore:n})}function CT(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 Qo=qr(ZR(),1);var VJ=150,BJ=3;function fu(e,t){Ms.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-BJ+1,0);c<2&&(c=0);let p=[],l=0;for(let f=s;f<=a&&!(c>0&&f>=a-c);f++){let d=i[f-1]||"";d!==""&&(l=du(d));let m=f===s?r.col-1:l,h=f===a?n.col-1:d.length;p.push([`${f}`,u(d,m,h,W.red)]),t||p.push(["",eO(d,m,h)])}return c>0&&(p.push(["\u2026",`${lb(l)}${W.gray(`< ${c} more lines >`)}`]),p.push([`${a}`,u(i[a-1],-1,n.col-1,W.red)]),t||p.push(["",eO(i[a-1],-1,n.col-1)])),HJ([[`${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(f,d=-1,m=1/0,h=W.gray){return!t||!f?f:(d===-1&&(d=du(f)),m=Math.min(m,f.length),f.substr(0,d)+h(f.substring(d,m))+f.substr(m))}}function HJ(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:du(i)));return t.map(([o,i])=>W.gray(GJ(r,o)+" |")+(i?" "+KJ(i.substring(n)):"")).join(`
|
|
120
|
+
`)}function KJ(e,t=VJ){let r=e.length-t;if(r>0){let n=W.gray(`...<${r} chars>`);return e.substring(0,t-n.length)+n}else return e}function eO(e,t=-1,r=1/0){return t===-1&&(t=du(e)),r=Math.min(r,e.length),lb(t)+"^".repeat(Math.max(r-t,1))}function lb(e){return" ".repeat(e)}function GJ(e,t){return lb(e-t.length)+t}function du(e){for(let t=0;t<e.length;t++)if(e[t]!==" ")return t;return e.length}function nn(e){if(e.pointer===void 0)return e;let{source:t,pointer:r,reportOnKey:n}=e,o=t.getAst(Qo.safeLoad),i=tO(o,r,!!n);return{...e,pointer:void 0,...WJ(t.body,i?.startPosition??1,i?.endPosition??1)}}function WJ(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 tO(e,t,r){let n=xu(t.substr(2));if(e===void 0)return;let o=e;for(let i of n)if(o.kind===Qo.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===Qo.Kind.SEQ){let s=o.items[parseInt(i,10)];if(!s)break;o=s}if(r){let i=o.parent;return!i||i.kind===Qo.Kind.SEQ?o:i.kind===Qo.Kind.MAPPING?i.key:o}else return o}import*as kr from"node:path";var YJ={INVALID_SEVERITY_LEVEL:"Invalid severity level; accepted values: error or warn"},rO={warn:e=>W.bgYellow(W.black(e)),error:W.bgRed},nO={warn:W.yellow,error:W.red},xs={warn:"Warning",error:"Error"},QJ={error:"critical",warn:"minor"},JJ=+(Ns.REDOCLY_CLI_LINT_MAX_SUGGESTIONS??5);function mu(e){return e==="error"?1:2}function oO(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 XJ(e,t){let{maxProblems:r=100,cwd:n=Ze?"":process.cwd(),format:o="codeframe",color:i=Ms.enabled,totals:s=oO(e),version:a="2.0",command:c}=t;Ms.enabled=i;let p=e.length;e=e.filter(v=>!v.ignored);let l=p-e.length;if(e=e.sort((v,w)=>mu(v.severity)-mu(w.severity)).slice(0,r),!p&&o!=="json"&&o!=="junit")return;switch(o){case"json":f();break;case"codeframe":for(let v=0;v<e.length;v++){let w=e[v];c==="bundle"?Y.info(`${m(w,v)}
|
|
122
122
|
`):Y.output(`${m(w,v)}
|
|
123
123
|
`)}break;case"stylish":{let v=ub(e);for(let[w,{ruleIdPad:S,locationPad:P,fileProblems:R}]of Object.entries(v)){Y.output(`${W.blue(oe(w)?w:kr.relative(n,w))}:
|
|
124
124
|
`);for(let A=0;A<R.length;A++){let E=R[A];Y.output(`${h(E,P,S)}
|
|
@@ -144,14 +144,14 @@ Errors: ${s.errors}
|
|
|
144
144
|
`);for(let[P,R]of Object.entries(S)){let A=oe(P)?P:kr.relative(n,P),E=R.filter(ee=>ee.severity==="error").length,_=R.filter(ee=>ee.severity==="warn").length;Y.output(`<testsuite name="${Or(A)}" tests="${R.length}" errors="${E}" failures="${_}">
|
|
145
145
|
`),R.forEach(ee=>b(ee,A)),Y.output(`</testsuite>
|
|
146
146
|
`)}Y.output(`</testsuites>
|
|
147
|
-
`);break}case"codeclimate":u();break;case"summary":
|
|
148
|
-
`);function u(){let v=e.map(w=>{let S=w.location[0],P=nn(S);return{description:w.message,location:{path:oe(S.source.absoluteRef)?S.source.absoluteRef:kr.relative(n,S.source.absoluteRef),lines:{begin:P.start.line}},severity:
|
|
147
|
+
`);break}case"codeclimate":u();break;case"summary":ZJ(e);break;case"github-actions":tX(e,n)}p-l>r&&Y.info(`< ... ${p-r} more problems hidden > ${W.gray("increase with `--max-problems N`")}
|
|
148
|
+
`);function u(){let v=e.map(w=>{let S=w.location[0],P=nn(S);return{description:w.message,location:{path:oe(S.source.absoluteRef)?S.source.absoluteRef:kr.relative(n,S.source.absoluteRef),lines:{begin:P.start.line}},severity:QJ[w.severity],fingerprint:`${w.ruleId}${w.location.length>0?"-"+w.location[0].pointer:""}`}});Y.output(JSON.stringify(v,null,2))}function f(){let v={totals:s,version:a,problems:e.map(w=>{let S={...w,location:w.location.map(P=>{let{start:R,end:A}=nn(P);return{...P,start:R,end:A,source:{ref:oe(P.source.absoluteRef)?P.source.absoluteRef:kr.relative(n,P.source.absoluteRef)}}}),from:w.from?{...w.from,source:{ref:oe(w.from?.source.absoluteRef)?w.from?.source.absoluteRef:kr.relative(n,w.from?.source.absoluteRef||n)}}:void 0};if(Ns.FORMAT_JSON_WITH_CODEFRAMES){let P=w.location[0],R=nn(P);S.codeframe=fu(R,i)}return S})};Y.output(JSON.stringify(v,null,2))}function d(v){let{severity:w}=v;if(!rO[w])throw new Error(YJ.INVALID_SEVERITY_LEVEL);return rO[w]}function m(v,w){let S=d(v),P=v.location[0],R=oe(P.source.absoluteRef)?P.source.absoluteRef:kr.relative(n,P.source.absoluteRef),A=nn(P),E=P.pointer?W.gray(`at ${P.pointer}`):"",_=`${R}:${A.start.line}:${A.start.col}`;return`[${w+1}] ${S(_)} ${E}
|
|
149
149
|
|
|
150
150
|
${v.message}
|
|
151
151
|
|
|
152
152
|
`+iO(v)+fu(A,i)+`
|
|
153
153
|
|
|
154
|
-
`+
|
|
154
|
+
`+eX(n,v.from)+`${xs[v.severity]} was generated by the ${W.blue(v.ruleId)} rule.
|
|
155
155
|
|
|
156
156
|
`+(v.reference?`Reference: ${W.blue(v.reference)}
|
|
157
157
|
|
|
@@ -161,22 +161,22 @@ ${v.message}
|
|
|
161
161
|
`),Y.output(`<${R} message="${E}" type="${A}">${_.join(`
|
|
162
162
|
`)}</${R}>
|
|
163
163
|
`),Y.output(`</testcase>
|
|
164
|
-
`)}}function
|
|
164
|
+
`)}}function ZJ(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])=>mu(n.severity)-mu(o.severity)||o.count-n.count);for(let[n,o]of r){let i=nO[o.severity],s=i(xs[o.severity].toLowerCase().padEnd(7));Y.output(`${s} ${n}: ${o.count}
|
|
165
165
|
`)}Y.output(`
|
|
166
|
-
`)}function
|
|
166
|
+
`)}function eX(e,t){if(!t)return"";let r=kr.relative(e,t.source.absoluteRef),n=nn(t),o=`${r}:${n.start.line}:${n.start.col}`,i=t.pointer?W.gray(`at ${t.pointer}`):"";return`referenced from ${W.blue(o)} ${i}
|
|
167
167
|
|
|
168
168
|
`}function iO(e){return e.suggest.length===0?"":e.suggest.length===1?`Did you mean: ${e.suggest[0]} ?
|
|
169
169
|
|
|
170
170
|
`:`Did you mean:
|
|
171
|
-
- ${e.suggest.slice(0,
|
|
171
|
+
- ${e.suggest.slice(0,JJ).join(`
|
|
172
172
|
- `)}
|
|
173
173
|
|
|
174
|
-
`}var ub=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(nn)};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 Or(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
|
|
174
|
+
`}var ub=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(nn)};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 Or(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 tX(e,t){for(let s of e)for(let a of s.location.map(nn)){let c;switch(s.severity){case"error":c="error";break;case"warn":c="warning";break}let p=iO(s),l=s.reference?`Reference: ${s.reference}
|
|
175
175
|
|
|
176
176
|
`:"",u=s.message+(p!==""||l!==""?`
|
|
177
177
|
|
|
178
178
|
`:"")+p+l,f={title:s.ruleId,file:oe(a.source.absoluteRef)?a.source.absoluteRef:kr.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(f)}::${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:
|
|
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:Rhe,...rX}=yi.properties,nX={...yi,properties:rX};async function sO(e){let{ref:t,externalRefResolver:r=new Ct(e.config.resolve)}=e,n=await r.resolveDocument(null,t,!0);return e.collectSpecData?.(n),hu({document:n,...e,externalRefResolver:r})}async function oX(e){let{source:t,absoluteRef:r,externalRefResolver:n=new Ct(e.config.resolve)}=e,o=uo(t,r||"/");return hu({document:o,...e,externalRefResolver:n})}async function hu(e){let{document:t,customTypes:r,externalRefResolver:n,config:o}=e;if(ai(t.source.absoluteRef)){let{lintGraphqlDocument:d}=await import("./UYZXI3NO.js");return d({document:t,config:o})}let i=wn(t.parsed),s=o.getRulesForSpecVersion(Xa(i)),a=an(o.extendTypes(r??yo(i),i),o),c={problems:[],specVersion:i,config:o,visitorsData:{}},p=Jo(s,o,"preprocessors",i),l=Jo(s,o,"rules",i),u=await Zt({rootDocument:t,rootType:a.Root,externalRefResolver:n});p.length>0&&(Yt({document:t,rootType:a.Root,normalizedVisitors:Wt(p,a),resolvedRefMap:u,ctx:c}),u=await Zt({rootDocument:t,rootType:a.Root,externalRefResolver:n}));let f=Wt(l,a);return Yt({document:t,rootType:a.Root,normalizedVisitors:f,resolvedRefMap:u,ctx:c}),c.problems.map(d=>o.addProblemToIgnore(d))}async function iX(e){let{severity:t,externalRefResolver:r=new Ct,config:n}=e;if(!n.document)throw new Error("Config document is not set.");let o={problems:[],specVersion:"config",config:n,visitorsData:{}},i=an(e.externalConfigTypes||_p(nX,n)),s=[{severity:t||"error",ruleId:"configuration struct",visitor:lt({severity:"error"})},{severity:t||"error",ruleId:"configuration no-unresolved-refs",visitor:pt({severity:"error"})}],a=Wt(s,i),c=n.resolvedRefMap||await Zt({rootDocument:n.document,rootType:i.ConfigRoot,externalRefResolver:r});return Yt({document:n.document,rootType:i.ConfigRoot,normalizedVisitors:a,resolvedRefMap:c,ctx:o}),o.problems}export{hC as a,Kt as b,$ as c,Gt as d,fo as e,yC as f,Me as g,We as h,js as i,gC as j,vu as k,pO as l,lO as m,Ze as n,Ad as o,mo as p,an as q,M as r,fb as s,oe as t,Mr as u,yo as v,Js as w,Of as x,gh as y,sK as z,aK as A,cK as B,lo as C,xc as D,jr as E,ai as F,Os as G,_c as H,Ct as I,Zt as J,AE as K,IE as L,TI as M,RI as N,MI as O,jI as P,DI as Q,LI as R,UI as S,FI as T,zI as U,VI as V,wd as W,Y as X,Xa as Y,wn as Z,Wt as _,Tg as $,Yt as aa,qg as ba,JQ as ca,n6 as da,IT as ea,nn as fa,oO as ga,XJ as ha,Or as ia,sO as ja,oX as ka,hu as la,iX as ma,Pd as na,Ed as oa};
|
|
180
180
|
/*! Bundled license information:
|
|
181
181
|
|
|
182
182
|
js-yaml/dist/js-yaml.mjs:
|