return ['type', 'scheme']; case 'oauth2': return ['type', 'flows']; case 'openIdConnect': return ['type', 'openIdConnectUrl']; default: return ['type']; } }, allowed(e) { switch (null == e ? void 0 : e.type) { case 'apiKey': return ['type', 'name', 'in', 'description']; case 'http': return ['type', 'scheme', 'bearerFormat', 'description']; case 'oauth2': switch (null == e ? void 0 : e.flows) { case 'implicit': return [ 'type', 'flows', 'authorizationUrl', 'refreshUrl', 'description', 'scopes' ]; case 'password': case 'clientCredentials': return [ 'type', 'flows', 'tokenUrl', 'refreshUrl', 'description', 'scopes' ]; default: return [ 'type', 'flows', 'authorizationUrl', 'refreshUrl', 'tokenUrl', 'description', 'scopes' ]; } case 'openIdConnect': return ['type', 'openIdConnectUrl', 'description']; default: return ['type', 'description']; } }, extensionsPrefix: 'x-' }; t.Oas3_1Types = Object.assign(Object.assign({}, o.Oas3Types), { Info: { properties: { title: { type: 'string' }, version: { type: 'string' }, description: { type: 'string' }, termsOfService: { type: 'string' }, summary: { type: 'string' }, contact: 'Contact', license: 'License' }, required: ['title', 'version'] }, DefinitionRoot: i, Schema: s, License: { properties: { name: { type: 'string' }, url: { type: 'string' }, identifier: { type: 'string' } }, required: ['name'] }, Components: { properties: { parameters: 'NamedParameters', schemas: 'NamedSchemas', responses: 'NamedResponses', examples: 'NamedExamples', requestBodies: 'NamedRequestBodies', headers: 'NamedHeaders', securitySchemes: 'NamedSecuritySchemes', links: 'NamedLinks', callbacks: 'NamedCallbacks', pathItems: 'NamedPathItems' } }, NamedPathItems: r.mapOf('PathItem'), SecurityScheme: l, Operation: a }); }, 771: function (e, t, n) { 'use strict'; var r = (this && this.__awaiter) || function (e, t, n, r) { return new (n || (n = Promise))(function (o, i) { function a(e) { try { l(r.next(e)); } catch (e) { i(e); } } function s(e) { try { l(r.throw(e)); } catch (e) { i(e); } } function l(e) { var t; e.done ? o(e.value) : ((t = e.value), t instanceof n ? t : new n(function (e) { e(t); })).then(a, s); } l((r = r.apply(e, t || [])).next()); }); }; Object.defineProperty(t, '__esModule', { value: !0 }), (t.isCustomRuleId = t.getMatchingStatusCodeRange = t.assignExisting = t.isNotString = t.isString = t.isNotEmptyObject = t.slash = t.isPathParameter = t.readFileAsStringSync = t.isSingular = t.validateMimeTypeOAS3 = t.validateMimeType = t.splitCamelCaseIntoWords = t.omitObjectProps = t.pickObjectProps = t.readFileFromUrl = t.isEmptyArray = t.isEmptyObject = t.isPlainObject = t.notUndefined = t.loadYaml = t.popStack = t.pushStack = t.stringifyYaml = t.parseYaml = void 0); const o = n(3197), i = n(4099), a = n(8150), s = n(3450), l = n(5273), c = n(8698); var u = n(5273); function p(e) { return null !== e && 'object' == typeof e && !Array.isArray(e); } function d(e, t) { return ( t.match(/^https?:\\/\\//) || (e = e.replace(/^https?:\\/\\//, '')), i(e, t) ); } function f(e) { return 'string' == typeof e; } Object.defineProperty(t, 'parseYaml', { enumerable: !0, get: function () { return u.parseYaml; } }), Object.defineProperty(t, 'stringifyYaml', { enumerable: !0, get: function () { return u.stringifyYaml; } }), (t.pushStack = function (e, t) { return { prev: e, value: t }; }), (t.popStack = function (e) { var t; return null !== (t = null == e ? void 0 : e.prev) && void 0 !== t ? t : null; }), (t.loadYaml = function (e) { return r(this, void 0, void 0, function* () { const t = yield o.promises.readFile(e, 'utf-8'); return l.parseYaml(t); }); }), (t.notUndefined = function (e) { return void 0 !== e; }), (t.isPlainObject = p), (t.isEmptyObject = function (e) { return p(e) && 0 === Object.keys(e).length; }), (t.isEmptyArray = function (e) { return Array.isArray(e) && 0 === e.length; }), (t.readFileFromUrl = function (e, t) { return r(this, void 0, void 0, function* () { const n = {}; for (const r of t.headers) d(e, r.matches) && (n[r.name] = void 0 !== r.envVariable ? c.env[r.envVariable] || '' : r.value); const r = yield (t.customFetch || a.default)(e, { headers: n }); if (!r.ok) throw new Error( \`Failed to load \${e}: \${r.status} \${r.statusText}\` ); return { body: yield r.text(), mimeType: r.headers.get('content-type') }; }); }), (t.pickObjectProps = function (e, t) { return Object.fromEntries( t.filter(t => t in e).map(t => [t, e[t]]) ); }), (t.omitObjectProps = function (e, t) { return Object.fromEntries( Object.entries(e).filter(([e]) => !t.includes(e)) ); }), (t.splitCamelCaseIntoWords = function (e) { const t = e .split(/(?:[-._])|([A-Z][a-z]+)/) .filter(Boolean) .map(e => e.toLocaleLowerCase()), n = e .split(/([A-Z]{2,})/) .filter(e => e && e === e.toUpperCase()) .map(e => e.toLocaleLowerCase()); return new Set([...t, ...n]); }), (t.validateMimeType = function ( { type: e, value: t }, { report: n, location: r }, o ) { if (!o) throw new Error( \`Parameter "allowedValues" is not provided for "\${ 'consumes' === e ? 'request' : 'response' }-mime-type" rule\` ); if (t[e]) for (const i of t[e]) o.includes(i) || n({ message: \`Mime type "\${i}" is not allowed\`, location: r.child(t[e].indexOf(i)).key() }); }), (t.validateMimeTypeOAS3 = function ( { type: e, value: t }, { report: n, location: r }, o ) { if (!o) throw new Error( \`Parameter "allowedValues" is not provided for "\${ 'consumes' === e ? 'request' : 'response' }-mime-type" rule\` ); if (t.content) for (const e of Object.keys(t.content)) o.includes(e) || n({ message: \`Mime type "\${e}" is not allowed\`, location: r.child('content').child(e).key() }); }), (t.isSingular = function (e) { return s.isSingular(e); }), (t.readFileAsStringSync = function (e) { return o.readFileSync(e, 'utf-8'); }), (t.isPathParameter = function (e) { return e.startsWith('{') && e.endsWith('}'); }), (t.slash = function (e) { return /^\\\\\\\\\\?\\\\/.test(e) ? e : e.replace(/\\\\/g, '/'); }), (t.isNotEmptyObject = function (e) { return !!e && Object.keys(e).length > 0; }), (t.isString = f), (t.isNotString = function (e) { return !f(e); }), (t.assignExisting = function (e, t) { for (let n of Object.keys(t)) e.hasOwnProperty(n) && (e[n] = t[n]); }), (t.getMatchingStatusCodeRange = e => \`\${e}\`.replace(/^(\\d)\\d\\d$/, (e, t) => \`\${t}XX\`)), (t.isCustomRuleId = function (e) { return e.includes('/'); }); }, 8065: function (e, t) { 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }), (t.normalizeVisitors = void 0), (t.normalizeVisitors = function (e, t) { const n = { any: { enter: [], leave: [] } }; for (const e of Object.keys(t)) n[e] = { enter: [], leave: [] }; n.ref = { enter: [], leave: [] }; for (const { ruleId: t, severity: n, visitor: r } of e) o({ ruleId: t, severity: n }, r, null); for (const e of Object.keys(n)) n[e].enter.sort((e, t) => t.depth - e.depth), n[e].leave.sort((e, t) => e.depth - t.depth); return n; function r(e, t, o, i, a = []) { if (a.includes(t)) return; a = [...a, t]; const s = new Set(); for (let n of Object.values(t.properties)) n !== o ? 'object' == typeof n && null !== n && n.name && s.add(n) : l(e, a); t.additionalProperties && 'function' != typeof t.additionalProperties && (t.additionalProperties === o ? l(e, a) : void 0 !== t.additionalProperties.name && s.add(t.additionalProperties)), t.items && (t.items === o ? l(e, a) : void 0 !== t.items.name && s.add(t.items)); for (let t of Array.from(s.values())) r(e, t, o, i, a); function l(e, t) { for (const r of t.slice(1)) (n[r.name] = n[r.name] || { enter: [], leave: [] }), n[r.name].enter.push( Object.assign(Object.assign({}, e), { visit: () => {}, depth: 0, context: { isSkippedLevel: !0, seen: new Set(), parent: i } }) ); } } function o(e, i, a, s = 0) { const l = Object.keys(t); if (0 === s) l.push('any'), l.push('ref'); else { if (i.any) throw new Error('any() is allowed only on top level'); if (i.ref) throw new Error('ref() is allowed only on top level'); } for (const c of l) { const l = i[c], u = n[c]; if (!l) continue; let p, d, f; const h = 'object' == typeof l; if ('ref' === c && h && l.skip) throw new Error('ref() visitor does not support skip'); 'function' == typeof l ? (p = l) : h && ((p = l.enter), (d = l.leave), (f = l.skip)); const m = { activatedOn: null, type: t[c], parent: a, isSkippedLevel: !1 }; if ( ('object' == typeof l && o(e, l, m, s + 1), a && r(e, a.type, t[c], a), p || h) ) { if (p && 'function' != typeof p) throw new Error('DEV: should be function'); u.enter.push( Object.assign(Object.assign({}, e), { visit: p || (() => {}), skip: f, depth: s, context: m }) ); } if (d) { if ('function' != typeof d) throw new Error('DEV: should be function'); u.leave.push( Object.assign(Object.assign({}, e), { visit: d, depth: s, context: m }) ); } } } }); }, 9443: function (e, t, n) { 'use strict'; Object.defineProperty(t, '__esModule', { value: !0 }), (t.walkDocument = void 0); const r = n(7468), o = n(4182), i = n(771), a = n(5220); function s(e) { var t, n; const r = {}; for (; e.parent; ) (null === (t = e.parent.activatedOn) || void 0 === t ? void 0 : t.value.location) && (r[e.parent.type.name] = null === (n = e.parent.activatedOn) || void 0 === n ? void 0 : n.value.location), (e = e.parent); return r; } t.walkDocument = function (e) { const { document: t, rootType: n, normalizedVisitors: l, resolvedRefMap: c, ctx: u } = e, p = {}, d = new Set(); !(function e(t, n, f, h, m) { var g, y, v, b, w, x, k, _, O, S, E; const P = (e, t = $.source.absoluteRef) => { if (!r.isRef(e)) return { location: f, node: e }; const n = o.makeRefId(t, e.$ref), i = c.get(n); if (!i) return { location: void 0, node: void 0 }; const { resolved: a, node: s, document: l, nodePointer: u, error: p } = i; return { location: a ? new r.Location(l.source, u) : p instanceof o.YamlParseError ? new r.Location(p.source, '') : void 0, node: s, error: p }; }, A = f; let $ = f; const { node: C, location: R, error: j } = P(t), T = new Set(); if (r.isRef(t)) { const e = l.ref.enter; for (const { visit: r, ruleId: o, severity: i, context: a } of e) if (!d.has(t)) { T.add(a); r( t, { report: N.bind(void 0, o, i), resolve: P, rawNode: t, rawLocation: A, location: f, type: n, parent: h, key: m, parentLocations: {}, oasVersion: u.oasVersion, getVisitorData: D.bind(void 0, o) }, { node: C, location: R, error: j } ), (null == R ? void 0 : R.source.absoluteRef) && u.refTypes && u.refTypes.set( null == R ? void 0 : R.source.absoluteRef, n ); } } if (void 0 !== C && R && 'scalar' !== n.name) { $ = R; const o = null === (y = null === (g = p[n.name]) || void 0 === g ? void 0 : g.has) || void 0 === y ? void 0 : y.call(g, C); let s = !1; const c = l.any.enter.concat( (null === (v = l[n.name]) || void 0 === v ? void 0 : v.enter) || [] ), u = []; for (const { context: e, visit: r, skip: a, ruleId: l, severity: p } of c) if (e.isSkippedLevel) !e.parent.activatedOn || e.parent.activatedOn.value.nextLevelTypeActivated || e.seen.has(t) || (e.seen.add(t), (s = !0), u.push(e)); else if ( (e.parent && e.parent.activatedOn && (null === (b = e.activatedOn) || void 0 === b ? void 0 : b.value.withParentNode) !== e.parent.activatedOn.value.node && (null === (w = e.parent.activatedOn.value.nextLevelTypeActivated) || void 0 === w ? void 0 : w.value) !== n) || (!e.parent && !o) ) { u.push(e); const o = { node: C, location: R, nextLevelTypeActivated: null, withParentNode: null === (k = null === (x = e.parent) || void 0 === x ? void 0 : x.activatedOn) || void 0 === k ? void 0 : k.value.node, skipped: null !== (S = (null === (O = null === (_ = e.parent) || void 0 === _ ? void 0 : _.activatedOn) || void 0 === O ? void 0 : O.value.skipped) || (null == a ? void 0 : a(C, m))) && void 0 !== S && S }; e.activatedOn = i.pushStack(e.activatedOn, o); let c = e.parent; for (; c; ) (c.activatedOn.value.nextLevelTypeActivated = i.pushStack( c.activatedOn.value.nextLevelTypeActivated, n )), (c = c.parent); if (!o.skipped) { (s = !0), T.add(e); const { ignoreNextVisitorsOnNode: n } = I( r, C, t, e, l, p ); if (n) break; } } if (s || !o) if ( ((p[n.name] = p[n.name] || new Set()), p[n.name].add(C), Array.isArray(C)) ) { const t = n.items; if (void 0 !== t) for (let n = 0; n < C.length; n++) e(C[n], t, R.child([n]), C, n); } else if ('object' == typeof C && null !== C) { const o = Object.keys(n.properties); n.additionalProperties && o.push(...Object.keys(C).filter(e => !o.includes(e))), r.isRef(t) && o.push( ...Object.keys(t).filter( e => '$ref' !== e && !o.includes(e) ) ); for (const i of o) { let o = C[i], s = R; void 0 === o && ((o = t[i]), (s = f)); let l = n.properties[i]; void 0 === l && (l = n.additionalProperties), 'function' == typeof l && (l = l(o, i)), !a.isNamedType(l) && (null == l ? void 0 : l.directResolveAs) && ((l = l.directResolveAs), (o = { $ref: o })), l && void 0 === l.name && !1 !== l.resolvable && (l = { name: 'scalar', properties: {} }), a.isNamedType(l) && ('scalar' !== l.name || r.isRef(o)) && e(o, l, s.child([i]), C, i); } } const d = l.any.leave, h = ( (null === (E = l[n.name]) || void 0 === E ? void 0 : E.leave) || [] ).concat(d); for (const e of u.reverse()) if (e.isSkippedLevel) e.seen.delete(C); else if ( ((e.activatedOn = i.popStack(e.activatedOn)), e.parent) ) { let t = e.parent; for (; t; ) (t.activatedOn.value.nextLevelTypeActivated = i.popStack( t.activatedOn.value.nextLevelTypeActivated )), (t = t.parent); } for (const { context: e, visit: n, ruleId: r, severity: o } of h) !e.isSkippedLevel && T.has(e) && I(n, C, t, e, r, o); } if ((($ = f), r.isRef(t))) { const e = l.ref.leave; for (const { visit: r, ruleId: o, severity: i, context: a } of e) if (T.has(a)) { r( t, { report: N.bind(void 0, o, i), resolve: P, rawNode: t, rawLocation: A, location: f, type: n, parent: h, key: m, parentLocations: {}, oasVersion: u.oasVersion, getVisitorData: D.bind(void 0, o) }, { node: C, location: R, error: j } ); } } function I(e, t, r, o, i, a) { const l = N.bind(void 0, i, a); let c = !1; return ( e( t, { report: l, resolve: P, rawNode: r, location: $, rawLocation: A, type: n, parent: h, key: m, parentLocations: s(o), oasVersion: u.oasVersion, ignoreNextVisitorsOnNode: () => { c = !0; }, getVisitorData: D.bind(void 0, i) }, (function (e) { var t; const n = {}; for (; e.parent; ) (n[e.parent.type.name] = null === (t = e.parent.activatedOn) || void 0 === t ? void 0 : t.value.node), (e = e.parent); return n; })(o), o ), { ignoreNextVisitorsOnNode: c } ); } function N(e, t, n) { const r = n.location ? Array.isArray(n.location) ? n.location : [n.location] : [Object.assign(Object.assign({}, $), { reportOnKey: !1 })]; u.problems.push( Object.assign( Object.assign( { ruleId: n.ruleId || e, severity: n.forceSeverity || t }, n ), { suggest: n.suggest || [], location: r.map(e => Object.assign( Object.assign(Object.assign({}, $), { reportOnKey: !1 }), e ) ) } ) ); } function D(e) { return ( (u.visitorsData[e] = u.visitorsData[e] || {}), u.visitorsData[e] ); } })(t.parsed, n, new r.Location(t.source, '#/'), void 0, ''); }; }, 5019: function (e, t, n) { var r = n(5623); e.exports = function (e) { return e ? ('{}' === e.substr(0, 2) && (e = '\\\\{\\\\}' + e.substr(2)), g( (function (e) { return e .split('\\\\\\\\') .join(o) .split('\\\\{') .join(i) .split('\\\\}') .join(a) .split('\\\\,') .join(s) .split('\\\\.') .join(l); })(e), !0 ).map(u)) : []; }; var o = '\\0SLASH' + Math.random() + '\\0', i = '\\0OPEN' + Math.random() + '\\0', a = '\\0CLOSE' + Math.random() + '\\0', s = '\\0COMMA' + Math.random() + '\\0', l = '\\0PERIOD' + Math.random() + '\\0'; function c(e) { return parseInt(e, 10) == e ? parseInt(e, 10) : e.charCodeAt(0); } function u(e) { return e .split(o) .join('\\\\') .split(i) .join('{') .split(a) .join('}') .split(s) .join(',') .split(l) .join('.'); } function p(e) { if (!e) return ['']; var t = [], n = r('{', '}', e); if (!n) return e.split(','); var o = n.pre, i = n.body, a = n.post, s = o.split(','); s[s.length - 1] += '{' + i + '}'; var l = p(a); return ( a.length && ((s[s.length - 1] += l.shift()), s.push.apply(s, l)), t.push.apply(t, s), t ); } function d(e) { return '{' + e + '}'; } function f(e) { return /^-?0\\d/.test(e); } function h(e, t) { return e <= t; } function m(e, t) { return e >= t; } function g(e, t) { var n = [], o = r('{', '}', e); if (!o) return [e]; var i = o.pre, s = o.post.length ? g(o.post, !1) : ['']; if (/\\$$/.test(o.pre)) for (var l = 0; l < s.length; l++) { var u = i + '{' + o.body + '}' + s[l]; n.push(u); } else { var y, v, b = /^-?\\d+\\.\\.-?\\d+(?:\\.\\.-?\\d+)?$/.test(o.body), w = /^[a-zA-Z]\\.\\.[a-zA-Z](?:\\.\\.-?\\d+)?$/.test(o.body), x = b || w, k = o.body.indexOf(',') >= 0; if (!x && !k) return o.post.match(/,.*\\}/) ? g((e = o.pre + '{' + o.body + a + o.post)) : [e]; if (x) y = o.body.split(/\\.\\./); else if ( 1 === (y = p(o.body)).length && 1 === (y = g(y[0], !1).map(d)).length ) return s.map(function (e) { return o.pre + y[0] + e; }); if (x) { var _ = c(y[0]), O = c(y[1]), S = Math.max(y[0].length, y[1].length), E = 3 == y.length ? Math.abs(c(y[2])) : 1, P = h; O < _ && ((E *= -1), (P = m)); var A = y.some(f); v = []; for (var $ = _; P($, O); $ += E) { var C; if (w) '\\\\' === (C = String.fromCharCode($)) && (C = ''); else if (((C = String($)), A)) { var R = S - C.length; if (R > 0) { var j = new Array(R + 1).join('0'); C = $ < 0 ? '-' + j + C.slice(1) : j + C; } } v.push(C); } } else { v = []; for (var T = 0; T < y.length; T++) v.push.apply(v, g(y[T], !1)); } for (T = 0; T < v.length; T++) for (l = 0; l < s.length; l++) (u = i + v[T] + s[l]), (!t || x || u) && n.push(u); } return n; } }, 5751: function (e) { const t = 'object' == typeof process && process && !1; e.exports = t ? { sep: '\\\\' } : { sep: '/' }; }, 4099: function (e, t, n) { const r = (e.exports = (e, t, n = {}) => ( g(t), !(!n.nocomment && '#' === t.charAt(0)) && new v(t, n).match(e) )); e.exports = r; const o = n(5751); r.sep = o.sep; const i = Symbol('globstar **'); r.GLOBSTAR = i; const a = n(5019), s = { '!': { open: '(?:(?!(?:', close: '))[^/]*?)' }, '?': { open: '(?:', close: ')?' }, '+': { open: '(?:', close: ')+' }, '*': { open: '(?:', close: ')*' }, '@': { open: '(?:', close: ')' } }, l = '[^/]', c = '[^/]*?', u = e => e.split('').reduce((e, t) => ((e[t] = !0), e), {}), p = u('().*{}+?[]^$\\\\!'), d = u('[.('), f = /\\/+/; r.filter = (e, t = {}) => (n, o, i) => r(n, e, t); const h = (e, t = {}) => { const n = {}; return ( Object.keys(e).forEach(t => (n[t] = e[t])), Object.keys(t).forEach(e => (n[e] = t[e])), n ); }; (r.defaults = e => { if (!e || 'object' != typeof e || !Object.keys(e).length) return r; const t = r, n = (n, r, o) => t(n, r, h(e, o)); return ( ((n.Minimatch = class extends t.Minimatch { constructor(t, n) { super(t, h(e, n)); } }).defaults = n => t.defaults(h(e, n)).Minimatch), (n.filter = (n, r) => t.filter(n, h(e, r))), (n.defaults = n => t.defaults(h(e, n))), (n.makeRe = (n, r) => t.makeRe(n, h(e, r))), (n.braceExpand = (n, r) => t.braceExpand(n, h(e, r))), (n.match = (n, r, o) => t.match(n, r, h(e, o))), n ); }), (r.braceExpand = (e, t) => m(e, t)); const m = (e, t = {}) => ( g(e), t.nobrace || !/\\{(?:(?!\\{).)*\\}/.test(e) ? [e] : a(e) ), g = e => { if ('string' != typeof e) throw new TypeError('invalid pattern'); if (e.length > 65536) throw new TypeError('pattern is too long'); }, y = Symbol('subparse'); (r.makeRe = (e, t) => new v(e, t || {}).makeRe()), (r.match = (e, t, n = {}) => { const r = new v(t, n); return ( (e = e.filter(e => r.match(e))), r.options.nonull && !e.length && e.push(t), e ); }); class v { constructor(e, t) { g(e), t || (t = {}), (this.options = t), (this.set = []), (this.pattern = e), (this.regexp = null), (this.negate = !1), (this.comment = !1), (this.empty = !1), (this.partial = !!t.partial), this.make(); } debug() {} make() { const e = this.pattern, t = this.options; if (!t.nocomment && '#' === e.charAt(0)) return void (this.comment = !0); if (!e) return void (this.empty = !0); this.parseNegate(); let n = (this.globSet = this.braceExpand()); t.debug && (this.debug = (...e) => console.error(...e)), this.debug(this.pattern, n), (n = this.globParts = n.map(e => e.split(f))), this.debug(this.pattern, n), (n = n.map((e, t, n) => e.map(this.parse, this))), this.debug(this.pattern, n), (n = n.filter(e => -1 === e.indexOf(!1))), this.debug(this.pattern, n), (this.set = n); } parseNegate() { if (this.options.nonegate) return; const e = this.pattern; let t = !1, n = 0; for (let r = 0; r < e.length && '!' === e.charAt(r); r++) (t = !t), n++; n && (this.pattern = e.substr(n)), (this.negate = t); } matchOne(e, t, n) { var r = this.options; this.debug('matchOne', { this: this, file: e, pattern: t }), this.debug('matchOne', e.length, t.length); for ( var o = 0, a = 0, s = e.length, l = t.length; o < s && a < l; o++, a++ ) { this.debug('matchOne loop'); var c, u = t[a], p = e[o]; if ((this.debug(t, u, p), !1 === u)) return !1; if (u === i) { this.debug('GLOBSTAR', [t, u, p]); var d = o, f = a + 1; if (f === l) { for (this.debug('** at the end'); o < s; o++) if ( '.' === e[o] || '..' === e[o] || (!r.dot && '.' === e[o].charAt(0)) ) return !1; return !0; } for (; d < s; ) { var h = e[d]; if ( (this.debug('\\nglobstar while', e, d, t, f, h), this.matchOne(e.slice(d), t.slice(f), n)) ) return this.debug('globstar found match!', d, s, h), !0; if ( '.' === h || '..' === h || (!r.dot && '.' === h.charAt(0)) ) { this.debug('dot detected!', e, d, t, f); break; } this.debug('globstar swallow a segment, and continue'), d++; } return !( !n || (this.debug('\\n>>> no match, partial?', e, d, t, f), d !== s) ); } if ( ('string' == typeof u ? ((c = p === u), this.debug('string match', u, p, c)) : ((c = p.match(u)), this.debug('pattern match', u, p, c)), !c) ) return !1; } if (o === s && a === l) return !0; if (o === s) return n; if (a === l) return o === s - 1 && '' === e[o]; throw new Error('wtf?'); } braceExpand() { return m(this.pattern, this.options); } parse(e, t) { g(e); const n = this.options; if ('**' === e) { if (!n.noglobstar) return i; e = '*'; } if ('' === e) return ''; let r = '', o = !!n.nocase, a = !1; const u = [], f = []; let h, m, v, b, w = !1, x = -1, k = -1; const _ = '.' === e.charAt(0) ? '' : n.dot ? '(?!(?:^|\\\\/)\\\\.{1,2}(?:$|\\\\/))' : '(?!\\\\.)', O = () => { if (h) { switch (h) { case '*': (r += c), (o = !0); break; case '?': (r += l), (o = !0); break; default: r += '\\\\' + h; } this.debug('clearStateChar %j %j', h, r), (h = !1); } }; for (let t, i = 0; i < e.length && (t = e.charAt(i)); i++) if ((this.debug('%s\\t%s %s %j', e, i, r, t), a)) { if ('/' === t) return !1; p[t] && (r += '\\\\'), (r += t), (a = !1); } else switch (t) { case '/': return !1; case '\\\\': O(), (a = !0); continue; case '?': case '*': case '+': case '@': case '!': if ( (this.debug('%s\\t%s %s %j <-- stateChar', e, i, r, t), w) ) { this.debug(' in class'), '!' === t && i === k + 1 && (t = '^'), (r += t); continue; } this.debug('call clearStateChar %j', h), O(), (h = t), n.noext && O(); continue; case '(': if (w) { r += '('; continue; } if (!h) { r += '\\\\('; continue; } u.push({ type: h, start: i - 1, reStart: r.length, open: s[h].open, close: s[h].close }), (r += '!' === h ? '(?:(?!(?:' : '(?:'), this.debug('plType %j %j', h, r), (h = !1); continue; case ')': if (w || !u.length) { r += '\\\\)'; continue; } O(), (o = !0), (v = u.pop()), (r += v.close), '!' === v.type && f.push(v), (v.reEnd = r.length); continue; case '|': if (w || !u.length) { r += '\\\\|'; continue; } O(), (r += '|'); continue; case '[': if ((O(), w)) { r += '\\\\' + t; continue; } (w = !0), (k = i), (x = r.length), (r += t); continue; case ']': if (i === k + 1 || !w) { r += '\\\\' + t; continue; } m = e.substring(k + 1, i); try { RegExp('[' + m + ']'); } catch (e) { (b = this.parse(m, y)), (r = r.substr(0, x) + '\\\\[' + b[0] + '\\\\]'), (o = o || b[1]), (w = !1); continue; } (o = !0), (w = !1), (r += t); continue; default: O(), !p[t] || ('^' === t && w) || (r += '\\\\'), (r += t); } for ( w && ((m = e.substr(k + 1)), (b = this.parse(m, y)), (r = r.substr(0, x) + '\\\\[' + b[0]), (o = o || b[1])), v = u.pop(); v; v = u.pop() ) { let e; (e = r.slice(v.reStart + v.open.length)), this.debug('setting tail', r, v), (e = e.replace( /((?:\\\\{2}){0,64})(\\\\?)\\|/g, (e, t, n) => (n || (n = '\\\\'), t + t + n + '|') )), this.debug('tail=%j\\n %s', e, e, v, r); const t = '*' === v.type ? c : '?' === v.type ? l : '\\\\' + v.type; (o = !0), (r = r.slice(0, v.reStart) + t + '\\\\(' + e); } O(), a && (r += '\\\\\\\\'); const S = d[r.charAt(0)]; for (let e = f.length - 1; e > -1; e--) { const n = f[e], o = r.slice(0, n.reStart), i = r.slice(n.reStart, n.reEnd - 8); let a = r.slice(n.reEnd); const s = r.slice(n.reEnd - 8, n.reEnd) + a, l = o.split('(').length - 1; let c = a; for (let e = 0; e < l; e++) c = c.replace(/\\)[+*?]?/, ''); (a = c), (r = o + i + a + ('' === a && t !== y ? '$' : '') + s); } if ( ('' !== r && o && (r = '(?=.)' + r), S && (r = _ + r), t === y) ) return [r, o]; if (!o) return e.replace(/\\\\(.)/g, '$1'); const E = n.nocase ? 'i' : ''; try { return Object.assign(new RegExp('^' + r + '$', E), { _glob: e, _src: r }); } catch (e) { return new RegExp('$.'); } } makeRe() { if (this.regexp || !1 === this.regexp) return this.regexp; const e = this.set; if (!e.length) return (this.regexp = !1), this.regexp; const t = this.options, n = t.noglobstar ? c : t.dot ? '(?:(?!(?:\\\\/|^)(?:\\\\.{1,2})($|\\\\/)).)*?' : '(?:(?!(?:\\\\/|^)\\\\.).)*?', r = t.nocase ? 'i' : ''; let o = e .map( e => ( (e = e .map(e => 'string' == typeof e ? e.replace(/[-[\\]{}()*+?.,\\\\^$|#\\s]/g, '\\\\$&') : e === i ? i : e._src ) .reduce( (e, t) => ( (e[e.length - 1] === i && t === i) || e.push(t), e ), [] )), e.forEach((t, r) => { t === i && e[r - 1] !== i && (0 === r ? e.length > 1 ? (e[r + 1] = '(?:\\\\/|' + n + '\\\\/)?' + e[r + 1]) : (e[r] = n) : r === e.length - 1 ? (e[r - 1] += '(?:\\\\/|' + n + ')?') : ((e[r - 1] += '(?:\\\\/|\\\\/' + n + '\\\\/)' + e[r + 1]), (e[r + 1] = i))); }), e.filter(e => e !== i).join('/') ) ) .join('|'); (o = '^(?:' + o + ')$'), this.negate && (o = '^(?!' + o + ').*$'); try { this.regexp = new RegExp(o, r); } catch (e) { this.regexp = !1; } return this.regexp; } match(e, t = this.partial) { if ((this.debug('match', e, this.pattern), this.comment)) return !1; if (this.empty) return '' === e; if ('/' === e && t) return !0; const n = this.options; '/' !== o.sep && (e = e.split(o.sep).join('/')), (e = e.split(f)), this.debug(this.pattern, 'split', e); const r = this.set; let i; this.debug(this.pattern, 'set', r); for (let t = e.length - 1; t >= 0 && ((i = e[t]), !i); t--); for (let o = 0; o < r.length; o++) { const a = r[o]; let s = e; if ( (n.matchBase && 1 === a.length && (s = [i]), this.matchOne(s, a, t)) ) return !!n.flipNegate || !this.negate; } return !n.flipNegate && this.negate; } static defaults(e) { return r.defaults(e).Minimatch; } } r.Minimatch = v; }, 5623: function (e) { 'use strict'; function t(e, t, o) { e instanceof RegExp && (e = n(e, o)), t instanceof RegExp && (t = n(t, o)); var i = r(e, t, o); return ( i && { start: i[0], end: i[1], pre: o.slice(0, i[0]), body: o.slice(i[0] + e.length, i[1]), post: o.slice(i[1] + t.length) } ); } function n(e, t) { var n = t.match(e); return n ? n[0] : null; } function r(e, t, n) { var r, o, i, a, s, l = n.indexOf(e), c = n.indexOf(t, l + 1), u = l; if (l >= 0 && c > 0) { if (e === t) return [l, c]; for (r = [], i = n.length; u >= 0 && !s; ) u == l ? (r.push(u), (l = n.indexOf(e, u + 1))) : 1 == r.length ? (s = [r.pop(), c]) : ((o = r.pop()) < i && ((i = o), (a = c)), (c = n.indexOf(t, u + 1))), (u = l < c && l >= 0 ? l : c); r.length && (s = [i, a]); } return s; } (e.exports = t), (t.range = r); }, 4480: function (e, t, n) { 'use strict'; var r = (n.g.process && process.nextTick) || n.g.setImmediate || function (e) { setTimeout(e, 0); }; e.exports = function (e, t) { return e ? void t.then( function (t) { r(function () { e(null, t); }); }, function (t) { r(function () { e(t); }); } ) : t; }; }, 4184: function (e, t) { var n; !(function () { 'use strict'; var r = {}.hasOwnProperty; function o() { for (var e = [], t = 0; t < arguments.length; t++) { var n = arguments[t]; if (n) { var i = typeof n; if ('string' === i || 'number' === i) e.push(n); else if (Array.isArray(n)) { if (n.length) { var a = o.apply(null, n); a && e.push(a); } } else if ('object' === i) if (n.toString === Object.prototype.toString) for (var s in n) r.call(n, s) && n[s] && e.push(s); else e.push(n.toString()); } } return e.join(' '); } e.exports ? ((o.default = o), (e.exports = o)) : void 0 === (n = function () { return o; }.apply(t, [])) || (e.exports = n); })(); }, 9266: function (e, t, n) { n(2222), n(1539), n(2526), n(2443), n(1817), n(2401), n(8722), n(2165), n(9007), n(6066), n(3510), n(1840), n(6982), n(2159), n(6649), n(9341), n(543), n(3706), n(408), n(1299); var r = n(857); e.exports = r.Symbol; }, 3099: function (e) { e.exports = function (e) { if ('function' != typeof e) throw TypeError(String(e) + ' is not a function'); return e; }; }, 9670: function (e, t, n) { var r = n(111); e.exports = function (e) { if (!r(e)) throw TypeError(String(e) + ' is not an object'); return e; }; }, 1318: function (e, t, n) { var r = n(5656), o = n(7466), i = n(1400), a = function (e) { return function (t, n, a) { var s, l = r(t), c = o(l.length), u = i(a, c); if (e && n != n) { for (; c > u; ) if ((s = l[u++]) != s) return !0; } else for (; c > u; u++) if ((e || u in l) && l[u] === n) return e || u || 0; return !e && -1; }; }; e.exports = { includes: a(!0), indexOf: a(!1) }; }, 2092: function (e, t, n) { var r = n(9974), o = n(8361), i = n(7908), a = n(7466), s = n(5417), l = [].push, c = function (e) { var t = 1 == e, n = 2 == e, c = 3 == e, u = 4 == e, p = 6 == e, d = 7 == e, f = 5 == e || p; return function (h, m, g, y) { for ( var v, b, w = i(h), x = o(w), k = r(m, g, 3), _ = a(x.length), O = 0, S = y || s, E = t ? S(h, _) : n || d ? S(h, 0) : void 0; _ > O; O++ ) if ((f || O in x) && ((b = k((v = x[O]), O, w)), e)) if (t) E[O] = b; else if (b) switch (e) { case 3: return !0; case 5: return v; case 6: return O; case 2: l.call(E, v); } else switch (e) { case 4: return !1; case 7: l.call(E, v); } return p ? -1 : c || u ? u : E; }; }; e.exports = { forEach: c(0), map: c(1), filter: c(2), some: c(3), every: c(4), find: c(5), findIndex: c(6), filterOut: c(7) }; }, 1194: function (e, t, n) { var r = n(7293), o = n(5112), i = n(7392), a = o('species'); e.exports = function (e) { return ( i >= 51 || !r(function () { var t = []; return ( ((t.constructor = {})[a] = function () { return { foo: 1 }; }), 1 !== t[e](Boolean).foo ); }) ); }; }, 5417: function (e, t, n) { var r = n(111), o = n(3157), i = n(5112)('species'); e.exports = function (e, t) { var n; return ( o(e) && ('function' != typeof (n = e.constructor) || (n !== Array && !o(n.prototype)) ? r(n) && null === (n = n[i]) && (n = void 0) : (n = void 0)), new (void 0 === n ? Array : n)(0 === t ? 0 : t) ); }; }, 4326: function (e) { var t = {}.toString; e.exports = function (e) { return t.call(e).slice(8, -1); }; }, 648: function (e, t, n) { var r = n(1694), o = n(4326), i = n(5112)('toStringTag'), a = 'Arguments' == o( (function () { return arguments; })() ); e.exports = r ? o : function (e) { var t, n, r; return void 0 === e ? 'Undefined' : null === e ? 'Null' : 'string' == typeof (n = (function (e, t) { try { return e[t]; } catch (e) {} })((t = Object(e)), i)) ? n : a ? o(t) : 'Object' == (r = o(t)) && 'function' == typeof t.callee ? 'Arguments' : r; }; }, 9920: function (e, t, n) { var r = n(6656), o = n(3887), i = n(1236), a = n(3070); e.exports = function (e, t) { for (var n = o(t), s = a.f, l = i.f, c = 0; c < n.length; c++) { var u = n[c]; r(e, u) || s(e, u, l(t, u)); } }; }, 8880: function (e, t, n) { var r = n(9781), o = n(3070), i = n(9114); e.exports = r ? function (e, t, n) { return o.f(e, t, i(1, n)); } : function (e, t, n) { return (e[t] = n), e; }; }, 9114: function (e) { e.exports = function (e, t) { return { enumerable: !(1 & e), configurable: !(2 & e), writable: !(4 & e), value: t }; }; }, 6135: function (e, t, n) { 'use strict'; var r = n(7593), o = n(3070), i = n(9114); e.exports = function (e, t, n) { var a = r(t); a in e ? o.f(e, a, i(0, n)) : (e[a] = n); }; }, 7235: function (e, t, n) { var r = n(857), o = n(6656), i = n(6061), a = n(3070).f; e.exports = function (e) { var t = r.Symbol || (r.Symbol = {}); o(t, e) || a(t, e, { value: i.f(e) }); }; }, 9781: function (e, t, n) { var r = n(7293); e.exports = !r(function () { return ( 7 != Object.defineProperty({}, 1, { get: function () { return 7; } })[1] ); }); }, 317: function (e, t, n) { var r = n(7854), o = n(111), i = r.document, a = o(i) &