@redocly/replay 0.28.0-next.8 → 0.28.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--1WugvKf.js → replay-AiChatProvider-B_f9Wn8a.js} +1 -1
- package/dist/{replay-AiChatProvider-BJdxRVOc.js → replay-AiChatProvider-DuTK5g1N.js} +41 -41
- package/dist/{replay-AiChatSqliteDBStorage-DbGtw6xx.js → replay-AiChatSqliteDBStorage-CHfMo6M6.js} +1 -1
- package/dist/{replay-AiChatSqliteDBStorage-D9fgt_9s.js → replay-AiChatSqliteDBStorage-cXsRIQfJ.js} +6 -6
- package/dist/{replay-AiPanel-BU8oG0pD.js → replay-AiPanel-CGbGwIMX.js} +35 -35
- package/dist/{replay-AiPanel-BYOLZjQX.js → replay-AiPanel-C_C52r20.js} +1 -1
- package/dist/replay-FileWatcher-DEOB0_DG.js +1 -0
- package/dist/{replay-FileWatcher-JoqPJECh.js → replay-FileWatcher-Z6eygcBI.js} +4 -5
- package/dist/{replay-HistorySqliteDBStorage-CtF6-vY8.js → replay-HistorySqliteDBStorage-Bi5vBQ2T.js} +2 -2
- package/dist/{replay-SemanticSearchService-DRDdGJkI.js → replay-SemanticSearchService-BLF1oOOu.js} +8 -12
- package/dist/replay-SemanticSearchService-DTc0oxN4.js +1 -0
- package/dist/{replay-SqliteDBStorage-B3zO7RGD.js → replay-SqliteDBStorage-B_kyJ0a3.js} +1 -1
- package/dist/{replay-SqliteDBStorage-D9Oeu_XC.js → replay-SqliteDBStorage-DF9kKplR.js} +49 -49
- package/dist/{replay-StepContextSqliteDBStorage-BfAAKDwA.js → replay-StepContextSqliteDBStorage-BkB2NM27.js} +2 -2
- package/dist/{replay-TauriFileSystemAdapter-CxHFFCmk.js → replay-TauriFileSystemAdapter-CwSMakdJ.js} +1 -1
- package/dist/{replay-TauriFileSystemAdapter-DJETGEY7.js → replay-TauriFileSystemAdapter-DcFBYSUW.js} +8 -8
- package/dist/{replay-TauriRootStorage-BSQQcFgG.js → replay-TauriRootStorage-DEGEIJrz.js} +1 -1
- package/dist/{replay-TauriRootStorage-XIJpsp6_.js → replay-TauriRootStorage-Den8gI4S.js} +85 -85
- package/dist/{replay-agent-loop-DxK1tiVw.js → replay-agent-loop-B8Mjb8DU.js} +9 -9
- package/dist/{replay-agent-loop-IDavXm8f.js → replay-agent-loop-Z_nrrmg_.js} +1 -1
- package/dist/{replay-ai-chat-mappers-B-_eSMi4.js → replay-ai-chat-mappers-D7e8buTk.js} +3 -3
- package/dist/{replay-ai-chat-mappers-BmvAc4xt.js → replay-ai-chat-mappers-aJ_VMb6Z.js} +1 -1
- package/dist/{replay-ai-message-parts.schema-E9u9-nqr.js → replay-ai-message-parts.schema-DKLf0SiG.js} +1 -1
- package/dist/{replay-create-model-CIY7WZ1P.js → replay-create-model-Be3vPVDb.js} +3 -3
- package/dist/{replay-create-model-CscK0cT1.js → replay-create-model-Bw20x80b.js} +3 -3
- package/dist/{replay-db-e_3o5e3f.js → replay-db-BQXljNM0.js} +1 -1
- package/dist/{replay-db-C_cdHXEt.js → replay-db-BmZNrdZM.js} +5 -5
- package/dist/{replay-external-resolver-BmOmF-DG.js → replay-external-resolver-BLzbbtnT.js} +1 -1
- package/dist/{replay-external-resolver-nuL3ajF5.js → replay-external-resolver-BQvSDNfH.js} +7 -7
- package/dist/{replay-history.schema-5ce6X0R1.js → replay-history.schema-B0lLwmdG.js} +3 -3
- package/dist/{replay-index-E3Eu6_jY.js → replay-index-B-uZhXHj.js} +1 -1
- package/dist/{replay-index-DDt4LOBo.js → replay-index-BCz452N6.js} +10475 -10423
- package/dist/{replay-index-DjdDUkfV.js → replay-index-C0kvTxxm.js} +31 -31
- package/dist/{replay-index-etIeWhnn.js → replay-index-C7y4K4Cr.js} +1 -1
- package/dist/replay-index-DAIwC3ls.js +1 -0
- package/dist/{replay-index-B8Zfn7JD.js → replay-index-DYtXcqDk.js} +955 -957
- package/dist/replay-index-gM6vL6iT.js +4 -0
- package/dist/{replay-index-DcbwI4wD.js → replay-index-wBHsAQEV.js} +1 -1
- package/dist/{replay-indexes-CfsvVMi_.js → replay-indexes-B3PJtgeh.js} +43 -43
- package/dist/{replay-lint-DVAifLdU.js → replay-lint-BzkTeXqI.js} +3 -3
- package/dist/{replay-lint-BjrmIhuZ.js → replay-lint-CqDMOMQt.js} +74 -74
- package/dist/{replay-lint-graphql-D1qaeEmu.js → replay-lint-graphql-BDBGJSir.js} +1 -1
- package/dist/{replay-lint-graphql-U_VxwRr1.js → replay-lint-graphql-BZF2eLiZ.js} +1 -1
- package/dist/replay-periodic-revalidation-C7SkB1vs.js +1 -0
- package/dist/{replay-periodic-revalidation-BtEKdEKa.js → replay-periodic-revalidation-orCv_JoF.js} +4 -5
- package/dist/{replay-resolve-BYJosLqD.js → replay-resolve-0e5f8I7b.js} +1 -1
- package/dist/{replay-resolve-C97SfUAB.js → replay-resolve-DZMWoig2.js} +123 -123
- package/dist/{replay-respect-run-3FHTVHvs.js → replay-respect-run-CLW3wGhx.js} +3 -3
- package/dist/{replay-respect-run-CW5xFLKz.js → replay-respect-run-ChP63WzG.js} +1 -1
- package/dist/replay-step-context.schema-BOprzd6Z.js +21 -0
- package/dist/{replay-tauri-path-CMpWmGvW.js → replay-tauri-path-DBt1dqkG.js} +1 -1
- package/dist/replay-tauri-path-DvLF4Z8f.js +22 -0
- package/dist/{replay-useAiChatQueries-CEYDGx9f.js → replay-useAiChatQueries-Bypgnkwa.js} +2 -2
- package/dist/{replay-useAiChatQueries-DhTcllVx.js → replay-useAiChatQueries-S6v5duiJ.js} +131 -137
- package/dist/{replay-validate-key-DJ_1khxq.js → replay-validate-key-CMJODIH6.js} +2 -2
- package/dist/{replay-validate-key-Dj_UT2WG.js → replay-validate-key-CNl7BV_v.js} +1 -1
- package/dist/replay.cjs +1 -1
- package/dist/replay.js +10 -10
- package/package.json +3 -3
- package/dist/replay-FileWatcher-BrhE0AP6.js +0 -1
- package/dist/replay-SemanticSearchService-BgQ1HMcT.js +0 -1
- package/dist/replay-index-C_DfEx-H.js +0 -1
- package/dist/replay-index-Da2H-hpA.js +0 -25
- package/dist/replay-periodic-revalidation-C3eLm7Mw.js +0 -1
- package/dist/replay-step-context.schema-DBk4jufr.js +0 -21
- package/dist/replay-tauri-path-C-vLbl1V.js +0 -22
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { l as we, o as be,
|
|
1
|
+
import { Y as se, J as bn, bz as Fu, p as Bu, X as Ye, bA as lh, bB as _o } from "./replay-index-BCz452N6.js";
|
|
2
|
+
import { l as we, o as be, f as an, b as et, n as Oo, e as uh, i as De, L as Zt, q as dh, j as bt, S as zu, s as fh, p as mh, t as Pa, c as wt, v as ht, Y as Vu, w as Ia, x as tn, h as hh, y as ea, z as Zo, A as ta, C as yh, D as gh, E as vh, a as yr, B as Tr, m as _a, g as bh, k as Hu, F as wh, G as Gu, d as Sh } from "./replay-resolve-DZMWoig2.js";
|
|
3
3
|
function rr(e, t) {
|
|
4
4
|
let r, n;
|
|
5
5
|
if (e === t)
|
|
@@ -30043,7 +30043,7 @@ async function KN(e) {
|
|
|
30043
30043
|
async function ph(e) {
|
|
30044
30044
|
const { document: t, customTypes: r, externalRefResolver: n, config: i } = e;
|
|
30045
30045
|
if (Sh(t.source.absoluteRef)) {
|
|
30046
|
-
const { lintGraphqlDocument: h } = await import("./replay-lint-graphql-
|
|
30046
|
+
const { lintGraphqlDocument: h } = await import("./replay-lint-graphql-BDBGJSir.js");
|
|
30047
30047
|
return h({ document: t, config: i });
|
|
30048
30048
|
}
|
|
30049
30049
|
const o = On(t.parsed), s = i.getRulesForSpecVersion($f(o)), a = Oo(i.extendTypes(r ?? No(o), o), i), c = {
|
|
@@ -30111,85 +30111,85 @@ async function WN(e) {
|
|
|
30111
30111
|
}), i.problems;
|
|
30112
30112
|
}
|
|
30113
30113
|
export {
|
|
30114
|
-
|
|
30114
|
+
FN as $,
|
|
30115
30115
|
Pr as A,
|
|
30116
|
-
|
|
30116
|
+
jN as B,
|
|
30117
30117
|
of as C,
|
|
30118
|
-
|
|
30119
|
-
|
|
30120
|
-
|
|
30121
|
-
|
|
30122
|
-
|
|
30118
|
+
Te as D,
|
|
30119
|
+
jP as E,
|
|
30120
|
+
LP as F,
|
|
30121
|
+
ie as G,
|
|
30122
|
+
oa as H,
|
|
30123
30123
|
MP as I,
|
|
30124
|
-
|
|
30125
|
-
|
|
30126
|
-
|
|
30127
|
-
|
|
30124
|
+
ty as J,
|
|
30125
|
+
Y as K,
|
|
30126
|
+
qN as L,
|
|
30127
|
+
Lt as M,
|
|
30128
30128
|
or as N,
|
|
30129
|
-
|
|
30129
|
+
Nt as O,
|
|
30130
30130
|
NN as P,
|
|
30131
|
-
|
|
30131
|
+
Le as Q,
|
|
30132
30132
|
RN as R,
|
|
30133
30133
|
sr as S,
|
|
30134
|
-
|
|
30135
|
-
|
|
30136
|
-
|
|
30137
|
-
|
|
30138
|
-
|
|
30139
|
-
|
|
30140
|
-
|
|
30141
|
-
|
|
30142
|
-
|
|
30143
|
-
|
|
30144
|
-
|
|
30145
|
-
|
|
30146
|
-
|
|
30147
|
-
|
|
30148
|
-
|
|
30149
|
-
|
|
30150
|
-
|
|
30151
|
-
|
|
30152
|
-
|
|
30153
|
-
|
|
30154
|
-
|
|
30155
|
-
|
|
30156
|
-
|
|
30157
|
-
|
|
30158
|
-
|
|
30159
|
-
|
|
30160
|
-
|
|
30161
|
-
|
|
30162
|
-
|
|
30163
|
-
|
|
30164
|
-
|
|
30165
|
-
|
|
30166
|
-
|
|
30167
|
-
|
|
30168
|
-
|
|
30169
|
-
|
|
30170
|
-
|
|
30171
|
-
|
|
30172
|
-
|
|
30173
|
-
|
|
30174
|
-
|
|
30175
|
-
|
|
30176
|
-
|
|
30177
|
-
|
|
30178
|
-
|
|
30179
|
-
|
|
30180
|
-
|
|
30181
|
-
|
|
30134
|
+
DN as T,
|
|
30135
|
+
st as U,
|
|
30136
|
+
ow as V,
|
|
30137
|
+
z0 as W,
|
|
30138
|
+
sf as X,
|
|
30139
|
+
MN as Y,
|
|
30140
|
+
nh as Z,
|
|
30141
|
+
LN as _,
|
|
30142
|
+
z_ as a,
|
|
30143
|
+
nf as a0,
|
|
30144
|
+
On as a1,
|
|
30145
|
+
zN as a2,
|
|
30146
|
+
GN as a3,
|
|
30147
|
+
vN as a4,
|
|
30148
|
+
Mu as a5,
|
|
30149
|
+
hr as a6,
|
|
30150
|
+
$f as a7,
|
|
30151
|
+
UN as a8,
|
|
30152
|
+
EN as a9,
|
|
30153
|
+
No as aa,
|
|
30154
|
+
io as ab,
|
|
30155
|
+
at as ac,
|
|
30156
|
+
Yu as ad,
|
|
30157
|
+
QN as ae,
|
|
30158
|
+
WN as af,
|
|
30159
|
+
KN as ag,
|
|
30160
|
+
BN as ah,
|
|
30161
|
+
LR as ai,
|
|
30162
|
+
qe as aj,
|
|
30163
|
+
ru as ak,
|
|
30164
|
+
$N as al,
|
|
30165
|
+
Zi as am,
|
|
30166
|
+
CR as an,
|
|
30167
|
+
Ih as ao,
|
|
30168
|
+
Dt as ap,
|
|
30169
|
+
Zd as aq,
|
|
30170
|
+
V_ as b,
|
|
30171
|
+
He as c,
|
|
30172
|
+
CN as d,
|
|
30173
|
+
ye as e,
|
|
30174
|
+
zt as f,
|
|
30175
|
+
pa as g,
|
|
30176
|
+
mo as h,
|
|
30177
|
+
B_ as i,
|
|
30178
|
+
aO as j,
|
|
30179
|
+
cn as k,
|
|
30180
|
+
ZT as l,
|
|
30181
|
+
rr as m,
|
|
30182
30182
|
er as n,
|
|
30183
|
-
|
|
30184
|
-
|
|
30185
|
-
|
|
30186
|
-
|
|
30187
|
-
|
|
30183
|
+
VN as o,
|
|
30184
|
+
ph as p,
|
|
30185
|
+
ct as q,
|
|
30186
|
+
M0 as r,
|
|
30187
|
+
Eb as s,
|
|
30188
30188
|
Xe as t,
|
|
30189
|
-
|
|
30190
|
-
|
|
30189
|
+
Gb as u,
|
|
30190
|
+
jf as v,
|
|
30191
30191
|
tr as w,
|
|
30192
|
-
|
|
30193
|
-
|
|
30194
|
-
|
|
30192
|
+
tl as x,
|
|
30193
|
+
Mo as y,
|
|
30194
|
+
CP as z
|
|
30195
30195
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { G as R, T as L, i as k, a as g, d as B, b as M, c as A, e as U, f as V, K as a, O as T, D as K, L as G, g as v, h as $, v as Y, j } from "./replay-lint-CqDMOMQt.js";
|
|
2
2
|
function u(n, t, e) {
|
|
3
3
|
return new R(`Syntax Error: ${e}`, {
|
|
4
4
|
source: n,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./replay-lint-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./replay-lint-BzkTeXqI.js");function u(i,t,e){return new a.GraphQLError(`Syntax Error: ${e}`,{source:i,positions:[t]})}var r;(function(i){i.SOF="<SOF>",i.EOF="<EOF>",i.BANG="!",i.DOLLAR="$",i.AMP="&",i.PAREN_L="(",i.PAREN_R=")",i.DOT=".",i.SPREAD="...",i.COLON=":",i.EQUALS="=",i.AT="@",i.BRACKET_L="[",i.BRACKET_R="]",i.BRACE_L="{",i.PIPE="|",i.BRACE_R="}",i.NAME="Name",i.INT="Int",i.FLOAT="Float",i.STRING="String",i.BLOCK_STRING="BlockString",i.COMMENT="Comment"})(r||(r={}));class R{constructor(t){const e=new a.Token(r.SOF,0,0,0,0);this.source=t,this.lastToken=e,this.token=e,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==r.EOF)do if(t.next)t=t.next;else{const e=S(this,t.end);t.next=e,e.prev=t,t=e}while(t.kind===r.COMMENT);return t}}function g(i){return i===r.BANG||i===r.DOLLAR||i===r.AMP||i===r.PAREN_L||i===r.PAREN_R||i===r.DOT||i===r.SPREAD||i===r.COLON||i===r.EQUALS||i===r.AT||i===r.BRACKET_L||i===r.BRACKET_R||i===r.BRACE_L||i===r.PIPE||i===r.BRACE_R}function E(i){return i>=0&&i<=55295||i>=57344&&i<=1114111}function N(i,t){return O(i.charCodeAt(t))&&v(i.charCodeAt(t+1))}function O(i){return i>=55296&&i<=56319}function v(i){return i>=56320&&i<=57343}function x(i,t){const e=i.source.body.codePointAt(t);if(e===void 0)return r.EOF;if(e>=32&&e<=126){const s=String.fromCodePoint(e);return s==='"'?`'"'`:`"${s}"`}return"U+"+e.toString(16).toUpperCase().padStart(4,"0")}function h(i,t,e,s,n){const o=i.line,c=1+e-i.lineStart;return new a.Token(t,e,s,o,c,n)}function S(i,t){const e=i.source.body,s=e.length;let n=t;for(;n<s;){const o=e.charCodeAt(n);switch(o){case 65279:case 9:case 32:case 44:++n;continue;case 10:++n,++i.line,i.lineStart=n;continue;case 13:e.charCodeAt(n+1)===10?n+=2:++n,++i.line,i.lineStart=n;continue;case 35:return w(i,n);case 33:return h(i,r.BANG,n,n+1);case 36:return h(i,r.DOLLAR,n,n+1);case 38:return h(i,r.AMP,n,n+1);case 40:return h(i,r.PAREN_L,n,n+1);case 41:return h(i,r.PAREN_R,n,n+1);case 46:if(e.charCodeAt(n+1)===46&&e.charCodeAt(n+2)===46)return h(i,r.SPREAD,n,n+3);break;case 58:return h(i,r.COLON,n,n+1);case 61:return h(i,r.EQUALS,n,n+1);case 64:return h(i,r.AT,n,n+1);case 91:return h(i,r.BRACKET_L,n,n+1);case 93:return h(i,r.BRACKET_R,n,n+1);case 123:return h(i,r.BRACE_L,n,n+1);case 124:return h(i,r.PIPE,n,n+1);case 125:return h(i,r.BRACE_R,n,n+1);case 34:return e.charCodeAt(n+1)===34&&e.charCodeAt(n+2)===34?M(i,n):K(i,n)}if(a.isDigit(o)||o===45)return b(i,n,o);if(a.isNameStart(o))return U(i,n);throw u(i.source,n,o===39?`Unexpected single quote character ('), did you mean to use a double quote (")?`:E(o)||N(e,n)?`Unexpected character: ${x(i,n)}.`:`Invalid character: ${x(i,n)}.`)}return h(i,r.EOF,s,s)}function w(i,t){const e=i.source.body,s=e.length;let n=t+1;for(;n<s;){const o=e.charCodeAt(n);if(o===10||o===13)break;if(E(o))++n;else if(N(e,n))n+=2;else break}return h(i,r.COMMENT,t,n,e.slice(t+1,n))}function b(i,t,e){const s=i.source.body;let n=t,o=e,c=!1;if(o===45&&(o=s.charCodeAt(++n)),o===48){if(o=s.charCodeAt(++n),a.isDigit(o))throw u(i.source,n,`Invalid number, unexpected digit after 0: ${x(i,n)}.`)}else n=k(i,n,o),o=s.charCodeAt(n);if(o===46&&(c=!0,o=s.charCodeAt(++n),n=k(i,n,o),o=s.charCodeAt(n)),(o===69||o===101)&&(c=!0,o=s.charCodeAt(++n),(o===43||o===45)&&(o=s.charCodeAt(++n)),n=k(i,n,o),o=s.charCodeAt(n)),o===46||a.isNameStart(o))throw u(i.source,n,`Invalid number, expected digit but got: ${x(i,n)}.`);return h(i,c?r.FLOAT:r.INT,t,n,s.slice(t,n))}function k(i,t,e){if(!a.isDigit(e))throw u(i.source,t,`Invalid number, expected digit but got: ${x(i,t)}.`);const s=i.source.body;let n=t+1;for(;a.isDigit(s.charCodeAt(n));)++n;return n}function K(i,t){const e=i.source.body,s=e.length;let n=t+1,o=n,c="";for(;n<s;){const p=e.charCodeAt(n);if(p===34)return c+=e.slice(o,n),h(i,r.STRING,t,n+1,c);if(p===92){c+=e.slice(o,n);const d=e.charCodeAt(n+1)===117?e.charCodeAt(n+2)===123?P(i,n):F(i,n):B(i,n);c+=d.value,n+=d.size,o=n;continue}if(p===10||p===13)break;if(E(p))++n;else if(N(e,n))n+=2;else throw u(i.source,n,`Invalid character within String: ${x(i,n)}.`)}throw u(i.source,n,"Unterminated string.")}function P(i,t){const e=i.source.body;let s=0,n=3;for(;n<12;){const o=e.charCodeAt(t+n++);if(o===125){if(n<5||!E(s))break;return{value:String.fromCodePoint(s),size:n}}if(s=s<<4|m(o),s<0)break}throw u(i.source,t,`Invalid Unicode escape sequence: "${e.slice(t,t+n)}".`)}function F(i,t){const e=i.source.body,s=D(e,t+2);if(E(s))return{value:String.fromCodePoint(s),size:6};if(O(s)&&e.charCodeAt(t+6)===92&&e.charCodeAt(t+7)===117){const n=D(e,t+8);if(v(n))return{value:String.fromCodePoint(s,n),size:12}}throw u(i.source,t,`Invalid Unicode escape sequence: "${e.slice(t,t+6)}".`)}function D(i,t){return m(i.charCodeAt(t))<<12|m(i.charCodeAt(t+1))<<8|m(i.charCodeAt(t+2))<<4|m(i.charCodeAt(t+3))}function m(i){return i>=48&&i<=57?i-48:i>=65&&i<=70?i-55:i>=97&&i<=102?i-87:-1}function B(i,t){const e=i.source.body;switch(e.charCodeAt(t+1)){case 34:return{value:'"',size:2};case 92:return{value:"\\",size:2};case 47:return{value:"/",size:2};case 98:return{value:"\b",size:2};case 102:return{value:"\f",size:2};case 110:return{value:`
|
|
2
2
|
`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw u(i.source,t,`Invalid character escape sequence: "${e.slice(t,t+2)}".`)}function M(i,t){const e=i.source.body,s=e.length;let n=i.lineStart,o=t+3,c=o,p="";const d=[];for(;o<s;){const f=e.charCodeAt(o);if(f===34&&e.charCodeAt(o+1)===34&&e.charCodeAt(o+2)===34){p+=e.slice(c,o),d.push(p);const l=h(i,r.BLOCK_STRING,t,o+3,a.dedentBlockStringLines(d).join(`
|
|
3
3
|
`));return i.line+=d.length-1,i.lineStart=n,l}if(f===92&&e.charCodeAt(o+1)===34&&e.charCodeAt(o+2)===34&&e.charCodeAt(o+3)===34){p+=e.slice(c,o),c=o+1,o+=4;continue}if(f===10||f===13){p+=e.slice(c,o),d.push(p),f===13&&e.charCodeAt(o+1)===10?o+=2:++o,p="",c=o,n=o;continue}if(E(f))++o;else if(N(e,o))o+=2;else throw u(i.source,o,`Invalid character within String: ${x(i,o)}.`)}throw u(i.source,o,"Unterminated string.")}function U(i,t){const e=i.source.body,s=e.length;let n=t+1;for(;n<s;){const o=e.charCodeAt(n);if(a.isNameContinue(o))++n;else break}return h(i,r.NAME,t,n,e.slice(t,n))}class _{constructor(t,e="GraphQL request",s={line:1,column:1}){typeof t=="string"||a.devAssert(!1,`Body must be a string. Received: ${a.inspect(t)}.`),this.body=t,this.name=e,this.locationOffset=s,this.locationOffset.line>0||a.devAssert(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||a.devAssert(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}}function V(i){return a.instanceOf(i,_)}function G(i,t){const e=new $(i,t),s=e.parseDocument();return Object.defineProperty(s,"tokenCount",{enumerable:!1,value:e.tokenCount}),s}class ${constructor(t,e={}){const{lexer:s,...n}=e;if(s)this._lexer=s;else{const o=V(t)?t:new _(t);this._lexer=new R(o)}this._options=n,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){const t=this.expectToken(r.NAME);return this.node(t,{kind:a.Kind.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:a.Kind.DOCUMENT,definitions:this.many(r.SOF,this.parseDefinition,r.EOF)})}parseDefinition(){if(this.peek(r.BRACE_L))return this.parseOperationDefinition();const t=this.peekDescription(),e=t?this._lexer.lookahead():this._lexer.token;if(t&&e.kind===r.BRACE_L)throw u(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are not supported on shorthand queries.");if(e.kind===r.NAME){switch(e.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}switch(e.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition()}if(t)throw u(this._lexer.source,this._lexer.token.start,"Unexpected description, only GraphQL definitions support descriptions.");if(e.value==="extend")return this.parseTypeSystemExtension()}throw this.unexpected(e)}parseOperationDefinition(){const t=this._lexer.token;if(this.peek(r.BRACE_L))return this.node(t,{kind:a.Kind.OPERATION_DEFINITION,operation:a.OperationTypeNode.QUERY,description:void 0,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});const e=this.parseDescription(),s=this.parseOperationType();let n;return this.peek(r.NAME)&&(n=this.parseName()),this.node(t,{kind:a.Kind.OPERATION_DEFINITION,operation:s,description:e,name:n,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){const t=this.expectToken(r.NAME);switch(t.value){case"query":return a.OperationTypeNode.QUERY;case"mutation":return a.OperationTypeNode.MUTATION;case"subscription":return a.OperationTypeNode.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(r.PAREN_L,this.parseVariableDefinition,r.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:a.Kind.VARIABLE_DEFINITION,description:this.parseDescription(),variable:this.parseVariable(),type:(this.expectToken(r.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(r.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){const t=this._lexer.token;return this.expectToken(r.DOLLAR),this.node(t,{kind:a.Kind.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:a.Kind.SELECTION_SET,selections:this.many(r.BRACE_L,this.parseSelection,r.BRACE_R)})}parseSelection(){return this.peek(r.SPREAD)?this.parseFragment():this.parseField()}parseField(){const t=this._lexer.token,e=this.parseName();let s,n;return this.expectOptionalToken(r.COLON)?(s=e,n=this.parseName()):n=e,this.node(t,{kind:a.Kind.FIELD,alias:s,name:n,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(r.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){const e=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(r.PAREN_L,e,r.PAREN_R)}parseArgument(t=!1){const e=this._lexer.token,s=this.parseName();return this.expectToken(r.COLON),this.node(e,{kind:a.Kind.ARGUMENT,name:s,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){const t=this._lexer.token;this.expectToken(r.SPREAD);const e=this.expectOptionalKeyword("on");return!e&&this.peek(r.NAME)?this.node(t,{kind:a.Kind.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:a.Kind.INLINE_FRAGMENT,typeCondition:e?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){const t=this._lexer.token,e=this.parseDescription();return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:a.Kind.FRAGMENT_DEFINITION,description:e,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:a.Kind.FRAGMENT_DEFINITION,description:e,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentName(){if(this._lexer.token.value==="on")throw this.unexpected();return this.parseName()}parseValueLiteral(t){const e=this._lexer.token;switch(e.kind){case r.BRACKET_L:return this.parseList(t);case r.BRACE_L:return this.parseObject(t);case r.INT:return this.advanceLexer(),this.node(e,{kind:a.Kind.INT,value:e.value});case r.FLOAT:return this.advanceLexer(),this.node(e,{kind:a.Kind.FLOAT,value:e.value});case r.STRING:case r.BLOCK_STRING:return this.parseStringLiteral();case r.NAME:switch(this.advanceLexer(),e.value){case"true":return this.node(e,{kind:a.Kind.BOOLEAN,value:!0});case"false":return this.node(e,{kind:a.Kind.BOOLEAN,value:!1});case"null":return this.node(e,{kind:a.Kind.NULL});default:return this.node(e,{kind:a.Kind.ENUM,value:e.value})}case r.DOLLAR:if(t)if(this.expectToken(r.DOLLAR),this._lexer.token.kind===r.NAME){const s=this._lexer.token.value;throw u(this._lexer.source,e.start,`Unexpected variable "$${s}" in constant value.`)}else throw this.unexpected(e);return this.parseVariable();default:throw this.unexpected()}}parseConstValueLiteral(){return this.parseValueLiteral(!0)}parseStringLiteral(){const t=this._lexer.token;return this.advanceLexer(),this.node(t,{kind:a.Kind.STRING,value:t.value,block:t.kind===r.BLOCK_STRING})}parseList(t){const e=()=>this.parseValueLiteral(t);return this.node(this._lexer.token,{kind:a.Kind.LIST,values:this.any(r.BRACKET_L,e,r.BRACKET_R)})}parseObject(t){const e=()=>this.parseObjectField(t);return this.node(this._lexer.token,{kind:a.Kind.OBJECT,fields:this.any(r.BRACE_L,e,r.BRACE_R)})}parseObjectField(t){const e=this._lexer.token,s=this.parseName();return this.expectToken(r.COLON),this.node(e,{kind:a.Kind.OBJECT_FIELD,name:s,value:this.parseValueLiteral(t)})}parseDirectives(t){const e=[];for(;this.peek(r.AT);)e.push(this.parseDirective(t));return e}parseConstDirectives(){return this.parseDirectives(!0)}parseDirective(t){const e=this._lexer.token;return this.expectToken(r.AT),this.node(e,{kind:a.Kind.DIRECTIVE,name:this.parseName(),arguments:this.parseArguments(t)})}parseTypeReference(){const t=this._lexer.token;let e;if(this.expectOptionalToken(r.BRACKET_L)){const s=this.parseTypeReference();this.expectToken(r.BRACKET_R),e=this.node(t,{kind:a.Kind.LIST_TYPE,type:s})}else e=this.parseNamedType();return this.expectOptionalToken(r.BANG)?this.node(t,{kind:a.Kind.NON_NULL_TYPE,type:e}):e}parseNamedType(){return this.node(this._lexer.token,{kind:a.Kind.NAMED_TYPE,name:this.parseName()})}peekDescription(){return this.peek(r.STRING)||this.peek(r.BLOCK_STRING)}parseDescription(){if(this.peekDescription())return this.parseStringLiteral()}parseSchemaDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("schema");const s=this.parseConstDirectives(),n=this.many(r.BRACE_L,this.parseOperationTypeDefinition,r.BRACE_R);return this.node(t,{kind:a.Kind.SCHEMA_DEFINITION,description:e,directives:s,operationTypes:n})}parseOperationTypeDefinition(){const t=this._lexer.token,e=this.parseOperationType();this.expectToken(r.COLON);const s=this.parseNamedType();return this.node(t,{kind:a.Kind.OPERATION_TYPE_DEFINITION,operation:e,type:s})}parseScalarTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("scalar");const s=this.parseName(),n=this.parseConstDirectives();return this.node(t,{kind:a.Kind.SCALAR_TYPE_DEFINITION,description:e,name:s,directives:n})}parseObjectTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("type");const s=this.parseName(),n=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),c=this.parseFieldsDefinition();return this.node(t,{kind:a.Kind.OBJECT_TYPE_DEFINITION,description:e,name:s,interfaces:n,directives:o,fields:c})}parseImplementsInterfaces(){return this.expectOptionalKeyword("implements")?this.delimitedMany(r.AMP,this.parseNamedType):[]}parseFieldsDefinition(){return this.optionalMany(r.BRACE_L,this.parseFieldDefinition,r.BRACE_R)}parseFieldDefinition(){const t=this._lexer.token,e=this.parseDescription(),s=this.parseName(),n=this.parseArgumentDefs();this.expectToken(r.COLON);const o=this.parseTypeReference(),c=this.parseConstDirectives();return this.node(t,{kind:a.Kind.FIELD_DEFINITION,description:e,name:s,arguments:n,type:o,directives:c})}parseArgumentDefs(){return this.optionalMany(r.PAREN_L,this.parseInputValueDef,r.PAREN_R)}parseInputValueDef(){const t=this._lexer.token,e=this.parseDescription(),s=this.parseName();this.expectToken(r.COLON);const n=this.parseTypeReference();let o;this.expectOptionalToken(r.EQUALS)&&(o=this.parseConstValueLiteral());const c=this.parseConstDirectives();return this.node(t,{kind:a.Kind.INPUT_VALUE_DEFINITION,description:e,name:s,type:n,defaultValue:o,directives:c})}parseInterfaceTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("interface");const s=this.parseName(),n=this.parseImplementsInterfaces(),o=this.parseConstDirectives(),c=this.parseFieldsDefinition();return this.node(t,{kind:a.Kind.INTERFACE_TYPE_DEFINITION,description:e,name:s,interfaces:n,directives:o,fields:c})}parseUnionTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("union");const s=this.parseName(),n=this.parseConstDirectives(),o=this.parseUnionMemberTypes();return this.node(t,{kind:a.Kind.UNION_TYPE_DEFINITION,description:e,name:s,directives:n,types:o})}parseUnionMemberTypes(){return this.expectOptionalToken(r.EQUALS)?this.delimitedMany(r.PIPE,this.parseNamedType):[]}parseEnumTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("enum");const s=this.parseName(),n=this.parseConstDirectives(),o=this.parseEnumValuesDefinition();return this.node(t,{kind:a.Kind.ENUM_TYPE_DEFINITION,description:e,name:s,directives:n,values:o})}parseEnumValuesDefinition(){return this.optionalMany(r.BRACE_L,this.parseEnumValueDefinition,r.BRACE_R)}parseEnumValueDefinition(){const t=this._lexer.token,e=this.parseDescription(),s=this.parseEnumValueName(),n=this.parseConstDirectives();return this.node(t,{kind:a.Kind.ENUM_VALUE_DEFINITION,description:e,name:s,directives:n})}parseEnumValueName(){if(this._lexer.token.value==="true"||this._lexer.token.value==="false"||this._lexer.token.value==="null")throw u(this._lexer.source,this._lexer.token.start,`${T(this._lexer.token)} is reserved and cannot be used for an enum value.`);return this.parseName()}parseInputObjectTypeDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("input");const s=this.parseName(),n=this.parseConstDirectives(),o=this.parseInputFieldsDefinition();return this.node(t,{kind:a.Kind.INPUT_OBJECT_TYPE_DEFINITION,description:e,name:s,directives:n,fields:o})}parseInputFieldsDefinition(){return this.optionalMany(r.BRACE_L,this.parseInputValueDef,r.BRACE_R)}parseTypeSystemExtension(){const t=this._lexer.lookahead();if(t.kind===r.NAME)switch(t.value){case"schema":return this.parseSchemaExtension();case"scalar":return this.parseScalarTypeExtension();case"type":return this.parseObjectTypeExtension();case"interface":return this.parseInterfaceTypeExtension();case"union":return this.parseUnionTypeExtension();case"enum":return this.parseEnumTypeExtension();case"input":return this.parseInputObjectTypeExtension();case"directive":if(this._options.experimentalDirectivesOnDirectiveDefinitions)return this.parseDirectiveDefinitionExtension();break}throw this.unexpected(t)}parseSchemaExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("schema");const e=this.parseConstDirectives(),s=this.optionalMany(r.BRACE_L,this.parseOperationTypeDefinition,r.BRACE_R);if(e.length===0&&s.length===0)throw this.unexpected();return this.node(t,{kind:a.Kind.SCHEMA_EXTENSION,directives:e,operationTypes:s})}parseScalarTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("scalar");const e=this.parseName(),s=this.parseConstDirectives();if(s.length===0)throw this.unexpected();return this.node(t,{kind:a.Kind.SCALAR_TYPE_EXTENSION,name:e,directives:s})}parseObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("type");const e=this.parseName(),s=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(s.length===0&&n.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:a.Kind.OBJECT_TYPE_EXTENSION,name:e,interfaces:s,directives:n,fields:o})}parseInterfaceTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("interface");const e=this.parseName(),s=this.parseImplementsInterfaces(),n=this.parseConstDirectives(),o=this.parseFieldsDefinition();if(s.length===0&&n.length===0&&o.length===0)throw this.unexpected();return this.node(t,{kind:a.Kind.INTERFACE_TYPE_EXTENSION,name:e,interfaces:s,directives:n,fields:o})}parseUnionTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("union");const e=this.parseName(),s=this.parseConstDirectives(),n=this.parseUnionMemberTypes();if(s.length===0&&n.length===0)throw this.unexpected();return this.node(t,{kind:a.Kind.UNION_TYPE_EXTENSION,name:e,directives:s,types:n})}parseEnumTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("enum");const e=this.parseName(),s=this.parseConstDirectives(),n=this.parseEnumValuesDefinition();if(s.length===0&&n.length===0)throw this.unexpected();return this.node(t,{kind:a.Kind.ENUM_TYPE_EXTENSION,name:e,directives:s,values:n})}parseInputObjectTypeExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("input");const e=this.parseName(),s=this.parseConstDirectives(),n=this.parseInputFieldsDefinition();if(s.length===0&&n.length===0)throw this.unexpected();return this.node(t,{kind:a.Kind.INPUT_OBJECT_TYPE_EXTENSION,name:e,directives:s,fields:n})}parseDirectiveDefinitionExtension(){const t=this._lexer.token;this.expectKeyword("extend"),this.expectKeyword("directive"),this.expectToken(r.AT);const e=this.parseName(),s=this.parseConstDirectives();if(s.length===0)throw this.unexpected();return this.node(t,{kind:a.Kind.DIRECTIVE_EXTENSION,name:e,directives:s})}parseDirectiveDefinition(){const t=this._lexer.token,e=this.parseDescription();this.expectKeyword("directive"),this.expectToken(r.AT);const s=this.parseName(),n=this.parseArgumentDefs(),o=this._options.experimentalDirectivesOnDirectiveDefinitions?this.parseConstDirectives():[],c=this.expectOptionalKeyword("repeatable");this.expectKeyword("on");const p=this.parseDirectiveLocations();return this.node(t,{kind:a.Kind.DIRECTIVE_DEFINITION,description:e,name:s,arguments:n,directives:o,repeatable:c,locations:p})}parseDirectiveLocations(){return this.delimitedMany(r.PIPE,this.parseDirectiveLocation)}parseDirectiveLocation(){const t=this._lexer.token,e=this.parseName();if(Object.prototype.hasOwnProperty.call(a.DirectiveLocation,e.value))return e;throw this.unexpected(t)}parseSchemaCoordinate(){const t=this._lexer.token,e=this.expectOptionalToken(r.AT),s=this.parseName();let n;!e&&this.expectOptionalToken(r.DOT)&&(n=this.parseName());let o;return(e||n)&&this.expectOptionalToken(r.PAREN_L)&&(o=this.parseName(),this.expectToken(r.COLON),this.expectToken(r.PAREN_R)),e?o?this.node(t,{kind:a.Kind.DIRECTIVE_ARGUMENT_COORDINATE,name:s,argumentName:o}):this.node(t,{kind:a.Kind.DIRECTIVE_COORDINATE,name:s}):n?o?this.node(t,{kind:a.Kind.ARGUMENT_COORDINATE,name:s,fieldName:n,argumentName:o}):this.node(t,{kind:a.Kind.MEMBER_COORDINATE,name:s,memberName:n}):this.node(t,{kind:a.Kind.TYPE_COORDINATE,name:s})}node(t,e){return this._options.noLocation!==!0&&(e.loc=new a.Location(t,this._lexer.lastToken,this._lexer.source)),e}peek(t){return this._lexer.token.kind===t}expectToken(t){const e=this._lexer.token;if(e.kind===t)return this.advanceLexer(),e;throw u(this._lexer.source,e.start,`Expected ${C(t)}, found ${T(e)}.`)}expectOptionalToken(t){return this._lexer.token.kind===t?(this.advanceLexer(),!0):!1}expectKeyword(t){const e=this._lexer.token;if(e.kind===r.NAME&&e.value===t)this.advanceLexer();else throw u(this._lexer.source,e.start,`Expected "${t}", found ${T(e)}.`)}expectOptionalKeyword(t){const e=this._lexer.token;return e.kind===r.NAME&&e.value===t?(this.advanceLexer(),!0):!1}unexpected(t){const e=t??this._lexer.token;return u(this._lexer.source,e.start,`Unexpected ${T(e)}.`)}any(t,e,s){this.expectToken(t);const n=[];for(;!this.expectOptionalToken(s);)n.push(e.call(this));return n}optionalMany(t,e,s){if(this.expectOptionalToken(t)){const n=[];do n.push(e.call(this));while(!this.expectOptionalToken(s));return n}return[]}many(t,e,s){this.expectToken(t);const n=[];do n.push(e.call(this));while(!this.expectOptionalToken(s));return n}delimitedMany(t,e){this.expectOptionalToken(t);const s=[];do s.push(e.call(this));while(this.expectOptionalToken(t));return s}advanceLexer(){const{maxTokens:t}=this._options,e=this._lexer.advance();if(e.kind!==r.EOF&&(++this._tokenCounter,t!==void 0&&this._tokenCounter>t))throw u(this._lexer.source,e.start,`Document contains more that ${t} tokens. Parsing aborted.`)}}function T(i){const t=i.value;return C(i.kind)+(t!=null?` "${t}"`:"")}function C(i){return g(i)?`"${i}"`:i}function Y(i,t){const e={};for(const s of Object.keys(i)){const n=i[s];if(!n)continue;const o=typeof n=="function"?n:n.enter,c=typeof n=="function"?void 0:n.leave;e[s]={...o?{enter:y(o,t)}:{},...c?{leave:y(c,t)}:{}}}return e}function y(i,t){return(e,s,n,o,c)=>{i(e,j(e,t,c))}}function j(i,t,e=[]){const{ruleId:s,severity:n,message:o,source:c,config:p,problems:d}=t,f=e.filter(l=>!Array.isArray(l));return{source:c,config:p,ancestors:f,report(l){const I=l.node??i,A=l.loc??q(I),L={source:c,pointer:void 0,start:A?.start??{line:1,col:1},end:A?.end};d.push({ruleId:l.ruleId??s,severity:l.severity??n,message:o?o.replace("{{message}}",l.message):l.message,suggest:l.suggest??[],location:[L]})}}}function q(i){if(!i?.loc)return;const t=a.getLocation(i.loc.source,i.loc.start),e=a.getLocation(i.loc.source,i.loc.end);return{start:{line:t.line,col:t.column},end:{line:e.line,col:e.column}}}function Q(i){const{document:t,config:e}=i,s=t.source;if(s.body.trim()==="")return[{ruleId:"struct",severity:"error",message:"The GraphQL document is empty. Expected at least one type definition.",suggest:[],location:[{source:s,pointer:void 0,start:{line:1,col:1}}]}];let n;try{n=G(new _(s.body,s.absoluteRef))}catch(d){if(d instanceof a.GraphQLError)return[z(d,s)];throw d}const o=e.getRulesForSpecVersion("graphql")??[],c=a.initRules(o,e,"rules","graphql");return X({ast:n,source:s,config:e,rules:c}).map(d=>e.addProblemToIgnore(d))}function z(i,t){const e=i.locations?.[0];return{ruleId:"struct",severity:"error",message:i.message,suggest:[],location:[{source:t,pointer:void 0,start:e?{line:e.line,col:e.column}:{line:1,col:1}}]}}function X(i){const{ast:t,source:e,config:s,rules:n}=i,o=[],c=n.map(({ruleId:p,severity:d,message:f,visitor:l})=>Y(l,{ruleId:p,severity:d,message:f,source:e,config:s,problems:o}));return c.length>0&&a.visit(t,a.visitInParallel(c)),o}exports.lintGraphqlDocument=Q;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./replay-index-DYtXcqDk.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;
|
package/dist/{replay-periodic-revalidation-BtEKdEKa.js → replay-periodic-revalidation-orCv_JoF.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { c, a as l } from "./replay-index-BCz452N6.js";
|
|
2
2
|
const s = 300 * 1e3;
|
|
3
3
|
function I(t) {
|
|
4
4
|
return () => ({
|
|
@@ -8,15 +8,14 @@ function I(t) {
|
|
|
8
8
|
}
|
|
9
9
|
function f(t, n, i = s) {
|
|
10
10
|
let e = !1;
|
|
11
|
-
const r = I(n),
|
|
12
|
-
e || t.getIndexingActivityState().inProgress || (e = !0, t.reindex(r).catch((
|
|
11
|
+
const r = I(n), a = setInterval(() => {
|
|
12
|
+
e || t.getIndexingActivityState().inProgress || (e = !0, t.reindex(r).catch((o) => console.error("Semantic index revalidation:", o)).finally(() => {
|
|
13
13
|
e = !1;
|
|
14
14
|
}));
|
|
15
15
|
}, i);
|
|
16
|
-
return () => clearInterval(
|
|
16
|
+
return () => clearInterval(a);
|
|
17
17
|
}
|
|
18
18
|
export {
|
|
19
|
-
s as INDEX_REVALIDATION_INTERVAL_MS,
|
|
20
19
|
I as createIndexSnapshotGetter,
|
|
21
20
|
f as startPeriodicIndexRevalidation
|
|
22
21
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const se=require("./replay-index-B8Zfn7JD.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-DYtXcqDk.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}
|