@redocly/replay 0.29.0-next.8 → 0.29.0-next.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{replay-AiChatProvider-BhqlFxe5.js → replay-AiChatProvider-BDqzEpdu.js} +6 -6
- package/dist/{replay-AiChatProvider-CQlLeJa7.js → replay-AiChatProvider-DAWT4hAb.js} +1 -1
- package/dist/{replay-AiChatSqliteDBStorage-DvYzbacG.js → replay-AiChatSqliteDBStorage-BJ0kltvn.js} +1 -1
- package/dist/{replay-AiChatSqliteDBStorage-DJ1YGOqe.js → replay-AiChatSqliteDBStorage-Dkz4d7Rx.js} +1 -1
- package/dist/{replay-AiPanel-D5TWvjvl.js → replay-AiPanel-C5wMkLIc.js} +4 -4
- package/dist/{replay-AiPanel-Dbl9bdI0.js → replay-AiPanel-CkVIJhGF.js} +1 -1
- package/dist/{replay-FileWatcher-DcTmOxd5.js → replay-FileWatcher-D3FVyQbX.js} +2 -2
- package/dist/{replay-FileWatcher-Ccyd4Ygp.js → replay-FileWatcher-DW7u83d1.js} +1 -1
- package/dist/{replay-SemanticSearchService-D0FEW-qe.js → replay-SemanticSearchService-DAt35B37.js} +1 -1
- package/dist/{replay-SemanticSearchService-BYH-9ApH.js → replay-SemanticSearchService-DgroPziI.js} +1 -1
- package/dist/{replay-SqliteDBStorage-dlLOcTaa.js → replay-SqliteDBStorage-BG22uvLP.js} +1 -1
- package/dist/{replay-SqliteDBStorage-ngC3Fd6F.js → replay-SqliteDBStorage-CXZGasJG.js} +1 -1
- package/dist/{replay-TauriFileSystemAdapter-CfhZ_lu4.js → replay-TauriFileSystemAdapter-BY888O_1.js} +1 -1
- package/dist/{replay-TauriFileSystemAdapter-CLyMABdw.js → replay-TauriFileSystemAdapter-CGGDSxKe.js} +1 -1
- package/dist/{replay-TauriRootStorage-qalQq2sK.js → replay-TauriRootStorage-CnLeXsev.js} +1 -1
- package/dist/{replay-TauriRootStorage-Dw4S06W3.js → replay-TauriRootStorage-DaKRlo3-.js} +2 -2
- package/dist/{replay-agent-loop-Ch4vi4iC.js → replay-agent-loop-CzPV4LI2.js} +3 -3
- package/dist/{replay-agent-loop-lW8cGWFV.js → replay-agent-loop-D1h5J-uE.js} +1 -1
- package/dist/{replay-ai-chat-mappers-cLpAMe9s.js → replay-ai-chat-mappers-BlVOCvVt.js} +1 -1
- package/dist/{replay-ai-chat-mappers-CZyQUUm-.js → replay-ai-chat-mappers-DsLIxLaN.js} +1 -1
- package/dist/{replay-create-model-GgeDi15a.js → replay-create-model-KIUQ2An5.js} +3 -3
- package/dist/{replay-create-model-BcIMRKgW.js → replay-create-model-_BaJNmZq.js} +3 -3
- package/dist/{replay-db-CbL8F9Gj.js → replay-db-CroFZCLK.js} +1 -1
- package/dist/{replay-db-CEOHtKri.js → replay-db-DoLsw4tF.js} +1 -1
- package/dist/{replay-external-resolver-DWPR21TU.js → replay-external-resolver-BwZvmuC9.js} +1 -1
- package/dist/{replay-external-resolver-DPE-eBdK.js → replay-external-resolver-DUzbkx07.js} +2 -2
- package/dist/{replay-index-Cbk31wfc.js → replay-index-54ROnLOe.js} +1084 -1084
- package/dist/{replay-index-BIJDsghu.js → replay-index-AuXMzqmR.js} +1 -1
- package/dist/{replay-index-BIFx3qe_.js → replay-index-B1cRNYAB.js} +1 -1
- package/dist/{replay-index-ROQcRTTa.js → replay-index-B8puA2u2.js} +1 -1
- package/dist/{replay-index-CMbUakrA.js → replay-index-BBDKuDcc.js} +1 -1
- package/dist/{replay-index-CEb-1y0c.js → replay-index-BI0q2SFK.js} +1 -1
- package/dist/replay-index-Cj1-cwJH.js +4 -0
- package/dist/{replay-index-BafdpO9k.js → replay-index-DjHbio61.js} +1 -1
- package/dist/{replay-index-CwCo614T.js → replay-index-SX6LT-jT.js} +5 -5
- package/dist/{replay-index-xbsaDUTP.js → replay-index-VCzOY16S.js} +15548 -15493
- package/dist/{replay-index-CgZg_izl.js → replay-index-zSldZ9CB.js} +1 -1
- package/dist/{replay-index-DXFEOfL5.js → replay-index-zmQXrIpO.js} +1 -1
- package/dist/{replay-lint-CdPOA4Pr.js → replay-lint-C8g-xqrP.js} +3 -3
- package/dist/{replay-lint-BfdbISqI.js → replay-lint-YAy8-Dtq.js} +3 -3
- package/dist/{replay-lint-graphql-CIQ7_fq0.js → replay-lint-graphql-Bpd88C9w.js} +2 -2
- package/dist/{replay-lint-graphql-S4qk69dl.js → replay-lint-graphql-CZBwQl0k.js} +1 -1
- package/dist/{replay-periodic-revalidation-B4K7kXe9.js → replay-periodic-revalidation-BzoE_vj1.js} +1 -1
- package/dist/{replay-periodic-revalidation-DrYYgXSd.js → replay-periodic-revalidation-CNYI9Ked.js} +1 -1
- package/dist/{replay-resolve-Cab_bwUa.js → replay-resolve-DrE6Bsmy.js} +1 -1
- package/dist/{replay-resolve-C6cu60fT.js → replay-resolve-jATjJR5l.js} +1 -1
- package/dist/{replay-respect-run-cnFxzDd7.js → replay-respect-run-DIYJQvbB.js} +3 -3
- package/dist/{replay-respect-run-DNdF5qAL.js → replay-respect-run-tWrs79VV.js} +1 -1
- package/dist/{replay-tauri-path-CHACA8CH.js → replay-tauri-path-6SQ7odaf.js} +2 -2
- package/dist/{replay-tauri-path-B0C8nL7l.js → replay-tauri-path-Duj7dsaA.js} +1 -1
- package/dist/{replay-useAiChatQueries-CEUh6Nj5.js → replay-useAiChatQueries-B1XeG3iY.js} +4 -4
- package/dist/{replay-useAiChatQueries-C4mH2gFV.js → replay-useAiChatQueries-__VXRF5i.js} +1 -1
- package/dist/{replay-validate-key-DCXaLvJK.js → replay-validate-key-BGMRyGdn.js} +1 -1
- package/dist/{replay-validate-key-CDGgJHUA.js → replay-validate-key-Dl8sa_9N.js} +2 -2
- package/dist/replay.cjs +1 -1
- package/dist/replay.d.ts +8 -0
- package/dist/replay.js +1 -1
- package/package.json +2 -2
- package/dist/replay-index-CcYwwH13.js +0 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a7 as oe, X as rn, bL as Ou, p as ku, a6 as Je, bM as Sy, bN as Py, bO as $y, G as Ay, bP as po } from "./replay-index-
|
|
2
|
-
import { l as Ee, o as $e, f as Wr, i as je, b as tt, n as nn, e as Ey, q as qi, L as Kt, t as Ry, j as bt, S as Iu, s as _y, p as Ty, v as na, c as vt, w as dt, Y as qu, x as ia, y as Br, h as Oy, z as Ls, A as Us, u as ky, C as Iy, D as qy, E as Cy, a as Ht, B as sr, m as oa, g as jy, k as Cu, F as My, G as ju, d as Dy } from "./replay-resolve-
|
|
1
|
+
import { a7 as oe, X as rn, bL as Ou, p as ku, a6 as Je, bM as Sy, bN as Py, bO as $y, G as Ay, bP as po } from "./replay-index-VCzOY16S.js";
|
|
2
|
+
import { l as Ee, o as $e, f as Wr, i as je, b as tt, n as nn, e as Ey, q as qi, L as Kt, t as Ry, j as bt, S as Iu, s as _y, p as Ty, v as na, c as vt, w as dt, Y as qu, x as ia, y as Br, h as Oy, z as Ls, A as Us, u as ky, C as Iy, D as qy, E as Cy, a as Ht, B as sr, m as oa, g as jy, k as Cu, F as My, G as ju, d as Dy } from "./replay-resolve-DrE6Bsmy.js";
|
|
3
3
|
function Wt(e, t) {
|
|
4
4
|
let r, n;
|
|
5
5
|
if (e === t)
|
|
@@ -24549,7 +24549,7 @@ async function sI(e) {
|
|
|
24549
24549
|
async function Mm(e) {
|
|
24550
24550
|
const { document: t, customTypes: r, externalRefResolver: n, config: i } = e;
|
|
24551
24551
|
if (Dy(t.source.absoluteRef)) {
|
|
24552
|
-
const { lintGraphqlDocument: g } = await import("./replay-lint-graphql-
|
|
24552
|
+
const { lintGraphqlDocument: g } = await import("./replay-lint-graphql-Bpd88C9w.js");
|
|
24553
24553
|
return g({ document: t, config: i });
|
|
24554
24554
|
}
|
|
24555
24555
|
const o = fn(t.parsed), s = i.getRulesForSpecVersion(Pf(o)), c = nn(i.extendTypes(r ?? mo(o), o), i), p = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { i as y } from "./replay-lint-
|
|
2
|
-
import { z as d, B as h, S as v, G as I, C as G, E as b } from "./replay-index-
|
|
1
|
+
import { i as y } from "./replay-lint-YAy8-Dtq.js";
|
|
2
|
+
import { z as d, B as h, S as v, G as I, C as G, E as b } from "./replay-index-VCzOY16S.js";
|
|
3
3
|
function k(t, n) {
|
|
4
4
|
const e = {};
|
|
5
5
|
for (const o of Object.keys(t)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./replay-lint-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./replay-lint-C8g-xqrP.js"),u=require("./replay-index-54ROnLOe.js");function h(t,n){const e={};for(const o of Object.keys(t)){const r=t[o];if(!r)continue;const c=typeof r=="function"?r:r.enter,s=typeof r=="function"?void 0:r.leave;e[o]={...c?{enter:g(c,n)}:{},...s?{leave:g(s,n)}:{}}}return e}function g(t,n){return(e,o,r,c,s)=>{t(e,v(e,n,s))}}function v(t,n,e=[]){const{ruleId:o,severity:r,message:c,source:s,config:a,problems:l}=n,f=e.filter(i=>!Array.isArray(i));return{source:s,config:a,ancestors:f,report(i){const p=i.node??t,d=i.loc??q(p),m={source:s,pointer:void 0,start:d?.start??{line:1,col:1},end:d?.end};l.push({ruleId:i.ruleId??o,severity:i.severity??r,message:c?c.replace("{{message}}",i.message):i.message,suggest:i.suggest??[],location:[m]})}}}function q(t){if(!t?.loc)return;const n=u.getLocation(t.loc.source,t.loc.start),e=u.getLocation(t.loc.source,t.loc.end);return{start:{line:n.line,col:n.column},end:{line:e.line,col:e.column}}}function I(t){const{document:n,config:e}=t,o=n.source;if(o.body.trim()==="")return[{ruleId:"struct",severity:"error",message:"The GraphQL document is empty. Expected at least one type definition.",suggest:[],location:[{source:o,pointer:void 0,start:{line:1,col:1}}]}];let r;try{r=u.parse(new u.Source(o.body,o.absoluteRef))}catch(l){if(l instanceof u.GraphQLError)return[b(l,o)];throw l}const c=e.getRulesForSpecVersion("graphql")??[],s=y.initRules(c,e,"rules","graphql");return G({ast:r,source:o,config:e,rules:s}).map(l=>e.addProblemToIgnore(l))}function b(t,n){const e=t.locations?.[0];return{ruleId:"struct",severity:"error",message:t.message,suggest:[],location:[{source:n,pointer:void 0,start:e?{line:e.line,col:e.column}:{line:1,col:1}}]}}function G(t){const{ast:n,source:e,config:o,rules:r}=t,c=[],s=r.map(({ruleId:a,severity:l,message:f,visitor:i})=>h(i,{ruleId:a,severity:l,message:f,source:e,config:o,problems:c}));return s.length>0&&u.visit(n,u.visitInParallel(s)),c}exports.lintGraphqlDocument=I;
|
package/dist/{replay-periodic-revalidation-DrYYgXSd.js → replay-periodic-revalidation-CNYI9Ked.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./replay-index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./replay-index-54ROnLOe.js"),s=300*1e3;function i(e){return()=>({apis:e.get(n.apisAtom),collections:e.get(n.collectionsAtom)})}function d(e,r,a=s){let t=!1;const o=i(r),c=setInterval(()=>{t||e.getIndexingActivityState().inProgress||(t=!0,e.reindex(o).catch(l=>console.error("Semantic index revalidation:",l)).finally(()=>{t=!1}))},a);return()=>clearInterval(c)}exports.createIndexSnapshotGetter=i;exports.startPeriodicIndexRevalidation=d;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const se=require("./replay-index-Cbk31wfc.js");function Hn(e){return!!e}var Tt={},Rt,fn;function gt(){if(fn)return Rt;fn=1;const e="\\\\/",t=`[^${e}]`,n=0,r="\\.",i="\\+",o="\\?",a="\\/",s="(?=.)",l="[^/]",u=`(?:${a}|$)`,c=`(?:^|${a})`,E=`${r}{1,2}${u}`,m=`(?!${r})`,b=`(?!${c}${E})`,S=`(?!${r}{0,1}${u})`,w=`(?!${E})`,M=`[^.${a}]`,N=`${l}*?`,y={DOT_LITERAL:r,PLUS_LITERAL:i,QMARK_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:s,QMARK:l,END_ANCHOR:u,DOTS_SLASH:E,NO_DOT:m,NO_DOTS:b,NO_DOT_SLASH:S,NO_DOTS_SLASH:w,QMARK_NO_DOT:M,STAR:N,START_ANCHOR:c,SEP:"/"},v={...y,SLASH_LITERAL:`[${e}]`,QMARK:t,STAR:`${t}*?`,DOTS_SLASH:`${r}{1,2}(?:[${e}]|$)`,NO_DOT:`(?!${r})`,NO_DOTS:`(?!(?:^|[${e}])${r}{1,2}(?:[${e}]|$))`,NO_DOT_SLASH:`(?!${r}{0,1}(?:[${e}]|$))`,NO_DOTS_SLASH:`(?!${r}{1,2}(?:[${e}]|$))`,QMARK_NO_DOT:`[^.${e}]`,START_ANCHOR:`(?:^|[${e}])`,END_ANCHOR:`(?:[${e}]|$)`,SEP:"\\"},f={__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"};return Rt={DEFAULT_MAX_EXTGLOB_RECURSION:n,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:f,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(I){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${I.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(I){return I===!0?v:y}},Rt}var pn;function mt(){return pn||(pn=1,(function(e){const{REGEX_BACKSLASH:t,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:r,REGEX_SPECIAL_CHARS_GLOBAL:i}=gt();e.isObject=o=>o!==null&&typeof o=="object"&&!Array.isArray(o),e.hasRegexChars=o=>r.test(o),e.isRegexChar=o=>o.length===1&&e.hasRegexChars(o),e.escapeRegex=o=>o.replace(i,"\\$1"),e.toPosixSlashes=o=>o.replace(t,"/"),e.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){const o=navigator.platform.toLowerCase();return o==="win32"||o==="windows"}return typeof process<"u"&&process.platform?process.platform==="win32":!1},e.removeBackslashes=o=>o.replace(n,a=>a==="\\"?"":a),e.escapeLast=(o,a,s)=>{const l=o.lastIndexOf(a,s);return l===-1?o:o[l-1]==="\\"?e.escapeLast(o,a,l-1):`${o.slice(0,l)}\\${o.slice(l)}`},e.removePrefix=(o,a={})=>{let s=o;return s.startsWith("./")&&(s=s.slice(2),a.prefix="./"),s},e.wrapOutput=(o,a={},s={})=>{const l=s.contains?"":"^",u=s.contains?"":"$";let c=`${l}(?:${o})${u}`;return a.negated===!0&&(c=`(?:^(?!${c}).*$)`),c},e.basename=(o,{windows:a}={})=>{const s=o.split(a?/[\\/]/:"/"),l=s[s.length-1];return l===""?s[s.length-2]:l}})(Tt)),Tt}var vt,dn;function Rr(){if(dn)return vt;dn=1;const e=mt(),{CHAR_ASTERISK:t,CHAR_AT:n,CHAR_BACKWARD_SLASH:r,CHAR_COMMA:i,CHAR_DOT:o,CHAR_EXCLAMATION_MARK:a,CHAR_FORWARD_SLASH:s,CHAR_LEFT_CURLY_BRACE:l,CHAR_LEFT_PARENTHESES:u,CHAR_LEFT_SQUARE_BRACKET:c,CHAR_PLUS:E,CHAR_QUESTION_MARK:m,CHAR_RIGHT_CURLY_BRACE:b,CHAR_RIGHT_PARENTHESES:S,CHAR_RIGHT_SQUARE_BRACKET:w}=gt(),M=y=>y===s||y===r,N=y=>{y.isPrefix!==!0&&(y.depth=y.isGlobstar?1/0:1)};return vt=(y,v)=>{const f=v||{},I=y.length-1,R=f.parts===!0||f.scanToEnd===!0,A=[],g=[],x=[];let j=y,k=-1,q=0,ue=0,le=!1,he=!1,W=!1,Ee=!1,we=!1,ge=!1,U=!1,me=!1,Ie=!1,ne=!1,J=0,ce,O,F={value:"",depth:0,isGlob:!1};const h=()=>k>=I,ae=()=>j.charCodeAt(k+1),z=()=>(ce=O,j.charCodeAt(++k));for(;k<I;){O=z();let D;if(O===r){U=F.backslashes=!0,O=z(),O===l&&(ge=!0);continue}if(ge===!0||O===l){for(J++;h()!==!0&&(O=z());){if(O===r){U=F.backslashes=!0,z();continue}if(O===l){J++;continue}if(ge!==!0&&O===o&&(O=z())===o){if(le=F.isBrace=!0,W=F.isGlob=!0,ne=!0,R===!0)continue;break}if(ge!==!0&&O===i){if(le=F.isBrace=!0,W=F.isGlob=!0,ne=!0,R===!0)continue;break}if(O===b&&(J--,J===0)){ge=!1,le=F.isBrace=!0,ne=!0;break}}if(R===!0)continue;break}if(O===s){if(A.push(k),g.push(F),F={value:"",depth:0,isGlob:!1},ne===!0)continue;if(ce===o&&k===q+1){q+=2;continue}ue=k+1;continue}if(f.noext!==!0&&(O===E||O===n||O===t||O===m||O===a)===!0&&ae()===u){if(W=F.isGlob=!0,Ee=F.isExtglob=!0,ne=!0,O===a&&k===q&&(Ie=!0),R===!0){for(;h()!==!0&&(O=z());){if(O===r){U=F.backslashes=!0,O=z();continue}if(O===S){W=F.isGlob=!0,ne=!0;break}}continue}break}if(O===t){if(ce===t&&(we=F.isGlobstar=!0),W=F.isGlob=!0,ne=!0,R===!0)continue;break}if(O===m){if(W=F.isGlob=!0,ne=!0,R===!0)continue;break}if(O===c){for(;h()!==!0&&(D=z());){if(D===r){U=F.backslashes=!0,z();continue}if(D===w){he=F.isBracket=!0,W=F.isGlob=!0,ne=!0;break}}if(R===!0)continue;break}if(f.nonegate!==!0&&O===a&&k===q){me=F.negated=!0,q++;continue}if(f.noparen!==!0&&O===u){if(W=F.isGlob=!0,R===!0){for(;h()!==!0&&(O=z());){if(O===u){U=F.backslashes=!0,O=z();continue}if(O===S){ne=!0;break}}continue}break}if(W===!0){if(ne=!0,R===!0)continue;break}}f.noext===!0&&(Ee=!1,W=!1);let X=j,d="",p="";q>0&&(d=j.slice(0,q),j=j.slice(q),ue-=q),X&&W===!0&&ue>0?(X=j.slice(0,ue),p=j.slice(ue)):W===!0?(X="",p=j):X=j,X&&X!==""&&X!=="/"&&X!==j&&M(X.charCodeAt(X.length-1))&&(X=X.slice(0,-1)),f.unescape===!0&&(p&&(p=e.removeBackslashes(p)),X&&U===!0&&(X=e.removeBackslashes(X)));const fe={prefix:d,input:y,start:q,base:X,glob:p,isBrace:le,isBracket:he,isGlob:W,isExtglob:Ee,isGlobstar:we,negated:me,negatedExtglob:Ie};if(f.tokens===!0&&(fe.maxDepth=0,M(O)||g.push(F),fe.tokens=g),f.parts===!0||f.tokens===!0){let D;for(let V=0;V<A.length;V++){const Se=D?D+1:q,pe=A[V],Re=y.slice(Se,pe);f.tokens&&(V===0&&q!==0?(g[V].isPrefix=!0,g[V].value=d):g[V].value=Re,N(g[V]),fe.maxDepth+=g[V].depth),(V!==0||Re!=="")&&x.push(Re),D=pe}if(D&&D+1<y.length){const V=y.slice(D+1);x.push(V),f.tokens&&(g[g.length-1].value=V,N(g[g.length-1]),fe.maxDepth+=g[g.length-1].depth)}fe.slashes=A,fe.parts=x}return fe},vt}var xt,hn;function vr(){if(hn)return xt;hn=1;const e=gt(),t=mt(),{MAX_LENGTH:n,POSIX_REGEX_SOURCE:r,REGEX_NON_SPECIAL_CHARS:i,REGEX_SPECIAL_CHARS_BACKREF:o,REPLACEMENTS:a}=e,s=(y,v)=>{if(typeof v.expandRange=="function")return v.expandRange(...y,v);y.sort();const f=`[${y.join("-")}]`;try{new RegExp(f)}catch{return y.map(R=>t.escapeRegex(R)).join("..")}return f},l=(y,v)=>`Missing ${y}: "${v}" - use "\\\\${v}" to match literal characters`,u=y=>{const v=[];let f=0,I=0,R=0,A="",g=!1;for(const x of y){if(g===!0){A+=x,g=!1;continue}if(x==="\\"){A+=x,g=!0;continue}if(x==='"'){R=R===1?0:1,A+=x;continue}if(R===0){if(x==="[")f++;else if(x==="]"&&f>0)f--;else if(f===0){if(x==="(")I++;else if(x===")"&&I>0)I--;else if(x==="|"&&I===0){v.push(A),A="";continue}}}A+=x}return v.push(A),v},c=y=>{let v=!1;for(const f of y){if(v===!0){v=!1;continue}if(f==="\\"){v=!0;continue}if(/[?*+@!()[\]{}]/.test(f))return!1}return!0},E=y=>{let v=y.trim(),f=!0;for(;f===!0;)f=!1,/^@\([^\\()[\]{}|]+\)$/.test(v)&&(v=v.slice(2,-1),f=!0);if(c(v))return v.replace(/\\(.)/g,"$1")},m=y=>{const v=y.map(E).filter(Boolean);for(let f=0;f<v.length;f++)for(let I=f+1;I<v.length;I++){const R=v[f],A=v[I],g=R[0];if(!(!g||R!==g.repeat(R.length)||A!==g.repeat(A.length))&&(R===A||R.startsWith(A)||A.startsWith(R)))return!0}return!1},b=(y,v=!0)=>{if(y[0]!=="+"&&y[0]!=="*"||y[1]!=="(")return;let f=0,I=0,R=0,A=!1;for(let g=1;g<y.length;g++){const x=y[g];if(A===!0){A=!1;continue}if(x==="\\"){A=!0;continue}if(x==='"'){R=R===1?0:1;continue}if(R!==1){if(x==="["){f++;continue}if(x==="]"&&f>0){f--;continue}if(!(f>0)){if(x==="("){I++;continue}if(x===")"&&(I--,I===0))return v===!0&&g!==y.length-1?void 0:{type:y[0],body:y.slice(2,g),end:g}}}}},S=y=>`${y.length===1?t.escapeRegex(y[0]):`[${y.map(f=>t.escapeRegex(f)).join("")}]`}*`,w=y=>{let v=0;const f=[];for(;v<y.length;){const I=b(y.slice(v),!1);if(!I||I.type!=="*")return;const R=u(I.body).map(g=>g.trim());if(R.length!==1)return;const A=E(R[0]);if(!A||A.length!==1)return;f.push(A),v+=I.end+1}if(!(f.length<1))return f},M=y=>{let v=0,f=y.trim(),I=b(f);for(;I;)v++,f=I.body.trim(),I=b(f);return v},N=(y,v)=>{if(v.maxExtglobRecursion===!1)return{risky:!1};const f=typeof v.maxExtglobRecursion=="number"?v.maxExtglobRecursion:e.DEFAULT_MAX_EXTGLOB_RECURSION,I=u(y).map(x=>x.trim());if(I.length>1&&(I.some(x=>x==="")||I.some(x=>/^[*?]+$/.test(x))||m(I)))return{risky:!0};const R=[];let A=!1,g=!0;for(const x of I){const j=w(x);if(j){A=!0,R.push(...j);continue}const k=E(x);if(k&&k.length===1){R.push(k);continue}if(g=!1,M(x)>f)return{risky:!0}}return A?g?{risky:!0,safeOutput:S([...new Set(R)])}:{risky:!0}:{risky:!1}},$=(y,v)=>{if(typeof y!="string")throw new TypeError("Expected a string");y=a[y]||y;const f={...v},I=typeof f.maxLength=="number"?Math.min(n,f.maxLength):n;let R=y.length;if(R>I)throw new SyntaxError(`Input length: ${R}, exceeds maximum allowed length: ${I}`);const A={type:"bos",value:"",output:f.prepend||""},g=[A],x=f.capture?"":"?:",j=e.globChars(f.windows),k=e.extglobChars(j),{DOT_LITERAL:q,PLUS_LITERAL:ue,SLASH_LITERAL:le,ONE_CHAR:he,DOTS_SLASH:W,NO_DOT:Ee,NO_DOT_SLASH:we,NO_DOTS_SLASH:ge,QMARK:U,QMARK_NO_DOT:me,STAR:Ie,START_ANCHOR:ne}=j,J=T=>`(${x}(?:(?!${ne}${T.dot?W:q}).)*?)`,ce=f.dot?"":Ee,O=f.dot?U:me;let F=f.bash===!0?J(f):Ie;f.capture&&(F=`(${F})`),typeof f.noext=="boolean"&&(f.noextglob=f.noext);const h={input:y,index:-1,start:0,dot:f.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:g};y=t.removePrefix(y,h),R=y.length;const ae=[],z=[],X=[];let d=A,p;const fe=()=>h.index===R-1,D=h.peek=(T=1)=>y[h.index+T],V=h.advance=()=>y[++h.index]||"",Se=()=>y.slice(h.index+1),pe=(T="",Y=0)=>{h.consumed+=T,h.index+=Y},Re=T=>{h.output+=T.output!=null?T.output:T.value,pe(T.value)},Cr=()=>{let T=1;for(;D()==="!"&&(D(2)!=="("||D(3)==="?");)V(),h.start++,T++;return T%2===0?!1:(h.negated=!0,h.start++,!0)},rt=T=>{h[T]++,X.push(T)},ve=T=>{h[T]--,X.pop()},L=T=>{if(d.type==="globstar"){const Y=h.braces>0&&(T.type==="comma"||T.type==="brace"),C=T.extglob===!0||ae.length&&(T.type==="pipe"||T.type==="paren");T.type!=="slash"&&T.type!=="paren"&&!Y&&!C&&(h.output=h.output.slice(0,-d.output.length),d.type="star",d.value="*",d.output=F,h.output+=d.output)}if(ae.length&&T.type!=="paren"&&(ae[ae.length-1].inner+=T.value),(T.value||T.output)&&Re(T),d&&d.type==="text"&&T.type==="text"){d.output=(d.output||d.value)+T.value,d.value+=T.value;return}T.prev=d,g.push(T),d=T},it=(T,Y)=>{const C={...k[Y],conditions:1,inner:""};C.prev=d,C.parens=h.parens,C.output=h.output,C.startIndex=h.index,C.tokensIndex=g.length;const P=(f.capture?"(":"")+C.open;rt("parens"),L({type:T,value:Y,output:h.output?"":he}),L({type:"paren",extglob:!0,value:V(),output:P}),ae.push(C)},Tr=T=>{const Y=y.slice(T.startIndex,h.index+1),C=y.slice(T.startIndex+2,h.index),P=N(C,f);if((T.type==="plus"||T.type==="star")&&P.risky){const K=P.safeOutput?(T.output?"":he)+(f.capture?`(${P.safeOutput})`:P.safeOutput):void 0,Ae=g[T.tokensIndex];Ae.type="text",Ae.value=Y,Ae.output=K||t.escapeRegex(Y);for(let ye=T.tokensIndex+1;ye<g.length;ye++)g[ye].value="",g[ye].output="",delete g[ye].suffix;h.output=T.output+Ae.output,h.backtrack=!0,L({type:"paren",extglob:!0,value:p,output:""}),ve("parens");return}let G=T.close+(f.capture?")":""),Q;if(T.type==="negate"){let K=F;if(T.inner&&T.inner.length>1&&T.inner.includes("/")&&(K=J(f)),(K!==F||fe()||/^\)+$/.test(Se()))&&(G=T.close=`)$))${K}`),T.inner.includes("*")&&(Q=Se())&&/^\.[^\\/.]+$/.test(Q)){const Ae=$(Q,{...v,fastpaths:!1}).output;G=T.close=`)${Ae})${K})`}T.prev.type==="bos"&&(h.negatedExtglob=!0)}L({type:"paren",extglob:!0,value:p,output:G}),ve("parens")};if(f.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(y)){let T=!1,Y=y.replace(o,(C,P,G,Q,K,Ae)=>Q==="\\"?(T=!0,C):Q==="?"?P?P+Q+(K?U.repeat(K.length):""):Ae===0?O+(K?U.repeat(K.length):""):U.repeat(G.length):Q==="."?q.repeat(G.length):Q==="*"?P?P+Q+(K?F:""):F:P?C:`\\${C}`);return T===!0&&(f.unescape===!0?Y=Y.replace(/\\/g,""):Y=Y.replace(/\\+/g,C=>C.length%2===0?"\\\\":C?"\\":"")),Y===y&&f.contains===!0?(h.output=y,h):(h.output=t.wrapOutput(Y,h,v),h)}for(;!fe();){if(p=V(),p==="\0")continue;if(p==="\\"){const C=D();if(C==="/"&&f.bash!==!0||C==="."||C===";")continue;if(!C){p+="\\",L({type:"text",value:p});continue}const P=/^\\+/.exec(Se());let G=0;if(P&&P[0].length>2&&(G=P[0].length,h.index+=G,G%2!==0&&(p+="\\")),f.unescape===!0?p=V():p+=V(),h.brackets===0){L({type:"text",value:p});continue}}if(h.brackets>0&&(p!=="]"||d.value==="["||d.value==="[^")){if(f.posix!==!1&&p===":"){const C=d.value.slice(1);if(C.includes("[")&&(d.posix=!0,C.includes(":"))){const P=d.value.lastIndexOf("["),G=d.value.slice(0,P),Q=d.value.slice(P+2),K=r[Q];if(K){d.value=G+K,h.backtrack=!0,V(),!A.output&&g.indexOf(d)===1&&(A.output=he);continue}}}(p==="["&&D()!==":"||p==="-"&&D()==="]")&&(p=`\\${p}`),p==="]"&&(d.value==="["||d.value==="[^")&&(p=`\\${p}`),f.posix===!0&&p==="!"&&d.value==="["&&(p="^"),d.value+=p,Re({value:p});continue}if(h.quotes===1&&p!=='"'){p=t.escapeRegex(p),d.value+=p,Re({value:p});continue}if(p==='"'){h.quotes=h.quotes===1?0:1,f.keepQuotes===!0&&L({type:"text",value:p});continue}if(p==="("){rt("parens"),L({type:"paren",value:p});continue}if(p===")"){if(h.parens===0&&f.strictBrackets===!0)throw new SyntaxError(l("opening","("));const C=ae[ae.length-1];if(C&&h.parens===C.parens+1){Tr(ae.pop());continue}L({type:"paren",value:p,output:h.parens?")":"\\)"}),ve("parens");continue}if(p==="["){if(f.nobracket===!0||!Se().includes("]")){if(f.nobracket!==!0&&f.strictBrackets===!0)throw new SyntaxError(l("closing","]"));p=`\\${p}`}else rt("brackets");L({type:"bracket",value:p});continue}if(p==="]"){if(f.nobracket===!0||d&&d.type==="bracket"&&d.value.length===1){L({type:"text",value:p,output:`\\${p}`});continue}if(h.brackets===0){if(f.strictBrackets===!0)throw new SyntaxError(l("opening","["));L({type:"text",value:p,output:`\\${p}`});continue}ve("brackets");const C=d.value.slice(1);if(d.posix!==!0&&C[0]==="^"&&!C.includes("/")&&(p=`/${p}`),d.value+=p,Re({value:p}),f.literalBrackets===!1||t.hasRegexChars(C))continue;const P=t.escapeRegex(d.value);if(h.output=h.output.slice(0,-d.value.length),f.literalBrackets===!0){h.output+=P,d.value=P;continue}d.value=`(${x}${P}|${d.value})`,h.output+=d.value;continue}if(p==="{"&&f.nobrace!==!0){rt("braces");const C={type:"brace",value:p,output:"(",outputIndex:h.output.length,tokensIndex:h.tokens.length};z.push(C),L(C);continue}if(p==="}"){const C=z[z.length-1];if(f.nobrace===!0||!C){L({type:"text",value:p,output:p});continue}let P=")";if(C.dots===!0){const G=g.slice(),Q=[];for(let K=G.length-1;K>=0&&(g.pop(),G[K].type!=="brace");K--)G[K].type!=="dots"&&Q.unshift(G[K].value);P=s(Q,f),h.backtrack=!0}if(C.comma!==!0&&C.dots!==!0){const G=h.output.slice(0,C.outputIndex),Q=h.tokens.slice(C.tokensIndex);C.value=C.output="\\{",p=P="\\}",h.output=G;for(const K of Q)h.output+=K.output||K.value}L({type:"brace",value:p,output:P}),ve("braces"),z.pop();continue}if(p==="|"){ae.length>0&&ae[ae.length-1].conditions++,L({type:"text",value:p});continue}if(p===","){let C=p;const P=z[z.length-1];P&&X[X.length-1]==="braces"&&(P.comma=!0,C="|"),L({type:"comma",value:p,output:C});continue}if(p==="/"){if(d.type==="dot"&&h.index===h.start+1){h.start=h.index+1,h.consumed="",h.output="",g.pop(),d=A;continue}L({type:"slash",value:p,output:le});continue}if(p==="."){if(h.braces>0&&d.type==="dot"){d.value==="."&&(d.output=q);const C=z[z.length-1];d.type="dots",d.output+=p,d.value+=p,C.dots=!0;continue}if(h.braces+h.parens===0&&d.type!=="bos"&&d.type!=="slash"){L({type:"text",value:p,output:q});continue}L({type:"dot",value:p,output:q});continue}if(p==="?"){if(!(d&&d.value==="(")&&f.noextglob!==!0&&D()==="("&&D(2)!=="?"){it("qmark",p);continue}if(d&&d.type==="paren"){const P=D();let G=p;(d.value==="("&&!/[!=<:]/.test(P)||P==="<"&&!/<([!=]|\w+>)/.test(Se()))&&(G=`\\${p}`),L({type:"text",value:p,output:G});continue}if(f.dot!==!0&&(d.type==="slash"||d.type==="bos")){L({type:"qmark",value:p,output:me});continue}L({type:"qmark",value:p,output:U});continue}if(p==="!"){if(f.noextglob!==!0&&D()==="("&&(D(2)!=="?"||!/[!=<:]/.test(D(3)))){it("negate",p);continue}if(f.nonegate!==!0&&h.index===0){Cr();continue}}if(p==="+"){if(f.noextglob!==!0&&D()==="("&&D(2)!=="?"){it("plus",p);continue}if(d&&d.value==="("||f.regex===!1){L({type:"plus",value:p,output:ue});continue}if(d&&(d.type==="bracket"||d.type==="paren"||d.type==="brace")||h.parens>0){L({type:"plus",value:p});continue}L({type:"plus",value:ue});continue}if(p==="@"){if(f.noextglob!==!0&&D()==="("&&D(2)!=="?"){L({type:"at",extglob:!0,value:p,output:""});continue}L({type:"text",value:p});continue}if(p!=="*"){(p==="$"||p==="^")&&(p=`\\${p}`);const C=i.exec(Se());C&&(p+=C[0],h.index+=C[0].length),L({type:"text",value:p});continue}if(d&&(d.type==="globstar"||d.star===!0)){d.type="star",d.star=!0,d.value+=p,d.output=F,h.backtrack=!0,h.globstar=!0,pe(p);continue}let T=Se();if(f.noextglob!==!0&&/^\([^?]/.test(T)){it("star",p);continue}if(d.type==="star"){if(f.noglobstar===!0){pe(p);continue}const C=d.prev,P=C.prev,G=C.type==="slash"||C.type==="bos",Q=P&&(P.type==="star"||P.type==="globstar");if(f.bash===!0&&(!G||T[0]&&T[0]!=="/")){L({type:"star",value:p,output:""});continue}const K=h.braces>0&&(C.type==="comma"||C.type==="brace"),Ae=ae.length&&(C.type==="pipe"||C.type==="paren");if(!G&&C.type!=="paren"&&!K&&!Ae){L({type:"star",value:p,output:""});continue}for(;T.slice(0,3)==="/**";){const ye=y[h.index+4];if(ye&&ye!=="/")break;T=T.slice(3),pe("/**",3)}if(C.type==="bos"&&fe()){d.type="globstar",d.value+=p,d.output=J(f),h.output=d.output,h.globstar=!0,pe(p);continue}if(C.type==="slash"&&C.prev.type!=="bos"&&!Q&&fe()){h.output=h.output.slice(0,-(C.output+d.output).length),C.output=`(?:${C.output}`,d.type="globstar",d.output=J(f)+(f.strictSlashes?")":"|$)"),d.value+=p,h.globstar=!0,h.output+=C.output+d.output,pe(p);continue}if(C.type==="slash"&&C.prev.type!=="bos"&&T[0]==="/"){const ye=T[1]!==void 0?"|$":"";h.output=h.output.slice(0,-(C.output+d.output).length),C.output=`(?:${C.output}`,d.type="globstar",d.output=`${J(f)}${le}|${le}${ye})`,d.value+=p,h.output+=C.output+d.output,h.globstar=!0,pe(p+V()),L({type:"slash",value:"/",output:""});continue}if(C.type==="bos"&&T[0]==="/"){d.type="globstar",d.value+=p,d.output=`(?:^|${le}|${J(f)}${le})`,h.output=d.output,h.globstar=!0,pe(p+V()),L({type:"slash",value:"/",output:""});continue}h.output=h.output.slice(0,-d.output.length),d.type="globstar",d.output=J(f),d.value+=p,h.output+=d.output,h.globstar=!0,pe(p);continue}const Y={type:"star",value:p,output:F};if(f.bash===!0){Y.output=".*?",(d.type==="bos"||d.type==="slash")&&(Y.output=ce+Y.output),L(Y);continue}if(d&&(d.type==="bracket"||d.type==="paren")&&f.regex===!0){Y.output=p,L(Y);continue}(h.index===h.start||d.type==="slash"||d.type==="dot")&&(d.type==="dot"?(h.output+=we,d.output+=we):f.dot===!0?(h.output+=ge,d.output+=ge):(h.output+=ce,d.output+=ce),D()!=="*"&&(h.output+=he,d.output+=he)),L(Y)}for(;h.brackets>0;){if(f.strictBrackets===!0)throw new SyntaxError(l("closing","]"));h.output=t.escapeLast(h.output,"["),ve("brackets")}for(;h.parens>0;){if(f.strictBrackets===!0)throw new SyntaxError(l("closing",")"));h.output=t.escapeLast(h.output,"("),ve("parens")}for(;h.braces>0;){if(f.strictBrackets===!0)throw new SyntaxError(l("closing","}"));h.output=t.escapeLast(h.output,"{"),ve("braces")}if(f.strictSlashes!==!0&&(d.type==="star"||d.type==="bracket")&&L({type:"maybe_slash",value:"",output:`${le}?`}),h.backtrack===!0){h.output="";for(const T of h.tokens)h.output+=T.output!=null?T.output:T.value,T.suffix&&(h.output+=T.suffix)}return h};return $.fastpaths=(y,v)=>{const f={...v},I=typeof f.maxLength=="number"?Math.min(n,f.maxLength):n,R=y.length;if(R>I)throw new SyntaxError(`Input length: ${R}, exceeds maximum allowed length: ${I}`);y=a[y]||y;const{DOT_LITERAL:A,SLASH_LITERAL:g,ONE_CHAR:x,DOTS_SLASH:j,NO_DOT:k,NO_DOTS:q,NO_DOTS_SLASH:ue,STAR:le,START_ANCHOR:he}=e.globChars(f.windows),W=f.dot?q:k,Ee=f.dot?ue:k,we=f.capture?"":"?:",ge={negated:!1,prefix:""};let U=f.bash===!0?".*?":le;f.capture&&(U=`(${U})`);const me=ce=>ce.noglobstar===!0?U:`(${we}(?:(?!${he}${ce.dot?j:A}).)*?)`,Ie=ce=>{switch(ce){case"*":return`${W}${x}${U}`;case".*":return`${A}${x}${U}`;case"*.*":return`${W}${U}${A}${x}${U}`;case"*/*":return`${W}${U}${g}${x}${Ee}${U}`;case"**":return W+me(f);case"**/*":return`(?:${W}${me(f)}${g})?${Ee}${x}${U}`;case"**/*.*":return`(?:${W}${me(f)}${g})?${Ee}${U}${A}${x}${U}`;case"**/.*":return`(?:${W}${me(f)}${g})?${A}${x}${U}`;default:{const O=/^(.*?)\.(\w+)$/.exec(ce);if(!O)return;const F=Ie(O[1]);return F?F+A+O[2]:void 0}}},ne=t.removePrefix(y,ge);let J=Ie(ne);return J&&f.strictSlashes!==!0&&(J+=`${g}?`),J},xt=$,xt}var _t,gn;function xr(){if(gn)return _t;gn=1;const e=Rr(),t=vr(),n=mt(),r=gt(),i=a=>a&&typeof a=="object"&&!Array.isArray(a),o=(a,s,l=!1)=>{if(Array.isArray(a)){const M=a.map($=>o($,s,l));return $=>{for(const y of M){const v=y($);if(v)return v}return!1}}const u=i(a)&&a.tokens&&a.input;if(a===""||typeof a!="string"&&!u)throw new TypeError("Expected pattern to be a non-empty string");const c=s||{},E=c.windows,m=u?o.compileRe(a,s):o.makeRe(a,s,!1,!0),b=m.state;delete m.state;let S=()=>!1;if(c.ignore){const M={...s,ignore:null,onMatch:null,onResult:null};S=o(c.ignore,M,l)}const w=(M,N=!1)=>{const{isMatch:$,match:y,output:v}=o.test(M,m,s,{glob:a,posix:E}),f={glob:a,state:b,regex:m,posix:E,input:M,output:v,match:y,isMatch:$};return typeof c.onResult=="function"&&c.onResult(f),$===!1?(f.isMatch=!1,N?f:!1):S(M)?(typeof c.onIgnore=="function"&&c.onIgnore(f),f.isMatch=!1,N?f:!1):(typeof c.onMatch=="function"&&c.onMatch(f),N?f:!0)};return l&&(w.state=b),w};return o.test=(a,s,l,{glob:u,posix:c}={})=>{if(typeof a!="string")throw new TypeError("Expected input to be a string");if(a==="")return{isMatch:!1,output:""};const E=l||{},m=E.format||(c?n.toPosixSlashes:null);let b=a===u,S=b&&m?m(a):a;return b===!1&&(S=m?m(a):a,b=S===u),(b===!1||E.capture===!0)&&(E.matchBase===!0||E.basename===!0?b=o.matchBase(a,s,l,c):b=s.exec(S)),{isMatch:!!b,match:b,output:S}},o.matchBase=(a,s,l,u=l&&l.windows)=>(s instanceof RegExp?s:o.makeRe(s,l)).test(n.basename(a,{windows:u})),o.isMatch=(a,s,l)=>o(s,l)(a),o.parse=(a,s)=>Array.isArray(a)?a.map(l=>o.parse(l,s)):t(a,{...s,fastpaths:!1}),o.scan=(a,s)=>e(a,s),o.compileRe=(a,s,l=!1,u=!1)=>{if(l===!0)return a.output;const c=s||{},E=c.contains?"":"^",m=c.contains?"":"$";let b=`${E}(?:${a.output})${m}`;a&&a.negated===!0&&(b=`^(?!${b}).*$`);const S=o.toRegex(b,s);return u===!0&&(S.state=a),S},o.makeRe=(a,s={},l=!1,u=!1)=>{if(!a||typeof a!="string")throw new TypeError("Expected a non-empty string");let c={negated:!1,fastpaths:!0};return s.fastpaths!==!1&&(a[0]==="."||a[0]==="*")&&(c.output=t.fastpaths(a,s)),c.output||(c=t(a,s)),o.compileRe(c,s,l,u)},o.toRegex=(a,s)=>{try{const l=s||{};return new RegExp(a,l.flags||(l.nocase?"i":""))}catch(l){if(s&&s.debug===!0)throw l;return/$^/}},o.constants=r,_t=o,_t}var wt,mn;function _r(){if(mn)return wt;mn=1;const e=xr(),t=mt();function n(r,i,o=!1){return i&&(i.windows===null||i.windows===void 0)&&(i={...i,windows:t.isWindows()}),e(r,i,o)}return Object.assign(n,e),wt=n,wt}var wr=_r();const Ir=se.getDefaultExportFromCjs(wr),Mn=typeof window<"u"||typeof process>"u"||process?.platform==="browser",Bn=Mn?{}:process.env||{};async function Dn(e,t){const n={};for(const i of t.headers)Nr(e,i.matches)&&(n[i.name]=i.envVariable!==void 0?Bn[i.envVariable]||"":i.value);const r=await(t.customFetch||fetch)(e,{headers:n});if(!r.ok)throw new Error(`Failed to load ${e}: ${r.status} ${r.statusText}`);return{body:await r.text(),mimeType:r.headers.get("content-type")}}function Nr(e,t){return t.match(/^https?:\/\//)||(e=e.replace(/^https?:\/\//,"")),Ir.isMatch(e,t)}function Or(e,t={}){return{name:`${e}List`,properties:{},items:e,...t}}function $r(e,t={}){return{name:`${e}Map`,properties:{},additionalProperties:()=>e,...t}}const je={name:"SpecExtension",properties:{},additionalProperties:{resolvable:!0}};function kr(e,t={}){const n={};for(const o of Object.keys(e))n[o]={...e[o],name:o};for(const o of Object.values(n))r(o);return n.SpecExtension=je,n;function r(o){if(o.additionalProperties&&(o.additionalProperties=i(o.additionalProperties)),o.items&&(o.items=i(o.items)),o.properties){const a={};for(const[s,l]of Object.entries(o.properties))a[s]=i(l),t.doNotResolveExamples&&l&&l.isExample&&(a[s]={...l,resolvable:!1});o.properties=a}}function i(o){if(typeof o=="string"){if(!n[o])throw new Error(`Unknown type name found: ${o}`);return n[o]}else return typeof o=="function"?(a,s)=>i(o(a,s)):We(o)?(o={...o},r(o),o):o?.directResolveAs!==void 0?{...o,directResolveAs:i(o.directResolveAs)??void 0}:o}}function We(e){return typeof e?.name=="string"}function be(e,t){return e===""&&(e="#/"),e[e.length-1]==="/"?e+t:e+"/"+t}function Ve(e){return se.isPlainObject(e)&&typeof e.$ref=="string"}function Un(e){return Ve(e)&&Object.keys(e).length>1}function Kn(e){return se.isPlainObject(e)&&typeof e.externalValue=="string"}class Qe{source;pointer;constructor(t,n){this.source=t,this.pointer=n}child(t){return new Qe(this.source,be(this.pointer,(Array.isArray(t)?t:[t]).map(Oe).join("/")))}key(){return Object.assign(Object.create(Qe.prototype),this,{reportOnKey:!0})}get absolutePointer(){return this.source.absoluteRef+(this.pointer==="#/"?"":this.pointer)}}function qn(e){const t=e.indexOf("~")===-1?e:e.replaceAll("~1","/").replaceAll("~0","~");try{return decodeURIComponent(t)}catch{return t}}function Oe(e){return typeof e=="number"||e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replaceAll("~","~0").replaceAll("/","~1")}function Gn(e){const[t,n=""]=e.split("#/");return{uri:(t.endsWith("#")?t.slice(0,-1):t)||null,pointer:Yn(n)}}function Yn(e){return e.split("/").map(qn).filter(Hn)}function Lr(e){const t=e.split("/");return t[t.length-1]}function Pr(e){const t=e.split(/[\/\\]/);return t[t.length-1].replace(/\.[^.]+$/,"")}function xe(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("file://")||e.startsWith("data:")}function Fr(e){return se.pathBrowserifyExports.extname(e)?xe(e)?e.substring(0,e.lastIndexOf("/")):se.pathBrowserifyExports.dirname(e):e}function Hr(e,t){return xe(e)?new URL(t,e.endsWith("/")?e:`${e}/`).href:se.pathBrowserifyExports.resolve(e,t)}function Mr(e){return typeof e=="string"&&(e.startsWith("#")||xe(e)||e.startsWith("./")||e.startsWith("../")||e.indexOf("/")>-1||/\.(ya?ml|json)$/i.test(e))}function Br(e){return/^#[A-Za-z][A-Za-z0-9\-_:.]*$/.test(e)}function Dr(e,t,n){if(!se.isPlainObject(t.node)&&n.parent){n.parent[n.key]=t.node;return}delete e.$ref,se.isPlainObject(t.node)&&Object.assign(e,{...t.node,...e})}var H=Symbol("NOT_RESOLVED"),Qt=Symbol("MERGE_KEY");function ee(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??(n=>String(n)),representTagName:t.representTagName??null}}function Zt(e,t){const n=t.finalize===void 0;return{tagName:e,nodeKind:"sequence",implicit:!1,matchByTagPrefix:t.matchByTagPrefix??!1,create:t.create,addItem:t.addItem,finalize:t.finalize??(r=>r),carrierIsResult:n,identify:t.identify??null,represent:t.represent??(r=>r),representTagName:t.representTagName??null}}function At(e,t){const n=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??(r=>r),carrierIsResult:n,identify:t.identify??null,represent:t.represent??(r=>r),representTagName:t.representTagName??null}}var Ur=ee("tag:yaml.org,2002:str",{resolve:e=>e,identify:e=>typeof e=="string"}),Kr=["","~","null","Null","NULL"],qr=ee("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:e=>Kr.indexOf(e)!==-1?null:H,identify:e=>e===null,represent:()=>"null"}),Gr=ee("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["n"],resolve:(e,t)=>e==="null"||t&&e===""?null:H,identify:e=>e===null,represent:()=>"null"}),Yr=["","~","null","Null","NULL"],jr=ee("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:e=>Yr.indexOf(e)!==-1?null:H,identify:e=>e===null,represent:()=>"null"}),Wr=["true","True","TRUE"],Vr=["false","False","FALSE"],Xr=ee("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","T","f","F"],resolve:e=>Wr.indexOf(e)!==-1?!0:Vr.indexOf(e)!==-1?!1:H,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),zr=["true"],Qr=["false"],Zr=ee("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","f"],resolve:e=>zr.indexOf(e)!==-1?!0:Qr.indexOf(e)!==-1?!1:H,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),Jr=["true","True","TRUE","y","Y","yes","Yes","YES","on","On","ON"],ei=["false","False","FALSE","n","N","no","No","NO","off","Off","OFF"],ti=ee("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["y","Y","n","N","t","T","f","F","o","O"],resolve:e=>Jr.indexOf(e)!==-1?!0:ei.indexOf(e)!==-1?!1:H,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),ni=new RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"),ri=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function ii(e){let t=e,n=1;return(t[0]==="-"||t[0]==="+")&&(t[0]==="-"&&(n=-1),t=t.slice(1)),t.startsWith("0b")?n*parseInt(t.slice(2),2):t.startsWith("0o")?n*parseInt(t.slice(2),8):t.startsWith("0x")?n*parseInt(t.slice(2),16):n*parseInt(t,10)}function oi(e,t){if(t){if(!ri.test(e))return H}else if(!ni.test(e))return H;const n=ii(e);return Number.isFinite(n)?n:H}var jn=ee("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:oi,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),ai=new RegExp("^-?(?:0|[1-9][0-9]*)$"),si=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function li(e){let t=e,n=1;return(t[0]==="-"||t[0]==="+")&&(t[0]==="-"&&(n=-1),t=t.slice(1)),t.startsWith("0b")?n*parseInt(t.slice(2),2):t.startsWith("0o")?n*parseInt(t.slice(2),8):t.startsWith("0x")?n*parseInt(t.slice(2),16):n*parseInt(t,10)}function ci(e,t){if(t){if(!si.test(e))return H}else if(!ai.test(e))return H;const n=li(e);return Number.isFinite(n)?n:H}var ui=ee("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:ci,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),fi=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 pi(e){let t=e.replace(/_/g,""),n=1;if((t[0]==="-"||t[0]==="+")&&(t[0]==="-"&&(n=-1),t=t.slice(1)),t.startsWith("0b"))return n*parseInt(t.slice(2),2);if(t.startsWith("0x"))return n*parseInt(t.slice(2),16);if(t.includes(":")){let r=0;for(const i of t.split(":"))r=r*60+Number(i);return n*r}return t!=="0"&&t[0]==="0"?n*parseInt(t,8):n*parseInt(t,10)}function di(e){if(!fi.test(e))return H;const t=pi(e);return Number.isFinite(t)?t:H}var Pt=ee("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:di,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),hi=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),gi=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function mi(e){if(!hi.test(e))return H;let t=e.toLowerCase();const n=t[0]==="-"?-1:1;if("+-".includes(t[0])&&(t=t.slice(1)),t===".inf")return n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(t===".nan")return NaN;const r=n*parseFloat(t);return Number.isFinite(r)||gi.test(e)?r:H}function Ai(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";const t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace("e",".e"):t}var Wn=ee("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:mi,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:Ai}),yi=new RegExp("^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$"),Ei=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Si(e,t){if(t){if(!Ei.test(e))return H;let r=e.toLowerCase();const i=r[0]==="-"?-1:1;if("+-".includes(r[0])&&(r=r.slice(1)),r===".inf")return i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(r===".nan")return NaN;const o=i*parseFloat(r);return Number.isFinite(o)?o:H}if(!yi.test(e))return H;const n=Number(e);return Number.isFinite(n)?n:H}function bi(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";const t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace("e",".e"):t}var Ci=ee("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:Si,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:bi}),Ti=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))$"),Ri=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function vi(e){if(!Ti.test(e))return H;let t=e.toLowerCase().replace(/_/g,"");const n=t[0]==="-"?-1:1;if("+-".includes(t[0])&&(t=t.slice(1)),t===".inf")return n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(t===".nan")return NaN;let r=0;if(t.includes(":")){for(const i of t.split(":"))r=r*60+Number(i);r*=n}else r=n*parseFloat(t);return Number.isFinite(r)||Ri.test(e)?r:H}function xi(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";const t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace("e",".e"):t}var Ft=ee("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:vi,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:xi}),Vn=ee("tag:yaml.org,2002:merge",{implicit:!0,implicitFirstChars:["<"],resolve:(e,t)=>e==="<<"||t&&e===""?Qt:H}),_i=/^[A-Za-z0-9+/]*={0,2}$/;function wi(e){const t=e.replace(/\s/g,"");if(t.length%4!==0||!_i.test(t))return H;const n=atob(t),r=new Uint8Array(n.length);for(let i=0;i<n.length;i++)r[i]=n.charCodeAt(i);return r}function Ii(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}var Xn=ee("tag:yaml.org,2002:binary",{resolve:wi,identify:e=>Object.prototype.toString.call(e)==="[object Uint8Array]",represent:Ii}),Ni=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Oi=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 An(e,t,n,r=0,i=0,o=0,a=0){const s=new Date(Date.UTC(e,t,n,r,i,o,a));return s.setUTCFullYear(e,t,n),s}function $i(e){let t=Ni.exec(e);if(t===null&&(t=Oi.exec(e)),t===null)return H;const n=+t[1],r=+t[2]-1,i=+t[3];if(!t[4]){const c=An(n,r,i);return c.getUTCFullYear()!==n||c.getUTCMonth()!==r||c.getUTCDate()!==i?H:c}const o=+t[4],a=+t[5],s=+t[6];let l=0;if(o>23||a>59||s>59)return H;if(t[7]){let c=t[7].slice(0,3);for(;c.length<3;)c+="0";l=+c}const u=An(n,r,i,o,a,s,l);if(u.getUTCFullYear()!==n||u.getUTCMonth()!==r||u.getUTCDate()!==i)return H;if(t[9]){const c=+t[10],E=+(t[11]||0);if(c>23||E>59)return H;const m=(c*60+E)*6e4;u.setTime(u.getTime()-(t[9]==="-"?-m:m))}return u}var ki=ee("tag:yaml.org,2002:timestamp",{implicit:!0,implicitFirstChars:[..."0123456789"],resolve:$i,identify:e=>e instanceof Date,represent:e=>e.toISOString()}),Li=Zt("tag:yaml.org,2002:seq",{create:()=>[],addItem:(e,t)=>{e.push(t)},identify:Array.isArray});function yt(e){if(e===null||typeof e!="object"||Array.isArray(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Ht(e,t){const n={};for(const r of t)e[r]!==void 0&&(n[r]=e[r]);return n}var zn=Zt("tag:yaml.org,2002:omap",{create:()=>({list:[],seen:new Set}),addItem:(e,t)=>{let n;if(t instanceof Map){if(t.size!==1)return"cannot resolve an ordered map item";n=t.keys().next().value}else if(yt(t)){const r=Object.keys(t);if(r.length!==1)return"cannot resolve an ordered map item";n=r[0]}else return"cannot resolve an ordered map item";return e.seen.has(n)?"duplicate key in ordered map":(e.seen.add(n),e.list.push(t),"")},finalize:e=>e.list}),Qn=Zt("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";const n=t,r=Object.keys(n);return r.length!==1?"cannot resolve a pairs item":(e.push([r[0],n[r[0]]]),"")}}),Pi=At("tag:yaml.org,2002:map",{create:()=>({}),identify:yt,represent:e=>{const t=new Map;for(const n of Object.keys(e))t.set(n,e[n]);return t},addPair:(e,t,n)=>{if(t!==null&&typeof t=="object")return"object-based map does not support complex keys";const r=String(t);return r==="__proto__"?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,""},has:(e,t)=>t!==null&&typeof t=="object"?!1:Object.prototype.hasOwnProperty.call(e,String(t)),keys:e=>Object.keys(e),get:(e,t)=>{const n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?e[n]:null}}),Zn=At("tag:yaml.org,2002:set",{create:()=>new Set,identify:e=>e instanceof Set,represent:e=>{const t=new Map;for(const n of e)t.set(n,null);return t},addPair:(e,t,n)=>n!==null?"cannot resolve a set item":(e.add(t),""),has:(e,t)=>e.has(t),keys:e=>e.keys(),get:()=>null});function Fi(){return{scalar:Object.create(null),sequence:Object.create(null),mapping:Object.create(null)}}function Hi(){return{scalar:[],sequence:[],mapping:[]}}function Mi(e){const t=[];for(const n of e){let r=t.length;for(let i=0;i<t.length;i++){const o=t[i];if(o.nodeKind===n.nodeKind&&o.tagName===n.tagName&&o.matchByTagPrefix===n.matchByTagPrefix){r=i;break}}t[r]=n}return t}var Et=class Jn{tags;implicitScalarTags;implicitScalarByFirstChar;implicitScalarAnyFirstChar;defaultScalarTag;defaultSequenceTag;defaultMappingTag;exact;prefix;constructor(t){const n=Mi(t),r=[],i=Fi(),o=Hi();for(const c of n){if(c.nodeKind==="scalar"&&c.implicit){if(c.matchByTagPrefix)throw new Error("Implicit scalar tags cannot match by tag prefix");r.push(c)}switch(c.nodeKind){case"scalar":c.matchByTagPrefix?o.scalar.push(c):i.scalar[c.tagName]=c;break;case"sequence":c.matchByTagPrefix?o.sequence.push(c):i.sequence[c.tagName]=c;break;case"mapping":c.matchByTagPrefix?o.mapping.push(c):i.mapping[c.tagName]=c;break}}const a=r.filter(c=>c.implicitFirstChars===null),s=new Set;for(const c of r)if(c.implicitFirstChars!==null)for(const E of c.implicitFirstChars)s.add(E);const l=new Map;for(const c of s)l.set(c,r.filter(E=>E.implicitFirstChars===null||E.implicitFirstChars.indexOf(c)!==-1));const u=i.scalar["tag:yaml.org,2002:str"];if(!u)throw new Error("schema does not define the default scalar tag (tag:yaml.org,2002:str)");this.tags=n,this.implicitScalarTags=r,this.implicitScalarByFirstChar=l,this.implicitScalarAnyFirstChar=a,this.defaultScalarTag=u,this.defaultSequenceTag=i.sequence["tag:yaml.org,2002:seq"],this.defaultMappingTag=i.mapping["tag:yaml.org,2002:map"],this.exact=i,this.prefix=o}withTags(...t){let n=[];for(const r of t)n=n.concat(r);return new Jn([...this.tags,...n])}},Jt=new Et([Ur,Li,Pi]);new Et([...Jt.tags,Gr,Zr,ui,Ci]);var er=new Et([...Jt.tags,qr,Xr,jn,Wn]),Bi=new Et([...Jt.tags,jr,ti,Pt,Ft,ki,Vn,Xn,zn,Qn,Zn]);At("tag:yaml.org,2002:map",{create:()=>new Map,addPair:(e,t,n)=>(e.set(t,n),""),has:(e,t)=>e.has(t),keys:e=>e.keys(),get:(e,t)=>e.get(t),identify:e=>e instanceof Map||yt(e),represent:e=>{if(e instanceof Map)return e;const t=new Map,n=e;for(const r of Object.keys(n))t.set(r,n[r]);return t}});function yn(e){if(Array.isArray(e)){const t=Array.prototype.slice.call(e);for(let n=0;n<t.length;n++){if(Array.isArray(t[n]))return null;typeof t[n]=="object"&&Object.prototype.toString.call(t[n])==="[object Object]"&&(t[n]="[object Object]")}return String(t)}return typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"?"[object Object]":String(e)}At("tag:yaml.org,2002:map",{create:()=>({}),identify:yt,represent:e=>{const t=new Map;for(const n of Object.keys(e))t.set(n,e[n]);return t},addPair:(e,t,n)=>{const r=yn(t);return r===null?"nested arrays are not supported inside keys":(r==="__proto__"?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,"")},has:(e,t)=>{const n=yn(t);return n!==null&&Object.prototype.hasOwnProperty.call(e,n)},keys:e=>Object.keys(e),get:(e,t)=>{const n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?e[n]:null}});var Di={maxLength:79,indent:1,linesBefore:3,linesAfter:2};function It(e,t,n,r,i){let o="",a="";const s=Math.floor(i/2)-1;return r-t>s&&(o=" ... ",t=r-s+o.length),n-r>s&&(a=" ...",n=r+s-a.length),{str:o+e.slice(t,n).replace(/\t/g,"→")+a,pos:r-t+o.length}}function Nt(e,t){return" ".repeat(Math.max(t-e.length,0))+e}function Ui(e,t){if(!e.buffer)return null;const n={...Di,...t},r=/\r?\n|\r|\0/g,i=[0],o=[];let a,s=-1;for(;a=r.exec(e.buffer);)o.push(a.index),i.push(a.index+a[0].length),e.position<=a.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);let l="";const u=Math.min(e.line+n.linesAfter,o.length).toString().length,c=n.maxLength-(n.indent+u+3);for(let m=1;m<=n.linesBefore&&!(s-m<0);m++){const b=It(e.buffer,i[s-m],o[s-m],e.position-(i[s]-i[s-m]),c);l=`${" ".repeat(n.indent)}${Nt((e.line-m+1).toString(),u)} | ${b.str}
|
|
1
|
+
"use strict";const se=require("./replay-index-54ROnLOe.js");function Hn(e){return!!e}var Tt={},Rt,fn;function gt(){if(fn)return Rt;fn=1;const e="\\\\/",t=`[^${e}]`,n=0,r="\\.",i="\\+",o="\\?",a="\\/",s="(?=.)",l="[^/]",u=`(?:${a}|$)`,c=`(?:^|${a})`,E=`${r}{1,2}${u}`,m=`(?!${r})`,b=`(?!${c}${E})`,S=`(?!${r}{0,1}${u})`,w=`(?!${E})`,M=`[^.${a}]`,N=`${l}*?`,y={DOT_LITERAL:r,PLUS_LITERAL:i,QMARK_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:s,QMARK:l,END_ANCHOR:u,DOTS_SLASH:E,NO_DOT:m,NO_DOTS:b,NO_DOT_SLASH:S,NO_DOTS_SLASH:w,QMARK_NO_DOT:M,STAR:N,START_ANCHOR:c,SEP:"/"},v={...y,SLASH_LITERAL:`[${e}]`,QMARK:t,STAR:`${t}*?`,DOTS_SLASH:`${r}{1,2}(?:[${e}]|$)`,NO_DOT:`(?!${r})`,NO_DOTS:`(?!(?:^|[${e}])${r}{1,2}(?:[${e}]|$))`,NO_DOT_SLASH:`(?!${r}{0,1}(?:[${e}]|$))`,NO_DOTS_SLASH:`(?!${r}{1,2}(?:[${e}]|$))`,QMARK_NO_DOT:`[^.${e}]`,START_ANCHOR:`(?:^|[${e}])`,END_ANCHOR:`(?:[${e}]|$)`,SEP:"\\"},f={__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"};return Rt={DEFAULT_MAX_EXTGLOB_RECURSION:n,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:f,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(I){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${I.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(I){return I===!0?v:y}},Rt}var pn;function mt(){return pn||(pn=1,(function(e){const{REGEX_BACKSLASH:t,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:r,REGEX_SPECIAL_CHARS_GLOBAL:i}=gt();e.isObject=o=>o!==null&&typeof o=="object"&&!Array.isArray(o),e.hasRegexChars=o=>r.test(o),e.isRegexChar=o=>o.length===1&&e.hasRegexChars(o),e.escapeRegex=o=>o.replace(i,"\\$1"),e.toPosixSlashes=o=>o.replace(t,"/"),e.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){const o=navigator.platform.toLowerCase();return o==="win32"||o==="windows"}return typeof process<"u"&&process.platform?process.platform==="win32":!1},e.removeBackslashes=o=>o.replace(n,a=>a==="\\"?"":a),e.escapeLast=(o,a,s)=>{const l=o.lastIndexOf(a,s);return l===-1?o:o[l-1]==="\\"?e.escapeLast(o,a,l-1):`${o.slice(0,l)}\\${o.slice(l)}`},e.removePrefix=(o,a={})=>{let s=o;return s.startsWith("./")&&(s=s.slice(2),a.prefix="./"),s},e.wrapOutput=(o,a={},s={})=>{const l=s.contains?"":"^",u=s.contains?"":"$";let c=`${l}(?:${o})${u}`;return a.negated===!0&&(c=`(?:^(?!${c}).*$)`),c},e.basename=(o,{windows:a}={})=>{const s=o.split(a?/[\\/]/:"/"),l=s[s.length-1];return l===""?s[s.length-2]:l}})(Tt)),Tt}var vt,dn;function Rr(){if(dn)return vt;dn=1;const e=mt(),{CHAR_ASTERISK:t,CHAR_AT:n,CHAR_BACKWARD_SLASH:r,CHAR_COMMA:i,CHAR_DOT:o,CHAR_EXCLAMATION_MARK:a,CHAR_FORWARD_SLASH:s,CHAR_LEFT_CURLY_BRACE:l,CHAR_LEFT_PARENTHESES:u,CHAR_LEFT_SQUARE_BRACKET:c,CHAR_PLUS:E,CHAR_QUESTION_MARK:m,CHAR_RIGHT_CURLY_BRACE:b,CHAR_RIGHT_PARENTHESES:S,CHAR_RIGHT_SQUARE_BRACKET:w}=gt(),M=y=>y===s||y===r,N=y=>{y.isPrefix!==!0&&(y.depth=y.isGlobstar?1/0:1)};return vt=(y,v)=>{const f=v||{},I=y.length-1,R=f.parts===!0||f.scanToEnd===!0,A=[],g=[],x=[];let j=y,k=-1,q=0,ue=0,le=!1,he=!1,W=!1,Ee=!1,we=!1,ge=!1,U=!1,me=!1,Ie=!1,ne=!1,J=0,ce,O,F={value:"",depth:0,isGlob:!1};const h=()=>k>=I,ae=()=>j.charCodeAt(k+1),z=()=>(ce=O,j.charCodeAt(++k));for(;k<I;){O=z();let D;if(O===r){U=F.backslashes=!0,O=z(),O===l&&(ge=!0);continue}if(ge===!0||O===l){for(J++;h()!==!0&&(O=z());){if(O===r){U=F.backslashes=!0,z();continue}if(O===l){J++;continue}if(ge!==!0&&O===o&&(O=z())===o){if(le=F.isBrace=!0,W=F.isGlob=!0,ne=!0,R===!0)continue;break}if(ge!==!0&&O===i){if(le=F.isBrace=!0,W=F.isGlob=!0,ne=!0,R===!0)continue;break}if(O===b&&(J--,J===0)){ge=!1,le=F.isBrace=!0,ne=!0;break}}if(R===!0)continue;break}if(O===s){if(A.push(k),g.push(F),F={value:"",depth:0,isGlob:!1},ne===!0)continue;if(ce===o&&k===q+1){q+=2;continue}ue=k+1;continue}if(f.noext!==!0&&(O===E||O===n||O===t||O===m||O===a)===!0&&ae()===u){if(W=F.isGlob=!0,Ee=F.isExtglob=!0,ne=!0,O===a&&k===q&&(Ie=!0),R===!0){for(;h()!==!0&&(O=z());){if(O===r){U=F.backslashes=!0,O=z();continue}if(O===S){W=F.isGlob=!0,ne=!0;break}}continue}break}if(O===t){if(ce===t&&(we=F.isGlobstar=!0),W=F.isGlob=!0,ne=!0,R===!0)continue;break}if(O===m){if(W=F.isGlob=!0,ne=!0,R===!0)continue;break}if(O===c){for(;h()!==!0&&(D=z());){if(D===r){U=F.backslashes=!0,z();continue}if(D===w){he=F.isBracket=!0,W=F.isGlob=!0,ne=!0;break}}if(R===!0)continue;break}if(f.nonegate!==!0&&O===a&&k===q){me=F.negated=!0,q++;continue}if(f.noparen!==!0&&O===u){if(W=F.isGlob=!0,R===!0){for(;h()!==!0&&(O=z());){if(O===u){U=F.backslashes=!0,O=z();continue}if(O===S){ne=!0;break}}continue}break}if(W===!0){if(ne=!0,R===!0)continue;break}}f.noext===!0&&(Ee=!1,W=!1);let X=j,d="",p="";q>0&&(d=j.slice(0,q),j=j.slice(q),ue-=q),X&&W===!0&&ue>0?(X=j.slice(0,ue),p=j.slice(ue)):W===!0?(X="",p=j):X=j,X&&X!==""&&X!=="/"&&X!==j&&M(X.charCodeAt(X.length-1))&&(X=X.slice(0,-1)),f.unescape===!0&&(p&&(p=e.removeBackslashes(p)),X&&U===!0&&(X=e.removeBackslashes(X)));const fe={prefix:d,input:y,start:q,base:X,glob:p,isBrace:le,isBracket:he,isGlob:W,isExtglob:Ee,isGlobstar:we,negated:me,negatedExtglob:Ie};if(f.tokens===!0&&(fe.maxDepth=0,M(O)||g.push(F),fe.tokens=g),f.parts===!0||f.tokens===!0){let D;for(let V=0;V<A.length;V++){const Se=D?D+1:q,pe=A[V],Re=y.slice(Se,pe);f.tokens&&(V===0&&q!==0?(g[V].isPrefix=!0,g[V].value=d):g[V].value=Re,N(g[V]),fe.maxDepth+=g[V].depth),(V!==0||Re!=="")&&x.push(Re),D=pe}if(D&&D+1<y.length){const V=y.slice(D+1);x.push(V),f.tokens&&(g[g.length-1].value=V,N(g[g.length-1]),fe.maxDepth+=g[g.length-1].depth)}fe.slashes=A,fe.parts=x}return fe},vt}var xt,hn;function vr(){if(hn)return xt;hn=1;const e=gt(),t=mt(),{MAX_LENGTH:n,POSIX_REGEX_SOURCE:r,REGEX_NON_SPECIAL_CHARS:i,REGEX_SPECIAL_CHARS_BACKREF:o,REPLACEMENTS:a}=e,s=(y,v)=>{if(typeof v.expandRange=="function")return v.expandRange(...y,v);y.sort();const f=`[${y.join("-")}]`;try{new RegExp(f)}catch{return y.map(R=>t.escapeRegex(R)).join("..")}return f},l=(y,v)=>`Missing ${y}: "${v}" - use "\\\\${v}" to match literal characters`,u=y=>{const v=[];let f=0,I=0,R=0,A="",g=!1;for(const x of y){if(g===!0){A+=x,g=!1;continue}if(x==="\\"){A+=x,g=!0;continue}if(x==='"'){R=R===1?0:1,A+=x;continue}if(R===0){if(x==="[")f++;else if(x==="]"&&f>0)f--;else if(f===0){if(x==="(")I++;else if(x===")"&&I>0)I--;else if(x==="|"&&I===0){v.push(A),A="";continue}}}A+=x}return v.push(A),v},c=y=>{let v=!1;for(const f of y){if(v===!0){v=!1;continue}if(f==="\\"){v=!0;continue}if(/[?*+@!()[\]{}]/.test(f))return!1}return!0},E=y=>{let v=y.trim(),f=!0;for(;f===!0;)f=!1,/^@\([^\\()[\]{}|]+\)$/.test(v)&&(v=v.slice(2,-1),f=!0);if(c(v))return v.replace(/\\(.)/g,"$1")},m=y=>{const v=y.map(E).filter(Boolean);for(let f=0;f<v.length;f++)for(let I=f+1;I<v.length;I++){const R=v[f],A=v[I],g=R[0];if(!(!g||R!==g.repeat(R.length)||A!==g.repeat(A.length))&&(R===A||R.startsWith(A)||A.startsWith(R)))return!0}return!1},b=(y,v=!0)=>{if(y[0]!=="+"&&y[0]!=="*"||y[1]!=="(")return;let f=0,I=0,R=0,A=!1;for(let g=1;g<y.length;g++){const x=y[g];if(A===!0){A=!1;continue}if(x==="\\"){A=!0;continue}if(x==='"'){R=R===1?0:1;continue}if(R!==1){if(x==="["){f++;continue}if(x==="]"&&f>0){f--;continue}if(!(f>0)){if(x==="("){I++;continue}if(x===")"&&(I--,I===0))return v===!0&&g!==y.length-1?void 0:{type:y[0],body:y.slice(2,g),end:g}}}}},S=y=>`${y.length===1?t.escapeRegex(y[0]):`[${y.map(f=>t.escapeRegex(f)).join("")}]`}*`,w=y=>{let v=0;const f=[];for(;v<y.length;){const I=b(y.slice(v),!1);if(!I||I.type!=="*")return;const R=u(I.body).map(g=>g.trim());if(R.length!==1)return;const A=E(R[0]);if(!A||A.length!==1)return;f.push(A),v+=I.end+1}if(!(f.length<1))return f},M=y=>{let v=0,f=y.trim(),I=b(f);for(;I;)v++,f=I.body.trim(),I=b(f);return v},N=(y,v)=>{if(v.maxExtglobRecursion===!1)return{risky:!1};const f=typeof v.maxExtglobRecursion=="number"?v.maxExtglobRecursion:e.DEFAULT_MAX_EXTGLOB_RECURSION,I=u(y).map(x=>x.trim());if(I.length>1&&(I.some(x=>x==="")||I.some(x=>/^[*?]+$/.test(x))||m(I)))return{risky:!0};const R=[];let A=!1,g=!0;for(const x of I){const j=w(x);if(j){A=!0,R.push(...j);continue}const k=E(x);if(k&&k.length===1){R.push(k);continue}if(g=!1,M(x)>f)return{risky:!0}}return A?g?{risky:!0,safeOutput:S([...new Set(R)])}:{risky:!0}:{risky:!1}},$=(y,v)=>{if(typeof y!="string")throw new TypeError("Expected a string");y=a[y]||y;const f={...v},I=typeof f.maxLength=="number"?Math.min(n,f.maxLength):n;let R=y.length;if(R>I)throw new SyntaxError(`Input length: ${R}, exceeds maximum allowed length: ${I}`);const A={type:"bos",value:"",output:f.prepend||""},g=[A],x=f.capture?"":"?:",j=e.globChars(f.windows),k=e.extglobChars(j),{DOT_LITERAL:q,PLUS_LITERAL:ue,SLASH_LITERAL:le,ONE_CHAR:he,DOTS_SLASH:W,NO_DOT:Ee,NO_DOT_SLASH:we,NO_DOTS_SLASH:ge,QMARK:U,QMARK_NO_DOT:me,STAR:Ie,START_ANCHOR:ne}=j,J=T=>`(${x}(?:(?!${ne}${T.dot?W:q}).)*?)`,ce=f.dot?"":Ee,O=f.dot?U:me;let F=f.bash===!0?J(f):Ie;f.capture&&(F=`(${F})`),typeof f.noext=="boolean"&&(f.noextglob=f.noext);const h={input:y,index:-1,start:0,dot:f.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:g};y=t.removePrefix(y,h),R=y.length;const ae=[],z=[],X=[];let d=A,p;const fe=()=>h.index===R-1,D=h.peek=(T=1)=>y[h.index+T],V=h.advance=()=>y[++h.index]||"",Se=()=>y.slice(h.index+1),pe=(T="",Y=0)=>{h.consumed+=T,h.index+=Y},Re=T=>{h.output+=T.output!=null?T.output:T.value,pe(T.value)},Cr=()=>{let T=1;for(;D()==="!"&&(D(2)!=="("||D(3)==="?");)V(),h.start++,T++;return T%2===0?!1:(h.negated=!0,h.start++,!0)},rt=T=>{h[T]++,X.push(T)},ve=T=>{h[T]--,X.pop()},L=T=>{if(d.type==="globstar"){const Y=h.braces>0&&(T.type==="comma"||T.type==="brace"),C=T.extglob===!0||ae.length&&(T.type==="pipe"||T.type==="paren");T.type!=="slash"&&T.type!=="paren"&&!Y&&!C&&(h.output=h.output.slice(0,-d.output.length),d.type="star",d.value="*",d.output=F,h.output+=d.output)}if(ae.length&&T.type!=="paren"&&(ae[ae.length-1].inner+=T.value),(T.value||T.output)&&Re(T),d&&d.type==="text"&&T.type==="text"){d.output=(d.output||d.value)+T.value,d.value+=T.value;return}T.prev=d,g.push(T),d=T},it=(T,Y)=>{const C={...k[Y],conditions:1,inner:""};C.prev=d,C.parens=h.parens,C.output=h.output,C.startIndex=h.index,C.tokensIndex=g.length;const P=(f.capture?"(":"")+C.open;rt("parens"),L({type:T,value:Y,output:h.output?"":he}),L({type:"paren",extglob:!0,value:V(),output:P}),ae.push(C)},Tr=T=>{const Y=y.slice(T.startIndex,h.index+1),C=y.slice(T.startIndex+2,h.index),P=N(C,f);if((T.type==="plus"||T.type==="star")&&P.risky){const K=P.safeOutput?(T.output?"":he)+(f.capture?`(${P.safeOutput})`:P.safeOutput):void 0,Ae=g[T.tokensIndex];Ae.type="text",Ae.value=Y,Ae.output=K||t.escapeRegex(Y);for(let ye=T.tokensIndex+1;ye<g.length;ye++)g[ye].value="",g[ye].output="",delete g[ye].suffix;h.output=T.output+Ae.output,h.backtrack=!0,L({type:"paren",extglob:!0,value:p,output:""}),ve("parens");return}let G=T.close+(f.capture?")":""),Q;if(T.type==="negate"){let K=F;if(T.inner&&T.inner.length>1&&T.inner.includes("/")&&(K=J(f)),(K!==F||fe()||/^\)+$/.test(Se()))&&(G=T.close=`)$))${K}`),T.inner.includes("*")&&(Q=Se())&&/^\.[^\\/.]+$/.test(Q)){const Ae=$(Q,{...v,fastpaths:!1}).output;G=T.close=`)${Ae})${K})`}T.prev.type==="bos"&&(h.negatedExtglob=!0)}L({type:"paren",extglob:!0,value:p,output:G}),ve("parens")};if(f.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(y)){let T=!1,Y=y.replace(o,(C,P,G,Q,K,Ae)=>Q==="\\"?(T=!0,C):Q==="?"?P?P+Q+(K?U.repeat(K.length):""):Ae===0?O+(K?U.repeat(K.length):""):U.repeat(G.length):Q==="."?q.repeat(G.length):Q==="*"?P?P+Q+(K?F:""):F:P?C:`\\${C}`);return T===!0&&(f.unescape===!0?Y=Y.replace(/\\/g,""):Y=Y.replace(/\\+/g,C=>C.length%2===0?"\\\\":C?"\\":"")),Y===y&&f.contains===!0?(h.output=y,h):(h.output=t.wrapOutput(Y,h,v),h)}for(;!fe();){if(p=V(),p==="\0")continue;if(p==="\\"){const C=D();if(C==="/"&&f.bash!==!0||C==="."||C===";")continue;if(!C){p+="\\",L({type:"text",value:p});continue}const P=/^\\+/.exec(Se());let G=0;if(P&&P[0].length>2&&(G=P[0].length,h.index+=G,G%2!==0&&(p+="\\")),f.unescape===!0?p=V():p+=V(),h.brackets===0){L({type:"text",value:p});continue}}if(h.brackets>0&&(p!=="]"||d.value==="["||d.value==="[^")){if(f.posix!==!1&&p===":"){const C=d.value.slice(1);if(C.includes("[")&&(d.posix=!0,C.includes(":"))){const P=d.value.lastIndexOf("["),G=d.value.slice(0,P),Q=d.value.slice(P+2),K=r[Q];if(K){d.value=G+K,h.backtrack=!0,V(),!A.output&&g.indexOf(d)===1&&(A.output=he);continue}}}(p==="["&&D()!==":"||p==="-"&&D()==="]")&&(p=`\\${p}`),p==="]"&&(d.value==="["||d.value==="[^")&&(p=`\\${p}`),f.posix===!0&&p==="!"&&d.value==="["&&(p="^"),d.value+=p,Re({value:p});continue}if(h.quotes===1&&p!=='"'){p=t.escapeRegex(p),d.value+=p,Re({value:p});continue}if(p==='"'){h.quotes=h.quotes===1?0:1,f.keepQuotes===!0&&L({type:"text",value:p});continue}if(p==="("){rt("parens"),L({type:"paren",value:p});continue}if(p===")"){if(h.parens===0&&f.strictBrackets===!0)throw new SyntaxError(l("opening","("));const C=ae[ae.length-1];if(C&&h.parens===C.parens+1){Tr(ae.pop());continue}L({type:"paren",value:p,output:h.parens?")":"\\)"}),ve("parens");continue}if(p==="["){if(f.nobracket===!0||!Se().includes("]")){if(f.nobracket!==!0&&f.strictBrackets===!0)throw new SyntaxError(l("closing","]"));p=`\\${p}`}else rt("brackets");L({type:"bracket",value:p});continue}if(p==="]"){if(f.nobracket===!0||d&&d.type==="bracket"&&d.value.length===1){L({type:"text",value:p,output:`\\${p}`});continue}if(h.brackets===0){if(f.strictBrackets===!0)throw new SyntaxError(l("opening","["));L({type:"text",value:p,output:`\\${p}`});continue}ve("brackets");const C=d.value.slice(1);if(d.posix!==!0&&C[0]==="^"&&!C.includes("/")&&(p=`/${p}`),d.value+=p,Re({value:p}),f.literalBrackets===!1||t.hasRegexChars(C))continue;const P=t.escapeRegex(d.value);if(h.output=h.output.slice(0,-d.value.length),f.literalBrackets===!0){h.output+=P,d.value=P;continue}d.value=`(${x}${P}|${d.value})`,h.output+=d.value;continue}if(p==="{"&&f.nobrace!==!0){rt("braces");const C={type:"brace",value:p,output:"(",outputIndex:h.output.length,tokensIndex:h.tokens.length};z.push(C),L(C);continue}if(p==="}"){const C=z[z.length-1];if(f.nobrace===!0||!C){L({type:"text",value:p,output:p});continue}let P=")";if(C.dots===!0){const G=g.slice(),Q=[];for(let K=G.length-1;K>=0&&(g.pop(),G[K].type!=="brace");K--)G[K].type!=="dots"&&Q.unshift(G[K].value);P=s(Q,f),h.backtrack=!0}if(C.comma!==!0&&C.dots!==!0){const G=h.output.slice(0,C.outputIndex),Q=h.tokens.slice(C.tokensIndex);C.value=C.output="\\{",p=P="\\}",h.output=G;for(const K of Q)h.output+=K.output||K.value}L({type:"brace",value:p,output:P}),ve("braces"),z.pop();continue}if(p==="|"){ae.length>0&&ae[ae.length-1].conditions++,L({type:"text",value:p});continue}if(p===","){let C=p;const P=z[z.length-1];P&&X[X.length-1]==="braces"&&(P.comma=!0,C="|"),L({type:"comma",value:p,output:C});continue}if(p==="/"){if(d.type==="dot"&&h.index===h.start+1){h.start=h.index+1,h.consumed="",h.output="",g.pop(),d=A;continue}L({type:"slash",value:p,output:le});continue}if(p==="."){if(h.braces>0&&d.type==="dot"){d.value==="."&&(d.output=q);const C=z[z.length-1];d.type="dots",d.output+=p,d.value+=p,C.dots=!0;continue}if(h.braces+h.parens===0&&d.type!=="bos"&&d.type!=="slash"){L({type:"text",value:p,output:q});continue}L({type:"dot",value:p,output:q});continue}if(p==="?"){if(!(d&&d.value==="(")&&f.noextglob!==!0&&D()==="("&&D(2)!=="?"){it("qmark",p);continue}if(d&&d.type==="paren"){const P=D();let G=p;(d.value==="("&&!/[!=<:]/.test(P)||P==="<"&&!/<([!=]|\w+>)/.test(Se()))&&(G=`\\${p}`),L({type:"text",value:p,output:G});continue}if(f.dot!==!0&&(d.type==="slash"||d.type==="bos")){L({type:"qmark",value:p,output:me});continue}L({type:"qmark",value:p,output:U});continue}if(p==="!"){if(f.noextglob!==!0&&D()==="("&&(D(2)!=="?"||!/[!=<:]/.test(D(3)))){it("negate",p);continue}if(f.nonegate!==!0&&h.index===0){Cr();continue}}if(p==="+"){if(f.noextglob!==!0&&D()==="("&&D(2)!=="?"){it("plus",p);continue}if(d&&d.value==="("||f.regex===!1){L({type:"plus",value:p,output:ue});continue}if(d&&(d.type==="bracket"||d.type==="paren"||d.type==="brace")||h.parens>0){L({type:"plus",value:p});continue}L({type:"plus",value:ue});continue}if(p==="@"){if(f.noextglob!==!0&&D()==="("&&D(2)!=="?"){L({type:"at",extglob:!0,value:p,output:""});continue}L({type:"text",value:p});continue}if(p!=="*"){(p==="$"||p==="^")&&(p=`\\${p}`);const C=i.exec(Se());C&&(p+=C[0],h.index+=C[0].length),L({type:"text",value:p});continue}if(d&&(d.type==="globstar"||d.star===!0)){d.type="star",d.star=!0,d.value+=p,d.output=F,h.backtrack=!0,h.globstar=!0,pe(p);continue}let T=Se();if(f.noextglob!==!0&&/^\([^?]/.test(T)){it("star",p);continue}if(d.type==="star"){if(f.noglobstar===!0){pe(p);continue}const C=d.prev,P=C.prev,G=C.type==="slash"||C.type==="bos",Q=P&&(P.type==="star"||P.type==="globstar");if(f.bash===!0&&(!G||T[0]&&T[0]!=="/")){L({type:"star",value:p,output:""});continue}const K=h.braces>0&&(C.type==="comma"||C.type==="brace"),Ae=ae.length&&(C.type==="pipe"||C.type==="paren");if(!G&&C.type!=="paren"&&!K&&!Ae){L({type:"star",value:p,output:""});continue}for(;T.slice(0,3)==="/**";){const ye=y[h.index+4];if(ye&&ye!=="/")break;T=T.slice(3),pe("/**",3)}if(C.type==="bos"&&fe()){d.type="globstar",d.value+=p,d.output=J(f),h.output=d.output,h.globstar=!0,pe(p);continue}if(C.type==="slash"&&C.prev.type!=="bos"&&!Q&&fe()){h.output=h.output.slice(0,-(C.output+d.output).length),C.output=`(?:${C.output}`,d.type="globstar",d.output=J(f)+(f.strictSlashes?")":"|$)"),d.value+=p,h.globstar=!0,h.output+=C.output+d.output,pe(p);continue}if(C.type==="slash"&&C.prev.type!=="bos"&&T[0]==="/"){const ye=T[1]!==void 0?"|$":"";h.output=h.output.slice(0,-(C.output+d.output).length),C.output=`(?:${C.output}`,d.type="globstar",d.output=`${J(f)}${le}|${le}${ye})`,d.value+=p,h.output+=C.output+d.output,h.globstar=!0,pe(p+V()),L({type:"slash",value:"/",output:""});continue}if(C.type==="bos"&&T[0]==="/"){d.type="globstar",d.value+=p,d.output=`(?:^|${le}|${J(f)}${le})`,h.output=d.output,h.globstar=!0,pe(p+V()),L({type:"slash",value:"/",output:""});continue}h.output=h.output.slice(0,-d.output.length),d.type="globstar",d.output=J(f),d.value+=p,h.output+=d.output,h.globstar=!0,pe(p);continue}const Y={type:"star",value:p,output:F};if(f.bash===!0){Y.output=".*?",(d.type==="bos"||d.type==="slash")&&(Y.output=ce+Y.output),L(Y);continue}if(d&&(d.type==="bracket"||d.type==="paren")&&f.regex===!0){Y.output=p,L(Y);continue}(h.index===h.start||d.type==="slash"||d.type==="dot")&&(d.type==="dot"?(h.output+=we,d.output+=we):f.dot===!0?(h.output+=ge,d.output+=ge):(h.output+=ce,d.output+=ce),D()!=="*"&&(h.output+=he,d.output+=he)),L(Y)}for(;h.brackets>0;){if(f.strictBrackets===!0)throw new SyntaxError(l("closing","]"));h.output=t.escapeLast(h.output,"["),ve("brackets")}for(;h.parens>0;){if(f.strictBrackets===!0)throw new SyntaxError(l("closing",")"));h.output=t.escapeLast(h.output,"("),ve("parens")}for(;h.braces>0;){if(f.strictBrackets===!0)throw new SyntaxError(l("closing","}"));h.output=t.escapeLast(h.output,"{"),ve("braces")}if(f.strictSlashes!==!0&&(d.type==="star"||d.type==="bracket")&&L({type:"maybe_slash",value:"",output:`${le}?`}),h.backtrack===!0){h.output="";for(const T of h.tokens)h.output+=T.output!=null?T.output:T.value,T.suffix&&(h.output+=T.suffix)}return h};return $.fastpaths=(y,v)=>{const f={...v},I=typeof f.maxLength=="number"?Math.min(n,f.maxLength):n,R=y.length;if(R>I)throw new SyntaxError(`Input length: ${R}, exceeds maximum allowed length: ${I}`);y=a[y]||y;const{DOT_LITERAL:A,SLASH_LITERAL:g,ONE_CHAR:x,DOTS_SLASH:j,NO_DOT:k,NO_DOTS:q,NO_DOTS_SLASH:ue,STAR:le,START_ANCHOR:he}=e.globChars(f.windows),W=f.dot?q:k,Ee=f.dot?ue:k,we=f.capture?"":"?:",ge={negated:!1,prefix:""};let U=f.bash===!0?".*?":le;f.capture&&(U=`(${U})`);const me=ce=>ce.noglobstar===!0?U:`(${we}(?:(?!${he}${ce.dot?j:A}).)*?)`,Ie=ce=>{switch(ce){case"*":return`${W}${x}${U}`;case".*":return`${A}${x}${U}`;case"*.*":return`${W}${U}${A}${x}${U}`;case"*/*":return`${W}${U}${g}${x}${Ee}${U}`;case"**":return W+me(f);case"**/*":return`(?:${W}${me(f)}${g})?${Ee}${x}${U}`;case"**/*.*":return`(?:${W}${me(f)}${g})?${Ee}${U}${A}${x}${U}`;case"**/.*":return`(?:${W}${me(f)}${g})?${A}${x}${U}`;default:{const O=/^(.*?)\.(\w+)$/.exec(ce);if(!O)return;const F=Ie(O[1]);return F?F+A+O[2]:void 0}}},ne=t.removePrefix(y,ge);let J=Ie(ne);return J&&f.strictSlashes!==!0&&(J+=`${g}?`),J},xt=$,xt}var _t,gn;function xr(){if(gn)return _t;gn=1;const e=Rr(),t=vr(),n=mt(),r=gt(),i=a=>a&&typeof a=="object"&&!Array.isArray(a),o=(a,s,l=!1)=>{if(Array.isArray(a)){const M=a.map($=>o($,s,l));return $=>{for(const y of M){const v=y($);if(v)return v}return!1}}const u=i(a)&&a.tokens&&a.input;if(a===""||typeof a!="string"&&!u)throw new TypeError("Expected pattern to be a non-empty string");const c=s||{},E=c.windows,m=u?o.compileRe(a,s):o.makeRe(a,s,!1,!0),b=m.state;delete m.state;let S=()=>!1;if(c.ignore){const M={...s,ignore:null,onMatch:null,onResult:null};S=o(c.ignore,M,l)}const w=(M,N=!1)=>{const{isMatch:$,match:y,output:v}=o.test(M,m,s,{glob:a,posix:E}),f={glob:a,state:b,regex:m,posix:E,input:M,output:v,match:y,isMatch:$};return typeof c.onResult=="function"&&c.onResult(f),$===!1?(f.isMatch=!1,N?f:!1):S(M)?(typeof c.onIgnore=="function"&&c.onIgnore(f),f.isMatch=!1,N?f:!1):(typeof c.onMatch=="function"&&c.onMatch(f),N?f:!0)};return l&&(w.state=b),w};return o.test=(a,s,l,{glob:u,posix:c}={})=>{if(typeof a!="string")throw new TypeError("Expected input to be a string");if(a==="")return{isMatch:!1,output:""};const E=l||{},m=E.format||(c?n.toPosixSlashes:null);let b=a===u,S=b&&m?m(a):a;return b===!1&&(S=m?m(a):a,b=S===u),(b===!1||E.capture===!0)&&(E.matchBase===!0||E.basename===!0?b=o.matchBase(a,s,l,c):b=s.exec(S)),{isMatch:!!b,match:b,output:S}},o.matchBase=(a,s,l,u=l&&l.windows)=>(s instanceof RegExp?s:o.makeRe(s,l)).test(n.basename(a,{windows:u})),o.isMatch=(a,s,l)=>o(s,l)(a),o.parse=(a,s)=>Array.isArray(a)?a.map(l=>o.parse(l,s)):t(a,{...s,fastpaths:!1}),o.scan=(a,s)=>e(a,s),o.compileRe=(a,s,l=!1,u=!1)=>{if(l===!0)return a.output;const c=s||{},E=c.contains?"":"^",m=c.contains?"":"$";let b=`${E}(?:${a.output})${m}`;a&&a.negated===!0&&(b=`^(?!${b}).*$`);const S=o.toRegex(b,s);return u===!0&&(S.state=a),S},o.makeRe=(a,s={},l=!1,u=!1)=>{if(!a||typeof a!="string")throw new TypeError("Expected a non-empty string");let c={negated:!1,fastpaths:!0};return s.fastpaths!==!1&&(a[0]==="."||a[0]==="*")&&(c.output=t.fastpaths(a,s)),c.output||(c=t(a,s)),o.compileRe(c,s,l,u)},o.toRegex=(a,s)=>{try{const l=s||{};return new RegExp(a,l.flags||(l.nocase?"i":""))}catch(l){if(s&&s.debug===!0)throw l;return/$^/}},o.constants=r,_t=o,_t}var wt,mn;function _r(){if(mn)return wt;mn=1;const e=xr(),t=mt();function n(r,i,o=!1){return i&&(i.windows===null||i.windows===void 0)&&(i={...i,windows:t.isWindows()}),e(r,i,o)}return Object.assign(n,e),wt=n,wt}var wr=_r();const Ir=se.getDefaultExportFromCjs(wr),Mn=typeof window<"u"||typeof process>"u"||process?.platform==="browser",Bn=Mn?{}:process.env||{};async function Dn(e,t){const n={};for(const i of t.headers)Nr(e,i.matches)&&(n[i.name]=i.envVariable!==void 0?Bn[i.envVariable]||"":i.value);const r=await(t.customFetch||fetch)(e,{headers:n});if(!r.ok)throw new Error(`Failed to load ${e}: ${r.status} ${r.statusText}`);return{body:await r.text(),mimeType:r.headers.get("content-type")}}function Nr(e,t){return t.match(/^https?:\/\//)||(e=e.replace(/^https?:\/\//,"")),Ir.isMatch(e,t)}function Or(e,t={}){return{name:`${e}List`,properties:{},items:e,...t}}function $r(e,t={}){return{name:`${e}Map`,properties:{},additionalProperties:()=>e,...t}}const je={name:"SpecExtension",properties:{},additionalProperties:{resolvable:!0}};function kr(e,t={}){const n={};for(const o of Object.keys(e))n[o]={...e[o],name:o};for(const o of Object.values(n))r(o);return n.SpecExtension=je,n;function r(o){if(o.additionalProperties&&(o.additionalProperties=i(o.additionalProperties)),o.items&&(o.items=i(o.items)),o.properties){const a={};for(const[s,l]of Object.entries(o.properties))a[s]=i(l),t.doNotResolveExamples&&l&&l.isExample&&(a[s]={...l,resolvable:!1});o.properties=a}}function i(o){if(typeof o=="string"){if(!n[o])throw new Error(`Unknown type name found: ${o}`);return n[o]}else return typeof o=="function"?(a,s)=>i(o(a,s)):We(o)?(o={...o},r(o),o):o?.directResolveAs!==void 0?{...o,directResolveAs:i(o.directResolveAs)??void 0}:o}}function We(e){return typeof e?.name=="string"}function be(e,t){return e===""&&(e="#/"),e[e.length-1]==="/"?e+t:e+"/"+t}function Ve(e){return se.isPlainObject(e)&&typeof e.$ref=="string"}function Un(e){return Ve(e)&&Object.keys(e).length>1}function Kn(e){return se.isPlainObject(e)&&typeof e.externalValue=="string"}class Qe{source;pointer;constructor(t,n){this.source=t,this.pointer=n}child(t){return new Qe(this.source,be(this.pointer,(Array.isArray(t)?t:[t]).map(Oe).join("/")))}key(){return Object.assign(Object.create(Qe.prototype),this,{reportOnKey:!0})}get absolutePointer(){return this.source.absoluteRef+(this.pointer==="#/"?"":this.pointer)}}function qn(e){const t=e.indexOf("~")===-1?e:e.replaceAll("~1","/").replaceAll("~0","~");try{return decodeURIComponent(t)}catch{return t}}function Oe(e){return typeof e=="number"||e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replaceAll("~","~0").replaceAll("/","~1")}function Gn(e){const[t,n=""]=e.split("#/");return{uri:(t.endsWith("#")?t.slice(0,-1):t)||null,pointer:Yn(n)}}function Yn(e){return e.split("/").map(qn).filter(Hn)}function Lr(e){const t=e.split("/");return t[t.length-1]}function Pr(e){const t=e.split(/[\/\\]/);return t[t.length-1].replace(/\.[^.]+$/,"")}function xe(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("file://")||e.startsWith("data:")}function Fr(e){return se.pathBrowserifyExports.extname(e)?xe(e)?e.substring(0,e.lastIndexOf("/")):se.pathBrowserifyExports.dirname(e):e}function Hr(e,t){return xe(e)?new URL(t,e.endsWith("/")?e:`${e}/`).href:se.pathBrowserifyExports.resolve(e,t)}function Mr(e){return typeof e=="string"&&(e.startsWith("#")||xe(e)||e.startsWith("./")||e.startsWith("../")||e.indexOf("/")>-1||/\.(ya?ml|json)$/i.test(e))}function Br(e){return/^#[A-Za-z][A-Za-z0-9\-_:.]*$/.test(e)}function Dr(e,t,n){if(!se.isPlainObject(t.node)&&n.parent){n.parent[n.key]=t.node;return}delete e.$ref,se.isPlainObject(t.node)&&Object.assign(e,{...t.node,...e})}var H=Symbol("NOT_RESOLVED"),Qt=Symbol("MERGE_KEY");function ee(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??(n=>String(n)),representTagName:t.representTagName??null}}function Zt(e,t){const n=t.finalize===void 0;return{tagName:e,nodeKind:"sequence",implicit:!1,matchByTagPrefix:t.matchByTagPrefix??!1,create:t.create,addItem:t.addItem,finalize:t.finalize??(r=>r),carrierIsResult:n,identify:t.identify??null,represent:t.represent??(r=>r),representTagName:t.representTagName??null}}function At(e,t){const n=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??(r=>r),carrierIsResult:n,identify:t.identify??null,represent:t.represent??(r=>r),representTagName:t.representTagName??null}}var Ur=ee("tag:yaml.org,2002:str",{resolve:e=>e,identify:e=>typeof e=="string"}),Kr=["","~","null","Null","NULL"],qr=ee("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:e=>Kr.indexOf(e)!==-1?null:H,identify:e=>e===null,represent:()=>"null"}),Gr=ee("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["n"],resolve:(e,t)=>e==="null"||t&&e===""?null:H,identify:e=>e===null,represent:()=>"null"}),Yr=["","~","null","Null","NULL"],jr=ee("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:e=>Yr.indexOf(e)!==-1?null:H,identify:e=>e===null,represent:()=>"null"}),Wr=["true","True","TRUE"],Vr=["false","False","FALSE"],Xr=ee("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","T","f","F"],resolve:e=>Wr.indexOf(e)!==-1?!0:Vr.indexOf(e)!==-1?!1:H,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),zr=["true"],Qr=["false"],Zr=ee("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","f"],resolve:e=>zr.indexOf(e)!==-1?!0:Qr.indexOf(e)!==-1?!1:H,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),Jr=["true","True","TRUE","y","Y","yes","Yes","YES","on","On","ON"],ei=["false","False","FALSE","n","N","no","No","NO","off","Off","OFF"],ti=ee("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["y","Y","n","N","t","T","f","F","o","O"],resolve:e=>Jr.indexOf(e)!==-1?!0:ei.indexOf(e)!==-1?!1:H,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),ni=new RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"),ri=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function ii(e){let t=e,n=1;return(t[0]==="-"||t[0]==="+")&&(t[0]==="-"&&(n=-1),t=t.slice(1)),t.startsWith("0b")?n*parseInt(t.slice(2),2):t.startsWith("0o")?n*parseInt(t.slice(2),8):t.startsWith("0x")?n*parseInt(t.slice(2),16):n*parseInt(t,10)}function oi(e,t){if(t){if(!ri.test(e))return H}else if(!ni.test(e))return H;const n=ii(e);return Number.isFinite(n)?n:H}var jn=ee("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:oi,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),ai=new RegExp("^-?(?:0|[1-9][0-9]*)$"),si=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function li(e){let t=e,n=1;return(t[0]==="-"||t[0]==="+")&&(t[0]==="-"&&(n=-1),t=t.slice(1)),t.startsWith("0b")?n*parseInt(t.slice(2),2):t.startsWith("0o")?n*parseInt(t.slice(2),8):t.startsWith("0x")?n*parseInt(t.slice(2),16):n*parseInt(t,10)}function ci(e,t){if(t){if(!si.test(e))return H}else if(!ai.test(e))return H;const n=li(e);return Number.isFinite(n)?n:H}var ui=ee("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:ci,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),fi=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 pi(e){let t=e.replace(/_/g,""),n=1;if((t[0]==="-"||t[0]==="+")&&(t[0]==="-"&&(n=-1),t=t.slice(1)),t.startsWith("0b"))return n*parseInt(t.slice(2),2);if(t.startsWith("0x"))return n*parseInt(t.slice(2),16);if(t.includes(":")){let r=0;for(const i of t.split(":"))r=r*60+Number(i);return n*r}return t!=="0"&&t[0]==="0"?n*parseInt(t,8):n*parseInt(t,10)}function di(e){if(!fi.test(e))return H;const t=pi(e);return Number.isFinite(t)?t:H}var Pt=ee("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:di,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),hi=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),gi=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function mi(e){if(!hi.test(e))return H;let t=e.toLowerCase();const n=t[0]==="-"?-1:1;if("+-".includes(t[0])&&(t=t.slice(1)),t===".inf")return n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(t===".nan")return NaN;const r=n*parseFloat(t);return Number.isFinite(r)||gi.test(e)?r:H}function Ai(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";const t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace("e",".e"):t}var Wn=ee("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:mi,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:Ai}),yi=new RegExp("^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$"),Ei=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Si(e,t){if(t){if(!Ei.test(e))return H;let r=e.toLowerCase();const i=r[0]==="-"?-1:1;if("+-".includes(r[0])&&(r=r.slice(1)),r===".inf")return i===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(r===".nan")return NaN;const o=i*parseFloat(r);return Number.isFinite(o)?o:H}if(!yi.test(e))return H;const n=Number(e);return Number.isFinite(n)?n:H}function bi(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";const t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace("e",".e"):t}var Ci=ee("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:Si,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:bi}),Ti=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))$"),Ri=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function vi(e){if(!Ti.test(e))return H;let t=e.toLowerCase().replace(/_/g,"");const n=t[0]==="-"?-1:1;if("+-".includes(t[0])&&(t=t.slice(1)),t===".inf")return n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(t===".nan")return NaN;let r=0;if(t.includes(":")){for(const i of t.split(":"))r=r*60+Number(i);r*=n}else r=n*parseFloat(t);return Number.isFinite(r)||Ri.test(e)?r:H}function xi(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";const t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace("e",".e"):t}var Ft=ee("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:vi,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:xi}),Vn=ee("tag:yaml.org,2002:merge",{implicit:!0,implicitFirstChars:["<"],resolve:(e,t)=>e==="<<"||t&&e===""?Qt:H}),_i=/^[A-Za-z0-9+/]*={0,2}$/;function wi(e){const t=e.replace(/\s/g,"");if(t.length%4!==0||!_i.test(t))return H;const n=atob(t),r=new Uint8Array(n.length);for(let i=0;i<n.length;i++)r[i]=n.charCodeAt(i);return r}function Ii(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}var Xn=ee("tag:yaml.org,2002:binary",{resolve:wi,identify:e=>Object.prototype.toString.call(e)==="[object Uint8Array]",represent:Ii}),Ni=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Oi=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 An(e,t,n,r=0,i=0,o=0,a=0){const s=new Date(Date.UTC(e,t,n,r,i,o,a));return s.setUTCFullYear(e,t,n),s}function $i(e){let t=Ni.exec(e);if(t===null&&(t=Oi.exec(e)),t===null)return H;const n=+t[1],r=+t[2]-1,i=+t[3];if(!t[4]){const c=An(n,r,i);return c.getUTCFullYear()!==n||c.getUTCMonth()!==r||c.getUTCDate()!==i?H:c}const o=+t[4],a=+t[5],s=+t[6];let l=0;if(o>23||a>59||s>59)return H;if(t[7]){let c=t[7].slice(0,3);for(;c.length<3;)c+="0";l=+c}const u=An(n,r,i,o,a,s,l);if(u.getUTCFullYear()!==n||u.getUTCMonth()!==r||u.getUTCDate()!==i)return H;if(t[9]){const c=+t[10],E=+(t[11]||0);if(c>23||E>59)return H;const m=(c*60+E)*6e4;u.setTime(u.getTime()-(t[9]==="-"?-m:m))}return u}var ki=ee("tag:yaml.org,2002:timestamp",{implicit:!0,implicitFirstChars:[..."0123456789"],resolve:$i,identify:e=>e instanceof Date,represent:e=>e.toISOString()}),Li=Zt("tag:yaml.org,2002:seq",{create:()=>[],addItem:(e,t)=>{e.push(t)},identify:Array.isArray});function yt(e){if(e===null||typeof e!="object"||Array.isArray(e))return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Ht(e,t){const n={};for(const r of t)e[r]!==void 0&&(n[r]=e[r]);return n}var zn=Zt("tag:yaml.org,2002:omap",{create:()=>({list:[],seen:new Set}),addItem:(e,t)=>{let n;if(t instanceof Map){if(t.size!==1)return"cannot resolve an ordered map item";n=t.keys().next().value}else if(yt(t)){const r=Object.keys(t);if(r.length!==1)return"cannot resolve an ordered map item";n=r[0]}else return"cannot resolve an ordered map item";return e.seen.has(n)?"duplicate key in ordered map":(e.seen.add(n),e.list.push(t),"")},finalize:e=>e.list}),Qn=Zt("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";const n=t,r=Object.keys(n);return r.length!==1?"cannot resolve a pairs item":(e.push([r[0],n[r[0]]]),"")}}),Pi=At("tag:yaml.org,2002:map",{create:()=>({}),identify:yt,represent:e=>{const t=new Map;for(const n of Object.keys(e))t.set(n,e[n]);return t},addPair:(e,t,n)=>{if(t!==null&&typeof t=="object")return"object-based map does not support complex keys";const r=String(t);return r==="__proto__"?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,""},has:(e,t)=>t!==null&&typeof t=="object"?!1:Object.prototype.hasOwnProperty.call(e,String(t)),keys:e=>Object.keys(e),get:(e,t)=>{const n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?e[n]:null}}),Zn=At("tag:yaml.org,2002:set",{create:()=>new Set,identify:e=>e instanceof Set,represent:e=>{const t=new Map;for(const n of e)t.set(n,null);return t},addPair:(e,t,n)=>n!==null?"cannot resolve a set item":(e.add(t),""),has:(e,t)=>e.has(t),keys:e=>e.keys(),get:()=>null});function Fi(){return{scalar:Object.create(null),sequence:Object.create(null),mapping:Object.create(null)}}function Hi(){return{scalar:[],sequence:[],mapping:[]}}function Mi(e){const t=[];for(const n of e){let r=t.length;for(let i=0;i<t.length;i++){const o=t[i];if(o.nodeKind===n.nodeKind&&o.tagName===n.tagName&&o.matchByTagPrefix===n.matchByTagPrefix){r=i;break}}t[r]=n}return t}var Et=class Jn{tags;implicitScalarTags;implicitScalarByFirstChar;implicitScalarAnyFirstChar;defaultScalarTag;defaultSequenceTag;defaultMappingTag;exact;prefix;constructor(t){const n=Mi(t),r=[],i=Fi(),o=Hi();for(const c of n){if(c.nodeKind==="scalar"&&c.implicit){if(c.matchByTagPrefix)throw new Error("Implicit scalar tags cannot match by tag prefix");r.push(c)}switch(c.nodeKind){case"scalar":c.matchByTagPrefix?o.scalar.push(c):i.scalar[c.tagName]=c;break;case"sequence":c.matchByTagPrefix?o.sequence.push(c):i.sequence[c.tagName]=c;break;case"mapping":c.matchByTagPrefix?o.mapping.push(c):i.mapping[c.tagName]=c;break}}const a=r.filter(c=>c.implicitFirstChars===null),s=new Set;for(const c of r)if(c.implicitFirstChars!==null)for(const E of c.implicitFirstChars)s.add(E);const l=new Map;for(const c of s)l.set(c,r.filter(E=>E.implicitFirstChars===null||E.implicitFirstChars.indexOf(c)!==-1));const u=i.scalar["tag:yaml.org,2002:str"];if(!u)throw new Error("schema does not define the default scalar tag (tag:yaml.org,2002:str)");this.tags=n,this.implicitScalarTags=r,this.implicitScalarByFirstChar=l,this.implicitScalarAnyFirstChar=a,this.defaultScalarTag=u,this.defaultSequenceTag=i.sequence["tag:yaml.org,2002:seq"],this.defaultMappingTag=i.mapping["tag:yaml.org,2002:map"],this.exact=i,this.prefix=o}withTags(...t){let n=[];for(const r of t)n=n.concat(r);return new Jn([...this.tags,...n])}},Jt=new Et([Ur,Li,Pi]);new Et([...Jt.tags,Gr,Zr,ui,Ci]);var er=new Et([...Jt.tags,qr,Xr,jn,Wn]),Bi=new Et([...Jt.tags,jr,ti,Pt,Ft,ki,Vn,Xn,zn,Qn,Zn]);At("tag:yaml.org,2002:map",{create:()=>new Map,addPair:(e,t,n)=>(e.set(t,n),""),has:(e,t)=>e.has(t),keys:e=>e.keys(),get:(e,t)=>e.get(t),identify:e=>e instanceof Map||yt(e),represent:e=>{if(e instanceof Map)return e;const t=new Map,n=e;for(const r of Object.keys(n))t.set(r,n[r]);return t}});function yn(e){if(Array.isArray(e)){const t=Array.prototype.slice.call(e);for(let n=0;n<t.length;n++){if(Array.isArray(t[n]))return null;typeof t[n]=="object"&&Object.prototype.toString.call(t[n])==="[object Object]"&&(t[n]="[object Object]")}return String(t)}return typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"?"[object Object]":String(e)}At("tag:yaml.org,2002:map",{create:()=>({}),identify:yt,represent:e=>{const t=new Map;for(const n of Object.keys(e))t.set(n,e[n]);return t},addPair:(e,t,n)=>{const r=yn(t);return r===null?"nested arrays are not supported inside keys":(r==="__proto__"?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,"")},has:(e,t)=>{const n=yn(t);return n!==null&&Object.prototype.hasOwnProperty.call(e,n)},keys:e=>Object.keys(e),get:(e,t)=>{const n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?e[n]:null}});var Di={maxLength:79,indent:1,linesBefore:3,linesAfter:2};function It(e,t,n,r,i){let o="",a="";const s=Math.floor(i/2)-1;return r-t>s&&(o=" ... ",t=r-s+o.length),n-r>s&&(a=" ...",n=r+s-a.length),{str:o+e.slice(t,n).replace(/\t/g,"→")+a,pos:r-t+o.length}}function Nt(e,t){return" ".repeat(Math.max(t-e.length,0))+e}function Ui(e,t){if(!e.buffer)return null;const n={...Di,...t},r=/\r?\n|\r|\0/g,i=[0],o=[];let a,s=-1;for(;a=r.exec(e.buffer);)o.push(a.index),i.push(a.index+a[0].length),e.position<=a.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);let l="";const u=Math.min(e.line+n.linesAfter,o.length).toString().length,c=n.maxLength-(n.indent+u+3);for(let m=1;m<=n.linesBefore&&!(s-m<0);m++){const b=It(e.buffer,i[s-m],o[s-m],e.position-(i[s]-i[s-m]),c);l=`${" ".repeat(n.indent)}${Nt((e.line-m+1).toString(),u)} | ${b.str}
|
|
2
2
|
${l}`}const E=It(e.buffer,i[s],o[s],e.position,c);l+=`${" ".repeat(n.indent)}${Nt((e.line+1).toString(),u)} | ${E.str}
|
|
3
3
|
`,l+=`${"-".repeat(n.indent+u+3+E.pos)}^
|
|
4
4
|
`;for(let m=1;m<=n.linesAfter&&!(s+m>=o.length);m++){const b=It(e.buffer,i[s+m],o[s+m],e.position-(i[s]-i[s+m]),c);l+=`${" ".repeat(n.indent)}${Nt((e.line+m+1).toString(),u)} | ${b.str}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a7 as Y, a6 as ce, bs as Ne, bt as Me, bu as Va, bv as Yn, bw as ua, bx as x, by as Fe, bz as q, bA as Z, bB as Be, bC as Re, bD as Zr, bE as _n, V as Xa, W as qn, bF as Zn, bG as Qa, X as Ua, bH as Xn, bI as ca, bJ as Wa, bK as er } from "./replay-index-
|
|
2
|
-
import { c as Ze } from "./replay-resolve-
|
|
3
|
-
import { B as Xr, a7 as ar, c as Qn, a0 as et, X as at, Q as rt, ac as Qr, ad as nt } from "./replay-lint-
|
|
1
|
+
import { a7 as Y, a6 as ce, bs as Ne, bt as Me, bu as Va, bv as Yn, bw as ua, bx as x, by as Fe, bz as q, bA as Z, bB as Be, bC as Re, bD as Zr, bE as _n, V as Xa, W as qn, bF as Zn, bG as Qa, X as Ua, bH as Xn, bI as ca, bJ as Wa, bK as er } from "./replay-index-VCzOY16S.js";
|
|
2
|
+
import { c as Ze } from "./replay-resolve-DrE6Bsmy.js";
|
|
3
|
+
import { B as Xr, a7 as ar, c as Qn, a0 as et, X as at, Q as rt, ac as Qr, ad as nt } from "./replay-lint-YAy8-Dtq.js";
|
|
4
4
|
function tt(e) {
|
|
5
5
|
return Y(e) && "name" in e && "value" in e && !("in" in e);
|
|
6
6
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./replay-index-Cbk31wfc.js"),$e=require("./replay-resolve-C6cu60fT.js"),de=require("./replay-lint-CdPOA4Pr.js");function Rn(e){return f.isPlainObject(e)&&"name"in e&&"value"in e&&!("in"in e)}function xa(e){return f.isPlainObject(e)&&"in"in e&&typeof e.in=="string"&&["header","query","path","cookie"].includes(e.in)}const Pn=/^image\/(png|jpeg|gif|bmp|webp|svg\+xml)|application\/pdf$/;function Hr(e){return e.startsWith("$file(")&&e.endsWith(")")?e.substring(7,e.length-2):e}const Fa=async(e,a,r,t,n)=>{const i=f.pathBrowserifyExports.dirname(t),o=f.pathBrowserifyExports.resolve(i,Hr(r));e.append(a,await n.options.requestFileLoader.getFileBody(o))},xr=(e,a,r,t,n,i)=>{Object.entries(r).forEach(([o,s])=>{const l=i?`${i}[${o}]`:o;typeof s=="string"&&s.startsWith("$file(")&&s.endsWith(")")?e.push(Fa(a,l,s,t,n)):Array.isArray(s)?s.forEach(u=>{typeof u=="string"&&u.startsWith("$file(")&&u.endsWith(")")?e.push(Fa(a,l,u,t,n)):a.append(l,u.toString())}):f.isPlainObject(s)?xr(e,a,s,t,n,l):(typeof s=="string"||typeof s=="number"||typeof s=="boolean")&&a.append(l,s.toString())})},Ln=async(e,a,r,t)=>{if(f.isPlainObject(e)){const n=[];xr(n,a,e,r,t),await Promise.all(n)}},En=async(e,a)=>{if(typeof e=="string"&&e.startsWith("$file(")&&e.endsWith(")")){const r=f.pathBrowserifyExports.resolve(f.pathBrowserifyExports.dirname(a.options.filePath),Hr(e));return a.options.requestFileLoader.getFileBody(r)}else return e};async function Dn(e,a){if(!e)return{payload:void 0,contentType:void 0,encoding:void 0,replacements:void 0};const{payload:r,contentType:t}=e;if(t==="multipart/form-data"){const n=new FormData,i=f.pathBrowserifyExports.resolve(a.options.filePath);return await Ln(r,n,i,a),{...e,payload:n}}else{if(t==="application/octet-stream"||typeof t=="string"&&Pn.test(t))return{...e,payload:await En(r,a),contentType:"application/octet-stream"};if(t==="application/x-www-form-urlencoded"&&typeof r=="string")return{...e,payload:Object.fromEntries(new URLSearchParams(r).entries()),contentType:"application/x-www-form-urlencoded"}}return e}function Nn({payload:e,replacements:a,expressionContext:r,logger:t}){for(const n of a){const{target:i,value:o}=n;if(typeof i!="string")throw new Error(`Invalid JSON Pointer: ${i}`);try{const s=f.JsonPointerLib.get(e,i),l=f.evaluateRuntimeExpressionPayload({payload:o,context:r,logger:t});s!==void 0&&f.JsonPointerLib.set(e,i,l)}catch{throw new Error(`Invalid JSON Pointer: ${i}`)}}}const Hn=["parameters","failureActions","successActions"];function xn(e,a){const{reference:r,value:t}=e;if(!Hn.some(i=>r.includes(`$components.${i}`)))throw new Error("Invalid reference: available components are $components.parameters, $components.failureActions, or $components.successActions");const n=f.getValueFromContext({value:r,ctx:a,logger:a.options.logger});return f.isPlainObject(n)&&"value"in n&&t?{...n,value:t}:n}function Ke(e,a){return"reference"in e?xn(e,a):e}const V={SUCCESS_CRITERIA_CHECK:"success criteria check",STATUS_CODE_CHECK:"status code check",SCHEMA_CHECK:"schema check",CONTENT_TYPE_CHECK:"content-type check",GLOBAL_TIMEOUT_ERROR:"global timeout error",MAX_STEPS_REACHED_ERROR:"maximum steps reached",NETWORK_ERROR:"failed network request",UNEXPECTED_ERROR:"unexpected error"};class Wr extends Error{}class Gr extends Wr{}class Ir extends Wr{}async function Wn(e){const{descriptionPath:a,externalRefResolver:r,base:t}=e,n=await de.bundle({base:t,ref:a,config:e.config,dereference:!0,externalRefResolver:r});if(!n)throw new Error(`Could not find source description file '${a}'.`);return n.bundle.parsed}const Gn={title:"[REPLACE WITH API title]",version:"[REPLACE WITH API version]"},Ma=Symbol("skip");function We(e){return e<10?"0"+e:e}function In(e,a,r,t){var n=r?"":e.getUTCFullYear()+"-"+We(e.getUTCMonth()+1)+"-"+We(e.getUTCDate());return a||(n+="T"+We(e.getUTCHours())+":"+We(e.getUTCMinutes())+":"+We(e.getUTCSeconds())+"Z"),n}function Fr(e,a){return a>e.length?e.repeat(Math.trunc(a/e.length)+1).substring(0,a):e}function na(...e){const a=r=>r&&typeof r=="object";return e.reduce((r,t)=>(Object.keys(t||{}).forEach(n=>{const i=r[n],o=t[n];a(i)&&a(o)?r[n]=na(i,o):r[n]=o}),r),Array.isArray(e[e.length-1])?[]:{})}function Fn(e){var a=Jn(e),r=$n(a,a,a,a),t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,n=>{var i=r()*16%16|0;return(n=="x"?i:i&3|8).toString(16)});return t}function ca(e){return{value:e==="object"?{}:e==="array"?[]:void 0}}function ke(e,a){a&&e.pop()}function On(e){return{name:e?.xml?.name||"",prefix:e?.xml?.prefix||"",namespace:e?.xml?.namespace||null,attribute:e?.xml?.attribute??!1,wrapped:e?.xml?.wrapped??!1}}function Kn(e){const a=e?.xml;return a?.nodeType?a.nodeType:a?.attribute===!0?"attribute":a?.wrapped===!0&&e?.type==="array"?"element":e?.$ref||e?.$dynamicRef||e?.type==="array"||e?.oneOf||e?.anyOf||e?.allOf?"none":"element"}function ta(e,a={},r={}){const{value:t}=e,{propertyName:n}=r,{name:i,prefix:o,namespace:s}=On(a),l=Kn(a);let u=i||n?`${o?o+":":""}${i||n}`:null,c=typeof t=="object"?Array.isArray(t)?[...t]:{...t}:t;switch(l){case"attribute":u&&(u=`$${u}`);break;case"text":u="#text";break;case"cdata":u="#cdata";break;case"none":a.type==="array"?(u=null,a.example!==void 0&&(u=a.items?.xml?.name||u)):u=null;break;default:a.type==="array"&&Array.isArray(c)&&(c={[u]:[...c]});break}return s&&l!=="text"&&l!=="cdata"&&l!=="none"&&(typeof c=="object"?c[`$xmlns${o?":"+o:""}`]=s:c={[`$xmlns${o?":"+o:""}`]:s,"#text":c}),{propertyName:u,value:c}}function Jn(e){var a=0;if(e.length==0)return a;for(var r=0;r<e.length;r++){var t=e.charCodeAt(r);a=(a<<5)-a+t,a=a&a}return a}function $n(e,a,r,t){return function(){e|=0,a|=0,r|=0,t|=0;var n=e-(a<<27|a>>>5)|0;return e=a^(r<<17|r>>>15),a=r+t|0,r=t+n|0,t=e+n|0,(t>>>0)/4294967296}}function zn(e,a,r,t,n){let i=he(e,r,t);const o=[];for(let s of a){const{type:l,readOnly:u,writeOnly:c,value:d}=he({type:i.type,...s},r,t,{...n,isAllOfChild:!0});i.type&&l&&l!==i.type&&(console.warn("allOf: schemas with different types can't be merged"),i.type=l),i.type=i.type||l,i.readOnly=i.readOnly||u,i.writeOnly=i.writeOnly||c,d!=null&&o.push(d)}if(i.type==="object"){i.value=na(i.value||{},...o.filter(s=>typeof s=="object"));for(const s in i.value)i.value[s]===Ma&&delete i.value[s];return i}else{i.type==="array"&&(r.quiet||console.warn('OpenAPI Sampler: found allOf with "array" type. Result may be incorrect'));const s=o[o.length-1];return i.value=s??i.value,i}}const Oa={multipleOf:"number",maximum:"number",exclusiveMaximum:"number",minimum:"number",exclusiveMinimum:"number",maxLength:"string",minLength:"string",pattern:"string",items:"array",maxItems:"array",minItems:"array",uniqueItems:"array",additionalItems:"array",maxProperties:"object",minProperties:"object",required:"object",additionalProperties:"object",properties:"object",patternProperties:"object",dependencies:"object"};function Ue(e){if(e.type!==void 0)return Array.isArray(e.type)?e.type.length===0?null:e.type[0]:e.type;const a=Object.keys(Oa);for(var r=0;r<a.length;r++){let t=a[r],n=Oa[t];if(e[t]!==void 0)return n}return null}let aa={},ce=[];function jn(){aa={},ce=[]}function Or(e){let a;return e.const!==void 0?a=e.const:e.examples!==void 0&&e.examples.length?a=e.examples[0]:e.enum!==void 0&&e.enum.length?a=e.enum[0]:e.default!==void 0&&(a=e.default),a}function Ka(e){const a=Or(e);if(a!==void 0)return{value:a,readOnly:e.readOnly,writeOnly:e.writeOnly,type:null}}function he(e,a,r,t){if(t){if(ce.includes(e))return ca(Ue(e));ce.push(e)}if(t&&t.depth>a.maxSampleDepth)return ke(ce,t),ca(Ue(e));if(e.$ref){if(!r)throw new Error("Your schema contains $ref. You must provide full specification in the third parameter.");let s=decodeURIComponent(e.$ref);s.startsWith("#")&&(s=s.substring(1));const l=f.JsonPointerLib.get(r,s);let u;if(aa[s]!==!0){aa[s]=!0;const c=he(l,a,r,t);if(a.format==="xml"){const d=s.split("/").pop(),h={...t,propertyName:t?.propertyName||d},{propertyName:p,value:b}=ta(c,l,h);u={...c,value:{[p||"root"]:b}}}else u=c;aa[s]=!1}else{const c=Ue(l);u=ca(c)}return ke(ce,t),u}if(e.example!==void 0)return ke(ce,t),{value:e.example,readOnly:e.readOnly,writeOnly:e.writeOnly,type:e.type};if(e.allOf!==void 0)return ke(ce,t),Ka(e)||zn({...e,allOf:void 0},e.allOf,a,r,t);if(e.oneOf&&e.oneOf.length){e.anyOf&&(a.quiet||console.warn("oneOf and anyOf are not supported on the same level. Skipping anyOf")),ke(ce,t);const s=Object.assign({readOnly:e.readOnly,writeOnly:e.writeOnly},e.oneOf[0]);return o(e,s)}if(e.anyOf&&e.anyOf.length){ke(ce,t);const s=Object.assign({readOnly:e.readOnly,writeOnly:e.writeOnly},e.anyOf[0]);return o(e,s)}if(e.if&&e.then){ke(ce,t);const{if:s,then:l,...u}=e;return he(na(u,s,l),a,r,t)}let n=Or(e),i=null;if(n===void 0){n=null,i=e.type,Array.isArray(i)&&e.type.length>0&&(i=e.type[0]),i||(i=Ue(e));let s=$r[i];s&&(n=s(e,a,r,t))}return ke(ce,t),{value:n,readOnly:e.readOnly,writeOnly:e.writeOnly,type:i};function o(s,l){const u=Ka(s);if(u!==void 0)return u;const c=he({...s,oneOf:void 0,anyOf:void 0},a,r,t),d=he(l,a,r,t);if(typeof c.value=="object"&&typeof d.value=="object"){const h=na(c.value,d.value);return{...d,value:h}}return d}}function Vn(e,a={},r,t){const n=t&&t.depth||1;let i=Math.min(e.maxItems!=null?e.maxItems:1/0,e.minItems||1);const o=e.prefixItems||e.items||e.contains;Array.isArray(o)&&(i=Math.max(i,o.length));let s=u=>Array.isArray(o)?o[u]||{}:o||{},l=[];if(!o)return l;for(let u=0;u<i;u++){let c=s(u),{value:d}=he(c,a,r,{depth:n+1});if(a?.format==="xml"){const{value:h,propertyName:p}=ta({value:d},c,t);p?(l?.[p]||(l={...l,[p]:[]}),l[p].push(h)):l={...l,...h}}else l.push(d)}if(a?.format==="xml"&&n===1){const{value:u,propertyName:c}=ta({value:null},e,t);c&&(u?l=Array.isArray(l)?{[c]:{...u,...l.map(d=>({"#text":{...d}}))}}:{[c]:{...l,...u}}:l={[c]:l})}return l}function Un(e){return!0}function Kr(e){let a=0;if(e.type==="number"&&(e.format==="float"||e.format==="double")&&(a=.1),typeof e.exclusiveMinimum=="boolean"||typeof e.exclusiveMaximum=="boolean"){if(Number.isFinite(e.maximum)&&Number.isFinite(e.minimum))return a=e.exclusiveMinimum?Math.floor(e.minimum)+1:e.minimum,(e.exclusiveMaximum&&a>=e.maximum||!e.exclusiveMaximum&&a>e.maximum)&&(a=(e.maximum+e.minimum)/2),a;if(Number.isFinite(e.minimum))return e.exclusiveMinimum?Math.floor(e.minimum)+1:e.minimum;if(Number.isFinite(e.maximum))return e.exclusiveMaximum?e.maximum>0?0:Math.floor(e.maximum)-1:e.maximum>0?0:e.maximum}else{if(Number.isFinite(e.minimum))return e.minimum;Number.isFinite(e.exclusiveMinimum)?(a=Math.floor(e.exclusiveMinimum)+1,a===e.exclusiveMaximum&&(a=(a+Math.floor(e.exclusiveMaximum)-1)/2)):Number.isFinite(e.exclusiveMaximum)?a=Math.floor(e.exclusiveMaximum)-1:Number.isFinite(e.maximum)&&(a=e.maximum)}return a}function Yn(e,a={},r,t){let n={};const i=t&&t.depth||1;if(e&&typeof e.properties=="object"){const o=Array.isArray(e.required)?e.required:[],s={};for(const l of o)s[l]=!0;Object.keys(e.properties).forEach(l=>{if(a.skipNonRequired&&!s.hasOwnProperty(l))return;const u=he(e.properties[l],a,r,{propertyName:l,depth:i+1});if(a.skipReadOnly&&u.readOnly){t?.isAllOfChild&&(n[l]=Ma);return}if(a.skipWriteOnly&&u.writeOnly){t?.isAllOfChild&&(n[l]=Ma);return}if(a?.format==="xml"){const{propertyName:c,value:d}=ta(u,e.properties[l],{propertyName:l});c?n[c]=d:d!==null&&typeof d=="object"&&(n={...n,...d})}else n[l]=u.value})}if(e&&typeof e.additionalProperties=="object"){const o=e.additionalProperties["x-additionalPropertiesName"]||"property";n[`${String(o)}1`]=he(e.additionalProperties,a,r,{depth:i+1}).value,n[`${String(o)}2`]=he(e.additionalProperties,a,r,{depth:i+1}).value}if(e&&typeof e.properties=="object"&&e.maxProperties!==void 0&&Object.keys(n).length>e.maxProperties){const o={};let s=0;(Array.isArray(e.required)?e.required:[]).forEach(u=>{n[u]!==void 0&&(o[u]=n[u],s++)}),Object.keys(n).forEach(u=>{s<e.maxProperties&&!o.hasOwnProperty(u)&&(o[u]=n[u],s++)}),n=o}return n}function ze(e,a){return e}function Ja(e,a,r){let t=1;if(e)switch(e){case"?":{t=0;break}case"*":{t=ze(0);break}case"+":{t=ze(1);break}default:throw new Error("Unknown quantifier symbol provided.")}else a!=null&&r!=null?t=ze(parseInt(a)):a!=null&&r==null&&(t=parseInt(a));return t}function _n(e){let a=!1;e instanceof RegExp&&(a=e.flags.includes("i"),e=e.toString(),e=e.match(/\/(.+?)\//)?.[1]??""),e=e.replace(/^(\^)?(.*?)(\$)?$/,"$2");let r,t,n;const i=/([.A-Za-z0-9])(?:\{(\d+)(?:\,(\d+)|)\}|(\?|\*|\+))(?![^[]*]|[^{]*})/;let o=e.match(i);for(;o!=null;){const d=o[2],h=o[3],p=o[4];n=Ja(p,d,h),e=e.slice(0,o.index)+o[1].repeat(n)+e.slice(o.index+o[0].length),o=e.match(i)}const s=/(\d-\d|\w-\w|\d|\w|[-!@#$&()`.+,/"])/,l=/\[(\^|)(-|)(.+?)\](?:\{(\d+)(?:\,(\d+)|)\}|(\?|\*|\+)|)/;for(o=e.match(l);o!=null;){const d=o[1]==="^",h=o[2]==="-",p=o[4],b=o[5],w=o[6],A=[];let P=o[3],S=P.match(s);for(h&&A.push(45);S!=null;){if(S[0].indexOf("-")===-1)a&&isNaN(Number(S[0]))?(A.push(S[0].toUpperCase().charCodeAt(0)),A.push(S[0].toLowerCase().charCodeAt(0))):A.push(S[0].charCodeAt(0));else{const y=S[0].split("-").map(m=>m.charCodeAt(0));if(r=y[0],t=y[1],r>t)throw new Error("Character range provided is out of order.");for(let m=r;m<=t;m++)if(a&&isNaN(Number(String.fromCharCode(m)))){const k=String.fromCharCode(m);A.push(k.toUpperCase().charCodeAt(0)),A.push(k.toLowerCase().charCodeAt(0))}else A.push(m)}P=P.substring(S[0].length),S=P.match(s)}if(n=Ja(w,p,b),d){let y=-1;for(let m=48;m<=57;m++){if(y=A.indexOf(m),y>-1){A.splice(y,1);continue}A.push(m)}for(let m=65;m<=90;m++){if(y=A.indexOf(m),y>-1){A.splice(y,1);continue}A.push(m)}for(let m=97;m<=122;m++){if(y=A.indexOf(m),y>-1){A.splice(y,1);continue}A.push(m)}}const E=Array.from({length:n},()=>String.fromCharCode(A[ze(0)])).join("");e=e.slice(0,o.index)+E+e.slice(o.index+o[0].length),o=e.match(l)}const u=/(.)\{(\d+)\,(\d+)\}/;for(o=e.match(u);o!=null;){if(r=parseInt(o[2]),t=parseInt(o[3]),r>t)throw new Error("Numbers out of order in {} quantifier.");n=ze(r),e=e.slice(0,o.index)+o[1].repeat(n)+e.slice(o.index+o[0].length),o=e.match(u)}const c=/(.)\{(\d+)\}/;for(o=e.match(c);o!=null;)n=parseInt(o[2]),e=e.slice(0,o.index)+o[1].repeat(n)+e.slice(o.index+o[0].length),o=e.match(c);return e}const qn="qwerty!@#$%^123456";function Zn(){return"user@example.com"}function Xn(){return"пошта@укр.нет"}function Qn(e,a){let r="pa$$word";return e>r.length&&(r+="_",r+=Fr(qn,e-r.length).substring(0,e-r.length)),r}function Wa({min:e,max:a,omitTime:r,omitDate:t}){let n=In(new Date("2019-08-24T14:15:22.123Z"),r,t);return n.length<e&&console.warn(`Using minLength = ${e} is incorrect with format "date-time"`),a&&n.length>a&&console.warn(`Using maxLength = ${a} is incorrect with format "date-time"`),n}function et(e,a){return Wa({min:e,max:a,omitTime:!1,omitDate:!1})}function at(e,a){return Wa({min:e,max:a,omitTime:!0,omitDate:!1})}function rt(e,a){return Wa({min:e,max:a,omitTime:!1,omitDate:!0}).slice(1)}function Jr(e,a,r,t,n=!1){if(t&&n)return _n(t);let i=Fr("string",e);return a&&i.length>a&&(i=i.substring(0,a)),i}function nt(){return"192.168.0.1"}function tt(){return"2001:0db8:85a3:0000:0000:8a2e:0370:7334"}function it(){return"example.com"}function ot(){return"приклад.укр"}function st(){return"http://example.com"}function lt(){return"../dictionary"}function ut(){return"http://example.com/{endpoint}"}function ct(){return"http://example.com/entity/1"}function dt(){return"/entity/1"}function ht(e,a,r){return Fn(r||"id")}function mt(){return"/json/pointer"}function pt(){return"1/relative/json/pointer"}function ft(){return"/regex/"}const yt={email:Zn,"idn-email":Xn,password:Qn,"date-time":et,date:at,time:rt,ipv4:nt,ipv6:tt,hostname:it,"idn-hostname":ot,iri:ct,"iri-reference":dt,uri:st,"uri-reference":lt,"uri-template":ut,uuid:ht,default:Jr,"json-pointer":mt,"relative-json-pointer":pt,regex:ft};function gt(e,a,r,t){let n=e.format||"default",i=yt[n]||Jr,o=t&&t.propertyName;return i(e.minLength||0,e.maxLength,o,e.pattern,a?.enablePatterns)}var $r={};const bt={skipReadOnly:!1,maxSampleDepth:15};function kt(e,a){if(!e)throw new Error("Unknown format output for building XML.");return(Array.isArray(e)||Object.keys(e).length>1)&&(e={[a?.xml?.name||"root"]:e}),new f.Builder({ignoreAttributes:!1,format:!0,attributeNamePrefix:"$",textNodeName:"#text",cdataPropName:"#cdata"}).build(e)}function Ct(e,a,r){let t=Object.assign({},bt,a);jn();let n=he(e,t,r).value;return t?.format==="xml"?kt(n,e):n}function De(e,a){$r[e]=a}De("array",Vn);De("boolean",Un);De("integer",Kr);De("number",Kr);De("object",Yn);De("string",gt);function zr(e,a){if(e)try{return Ct(e,{skipReadOnly:!0,skipNonRequired:!1,quiet:!0})}catch(r){a.error(f.bgRed(" Error while generating test data from JSON Schema ")+`
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const f=require("./replay-index-54ROnLOe.js"),$e=require("./replay-resolve-jATjJR5l.js"),de=require("./replay-lint-C8g-xqrP.js");function Rn(e){return f.isPlainObject(e)&&"name"in e&&"value"in e&&!("in"in e)}function xa(e){return f.isPlainObject(e)&&"in"in e&&typeof e.in=="string"&&["header","query","path","cookie"].includes(e.in)}const Pn=/^image\/(png|jpeg|gif|bmp|webp|svg\+xml)|application\/pdf$/;function Hr(e){return e.startsWith("$file(")&&e.endsWith(")")?e.substring(7,e.length-2):e}const Fa=async(e,a,r,t,n)=>{const i=f.pathBrowserifyExports.dirname(t),o=f.pathBrowserifyExports.resolve(i,Hr(r));e.append(a,await n.options.requestFileLoader.getFileBody(o))},xr=(e,a,r,t,n,i)=>{Object.entries(r).forEach(([o,s])=>{const l=i?`${i}[${o}]`:o;typeof s=="string"&&s.startsWith("$file(")&&s.endsWith(")")?e.push(Fa(a,l,s,t,n)):Array.isArray(s)?s.forEach(u=>{typeof u=="string"&&u.startsWith("$file(")&&u.endsWith(")")?e.push(Fa(a,l,u,t,n)):a.append(l,u.toString())}):f.isPlainObject(s)?xr(e,a,s,t,n,l):(typeof s=="string"||typeof s=="number"||typeof s=="boolean")&&a.append(l,s.toString())})},Ln=async(e,a,r,t)=>{if(f.isPlainObject(e)){const n=[];xr(n,a,e,r,t),await Promise.all(n)}},En=async(e,a)=>{if(typeof e=="string"&&e.startsWith("$file(")&&e.endsWith(")")){const r=f.pathBrowserifyExports.resolve(f.pathBrowserifyExports.dirname(a.options.filePath),Hr(e));return a.options.requestFileLoader.getFileBody(r)}else return e};async function Dn(e,a){if(!e)return{payload:void 0,contentType:void 0,encoding:void 0,replacements:void 0};const{payload:r,contentType:t}=e;if(t==="multipart/form-data"){const n=new FormData,i=f.pathBrowserifyExports.resolve(a.options.filePath);return await Ln(r,n,i,a),{...e,payload:n}}else{if(t==="application/octet-stream"||typeof t=="string"&&Pn.test(t))return{...e,payload:await En(r,a),contentType:"application/octet-stream"};if(t==="application/x-www-form-urlencoded"&&typeof r=="string")return{...e,payload:Object.fromEntries(new URLSearchParams(r).entries()),contentType:"application/x-www-form-urlencoded"}}return e}function Nn({payload:e,replacements:a,expressionContext:r,logger:t}){for(const n of a){const{target:i,value:o}=n;if(typeof i!="string")throw new Error(`Invalid JSON Pointer: ${i}`);try{const s=f.JsonPointerLib.get(e,i),l=f.evaluateRuntimeExpressionPayload({payload:o,context:r,logger:t});s!==void 0&&f.JsonPointerLib.set(e,i,l)}catch{throw new Error(`Invalid JSON Pointer: ${i}`)}}}const Hn=["parameters","failureActions","successActions"];function xn(e,a){const{reference:r,value:t}=e;if(!Hn.some(i=>r.includes(`$components.${i}`)))throw new Error("Invalid reference: available components are $components.parameters, $components.failureActions, or $components.successActions");const n=f.getValueFromContext({value:r,ctx:a,logger:a.options.logger});return f.isPlainObject(n)&&"value"in n&&t?{...n,value:t}:n}function Ke(e,a){return"reference"in e?xn(e,a):e}const V={SUCCESS_CRITERIA_CHECK:"success criteria check",STATUS_CODE_CHECK:"status code check",SCHEMA_CHECK:"schema check",CONTENT_TYPE_CHECK:"content-type check",GLOBAL_TIMEOUT_ERROR:"global timeout error",MAX_STEPS_REACHED_ERROR:"maximum steps reached",NETWORK_ERROR:"failed network request",UNEXPECTED_ERROR:"unexpected error"};class Wr extends Error{}class Gr extends Wr{}class Ir extends Wr{}async function Wn(e){const{descriptionPath:a,externalRefResolver:r,base:t}=e,n=await de.bundle({base:t,ref:a,config:e.config,dereference:!0,externalRefResolver:r});if(!n)throw new Error(`Could not find source description file '${a}'.`);return n.bundle.parsed}const Gn={title:"[REPLACE WITH API title]",version:"[REPLACE WITH API version]"},Ma=Symbol("skip");function We(e){return e<10?"0"+e:e}function In(e,a,r,t){var n=r?"":e.getUTCFullYear()+"-"+We(e.getUTCMonth()+1)+"-"+We(e.getUTCDate());return a||(n+="T"+We(e.getUTCHours())+":"+We(e.getUTCMinutes())+":"+We(e.getUTCSeconds())+"Z"),n}function Fr(e,a){return a>e.length?e.repeat(Math.trunc(a/e.length)+1).substring(0,a):e}function na(...e){const a=r=>r&&typeof r=="object";return e.reduce((r,t)=>(Object.keys(t||{}).forEach(n=>{const i=r[n],o=t[n];a(i)&&a(o)?r[n]=na(i,o):r[n]=o}),r),Array.isArray(e[e.length-1])?[]:{})}function Fn(e){var a=Jn(e),r=$n(a,a,a,a),t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,n=>{var i=r()*16%16|0;return(n=="x"?i:i&3|8).toString(16)});return t}function ca(e){return{value:e==="object"?{}:e==="array"?[]:void 0}}function ke(e,a){a&&e.pop()}function On(e){return{name:e?.xml?.name||"",prefix:e?.xml?.prefix||"",namespace:e?.xml?.namespace||null,attribute:e?.xml?.attribute??!1,wrapped:e?.xml?.wrapped??!1}}function Kn(e){const a=e?.xml;return a?.nodeType?a.nodeType:a?.attribute===!0?"attribute":a?.wrapped===!0&&e?.type==="array"?"element":e?.$ref||e?.$dynamicRef||e?.type==="array"||e?.oneOf||e?.anyOf||e?.allOf?"none":"element"}function ta(e,a={},r={}){const{value:t}=e,{propertyName:n}=r,{name:i,prefix:o,namespace:s}=On(a),l=Kn(a);let u=i||n?`${o?o+":":""}${i||n}`:null,c=typeof t=="object"?Array.isArray(t)?[...t]:{...t}:t;switch(l){case"attribute":u&&(u=`$${u}`);break;case"text":u="#text";break;case"cdata":u="#cdata";break;case"none":a.type==="array"?(u=null,a.example!==void 0&&(u=a.items?.xml?.name||u)):u=null;break;default:a.type==="array"&&Array.isArray(c)&&(c={[u]:[...c]});break}return s&&l!=="text"&&l!=="cdata"&&l!=="none"&&(typeof c=="object"?c[`$xmlns${o?":"+o:""}`]=s:c={[`$xmlns${o?":"+o:""}`]:s,"#text":c}),{propertyName:u,value:c}}function Jn(e){var a=0;if(e.length==0)return a;for(var r=0;r<e.length;r++){var t=e.charCodeAt(r);a=(a<<5)-a+t,a=a&a}return a}function $n(e,a,r,t){return function(){e|=0,a|=0,r|=0,t|=0;var n=e-(a<<27|a>>>5)|0;return e=a^(r<<17|r>>>15),a=r+t|0,r=t+n|0,t=e+n|0,(t>>>0)/4294967296}}function zn(e,a,r,t,n){let i=he(e,r,t);const o=[];for(let s of a){const{type:l,readOnly:u,writeOnly:c,value:d}=he({type:i.type,...s},r,t,{...n,isAllOfChild:!0});i.type&&l&&l!==i.type&&(console.warn("allOf: schemas with different types can't be merged"),i.type=l),i.type=i.type||l,i.readOnly=i.readOnly||u,i.writeOnly=i.writeOnly||c,d!=null&&o.push(d)}if(i.type==="object"){i.value=na(i.value||{},...o.filter(s=>typeof s=="object"));for(const s in i.value)i.value[s]===Ma&&delete i.value[s];return i}else{i.type==="array"&&(r.quiet||console.warn('OpenAPI Sampler: found allOf with "array" type. Result may be incorrect'));const s=o[o.length-1];return i.value=s??i.value,i}}const Oa={multipleOf:"number",maximum:"number",exclusiveMaximum:"number",minimum:"number",exclusiveMinimum:"number",maxLength:"string",minLength:"string",pattern:"string",items:"array",maxItems:"array",minItems:"array",uniqueItems:"array",additionalItems:"array",maxProperties:"object",minProperties:"object",required:"object",additionalProperties:"object",properties:"object",patternProperties:"object",dependencies:"object"};function Ue(e){if(e.type!==void 0)return Array.isArray(e.type)?e.type.length===0?null:e.type[0]:e.type;const a=Object.keys(Oa);for(var r=0;r<a.length;r++){let t=a[r],n=Oa[t];if(e[t]!==void 0)return n}return null}let aa={},ce=[];function jn(){aa={},ce=[]}function Or(e){let a;return e.const!==void 0?a=e.const:e.examples!==void 0&&e.examples.length?a=e.examples[0]:e.enum!==void 0&&e.enum.length?a=e.enum[0]:e.default!==void 0&&(a=e.default),a}function Ka(e){const a=Or(e);if(a!==void 0)return{value:a,readOnly:e.readOnly,writeOnly:e.writeOnly,type:null}}function he(e,a,r,t){if(t){if(ce.includes(e))return ca(Ue(e));ce.push(e)}if(t&&t.depth>a.maxSampleDepth)return ke(ce,t),ca(Ue(e));if(e.$ref){if(!r)throw new Error("Your schema contains $ref. You must provide full specification in the third parameter.");let s=decodeURIComponent(e.$ref);s.startsWith("#")&&(s=s.substring(1));const l=f.JsonPointerLib.get(r,s);let u;if(aa[s]!==!0){aa[s]=!0;const c=he(l,a,r,t);if(a.format==="xml"){const d=s.split("/").pop(),h={...t,propertyName:t?.propertyName||d},{propertyName:p,value:b}=ta(c,l,h);u={...c,value:{[p||"root"]:b}}}else u=c;aa[s]=!1}else{const c=Ue(l);u=ca(c)}return ke(ce,t),u}if(e.example!==void 0)return ke(ce,t),{value:e.example,readOnly:e.readOnly,writeOnly:e.writeOnly,type:e.type};if(e.allOf!==void 0)return ke(ce,t),Ka(e)||zn({...e,allOf:void 0},e.allOf,a,r,t);if(e.oneOf&&e.oneOf.length){e.anyOf&&(a.quiet||console.warn("oneOf and anyOf are not supported on the same level. Skipping anyOf")),ke(ce,t);const s=Object.assign({readOnly:e.readOnly,writeOnly:e.writeOnly},e.oneOf[0]);return o(e,s)}if(e.anyOf&&e.anyOf.length){ke(ce,t);const s=Object.assign({readOnly:e.readOnly,writeOnly:e.writeOnly},e.anyOf[0]);return o(e,s)}if(e.if&&e.then){ke(ce,t);const{if:s,then:l,...u}=e;return he(na(u,s,l),a,r,t)}let n=Or(e),i=null;if(n===void 0){n=null,i=e.type,Array.isArray(i)&&e.type.length>0&&(i=e.type[0]),i||(i=Ue(e));let s=$r[i];s&&(n=s(e,a,r,t))}return ke(ce,t),{value:n,readOnly:e.readOnly,writeOnly:e.writeOnly,type:i};function o(s,l){const u=Ka(s);if(u!==void 0)return u;const c=he({...s,oneOf:void 0,anyOf:void 0},a,r,t),d=he(l,a,r,t);if(typeof c.value=="object"&&typeof d.value=="object"){const h=na(c.value,d.value);return{...d,value:h}}return d}}function Vn(e,a={},r,t){const n=t&&t.depth||1;let i=Math.min(e.maxItems!=null?e.maxItems:1/0,e.minItems||1);const o=e.prefixItems||e.items||e.contains;Array.isArray(o)&&(i=Math.max(i,o.length));let s=u=>Array.isArray(o)?o[u]||{}:o||{},l=[];if(!o)return l;for(let u=0;u<i;u++){let c=s(u),{value:d}=he(c,a,r,{depth:n+1});if(a?.format==="xml"){const{value:h,propertyName:p}=ta({value:d},c,t);p?(l?.[p]||(l={...l,[p]:[]}),l[p].push(h)):l={...l,...h}}else l.push(d)}if(a?.format==="xml"&&n===1){const{value:u,propertyName:c}=ta({value:null},e,t);c&&(u?l=Array.isArray(l)?{[c]:{...u,...l.map(d=>({"#text":{...d}}))}}:{[c]:{...l,...u}}:l={[c]:l})}return l}function Un(e){return!0}function Kr(e){let a=0;if(e.type==="number"&&(e.format==="float"||e.format==="double")&&(a=.1),typeof e.exclusiveMinimum=="boolean"||typeof e.exclusiveMaximum=="boolean"){if(Number.isFinite(e.maximum)&&Number.isFinite(e.minimum))return a=e.exclusiveMinimum?Math.floor(e.minimum)+1:e.minimum,(e.exclusiveMaximum&&a>=e.maximum||!e.exclusiveMaximum&&a>e.maximum)&&(a=(e.maximum+e.minimum)/2),a;if(Number.isFinite(e.minimum))return e.exclusiveMinimum?Math.floor(e.minimum)+1:e.minimum;if(Number.isFinite(e.maximum))return e.exclusiveMaximum?e.maximum>0?0:Math.floor(e.maximum)-1:e.maximum>0?0:e.maximum}else{if(Number.isFinite(e.minimum))return e.minimum;Number.isFinite(e.exclusiveMinimum)?(a=Math.floor(e.exclusiveMinimum)+1,a===e.exclusiveMaximum&&(a=(a+Math.floor(e.exclusiveMaximum)-1)/2)):Number.isFinite(e.exclusiveMaximum)?a=Math.floor(e.exclusiveMaximum)-1:Number.isFinite(e.maximum)&&(a=e.maximum)}return a}function Yn(e,a={},r,t){let n={};const i=t&&t.depth||1;if(e&&typeof e.properties=="object"){const o=Array.isArray(e.required)?e.required:[],s={};for(const l of o)s[l]=!0;Object.keys(e.properties).forEach(l=>{if(a.skipNonRequired&&!s.hasOwnProperty(l))return;const u=he(e.properties[l],a,r,{propertyName:l,depth:i+1});if(a.skipReadOnly&&u.readOnly){t?.isAllOfChild&&(n[l]=Ma);return}if(a.skipWriteOnly&&u.writeOnly){t?.isAllOfChild&&(n[l]=Ma);return}if(a?.format==="xml"){const{propertyName:c,value:d}=ta(u,e.properties[l],{propertyName:l});c?n[c]=d:d!==null&&typeof d=="object"&&(n={...n,...d})}else n[l]=u.value})}if(e&&typeof e.additionalProperties=="object"){const o=e.additionalProperties["x-additionalPropertiesName"]||"property";n[`${String(o)}1`]=he(e.additionalProperties,a,r,{depth:i+1}).value,n[`${String(o)}2`]=he(e.additionalProperties,a,r,{depth:i+1}).value}if(e&&typeof e.properties=="object"&&e.maxProperties!==void 0&&Object.keys(n).length>e.maxProperties){const o={};let s=0;(Array.isArray(e.required)?e.required:[]).forEach(u=>{n[u]!==void 0&&(o[u]=n[u],s++)}),Object.keys(n).forEach(u=>{s<e.maxProperties&&!o.hasOwnProperty(u)&&(o[u]=n[u],s++)}),n=o}return n}function ze(e,a){return e}function Ja(e,a,r){let t=1;if(e)switch(e){case"?":{t=0;break}case"*":{t=ze(0);break}case"+":{t=ze(1);break}default:throw new Error("Unknown quantifier symbol provided.")}else a!=null&&r!=null?t=ze(parseInt(a)):a!=null&&r==null&&(t=parseInt(a));return t}function _n(e){let a=!1;e instanceof RegExp&&(a=e.flags.includes("i"),e=e.toString(),e=e.match(/\/(.+?)\//)?.[1]??""),e=e.replace(/^(\^)?(.*?)(\$)?$/,"$2");let r,t,n;const i=/([.A-Za-z0-9])(?:\{(\d+)(?:\,(\d+)|)\}|(\?|\*|\+))(?![^[]*]|[^{]*})/;let o=e.match(i);for(;o!=null;){const d=o[2],h=o[3],p=o[4];n=Ja(p,d,h),e=e.slice(0,o.index)+o[1].repeat(n)+e.slice(o.index+o[0].length),o=e.match(i)}const s=/(\d-\d|\w-\w|\d|\w|[-!@#$&()`.+,/"])/,l=/\[(\^|)(-|)(.+?)\](?:\{(\d+)(?:\,(\d+)|)\}|(\?|\*|\+)|)/;for(o=e.match(l);o!=null;){const d=o[1]==="^",h=o[2]==="-",p=o[4],b=o[5],w=o[6],A=[];let P=o[3],S=P.match(s);for(h&&A.push(45);S!=null;){if(S[0].indexOf("-")===-1)a&&isNaN(Number(S[0]))?(A.push(S[0].toUpperCase().charCodeAt(0)),A.push(S[0].toLowerCase().charCodeAt(0))):A.push(S[0].charCodeAt(0));else{const y=S[0].split("-").map(m=>m.charCodeAt(0));if(r=y[0],t=y[1],r>t)throw new Error("Character range provided is out of order.");for(let m=r;m<=t;m++)if(a&&isNaN(Number(String.fromCharCode(m)))){const k=String.fromCharCode(m);A.push(k.toUpperCase().charCodeAt(0)),A.push(k.toLowerCase().charCodeAt(0))}else A.push(m)}P=P.substring(S[0].length),S=P.match(s)}if(n=Ja(w,p,b),d){let y=-1;for(let m=48;m<=57;m++){if(y=A.indexOf(m),y>-1){A.splice(y,1);continue}A.push(m)}for(let m=65;m<=90;m++){if(y=A.indexOf(m),y>-1){A.splice(y,1);continue}A.push(m)}for(let m=97;m<=122;m++){if(y=A.indexOf(m),y>-1){A.splice(y,1);continue}A.push(m)}}const E=Array.from({length:n},()=>String.fromCharCode(A[ze(0)])).join("");e=e.slice(0,o.index)+E+e.slice(o.index+o[0].length),o=e.match(l)}const u=/(.)\{(\d+)\,(\d+)\}/;for(o=e.match(u);o!=null;){if(r=parseInt(o[2]),t=parseInt(o[3]),r>t)throw new Error("Numbers out of order in {} quantifier.");n=ze(r),e=e.slice(0,o.index)+o[1].repeat(n)+e.slice(o.index+o[0].length),o=e.match(u)}const c=/(.)\{(\d+)\}/;for(o=e.match(c);o!=null;)n=parseInt(o[2]),e=e.slice(0,o.index)+o[1].repeat(n)+e.slice(o.index+o[0].length),o=e.match(c);return e}const qn="qwerty!@#$%^123456";function Zn(){return"user@example.com"}function Xn(){return"пошта@укр.нет"}function Qn(e,a){let r="pa$$word";return e>r.length&&(r+="_",r+=Fr(qn,e-r.length).substring(0,e-r.length)),r}function Wa({min:e,max:a,omitTime:r,omitDate:t}){let n=In(new Date("2019-08-24T14:15:22.123Z"),r,t);return n.length<e&&console.warn(`Using minLength = ${e} is incorrect with format "date-time"`),a&&n.length>a&&console.warn(`Using maxLength = ${a} is incorrect with format "date-time"`),n}function et(e,a){return Wa({min:e,max:a,omitTime:!1,omitDate:!1})}function at(e,a){return Wa({min:e,max:a,omitTime:!0,omitDate:!1})}function rt(e,a){return Wa({min:e,max:a,omitTime:!1,omitDate:!0}).slice(1)}function Jr(e,a,r,t,n=!1){if(t&&n)return _n(t);let i=Fr("string",e);return a&&i.length>a&&(i=i.substring(0,a)),i}function nt(){return"192.168.0.1"}function tt(){return"2001:0db8:85a3:0000:0000:8a2e:0370:7334"}function it(){return"example.com"}function ot(){return"приклад.укр"}function st(){return"http://example.com"}function lt(){return"../dictionary"}function ut(){return"http://example.com/{endpoint}"}function ct(){return"http://example.com/entity/1"}function dt(){return"/entity/1"}function ht(e,a,r){return Fn(r||"id")}function mt(){return"/json/pointer"}function pt(){return"1/relative/json/pointer"}function ft(){return"/regex/"}const yt={email:Zn,"idn-email":Xn,password:Qn,"date-time":et,date:at,time:rt,ipv4:nt,ipv6:tt,hostname:it,"idn-hostname":ot,iri:ct,"iri-reference":dt,uri:st,"uri-reference":lt,"uri-template":ut,uuid:ht,default:Jr,"json-pointer":mt,"relative-json-pointer":pt,regex:ft};function gt(e,a,r,t){let n=e.format||"default",i=yt[n]||Jr,o=t&&t.propertyName;return i(e.minLength||0,e.maxLength,o,e.pattern,a?.enablePatterns)}var $r={};const bt={skipReadOnly:!1,maxSampleDepth:15};function kt(e,a){if(!e)throw new Error("Unknown format output for building XML.");return(Array.isArray(e)||Object.keys(e).length>1)&&(e={[a?.xml?.name||"root"]:e}),new f.Builder({ignoreAttributes:!1,format:!0,attributeNamePrefix:"$",textNodeName:"#text",cdataPropName:"#cdata"}).build(e)}function Ct(e,a,r){let t=Object.assign({},bt,a);jn();let n=he(e,t,r).value;return t?.format==="xml"?kt(n,e):n}function De(e,a){$r[e]=a}De("array",Vn);De("boolean",Un);De("integer",Kr);De("number",Kr);De("object",Yn);De("string",gt);function zr(e,a){if(e)try{return Ct(e,{skipReadOnly:!0,skipNonRequired:!1,quiet:!0})}catch(r){a.error(f.bgRed(" Error while generating test data from JSON Schema ")+`
|
|
2
2
|
`+r);return}}function St(e,a){if(e?.example)return e.example;if(f.isPlainObject(e?.examples))return jr(e.examples);if(e?.schema)return zr(e.schema,a)}function jr(e){if(f.isPlainObject(e)){const a=Object.keys(e)[0];return a?e[a]?.value:void 0}else return}function vt(e,a){const r=e?.requestBody?.content||{},[t,n]=Object.entries(r)[0]||[],i=n?.example||jr(n?.examples)||zr(n?.schema,a),o=wt(e);return{parameters:At([...$a(e.pathParameters,a),...$a(e.parameters,a)]).filter(({value:l})=>l),contentTypeParameters:[...t?[{name:"content-type",in:"header",value:t}]:[],...o?[{name:"accept",in:"header",value:o}]:[]],requestBody:i,contentType:t}}function wt(e){return e?.responses?Array.from(new Set(Object.values(e.responses).flatMap(a=>f.isPlainObject(a)&&"content"in a?Object.keys(a.content||{}):[]))).join(", "):void 0}function $a(e,a){return(e||[]).filter(r=>r?.required===!0).map(r=>{if(xa(r))return{name:r.name,in:r.in,value:St(r,a),...r.allowReserved&&{allowReserved:r.allowReserved}}}).filter(r=>r!==void 0)}function At(e){const a={};for(const r of e)xa(r)&&(a[(r.name+":"+r.in).toLowerCase()]=r);return Object.values(a)}function Tt(e,a){const{$sourceDescriptions:r,sourceDescriptions:t}=a;let n,i;if(e.includes("$sourceDescriptions.")){const[,c,d]=e.split(".");n=c,i=d}else e.includes(".")?[n,i]=e.split("."):(i=e,n=Mt(i,r,t));const o=Object.keys(r);if(!r[n])throw new Error(`Unknown description name ${f.red(n)} at ${f.red(e)}. Available descriptions: ${o.join(", ")}.`);const s=r[n],l=s?.components?.securitySchemes,u=s.servers;for(const[c,d]of Object.entries(r[n].paths)){if(!d)return;for(const[h,p]of Object.entries(d))if(p.operationId===i)return{servers:d.servers||u,...p,pathParameters:p.parameters||[],path:c,method:h,descriptionName:n,securitySchemes:l}}throw new Error(`Unknown operationId ${f.red(i)} at ${f.red(e)}.`)}function Mt(e,a,r=[]){const t=r.filter(({type:n,name:i})=>n==="openapi"&&Object.values(a[i]?.paths||{}).some(o=>Object.values(o||{}).some(s=>s?.operationId===e))).map(({name:n})=>n);if(t.length===0)throw new Error(`Unknown operationId ${f.red(e)}. No openapi source description defines it.`);if(t.length>1)throw new Error(`The operationId ${f.red(e)} is defined in several source descriptions: ${t.join(", ")}. Use ${f.red(`$sourceDescriptions.<name>.${e}`)} to pick one.`);return t[0]}function Bt(e,a){const{$sourceDescriptions:r,sourceDescriptions:t}=a,[n,i]=e.split("#");if(!t)throw new Error("Missing described sourceDescriptions");const o=t.find(w=>{if(["openapi","arazzo"].includes(w.type)){if(n.includes("$sourceDescriptions.")){const[,A]=n.split(".");return w.name===A}return"url"in w&&w.url===n}return!1})?.name;if(!o)throw new Error(`Unknown operationPath ${f.red(e)}. API description ${f.red(n)} is not listed in 'sourceDescriptions' workflow section.`);const s=r[o]||{},l=s?.components?.securitySchemes,[u,c,d]=f.JsonPointerLib.parse(i);if(u!=="paths")throw new Error(`Invalid fragment identifier: ${i} at operationPath ${f.red(e)}.`);const{servers:h}=s,p=f.JsonPointerLib.get(s,i)||{},b=f.JsonPointerLib.get(s,f.JsonPointerLib.compile(["paths",c]))||{};return{servers:b.servers||h,...p,pathParameters:b.parameters||[],path:c,method:d,descriptionName:o,securitySchemes:l}}function Rt(e,a){if(!e.operationId&&!e.operationPath)return;const{$sourceDescriptions:r,sourceDescriptions:t}=a,{operationId:n,operationPath:i}=e;return n?Tt(n,{$sourceDescriptions:r,sourceDescriptions:t}):i?Bt(i,{$sourceDescriptions:r,sourceDescriptions:t}):void 0}function Pt({statusCode:e,contentType:a,descriptionResponses:r}){return r?(r[e]||r.default)?.content?.[a]?.schema:void 0}function Lt(e,a){if(!a)return;const t=a.requestBody?.content;return t&&t[e]?.schema||void 0}function Vr({ctx:e,security:a,operation:r}){const{scheme:t,schemeName:n}=a;if(t)return a.scheme;if(n){if(typeof n=="string"&&n.startsWith("$sourceDescriptions.")){const[i,o,s]=n.split("."),u=(o&&e.$sourceDescriptions[o])?.components?.securitySchemes;return s&&u?u[s]:void 0}return r?.securitySchemes?.[n]}}var Ye={exports:{}},za;function Et(){return za||(za=1,(function(e,a){Object.defineProperty(a,"__esModule",{value:!0}),a.outdent=void 0;function r(){}function t(){return typeof WeakMap<"u"?new WeakMap:n()}function n(){return{add:r,delete:r,get:r,set:r,has:function(S){return!1}}}var i=Object.prototype.hasOwnProperty,o=function(S,E){return i.call(S,E)};function s(S,E){for(var y in E)o(E,y)&&(S[y]=E[y]);return S}var l=/^[ \t]*(?:\r\n|\r|\n)/,u=/(?:\r\n|\r|\n)[ \t]*$/,c=/^(?:[\r\n]|$)/,d=/(?:\r\n|\r|\n)([ \t]*)(?:[^ \t\r\n]|$)/,h=/^[ \t]*[\r\n][ \t\r\n]*$/;function p(S,E,y){var m=0,k=S[0].match(d);k&&(m=k[1].length);var M="(\\r\\n|\\r|\\n).{0,"+m+"}",T=new RegExp(M,"g");E&&(S=S.slice(1));var R=y.newline,N=y.trimLeadingNewline,G=y.trimTrailingNewline,x=typeof R=="string",I=S.length,O=S.map(function(U,_){return U=U.replace(T,"$1"),_===0&&N&&(U=U.replace(l,"")),_===I-1&&G&&(U=U.replace(u,"")),x&&(U=U.replace(/\r\n|\n|\r/g,function(q){return R})),U});return O}function b(S,E){for(var y="",m=0,k=S.length;m<k;m++)y+=S[m],m<k-1&&(y+=E[m]);return y}function w(S){return o(S,"raw")&&o(S,"length")}function A(S){var E=t(),y=t();function m(M){for(var T=[],R=1;R<arguments.length;R++)T[R-1]=arguments[R];if(w(M)){var N=M,G=(T[0]===m||T[0]===P)&&h.test(N[0])&&c.test(N[1]),x=G?y:E,I=x.get(N);if(I||(I=p(N,G,S),x.set(N,I)),T.length===0)return I[0];var O=b(I,G?T.slice(1):T);return O}else return A(s(s({},S),M||{}))}var k=s(m,{string:function(M){return p([M],!1,S)[0]}});return k}var P=A({trimLeadingNewline:!0,trimTrailingNewline:!0});a.outdent=P,a.default=P;try{e.exports=P,Object.defineProperty(P,"__esModule",{value:!0}),P.default=P,P.outdent=P}catch{}})(Ye,Ye.exports)),Ye.exports}var Ba=Et();function Dt(e){return!$e.isBrowser&&process.env.NODE_ENV==="test"?"<test>ms":`${Math.ceil(performance.now()-e)}ms`}function sa(e){const a=e.length;let r=0,t=0,n=0,i=0,o=0,s=0,l=0;const u=new Set;let c=0;const d=new Set,h=new Set;for(const p of e){const b=Ur(p.executedSteps);let w=!1;for(const A of b){if(i++,A.retriesLeft&&A.retriesLeft!==0)continue;n++;let P=!1;for(const S of A.checks)if(t++,!S.passed)switch(S.severity){case"warn":o++,u.add(p.workflowId),h.add(p.workflowId+":"+A.stepId);break;case"off":s++,d.add(p.workflowId+":"+A.stepId);break;default:r++,P=!0}P&&(c++,w=!0)}w&&l++}return{workflows:{passed:a-l,failed:l,warnings:u.size,skipped:0,total:a},steps:{passed:n-c,failed:c,warnings:h.size,skipped:d.size,total:n},checks:{passed:t-r,failed:r,warnings:o,skipped:s,total:t},totalRequests:i}}function Ur(e){return e.flatMap(a=>"executedSteps"in a?Ur(a.executedSteps):[a])}function Nt(e){try{return JSON.parse(e),!0}catch{return!1}}function Ht(e,a){const r=e.endsWith("/")?e.slice(0,-1):e,t=a.startsWith("/")?a.slice(1):a;return`${r}/${t}`}const ja=50;function Yr({testNameToDisplay:e,checks:a,verboseLogs:r,verboseResponseLogs:t,logger:n}){const i=a.every(({passed:o})=>o);n.output(` ${i?f.green("✓"):f.red("✗")} ${f.blue(e)}`),r&&(n.output(`${ee}
|
|
3
3
|
`+(Va({logs:r,logger:n})||"")),n.printNewLine()),t&&(n.output(`${ee}
|
|
4
4
|
`+(Va({logs:t,type:"response",logger:n})||"")),n.printNewLine()),n.printNewLine();for(const o of a)n.output(`${j(xt(o,o.severity),4)}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { k as h, s as x, l as i } from "./replay-index-
|
|
2
|
-
import { n as j, o as b, j as k } from "./replay-index-
|
|
1
|
+
import { k as h, s as x, l as i } from "./replay-index-VCzOY16S.js";
|
|
2
|
+
import { n as j, o as b, j as k } from "./replay-index-VCzOY16S.js";
|
|
3
3
|
async function u(a, e) {
|
|
4
4
|
const t = x(), l = await i(a), c = await i(e), o = l.replace(new RegExp(`^${t}+`), "").split(t).filter(Boolean), s = c.replace(new RegExp(`^${t}+`), "").split(t).filter(Boolean), m = Math.min(o.length, s.length);
|
|
5
5
|
let r = 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-54ROnLOe.js");async function u(r,n){const t=e.sep(),l=await e.resolve(r),c=await e.resolve(n),a=l.replace(new RegExp(`^${t}+`),"").split(t).filter(Boolean),i=c.replace(new RegExp(`^${t}+`),"").split(t).filter(Boolean),m=Math.min(a.length,i.length);let s=0;for(let o=0;o<m&&a[o]===i[o];o++)s++;const p=a.slice(s).map(()=>".."),f=i.slice(s);return[...p,...f].join(t)}async function g(r){const n=await e.extname(r);return n?`.${n}`:""}exports.dirname=e.dirname;exports.isAbsolute=e.isAbsolute;exports.join=e.join;exports.resolve=e.resolve;exports.extname=g;exports.relative=u;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { useContext as zt, createContext as Ht } from "react";
|
|
2
|
-
import { R as Gt, A as be, aR as se, aS as Vt, aT as Kt, aU as Jt, ac as x, a as ue, aH as Y, aV as pt, aW as Oe, aG as Ae, aX as ft, aY as pe, aZ as ee, c as b, a_ as Qt, an as G, al as V, a$ as mt, b0 as fe, am as Ee, b1 as Xt, b2 as Zt, b3 as eo, b4 as to, b5 as oo, b6 as no, b7 as ro, af as K, b8 as so, ag as te, aa as ao, b9 as io, ba as co, bb as ht, bc as It, bd as lo, be as wt, bf as yt, bg as uo, ai as J, bh as po, ab as vt, bi as $e, aB as gt, bj as fo, bk as mo, bl as Me, F as k, bm as Fe, bn as ho, bo as Be, bp as Io, bq as wo, br as yo, a9 as bt, a8 as kt } from "./replay-index-
|
|
3
|
-
import { b as C, f as St, a as Tt, c as Ct, d as me, e as Ot, i as je, h as xe, R as z, j as vo, k as go, p as bo, s as Ye, l as ko } from "./replay-db-
|
|
4
|
-
import { b as So, o as To, d as Co, e as p, u as he, f as i, h as R, j as E, n as A, k as j, m as I, q as T, r as _e, t as oe, v as Ie, Z as H, w as Oo, x as ze, c as Ao, s as Eo, y as $o } from "./replay-create-model-
|
|
5
|
-
import { g as xo, e as He, a as _o, b as Ro, c as Ge, d as Po, f as qo } from "./replay-SemanticSearchService-
|
|
2
|
+
import { R as Gt, A as be, aR as se, aS as Vt, aT as Kt, aU as Jt, ac as x, a as ue, aH as Y, aV as pt, aW as Oe, aG as Ae, aX as ft, aY as pe, aZ as ee, c as b, a_ as Qt, an as G, al as V, a$ as mt, b0 as fe, am as Ee, b1 as Xt, b2 as Zt, b3 as eo, b4 as to, b5 as oo, b6 as no, b7 as ro, af as K, b8 as so, ag as te, aa as ao, b9 as io, ba as co, bb as ht, bc as It, bd as lo, be as wt, bf as yt, bg as uo, ai as J, bh as po, ab as vt, bi as $e, aB as gt, bj as fo, bk as mo, bl as Me, F as k, bm as Fe, bn as ho, bo as Be, bp as Io, bq as wo, br as yo, a9 as bt, a8 as kt } from "./replay-index-VCzOY16S.js";
|
|
3
|
+
import { b as C, f as St, a as Tt, c as Ct, d as me, e as Ot, i as je, h as xe, R as z, j as vo, k as go, p as bo, s as Ye, l as ko } from "./replay-db-CroFZCLK.js";
|
|
4
|
+
import { b as So, o as To, d as Co, e as p, u as he, f as i, h as R, j as E, n as A, k as j, m as I, q as T, r as _e, t as oe, v as Ie, Z as H, w as Oo, x as ze, c as Ao, s as Eo, y as $o } from "./replay-create-model-KIUQ2An5.js";
|
|
5
|
+
import { g as xo, e as He, a as _o, b as Ro, c as Ge, d as Po, f as qo } from "./replay-SemanticSearchService-DgroPziI.js";
|
|
6
6
|
import { useInfiniteQuery as No, useQuery as Uo } from "@tanstack/react-query";
|
|
7
7
|
const ae = {
|
|
8
8
|
path: "pathParameters",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const Ce=require("react"),a=require("./replay-index-
|
|
1
|
+
"use strict";const Ce=require("react"),a=require("./replay-index-54ROnLOe.js"),m=require("./replay-db-DoLsw4tF.js"),r=require("./replay-create-model-_BaJNmZq.js"),C=require("./replay-SemanticSearchService-DAt35B37.js"),Oe=require("@tanstack/react-query"),j={path:"pathParameters",query:"queryParameters",header:"headers",cookie:"cookies"},ft={run_request:{approveLabel:"Run",denyLabel:"Skip"},update_step:{approveLabel:"Apply",denyLabel:"Dismiss"},update_security:{approveLabel:"Apply",denyLabel:"Dismiss"}},mt={set_active_environment:{approveLabel:"Switch",denyLabel:"Cancel"},add_environment:{approveLabel:"Add",denyLabel:"Cancel"},upsert_input:{approveLabel:"Set",denyLabel:"Cancel"},upsert_server:{approveLabel:"Set",denyLabel:"Cancel"},remove_input:{approveLabel:"Remove",denyLabel:"Cancel"},remove_server:{approveLabel:"Remove",denyLabel:"Cancel"},create_collection:{approveLabel:"Create",denyLabel:"Cancel"},create_workflow:{approveLabel:"Create",denyLabel:"Cancel"},create_step:{approveLabel:"Create",denyLabel:"Cancel"},move_step:{approveLabel:"Move",denyLabel:"Cancel"},delete_collection:{approveLabel:"Delete",denyLabel:"Cancel"},delete_workflow:{approveLabel:"Delete",denyLabel:"Cancel"},delete_step:{approveLabel:"Delete",denyLabel:"Cancel"},save_tab_to_collection:{approveLabel:"Save",denyLabel:"Cancel"}},ht={CHAT:"chat",HISTORY:"history"},yt="report_status",It="run_workflow",W={WEB_SEARCH:"web_search"};function wt(e){switch(e.provider){case a.AI_PROVIDERS.GEMINI:return{[W.WEB_SEARCH]:r.google.tools.googleSearch({})};case a.AI_PROVIDERS.OPENAI:return{[W.WEB_SEARCH]:r.openai.tools.webSearch({})};case a.AI_PROVIDERS.ANTHROPIC:return{[W.WEB_SEARCH]:r.anthropic.tools.webFetch_20250910()};case a.REUNITE_AI_PROVIDER:return{[W.WEB_SEARCH]:{type:"provider",id:"reunite.web_search",name:"web_search",args:{}}};default:return{}}}const gt=["info","workflows","sourceDescriptions"];function bt(e){const t=[];return e.collectionId&&t.push(`Collection ID: ${e.collectionId}`),e.collection?.info?.title&&t.push(`Title: ${e.collection.info.title}`),e.collection?.info?.summary&&t.push(`Summary: ${e.collection.info.summary}`),e.collection?.info?.description&&t.push(`Description: ${e.collection.info.description}`),m.buildMessageFromArray(t,`
|
|
2
2
|
`)}function vt(e){const t=[];if(e.collection?.workflows?.length){t.push("Workflows:");for(const o of e.collection.workflows)t.push(` workflowId=${o.workflowId} ${o.summary??""}`)}return m.buildMessageFromArray(t,`
|
|
3
3
|
`)}function Tt(e){const t=[];if(e.collection?.sourceDescriptions?.length){t.push("Source descriptions:");for(const o of e.collection.sourceDescriptions)t.push(` name=${o.name} url=${o.url}`)}return m.buildMessageFromArray(t,`
|
|
4
4
|
`)}function St(e,t){const o=["Current tab (collection)"];for(const n of t)switch(n){case"info":o.push(bt(e));break;case"workflows":o.push(vt(e));break;case"sourceDescriptions":o.push(Tt(e));break}return m.buildMessageFromArray(o,`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./replay-create-model-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./replay-create-model-_BaJNmZq.js"),n=require("./replay-index-54ROnLOe.js"),l=require("./replay-defaults-DVvOnvnR.js");async function s(t,a,o,i){try{const e=r.createModel({provider:t,modelId:o,apiKey:a});return await r.generateText({model:e,prompt:l.VALIDATION_PROMPT,maxOutputTokens:n.MAX_OUTPUT_TOKENS_FOR_VALIDATION,abortSignal:i?.abortSignal}),{valid:!0}}catch(e){if(e instanceof Error&&e.name==="AbortError")throw e;return{valid:!1,error:e instanceof Error&&e.message.length>0?e.message:"Validation failed. Please try again."}}}exports.validateApiKey=s;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as i, g as n } from "./replay-create-model-
|
|
2
|
-
import { M as s } from "./replay-index-
|
|
1
|
+
import { c as i, g as n } from "./replay-create-model-KIUQ2An5.js";
|
|
2
|
+
import { M as s } from "./replay-index-VCzOY16S.js";
|
|
3
3
|
import { V as l } from "./replay-defaults-CzR6jw9a.js";
|
|
4
4
|
async function g(a, e, t, o) {
|
|
5
5
|
try {
|
package/dist/replay.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./replay-index-54ROnLOe.js"),t=require("./replay-oauth2-redirect-handler-BfZRvm6l.js");exports.AI_PROVIDERS=e.AI_PROVIDERS;exports.AiPanelContext=e.AiPanelContext;exports.EmbeddedReplay=e.EmbeddedReplay;exports.Modal=e.Modal;exports.REUNITE_AI_PROVIDER=e.REUNITE_AI_PROVIDER;exports.Replay=e.Replay;exports.ReplayOverlay=e.ReplayOverlay;Object.defineProperty(exports,"SpanStatusCode",{enumerable:!0,get:()=>e.SpanStatusCode});exports.TelemetryClient=e.TelemetryClient;exports.applyThemeToDOM=e.applyThemeToDOM;exports.createResource=e.createResource;exports.getCurrentTheme=e.getCurrentTheme;exports.loadAgentLoop=e.loadAgentLoop;exports.makeProviderRecord=e.makeProviderRecord;exports.resolveTheme=e.resolveTheme;exports.useAiPanel=e.useAiPanel;exports.useTelemetry=e.useTelemetry;exports.useTelemetryClient=e.useTelemetryClient;exports.validateApiKey=e.validateApiKey;exports.OAuth2Error=t.OAuth2Error;exports.handleOAuth2Redirect=t.handleOAuth2Redirect;
|
package/dist/replay.d.ts
CHANGED
|
@@ -796,6 +796,8 @@ declare type ReplayAppProps = {
|
|
|
796
796
|
settings: InputSettings;
|
|
797
797
|
getReuniteAuth?: ReuniteAuthGetter;
|
|
798
798
|
onLoad?: () => void;
|
|
799
|
+
/** When set, the first paint of the loaded UI sends `com.redocly.app.loaded`. */
|
|
800
|
+
loadTiming?: ReplayLoadTiming;
|
|
799
801
|
renderProjectSelect?: () => React.ReactNode;
|
|
800
802
|
onSettingsOpen?: (tab?: SettingsTab) => void;
|
|
801
803
|
};
|
|
@@ -821,6 +823,12 @@ declare type ReplayGateComponentProps = {
|
|
|
821
823
|
|
|
822
824
|
declare type ReplayLayout = 'default' | 'overlay' | 'preview';
|
|
823
825
|
|
|
826
|
+
/** `performance.now()` values; `definitionReadyTime` defaults to `startTime`. */
|
|
827
|
+
export declare type ReplayLoadTiming = {
|
|
828
|
+
startTime: number;
|
|
829
|
+
definitionReadyTime?: number;
|
|
830
|
+
};
|
|
831
|
+
|
|
824
832
|
export declare type ReplayOnChangeParams = {
|
|
825
833
|
operations: ChangedOperation[];
|
|
826
834
|
activeMimeName?: string;
|
package/dist/replay.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as s, ax as r, bQ as t, bR as l, R as o, bS as b, bT as R, N as d, bU as m, bV as p, O as n, bW as y, bX as A, bY as T, bZ as i, aw as u, av as O, b_ as h, b$ as E } from "./replay-index-
|
|
1
|
+
import { A as s, ax as r, bQ as t, bR as l, R as o, bS as b, bT as R, N as d, bU as m, bV as p, O as n, bW as y, bX as A, bY as T, bZ as i, aw as u, av as O, b_ as h, b$ as E } from "./replay-index-VCzOY16S.js";
|
|
2
2
|
import { O as C, h as I } from "./replay-oauth2-redirect-handler-Bq6bpZMm.js";
|
|
3
3
|
export {
|
|
4
4
|
s as AI_PROVIDERS,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@redocly/replay",
|
|
3
|
-
"version": "0.29.0-next.
|
|
3
|
+
"version": "0.29.0-next.9",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/replay.cjs",
|
|
6
6
|
"module": "./dist/replay.js",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
"peerDependencies": {
|
|
19
|
-
"@redocly/theme": "0.70.0-next.
|
|
19
|
+
"@redocly/theme": "0.70.0-next.9",
|
|
20
20
|
"@tanstack/react-query": "5.62.3",
|
|
21
21
|
"react": "^19.2.7",
|
|
22
22
|
"react-dom": "^19.2.7",
|