@rotki/eslint-config 3.3.0 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +942 -643
- package/dist/index.d.cts +315 -202
- package/dist/index.d.ts +315 -202
- package/dist/index.js +942 -643
- package/package.json +27 -27
package/dist/index.cjs
CHANGED
|
@@ -33,10 +33,10 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
33
33
|
));
|
|
34
34
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
35
35
|
|
|
36
|
-
// node_modules/.pnpm/tsup@8.3.
|
|
36
|
+
// node_modules/.pnpm/tsup@8.3.5_jiti@1.21.6_postcss@8.4.39_tsx@4.19.1_typescript@5.6.3_yaml@2.5.0/node_modules/tsup/assets/cjs_shims.js
|
|
37
37
|
var getImportMetaUrl, importMetaUrl;
|
|
38
38
|
var init_cjs_shims = __esm({
|
|
39
|
-
"node_modules/.pnpm/tsup@8.3.
|
|
39
|
+
"node_modules/.pnpm/tsup@8.3.5_jiti@1.21.6_postcss@8.4.39_tsx@4.19.1_typescript@5.6.3_yaml@2.5.0/node_modules/tsup/assets/cjs_shims.js"() {
|
|
40
40
|
"use strict";
|
|
41
41
|
getImportMetaUrl = () => typeof document === "undefined" ? new URL(`file:${__filename}`).href : document.currentScript && document.currentScript.src || new URL("main.js", document.baseURI).href;
|
|
42
42
|
importMetaUrl = /* @__PURE__ */ getImportMetaUrl();
|
|
@@ -11651,17 +11651,17 @@ var require_regexp_ast_analysis = __commonJS({
|
|
|
11651
11651
|
}
|
|
11652
11652
|
});
|
|
11653
11653
|
|
|
11654
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
11654
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/replacements-utils.js
|
|
11655
11655
|
var require_replacements_utils = __commonJS({
|
|
11656
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
11656
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/replacements-utils.js"(exports2) {
|
|
11657
11657
|
"use strict";
|
|
11658
11658
|
init_cjs_shims();
|
|
11659
11659
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
11660
|
-
exports2.
|
|
11660
|
+
exports2.parseReplacementsForString = parseReplacementsForString;
|
|
11661
|
+
exports2.baseParseReplacements = baseParseReplacements;
|
|
11661
11662
|
function parseReplacementsForString(text) {
|
|
11662
11663
|
return baseParseReplacements([...text].map((s) => ({ value: s })), () => ({}));
|
|
11663
11664
|
}
|
|
11664
|
-
exports2.parseReplacementsForString = parseReplacementsForString;
|
|
11665
11665
|
function baseParseReplacements(chars, getData) {
|
|
11666
11666
|
const elements = [];
|
|
11667
11667
|
let token;
|
|
@@ -11671,7 +11671,11 @@ var require_replacements_utils = __commonJS({
|
|
|
11671
11671
|
const next = chars[index++];
|
|
11672
11672
|
if (next) {
|
|
11673
11673
|
if (next.value === "$" || next.value === "&" || next.value === "`" || next.value === "'") {
|
|
11674
|
-
elements.push(
|
|
11674
|
+
elements.push({
|
|
11675
|
+
type: "DollarElement",
|
|
11676
|
+
kind: next.value,
|
|
11677
|
+
...getData(token, next)
|
|
11678
|
+
});
|
|
11675
11679
|
continue;
|
|
11676
11680
|
}
|
|
11677
11681
|
if (parseNumberRef(token, next)) {
|
|
@@ -11683,7 +11687,11 @@ var require_replacements_utils = __commonJS({
|
|
|
11683
11687
|
index--;
|
|
11684
11688
|
}
|
|
11685
11689
|
}
|
|
11686
|
-
elements.push(
|
|
11690
|
+
elements.push({
|
|
11691
|
+
type: "CharacterElement",
|
|
11692
|
+
value: token.value,
|
|
11693
|
+
...getData(token, token)
|
|
11694
|
+
});
|
|
11687
11695
|
}
|
|
11688
11696
|
return elements;
|
|
11689
11697
|
function parseNumberRef(dollarToken, startToken) {
|
|
@@ -11695,7 +11703,12 @@ var require_replacements_utils = __commonJS({
|
|
|
11695
11703
|
if (next) {
|
|
11696
11704
|
if (/^[1-9]$/u.test(next.value)) {
|
|
11697
11705
|
const ref2 = Number(next.value);
|
|
11698
|
-
elements.push(
|
|
11706
|
+
elements.push({
|
|
11707
|
+
type: "ReferenceElement",
|
|
11708
|
+
ref: ref2,
|
|
11709
|
+
refText: startToken.value + next.value,
|
|
11710
|
+
...getData(dollarToken, next)
|
|
11711
|
+
});
|
|
11699
11712
|
return true;
|
|
11700
11713
|
}
|
|
11701
11714
|
index--;
|
|
@@ -11703,7 +11716,12 @@ var require_replacements_utils = __commonJS({
|
|
|
11703
11716
|
return false;
|
|
11704
11717
|
}
|
|
11705
11718
|
const ref = Number(startToken.value);
|
|
11706
|
-
elements.push(
|
|
11719
|
+
elements.push({
|
|
11720
|
+
type: "ReferenceElement",
|
|
11721
|
+
ref,
|
|
11722
|
+
refText: startToken.value,
|
|
11723
|
+
...getData(dollarToken, startToken)
|
|
11724
|
+
});
|
|
11707
11725
|
return true;
|
|
11708
11726
|
}
|
|
11709
11727
|
function parseNamedRef(dollarToken, startToken) {
|
|
@@ -11716,7 +11734,12 @@ var require_replacements_utils = __commonJS({
|
|
|
11716
11734
|
if (t.value === ">") {
|
|
11717
11735
|
const refChars = chars.slice(startIndex, index - 1);
|
|
11718
11736
|
const ref = refChars.map((c) => c.value).join("");
|
|
11719
|
-
elements.push(
|
|
11737
|
+
elements.push({
|
|
11738
|
+
type: "ReferenceElement",
|
|
11739
|
+
ref,
|
|
11740
|
+
refText: ref,
|
|
11741
|
+
...getData(dollarToken, t)
|
|
11742
|
+
});
|
|
11720
11743
|
return true;
|
|
11721
11744
|
}
|
|
11722
11745
|
}
|
|
@@ -11724,13 +11747,12 @@ var require_replacements_utils = __commonJS({
|
|
|
11724
11747
|
return false;
|
|
11725
11748
|
}
|
|
11726
11749
|
}
|
|
11727
|
-
exports2.baseParseReplacements = baseParseReplacements;
|
|
11728
11750
|
}
|
|
11729
11751
|
});
|
|
11730
11752
|
|
|
11731
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
11753
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/string-literal-parser/tokenizer.js
|
|
11732
11754
|
var require_tokenizer = __commonJS({
|
|
11733
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
11755
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/string-literal-parser/tokenizer.js"(exports2) {
|
|
11734
11756
|
"use strict";
|
|
11735
11757
|
init_cjs_shims();
|
|
11736
11758
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -11919,13 +11941,14 @@ var require_tokenizer = __commonJS({
|
|
|
11919
11941
|
}
|
|
11920
11942
|
});
|
|
11921
11943
|
|
|
11922
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
11944
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/string-literal-parser/parser.js
|
|
11923
11945
|
var require_parser = __commonJS({
|
|
11924
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
11946
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/string-literal-parser/parser.js"(exports2) {
|
|
11925
11947
|
"use strict";
|
|
11926
11948
|
init_cjs_shims();
|
|
11927
11949
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
11928
|
-
exports2.
|
|
11950
|
+
exports2.parseStringLiteral = parseStringLiteral;
|
|
11951
|
+
exports2.parseStringTokens = parseStringTokens;
|
|
11929
11952
|
var tokenizer_1 = require_tokenizer();
|
|
11930
11953
|
function parseStringLiteral(source, option) {
|
|
11931
11954
|
var _a, _b;
|
|
@@ -11946,7 +11969,6 @@ var require_parser = __commonJS({
|
|
|
11946
11969
|
range: [startIndex, tokenizer.pos]
|
|
11947
11970
|
};
|
|
11948
11971
|
}
|
|
11949
|
-
exports2.parseStringLiteral = parseStringLiteral;
|
|
11950
11972
|
function* parseStringTokens(source, option) {
|
|
11951
11973
|
var _a, _b;
|
|
11952
11974
|
const startIndex = (_a = option === null || option === void 0 ? void 0 : option.start) !== null && _a !== void 0 ? _a : 0;
|
|
@@ -11958,22 +11980,21 @@ var require_parser = __commonJS({
|
|
|
11958
11980
|
});
|
|
11959
11981
|
yield* tokenizer.parseTokens();
|
|
11960
11982
|
}
|
|
11961
|
-
exports2.parseStringTokens = parseStringTokens;
|
|
11962
11983
|
}
|
|
11963
11984
|
});
|
|
11964
11985
|
|
|
11965
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
11986
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/string-literal-parser/tokens.js
|
|
11966
11987
|
var require_tokens = __commonJS({
|
|
11967
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
11988
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/string-literal-parser/tokens.js"(exports2) {
|
|
11968
11989
|
"use strict";
|
|
11969
11990
|
init_cjs_shims();
|
|
11970
11991
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
11971
11992
|
}
|
|
11972
11993
|
});
|
|
11973
11994
|
|
|
11974
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
11995
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/string-literal-parser/index.js
|
|
11975
11996
|
var require_string_literal_parser = __commonJS({
|
|
11976
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
11997
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/string-literal-parser/index.js"(exports2) {
|
|
11977
11998
|
"use strict";
|
|
11978
11999
|
init_cjs_shims();
|
|
11979
12000
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
@@ -12343,9 +12364,9 @@ var require_eslint_visitor_keys = __commonJS({
|
|
|
12343
12364
|
}
|
|
12344
12365
|
});
|
|
12345
12366
|
|
|
12346
|
-
// node_modules/.pnpm/@eslint-community+eslint-utils@4.4.0_eslint@9.
|
|
12367
|
+
// node_modules/.pnpm/@eslint-community+eslint-utils@4.4.0_eslint@9.15.0_jiti@1.21.6_/node_modules/@eslint-community/eslint-utils/index.js
|
|
12347
12368
|
var require_eslint_utils = __commonJS({
|
|
12348
|
-
"node_modules/.pnpm/@eslint-community+eslint-utils@4.4.0_eslint@9.
|
|
12369
|
+
"node_modules/.pnpm/@eslint-community+eslint-utils@4.4.0_eslint@9.15.0_jiti@1.21.6_/node_modules/@eslint-community/eslint-utils/index.js"(exports2) {
|
|
12349
12370
|
"use strict";
|
|
12350
12371
|
init_cjs_shims();
|
|
12351
12372
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -12701,8 +12722,10 @@ var require_eslint_utils = __commonJS({
|
|
|
12701
12722
|
switch (node2.operator) {
|
|
12702
12723
|
case "==":
|
|
12703
12724
|
return { value: left.value == right.value };
|
|
12725
|
+
//eslint-disable-line eqeqeq
|
|
12704
12726
|
case "!=":
|
|
12705
12727
|
return { value: left.value != right.value };
|
|
12728
|
+
//eslint-disable-line eqeqeq
|
|
12706
12729
|
case "===":
|
|
12707
12730
|
return { value: left.value === right.value };
|
|
12708
12731
|
case "!==":
|
|
@@ -12952,6 +12975,7 @@ var require_eslint_utils = __commonJS({
|
|
|
12952
12975
|
return { value: -arg.value };
|
|
12953
12976
|
case "+":
|
|
12954
12977
|
return { value: +arg.value };
|
|
12978
|
+
//eslint-disable-line no-implicit-coercion
|
|
12955
12979
|
case "!":
|
|
12956
12980
|
return { value: !arg.value };
|
|
12957
12981
|
case "~":
|
|
@@ -13852,9 +13876,9 @@ var require_eslint_utils = __commonJS({
|
|
|
13852
13876
|
}
|
|
13853
13877
|
});
|
|
13854
13878
|
|
|
13855
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
13879
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/ast-utils/utils.js
|
|
13856
13880
|
var require_utils = __commonJS({
|
|
13857
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
13881
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/ast-utils/utils.js"(exports2) {
|
|
13858
13882
|
"use strict";
|
|
13859
13883
|
init_cjs_shims();
|
|
13860
13884
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
@@ -13885,7 +13909,21 @@ var require_utils = __commonJS({
|
|
|
13885
13909
|
return result;
|
|
13886
13910
|
};
|
|
13887
13911
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
13888
|
-
exports2.
|
|
13912
|
+
exports2.getParent = getParent;
|
|
13913
|
+
exports2.findVariable = findVariable;
|
|
13914
|
+
exports2.getStringIfConstant = getStringIfConstant;
|
|
13915
|
+
exports2.getStaticValue = getStaticValue;
|
|
13916
|
+
exports2.getScope = getScope;
|
|
13917
|
+
exports2.findFunction = findFunction;
|
|
13918
|
+
exports2.isKnownMethodCall = isKnownMethodCall;
|
|
13919
|
+
exports2.parseReplacements = parseReplacements;
|
|
13920
|
+
exports2.getStringValueRange = getStringValueRange;
|
|
13921
|
+
exports2.isRegexpLiteral = isRegexpLiteral;
|
|
13922
|
+
exports2.isStringLiteral = isStringLiteral;
|
|
13923
|
+
exports2.getPropertyName = getPropertyName;
|
|
13924
|
+
exports2.astRangeToLocation = astRangeToLocation;
|
|
13925
|
+
exports2.dereferenceOwnedVariable = dereferenceOwnedVariable;
|
|
13926
|
+
exports2.dereferenceVariable = dereferenceVariable;
|
|
13889
13927
|
var replacements_utils_1 = require_replacements_utils();
|
|
13890
13928
|
var string_literal_parser_1 = require_string_literal_parser();
|
|
13891
13929
|
var eslintUtils = __importStar(require_eslint_utils());
|
|
@@ -13895,11 +13933,9 @@ var require_utils = __commonJS({
|
|
|
13895
13933
|
}
|
|
13896
13934
|
return node2.parent;
|
|
13897
13935
|
}
|
|
13898
|
-
exports2.getParent = getParent;
|
|
13899
13936
|
function findVariable(context, node2) {
|
|
13900
13937
|
return eslintUtils.findVariable(getScope(context, node2), node2);
|
|
13901
13938
|
}
|
|
13902
|
-
exports2.findVariable = findVariable;
|
|
13903
13939
|
function findSimpleVariable(context, identifier) {
|
|
13904
13940
|
const variable = findVariable(context, identifier);
|
|
13905
13941
|
if (!variable || variable.defs.length !== 1) {
|
|
@@ -13918,7 +13954,6 @@ var require_utils = __commonJS({
|
|
|
13918
13954
|
}
|
|
13919
13955
|
return eslintUtils.getStringIfConstant(node2, getScope(context, node2));
|
|
13920
13956
|
}
|
|
13921
|
-
exports2.getStringIfConstant = getStringIfConstant;
|
|
13922
13957
|
function getStaticValue(context, node2) {
|
|
13923
13958
|
if (node2.type === "BinaryExpression") {
|
|
13924
13959
|
if (node2.operator === "+") {
|
|
@@ -13965,7 +14000,6 @@ var require_utils = __commonJS({
|
|
|
13965
14000
|
}
|
|
13966
14001
|
return eslintUtils.getStaticValue(node2, getScope(context, node2));
|
|
13967
14002
|
}
|
|
13968
|
-
exports2.getStaticValue = getStaticValue;
|
|
13969
14003
|
function getScope(context, currentNode) {
|
|
13970
14004
|
const scopeManager = context.sourceCode.scopeManager;
|
|
13971
14005
|
let node2 = currentNode;
|
|
@@ -13980,7 +14014,6 @@ var require_utils = __commonJS({
|
|
|
13980
14014
|
}
|
|
13981
14015
|
return scopeManager.scopes[0];
|
|
13982
14016
|
}
|
|
13983
|
-
exports2.getScope = getScope;
|
|
13984
14017
|
function findFunction(context, id) {
|
|
13985
14018
|
let target = id;
|
|
13986
14019
|
const set = /* @__PURE__ */ new Set();
|
|
@@ -14011,7 +14044,6 @@ var require_utils = __commonJS({
|
|
|
14011
14044
|
return null;
|
|
14012
14045
|
}
|
|
14013
14046
|
}
|
|
14014
|
-
exports2.findFunction = findFunction;
|
|
14015
14047
|
function isKnownMethodCall(node2, methods) {
|
|
14016
14048
|
const mem = node2.callee;
|
|
14017
14049
|
if (mem.type !== "MemberExpression" || mem.computed || mem.property.type !== "Identifier") {
|
|
@@ -14030,7 +14062,6 @@ var require_utils = __commonJS({
|
|
|
14030
14062
|
}
|
|
14031
14063
|
return true;
|
|
14032
14064
|
}
|
|
14033
|
-
exports2.isKnownMethodCall = isKnownMethodCall;
|
|
14034
14065
|
function parseReplacements(context, node2) {
|
|
14035
14066
|
const stringLiteral = (0, string_literal_parser_1.parseStringLiteral)(context.sourceCode.text, {
|
|
14036
14067
|
start: node2.range[0],
|
|
@@ -14043,7 +14074,6 @@ var require_utils = __commonJS({
|
|
|
14043
14074
|
};
|
|
14044
14075
|
});
|
|
14045
14076
|
}
|
|
14046
|
-
exports2.parseReplacements = parseReplacements;
|
|
14047
14077
|
function getStringValueRange(sourceCode, node2, startOffset, endOffset) {
|
|
14048
14078
|
if (!node2.range) {
|
|
14049
14079
|
return null;
|
|
@@ -14071,15 +14101,12 @@ var require_utils = __commonJS({
|
|
|
14071
14101
|
}
|
|
14072
14102
|
return null;
|
|
14073
14103
|
}
|
|
14074
|
-
exports2.getStringValueRange = getStringValueRange;
|
|
14075
14104
|
function isRegexpLiteral(node2) {
|
|
14076
14105
|
return node2.type === "Literal" && "regex" in node2;
|
|
14077
14106
|
}
|
|
14078
|
-
exports2.isRegexpLiteral = isRegexpLiteral;
|
|
14079
14107
|
function isStringLiteral(node2) {
|
|
14080
14108
|
return node2.type === "Literal" && typeof node2.value === "string";
|
|
14081
14109
|
}
|
|
14082
|
-
exports2.isStringLiteral = isStringLiteral;
|
|
14083
14110
|
function getPropertyName(node2, context) {
|
|
14084
14111
|
const prop = node2.property;
|
|
14085
14112
|
if (prop.type === "PrivateIdentifier") {
|
|
@@ -14096,14 +14123,12 @@ var require_utils = __commonJS({
|
|
|
14096
14123
|
}
|
|
14097
14124
|
return null;
|
|
14098
14125
|
}
|
|
14099
|
-
exports2.getPropertyName = getPropertyName;
|
|
14100
14126
|
function astRangeToLocation(sourceCode, range) {
|
|
14101
14127
|
return {
|
|
14102
14128
|
start: sourceCode.getLocFromIndex(range[0]),
|
|
14103
14129
|
end: sourceCode.getLocFromIndex(range[1])
|
|
14104
14130
|
};
|
|
14105
14131
|
}
|
|
14106
|
-
exports2.astRangeToLocation = astRangeToLocation;
|
|
14107
14132
|
function dereferenceOwnedVariable(context, expression) {
|
|
14108
14133
|
if (expression.type === "Identifier") {
|
|
14109
14134
|
const variable = findSimpleVariable(context, expression);
|
|
@@ -14126,7 +14151,6 @@ var require_utils = __commonJS({
|
|
|
14126
14151
|
}
|
|
14127
14152
|
return expression;
|
|
14128
14153
|
}
|
|
14129
|
-
exports2.dereferenceOwnedVariable = dereferenceOwnedVariable;
|
|
14130
14154
|
function dereferenceVariable(context, expression) {
|
|
14131
14155
|
if (expression.type === "Identifier") {
|
|
14132
14156
|
const variable = findSimpleVariable(context, expression);
|
|
@@ -14147,17 +14171,17 @@ var require_utils = __commonJS({
|
|
|
14147
14171
|
}
|
|
14148
14172
|
return expression;
|
|
14149
14173
|
}
|
|
14150
|
-
exports2.dereferenceVariable = dereferenceVariable;
|
|
14151
14174
|
}
|
|
14152
14175
|
});
|
|
14153
14176
|
|
|
14154
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
14177
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/ast-utils/extract-expression-references.js
|
|
14155
14178
|
var require_extract_expression_references = __commonJS({
|
|
14156
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
14179
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/ast-utils/extract-expression-references.js"(exports2) {
|
|
14157
14180
|
"use strict";
|
|
14158
14181
|
init_cjs_shims();
|
|
14159
14182
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
14160
|
-
exports2.
|
|
14183
|
+
exports2.extractExpressionReferences = extractExpressionReferences;
|
|
14184
|
+
exports2.extractExpressionReferencesForVariable = extractExpressionReferencesForVariable;
|
|
14161
14185
|
var utils_1 = require_utils();
|
|
14162
14186
|
function* extractExpressionReferences(node2, context) {
|
|
14163
14187
|
yield* iterateReferencesForExpression(node2, context, {
|
|
@@ -14165,14 +14189,12 @@ var require_extract_expression_references = __commonJS({
|
|
|
14165
14189
|
functions: /* @__PURE__ */ new Map()
|
|
14166
14190
|
});
|
|
14167
14191
|
}
|
|
14168
|
-
exports2.extractExpressionReferences = extractExpressionReferences;
|
|
14169
14192
|
function* extractExpressionReferencesForVariable(node2, context) {
|
|
14170
14193
|
yield* iterateReferencesForVariable(node2, context, {
|
|
14171
14194
|
variables: /* @__PURE__ */ new Set(),
|
|
14172
14195
|
functions: /* @__PURE__ */ new Map()
|
|
14173
14196
|
});
|
|
14174
14197
|
}
|
|
14175
|
-
exports2.extractExpressionReferencesForVariable = extractExpressionReferencesForVariable;
|
|
14176
14198
|
function* iterateReferencesForExpression(expression, context, alreadyChecked) {
|
|
14177
14199
|
let node2 = expression;
|
|
14178
14200
|
let parent = (0, utils_1.getParent)(node2);
|
|
@@ -14308,13 +14330,14 @@ var require_extract_expression_references = __commonJS({
|
|
|
14308
14330
|
}
|
|
14309
14331
|
});
|
|
14310
14332
|
|
|
14311
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
14333
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/ast-utils/extract-property-references.js
|
|
14312
14334
|
var require_extract_property_references = __commonJS({
|
|
14313
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
14335
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/ast-utils/extract-property-references.js"(exports2) {
|
|
14314
14336
|
"use strict";
|
|
14315
14337
|
init_cjs_shims();
|
|
14316
14338
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
14317
|
-
exports2.
|
|
14339
|
+
exports2.extractPropertyReferences = extractPropertyReferences;
|
|
14340
|
+
exports2.extractPropertyReferencesForPattern = extractPropertyReferencesForPattern;
|
|
14318
14341
|
var extract_expression_references_1 = require_extract_expression_references();
|
|
14319
14342
|
var utils_1 = require_utils();
|
|
14320
14343
|
function* extractPropertyReferences(node2, context) {
|
|
@@ -14338,11 +14361,9 @@ var require_extract_property_references = __commonJS({
|
|
|
14338
14361
|
}
|
|
14339
14362
|
}
|
|
14340
14363
|
}
|
|
14341
|
-
exports2.extractPropertyReferences = extractPropertyReferences;
|
|
14342
14364
|
function* extractPropertyReferencesForPattern(node2, context) {
|
|
14343
14365
|
yield* iteratePropertyReferencesForPattern(node2, context);
|
|
14344
14366
|
}
|
|
14345
|
-
exports2.extractPropertyReferencesForPattern = extractPropertyReferencesForPattern;
|
|
14346
14367
|
function isShallowCopy(node2) {
|
|
14347
14368
|
const parent = (0, utils_1.getParent)(node2);
|
|
14348
14369
|
if ((parent === null || parent === void 0 ? void 0 : parent.type) === "SpreadElement") {
|
|
@@ -14524,7 +14545,7 @@ var require_extract_property_references = __commonJS({
|
|
|
14524
14545
|
if (ref.type === "member" || ref.type === "destructuring") {
|
|
14525
14546
|
const num = Number(ref.name) + offset;
|
|
14526
14547
|
if (!Number.isNaN(num)) {
|
|
14527
|
-
return
|
|
14548
|
+
return { ...ref, name: String(num) };
|
|
14528
14549
|
}
|
|
14529
14550
|
}
|
|
14530
14551
|
return ref;
|
|
@@ -14532,13 +14553,16 @@ var require_extract_property_references = __commonJS({
|
|
|
14532
14553
|
}
|
|
14533
14554
|
});
|
|
14534
14555
|
|
|
14535
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
14556
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/ast-utils/regex.js
|
|
14536
14557
|
var require_regex = __commonJS({
|
|
14537
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
14558
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/ast-utils/regex.js"(exports2) {
|
|
14538
14559
|
"use strict";
|
|
14539
14560
|
init_cjs_shims();
|
|
14540
14561
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
14541
|
-
exports2.
|
|
14562
|
+
exports2.getFlagsRange = getFlagsRange;
|
|
14563
|
+
exports2.getFlagsLocation = getFlagsLocation;
|
|
14564
|
+
exports2.getFlagRange = getFlagRange;
|
|
14565
|
+
exports2.getFlagLocation = getFlagLocation;
|
|
14542
14566
|
var utils_1 = require_utils();
|
|
14543
14567
|
function getFlagsRange(flagsNode) {
|
|
14544
14568
|
if (!flagsNode) {
|
|
@@ -14555,7 +14579,6 @@ var require_regex = __commonJS({
|
|
|
14555
14579
|
}
|
|
14556
14580
|
return null;
|
|
14557
14581
|
}
|
|
14558
|
-
exports2.getFlagsRange = getFlagsRange;
|
|
14559
14582
|
function getFlagsLocation(sourceCode, regexpNode, flagsNode) {
|
|
14560
14583
|
var _a;
|
|
14561
14584
|
const range = getFlagsRange(flagsNode);
|
|
@@ -14570,7 +14593,6 @@ var require_regex = __commonJS({
|
|
|
14570
14593
|
end: sourceCode.getLocFromIndex(range[1])
|
|
14571
14594
|
};
|
|
14572
14595
|
}
|
|
14573
|
-
exports2.getFlagsLocation = getFlagsLocation;
|
|
14574
14596
|
function getFlagRange(sourceCode, flagsNode, flag) {
|
|
14575
14597
|
if (!flagsNode || !flag) {
|
|
14576
14598
|
return null;
|
|
@@ -14592,7 +14614,6 @@ var require_regex = __commonJS({
|
|
|
14592
14614
|
}
|
|
14593
14615
|
return null;
|
|
14594
14616
|
}
|
|
14595
|
-
exports2.getFlagRange = getFlagRange;
|
|
14596
14617
|
function getFlagLocation(sourceCode, regexpNode, flagsNode, flag) {
|
|
14597
14618
|
var _a;
|
|
14598
14619
|
const range = getFlagRange(sourceCode, flagsNode, flag);
|
|
@@ -14604,13 +14625,12 @@ var require_regex = __commonJS({
|
|
|
14604
14625
|
end: sourceCode.getLocFromIndex(range[1])
|
|
14605
14626
|
};
|
|
14606
14627
|
}
|
|
14607
|
-
exports2.getFlagLocation = getFlagLocation;
|
|
14608
14628
|
}
|
|
14609
14629
|
});
|
|
14610
14630
|
|
|
14611
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
14631
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/ast-utils/index.js
|
|
14612
14632
|
var require_ast_utils = __commonJS({
|
|
14613
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
14633
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/ast-utils/index.js"(exports2) {
|
|
14614
14634
|
"use strict";
|
|
14615
14635
|
init_cjs_shims();
|
|
14616
14636
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
@@ -14665,9 +14685,9 @@ var require_ast_utils = __commonJS({
|
|
|
14665
14685
|
}
|
|
14666
14686
|
});
|
|
14667
14687
|
|
|
14668
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
14688
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/ast-utils/pattern-source.js
|
|
14669
14689
|
var require_pattern_source = __commonJS({
|
|
14670
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
14690
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/ast-utils/pattern-source.js"(exports2) {
|
|
14671
14691
|
"use strict";
|
|
14672
14692
|
init_cjs_shims();
|
|
14673
14693
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -14789,6 +14809,8 @@ var require_pattern_source = __commonJS({
|
|
|
14789
14809
|
const items = [];
|
|
14790
14810
|
let value = "";
|
|
14791
14811
|
for (const e of flat) {
|
|
14812
|
+
if (e.type === "PrivateIdentifier")
|
|
14813
|
+
return null;
|
|
14792
14814
|
const staticValue = (0, utils_1.getStaticValue)(context, e);
|
|
14793
14815
|
if (!staticValue) {
|
|
14794
14816
|
return null;
|
|
@@ -14873,7 +14895,7 @@ var require_pattern_source = __commonJS({
|
|
|
14873
14895
|
function flattenPlus(context, e) {
|
|
14874
14896
|
if (e.type === "BinaryExpression" && e.operator === "+") {
|
|
14875
14897
|
return [
|
|
14876
|
-
...flattenPlus(context, e.left),
|
|
14898
|
+
...e.left.type !== "PrivateIdentifier" ? flattenPlus(context, e.left) : [e.left],
|
|
14877
14899
|
...flattenPlus(context, e.right)
|
|
14878
14900
|
];
|
|
14879
14901
|
}
|
|
@@ -14886,13 +14908,13 @@ var require_pattern_source = __commonJS({
|
|
|
14886
14908
|
}
|
|
14887
14909
|
});
|
|
14888
14910
|
|
|
14889
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
14911
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/extract-capturing-group-references.js
|
|
14890
14912
|
var require_extract_capturing_group_references = __commonJS({
|
|
14891
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
14913
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/extract-capturing-group-references.js"(exports2) {
|
|
14892
14914
|
"use strict";
|
|
14893
14915
|
init_cjs_shims();
|
|
14894
14916
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
14895
|
-
exports2.extractCapturingGroupReferences =
|
|
14917
|
+
exports2.extractCapturingGroupReferences = extractCapturingGroupReferences;
|
|
14896
14918
|
var ast_utils_1 = require_ast_utils();
|
|
14897
14919
|
var extract_property_references_1 = require_extract_property_references();
|
|
14898
14920
|
var replacements_utils_1 = require_replacements_utils();
|
|
@@ -14956,7 +14978,6 @@ var require_extract_capturing_group_references = __commonJS({
|
|
|
14956
14978
|
}
|
|
14957
14979
|
}
|
|
14958
14980
|
}
|
|
14959
|
-
exports2.extractCapturingGroupReferences = extractCapturingGroupReferences;
|
|
14960
14981
|
function* iterateForArgument(callExpression, argument, ctx) {
|
|
14961
14982
|
if (!(0, ast_utils_1.isKnownMethodCall)(callExpression, {
|
|
14962
14983
|
match: 1,
|
|
@@ -15370,13 +15391,14 @@ var require_extract_capturing_group_references = __commonJS({
|
|
|
15370
15391
|
}
|
|
15371
15392
|
});
|
|
15372
15393
|
|
|
15373
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
15394
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/get-usage-of-pattern.js
|
|
15374
15395
|
var require_get_usage_of_pattern = __commonJS({
|
|
15375
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
15396
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/get-usage-of-pattern.js"(exports2) {
|
|
15376
15397
|
"use strict";
|
|
15377
15398
|
init_cjs_shims();
|
|
15378
15399
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
15379
|
-
exports2.
|
|
15400
|
+
exports2.UsageOfPattern = void 0;
|
|
15401
|
+
exports2.getUsageOfPattern = getUsageOfPattern;
|
|
15380
15402
|
var ast_utils_1 = require_ast_utils();
|
|
15381
15403
|
var UsageOfPattern;
|
|
15382
15404
|
(function(UsageOfPattern2) {
|
|
@@ -15398,7 +15420,6 @@ var require_get_usage_of_pattern = __commonJS({
|
|
|
15398
15420
|
}
|
|
15399
15421
|
return usageSet.has(UsageOfPattern.whole) ? UsageOfPattern.whole : UsageOfPattern.unknown;
|
|
15400
15422
|
}
|
|
15401
|
-
exports2.getUsageOfPattern = getUsageOfPattern;
|
|
15402
15423
|
function* iterateUsageOfPattern(node2, context) {
|
|
15403
15424
|
for (const ref of (0, ast_utils_1.extractExpressionReferences)(node2, context)) {
|
|
15404
15425
|
if (ref.type === "member") {
|
|
@@ -15456,17 +15477,20 @@ var require_get_usage_of_pattern = __commonJS({
|
|
|
15456
15477
|
}
|
|
15457
15478
|
});
|
|
15458
15479
|
|
|
15459
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
15480
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/util.js
|
|
15460
15481
|
var require_util = __commonJS({
|
|
15461
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
15482
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/util.js"(exports2) {
|
|
15462
15483
|
"use strict";
|
|
15463
15484
|
init_cjs_shims();
|
|
15464
15485
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
15465
|
-
exports2.
|
|
15486
|
+
exports2.assertNever = assertNever;
|
|
15487
|
+
exports2.lazy = lazy;
|
|
15488
|
+
exports2.cachedFn = cachedFn;
|
|
15489
|
+
exports2.toCodePoints = toCodePoints;
|
|
15490
|
+
exports2.reversed = reversed;
|
|
15466
15491
|
function assertNever(value) {
|
|
15467
15492
|
throw new Error(`Invalid value: ${value}`);
|
|
15468
15493
|
}
|
|
15469
|
-
exports2.assertNever = assertNever;
|
|
15470
15494
|
function lazy(fn) {
|
|
15471
15495
|
let cached;
|
|
15472
15496
|
return () => {
|
|
@@ -15476,7 +15500,6 @@ var require_util = __commonJS({
|
|
|
15476
15500
|
return cached;
|
|
15477
15501
|
};
|
|
15478
15502
|
}
|
|
15479
|
-
exports2.lazy = lazy;
|
|
15480
15503
|
function cachedFn(fn) {
|
|
15481
15504
|
const cache = /* @__PURE__ */ new WeakMap();
|
|
15482
15505
|
return (key) => {
|
|
@@ -15488,25 +15511,31 @@ var require_util = __commonJS({
|
|
|
15488
15511
|
return cached;
|
|
15489
15512
|
};
|
|
15490
15513
|
}
|
|
15491
|
-
exports2.cachedFn = cachedFn;
|
|
15492
15514
|
function toCodePoints(s) {
|
|
15493
15515
|
return [...s].map((c) => c.codePointAt(0));
|
|
15494
15516
|
}
|
|
15495
|
-
exports2.toCodePoints = toCodePoints;
|
|
15496
15517
|
function reversed(iter) {
|
|
15497
15518
|
return [...iter].reverse();
|
|
15498
15519
|
}
|
|
15499
|
-
exports2.reversed = reversed;
|
|
15500
15520
|
}
|
|
15501
15521
|
});
|
|
15502
15522
|
|
|
15503
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
15523
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/regex-syntax.js
|
|
15504
15524
|
var require_regex_syntax = __commonJS({
|
|
15505
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
15525
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/regex-syntax.js"(exports2) {
|
|
15506
15526
|
"use strict";
|
|
15507
15527
|
init_cjs_shims();
|
|
15508
15528
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
15509
|
-
exports2.
|
|
15529
|
+
exports2.FLAG_UNICODE_SETS = exports2.FLAG_UNICODE = exports2.FLAG_STICKY = exports2.FLAG_MULTILINE = exports2.FLAG_IGNORECASE = exports2.FLAG_HAS_INDICES = exports2.FLAG_DOT_ALL = exports2.FLAG_GLOBAL = exports2.EscapeSequenceKind = exports2.RESERVED_DOUBLE_PUNCTUATOR_PATTERN = exports2.RESERVED_DOUBLE_PUNCTUATOR_CP = exports2.RESERVED_DOUBLE_PUNCTUATOR_CHARS = void 0;
|
|
15530
|
+
exports2.isOctalEscape = isOctalEscape;
|
|
15531
|
+
exports2.isControlEscape = isControlEscape;
|
|
15532
|
+
exports2.isHexadecimalEscape = isHexadecimalEscape;
|
|
15533
|
+
exports2.isUnicodeEscape = isUnicodeEscape;
|
|
15534
|
+
exports2.isUnicodeCodePointEscape = isUnicodeCodePointEscape;
|
|
15535
|
+
exports2.getEscapeSequenceKind = getEscapeSequenceKind;
|
|
15536
|
+
exports2.isEscapeSequence = isEscapeSequence;
|
|
15537
|
+
exports2.isHexLikeEscape = isHexLikeEscape;
|
|
15538
|
+
exports2.parseFlags = parseFlags;
|
|
15510
15539
|
var util_1 = require_util();
|
|
15511
15540
|
var RESERVED_DOUBLE_PUNCTUATORS = "&!#$%*+,.:;<=>?@^`~-";
|
|
15512
15541
|
exports2.RESERVED_DOUBLE_PUNCTUATOR_CHARS = new Set(RESERVED_DOUBLE_PUNCTUATORS);
|
|
@@ -15515,23 +15544,18 @@ var require_regex_syntax = __commonJS({
|
|
|
15515
15544
|
function isOctalEscape(raw) {
|
|
15516
15545
|
return /^\\[0-7]{1,3}$/u.test(raw);
|
|
15517
15546
|
}
|
|
15518
|
-
exports2.isOctalEscape = isOctalEscape;
|
|
15519
15547
|
function isControlEscape(raw) {
|
|
15520
15548
|
return /^\\c[A-Za-z]$/u.test(raw);
|
|
15521
15549
|
}
|
|
15522
|
-
exports2.isControlEscape = isControlEscape;
|
|
15523
15550
|
function isHexadecimalEscape(raw) {
|
|
15524
15551
|
return /^\\x[\dA-Fa-f]{2}$/u.test(raw);
|
|
15525
15552
|
}
|
|
15526
|
-
exports2.isHexadecimalEscape = isHexadecimalEscape;
|
|
15527
15553
|
function isUnicodeEscape(raw) {
|
|
15528
15554
|
return /^\\u[\dA-Fa-f]{4}$/u.test(raw);
|
|
15529
15555
|
}
|
|
15530
|
-
exports2.isUnicodeEscape = isUnicodeEscape;
|
|
15531
15556
|
function isUnicodeCodePointEscape(raw) {
|
|
15532
15557
|
return /^\\u\{[\dA-Fa-f]{1,8}\}$/u.test(raw);
|
|
15533
15558
|
}
|
|
15534
|
-
exports2.isUnicodeCodePointEscape = isUnicodeCodePointEscape;
|
|
15535
15559
|
var EscapeSequenceKind;
|
|
15536
15560
|
(function(EscapeSequenceKind2) {
|
|
15537
15561
|
EscapeSequenceKind2["octal"] = "octal";
|
|
@@ -15561,16 +15585,13 @@ var require_regex_syntax = __commonJS({
|
|
|
15561
15585
|
}
|
|
15562
15586
|
return null;
|
|
15563
15587
|
}
|
|
15564
|
-
exports2.getEscapeSequenceKind = getEscapeSequenceKind;
|
|
15565
15588
|
function isEscapeSequence(raw) {
|
|
15566
15589
|
return getEscapeSequenceKind(raw) !== null;
|
|
15567
15590
|
}
|
|
15568
|
-
exports2.isEscapeSequence = isEscapeSequence;
|
|
15569
15591
|
function isHexLikeEscape(raw) {
|
|
15570
15592
|
const kind = getEscapeSequenceKind(raw);
|
|
15571
15593
|
return kind === EscapeSequenceKind.hexadecimal || kind === EscapeSequenceKind.unicode || kind === EscapeSequenceKind.unicodeCodePoint;
|
|
15572
15594
|
}
|
|
15573
|
-
exports2.isHexLikeEscape = isHexLikeEscape;
|
|
15574
15595
|
exports2.FLAG_GLOBAL = "g";
|
|
15575
15596
|
exports2.FLAG_DOT_ALL = "s";
|
|
15576
15597
|
exports2.FLAG_HAS_INDICES = "d";
|
|
@@ -15597,17 +15618,18 @@ var require_regex_syntax = __commonJS({
|
|
|
15597
15618
|
}
|
|
15598
15619
|
return cached;
|
|
15599
15620
|
}
|
|
15600
|
-
exports2.parseFlags = parseFlags;
|
|
15601
15621
|
}
|
|
15602
15622
|
});
|
|
15603
15623
|
|
|
15604
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
15624
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/regexp-ast/common.js
|
|
15605
15625
|
var require_common = __commonJS({
|
|
15606
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
15626
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/regexp-ast/common.js"(exports2) {
|
|
15607
15627
|
"use strict";
|
|
15608
15628
|
init_cjs_shims();
|
|
15609
15629
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
15610
|
-
exports2.
|
|
15630
|
+
exports2.getFirstConsumedCharPlusAfter = getFirstConsumedCharPlusAfter;
|
|
15631
|
+
exports2.extractCaptures = extractCaptures;
|
|
15632
|
+
exports2.hasCapturingGroup = hasCapturingGroup;
|
|
15611
15633
|
var regexpp_1 = require_regexpp();
|
|
15612
15634
|
var regexp_ast_analysis_1 = require_regexp_ast_analysis();
|
|
15613
15635
|
function getFirstConsumedCharPlusAfter(element, direction, flags) {
|
|
@@ -15617,7 +15639,6 @@ var require_common = __commonJS({
|
|
|
15617
15639
|
}
|
|
15618
15640
|
return regexp_ast_analysis_1.FirstConsumedChars.concat([consumed, (0, regexp_ast_analysis_1.getFirstConsumedCharAfter)(element, direction, flags)], flags);
|
|
15619
15641
|
}
|
|
15620
|
-
exports2.getFirstConsumedCharPlusAfter = getFirstConsumedCharPlusAfter;
|
|
15621
15642
|
function extractCaptures(pattern) {
|
|
15622
15643
|
const groups = [];
|
|
15623
15644
|
(0, regexpp_1.visitRegExpAST)(pattern, {
|
|
@@ -15634,21 +15655,19 @@ var require_common = __commonJS({
|
|
|
15634
15655
|
}
|
|
15635
15656
|
return { groups, names, count: groups.length };
|
|
15636
15657
|
}
|
|
15637
|
-
exports2.extractCaptures = extractCaptures;
|
|
15638
15658
|
function hasCapturingGroup(node2) {
|
|
15639
15659
|
return (0, regexp_ast_analysis_1.hasSomeDescendant)(node2, (d) => d.type === "CapturingGroup");
|
|
15640
15660
|
}
|
|
15641
|
-
exports2.hasCapturingGroup = hasCapturingGroup;
|
|
15642
15661
|
}
|
|
15643
15662
|
});
|
|
15644
15663
|
|
|
15645
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
15664
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/regexp-ast/ast.js
|
|
15646
15665
|
var require_ast = __commonJS({
|
|
15647
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
15666
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/regexp-ast/ast.js"(exports2) {
|
|
15648
15667
|
"use strict";
|
|
15649
15668
|
init_cjs_shims();
|
|
15650
15669
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
15651
|
-
exports2.getRegExpNodeFromExpression =
|
|
15670
|
+
exports2.getRegExpNodeFromExpression = getRegExpNodeFromExpression;
|
|
15652
15671
|
var regexpp_1 = require_regexpp();
|
|
15653
15672
|
var ast_utils_1 = require_ast_utils();
|
|
15654
15673
|
var parser = new regexpp_1.RegExpParser();
|
|
@@ -15676,17 +15695,16 @@ var require_ast = __commonJS({
|
|
|
15676
15695
|
return null;
|
|
15677
15696
|
}
|
|
15678
15697
|
}
|
|
15679
|
-
exports2.getRegExpNodeFromExpression = getRegExpNodeFromExpression;
|
|
15680
15698
|
}
|
|
15681
15699
|
});
|
|
15682
15700
|
|
|
15683
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
15701
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/regexp-ast/is-equals.js
|
|
15684
15702
|
var require_is_equals = __commonJS({
|
|
15685
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
15703
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/regexp-ast/is-equals.js"(exports2) {
|
|
15686
15704
|
"use strict";
|
|
15687
15705
|
init_cjs_shims();
|
|
15688
15706
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
15689
|
-
exports2.isEqualNodes =
|
|
15707
|
+
exports2.isEqualNodes = isEqualNodes;
|
|
15690
15708
|
var regexp_ast_analysis_1 = require_regexp_ast_analysis();
|
|
15691
15709
|
function isEqualChar(a, b, flags) {
|
|
15692
15710
|
if (a.type === "Character") {
|
|
@@ -15768,6 +15786,12 @@ var require_is_equals = __commonJS({
|
|
|
15768
15786
|
Group(a, b, flags, shortCircuit) {
|
|
15769
15787
|
return isEqualSet(a.alternatives, b.alternatives, flags, shortCircuit);
|
|
15770
15788
|
},
|
|
15789
|
+
ModifierFlags(a, b) {
|
|
15790
|
+
return a.dotAll === b.dotAll && a.ignoreCase === b.ignoreCase && a.multiline === b.multiline;
|
|
15791
|
+
},
|
|
15792
|
+
Modifiers(a, b, flags, shortCircuit) {
|
|
15793
|
+
return isEqualNodes(a.add, b.add, flags, shortCircuit) && (a.remove == null && b.remove == null || a.remove != null && b.remove != null && isEqualNodes(a.remove, b.remove, flags, shortCircuit));
|
|
15794
|
+
},
|
|
15771
15795
|
Pattern(a, b, flags, shortCircuit) {
|
|
15772
15796
|
return isEqualSet(a.alternatives, b.alternatives, flags, shortCircuit);
|
|
15773
15797
|
},
|
|
@@ -15802,7 +15826,6 @@ var require_is_equals = __commonJS({
|
|
|
15802
15826
|
}
|
|
15803
15827
|
return a.raw === b.raw;
|
|
15804
15828
|
}
|
|
15805
|
-
exports2.isEqualNodes = isEqualNodes;
|
|
15806
15829
|
function isEqualConcatenation(a, b, flags, shortCircuit) {
|
|
15807
15830
|
if (a.length !== b.length) {
|
|
15808
15831
|
return false;
|
|
@@ -15834,13 +15857,13 @@ var require_is_equals = __commonJS({
|
|
|
15834
15857
|
}
|
|
15835
15858
|
});
|
|
15836
15859
|
|
|
15837
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
15860
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/regexp-ast/is-covered.js
|
|
15838
15861
|
var require_is_covered = __commonJS({
|
|
15839
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
15862
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/regexp-ast/is-covered.js"(exports2) {
|
|
15840
15863
|
"use strict";
|
|
15841
15864
|
init_cjs_shims();
|
|
15842
15865
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
15843
|
-
exports2.isCoveredNode =
|
|
15866
|
+
exports2.isCoveredNode = isCoveredNode;
|
|
15844
15867
|
var regexp_ast_analysis_1 = require_regexp_ast_analysis();
|
|
15845
15868
|
var util_1 = require_util();
|
|
15846
15869
|
var is_equals_1 = require_is_equals();
|
|
@@ -16033,7 +16056,6 @@ var require_is_covered = __commonJS({
|
|
|
16033
16056
|
const rightNode = normalizeNode(right, options);
|
|
16034
16057
|
return isCoveredForNormalizedNode(leftNode, rightNode, options);
|
|
16035
16058
|
}
|
|
16036
|
-
exports2.isCoveredNode = isCoveredNode;
|
|
16037
16059
|
function isCoveredForNormalizedNode(left, right, options) {
|
|
16038
16060
|
if (right.type === "NormalizedDisjunctions") {
|
|
16039
16061
|
return right.alternatives.every((r) => isCoveredForNormalizedNode(left, r, options));
|
|
@@ -16119,6 +16141,8 @@ var require_is_covered = __commonJS({
|
|
|
16119
16141
|
return normalizeNode(node2.pattern, options);
|
|
16120
16142
|
case "Backreference":
|
|
16121
16143
|
case "Flags":
|
|
16144
|
+
case "ModifierFlags":
|
|
16145
|
+
case "Modifiers":
|
|
16122
16146
|
return NormalizedOther.fromNode(node2);
|
|
16123
16147
|
default:
|
|
16124
16148
|
return (0, util_1.assertNever)(node2);
|
|
@@ -16199,19 +16223,19 @@ var require_is_covered = __commonJS({
|
|
|
16199
16223
|
}
|
|
16200
16224
|
});
|
|
16201
16225
|
|
|
16202
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
16226
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/regexp-ast/quantifier.js
|
|
16203
16227
|
var require_quantifier = __commonJS({
|
|
16204
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
16228
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/regexp-ast/quantifier.js"(exports2) {
|
|
16205
16229
|
"use strict";
|
|
16206
16230
|
init_cjs_shims();
|
|
16207
16231
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
16208
|
-
exports2.
|
|
16232
|
+
exports2.getQuantifierOffsets = getQuantifierOffsets;
|
|
16233
|
+
exports2.quantToString = quantToString;
|
|
16209
16234
|
function getQuantifierOffsets(qNode) {
|
|
16210
16235
|
const startOffset = qNode.element.end - qNode.start;
|
|
16211
16236
|
const endOffset = qNode.raw.length - (qNode.greedy ? 0 : 1);
|
|
16212
16237
|
return [startOffset, endOffset];
|
|
16213
16238
|
}
|
|
16214
|
-
exports2.getQuantifierOffsets = getQuantifierOffsets;
|
|
16215
16239
|
function quantToString(quant) {
|
|
16216
16240
|
if (quant.max < quant.min || quant.min < 0 || !Number.isInteger(quant.min) || !(Number.isInteger(quant.max) || quant.max === Infinity)) {
|
|
16217
16241
|
throw new Error(`Invalid quantifier { min: ${quant.min}, max: ${quant.max} }`);
|
|
@@ -16235,24 +16259,24 @@ var require_quantifier = __commonJS({
|
|
|
16235
16259
|
}
|
|
16236
16260
|
return value;
|
|
16237
16261
|
}
|
|
16238
|
-
exports2.quantToString = quantToString;
|
|
16239
16262
|
}
|
|
16240
16263
|
});
|
|
16241
16264
|
|
|
16242
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
16265
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/regexp-ast/case-variation.js
|
|
16243
16266
|
var require_case_variation = __commonJS({
|
|
16244
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
16267
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/regexp-ast/case-variation.js"(exports2) {
|
|
16245
16268
|
"use strict";
|
|
16246
16269
|
init_cjs_shims();
|
|
16247
16270
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
16248
|
-
exports2.
|
|
16271
|
+
exports2.getCaseSensitiveFlags = exports2.getIgnoreCaseFlags = void 0;
|
|
16272
|
+
exports2.isCaseVariant = isCaseVariant;
|
|
16249
16273
|
var regexp_ast_analysis_1 = require_regexp_ast_analysis();
|
|
16250
16274
|
var util_1 = require_util();
|
|
16251
16275
|
exports2.getIgnoreCaseFlags = (0, util_1.cachedFn)((flags) => {
|
|
16252
|
-
return flags.ignoreCase ? flags : (0, regexp_ast_analysis_1.toCache)(
|
|
16276
|
+
return flags.ignoreCase ? flags : (0, regexp_ast_analysis_1.toCache)({ ...flags, ignoreCase: true });
|
|
16253
16277
|
});
|
|
16254
16278
|
exports2.getCaseSensitiveFlags = (0, util_1.cachedFn)((flags) => {
|
|
16255
|
-
return flags.ignoreCase === false ? flags : (0, regexp_ast_analysis_1.toCache)(
|
|
16279
|
+
return flags.ignoreCase === false ? flags : (0, regexp_ast_analysis_1.toCache)({ ...flags, ignoreCase: false });
|
|
16256
16280
|
});
|
|
16257
16281
|
function isCaseVariant(element, flags, wholeCharacterClass = true) {
|
|
16258
16282
|
const unicodeLike = Boolean(flags.unicode || flags.unicodeSets);
|
|
@@ -16298,11 +16322,13 @@ var require_case_variation = __commonJS({
|
|
|
16298
16322
|
switch (d.type) {
|
|
16299
16323
|
case "Assertion":
|
|
16300
16324
|
return unicodeLike && d.kind === "word";
|
|
16301
|
-
case "Backreference":
|
|
16302
|
-
|
|
16325
|
+
case "Backreference": {
|
|
16326
|
+
const outside = getReferencedGroupsFromBackreference(d).filter((resolved) => !(0, regexp_ast_analysis_1.hasSomeDescendant)(element, resolved));
|
|
16327
|
+
if (outside.length === 0) {
|
|
16303
16328
|
return false;
|
|
16304
16329
|
}
|
|
16305
|
-
return !(0, regexp_ast_analysis_1.isEmptyBackreference)(d, flags) && isCaseVariant(
|
|
16330
|
+
return !(0, regexp_ast_analysis_1.isEmptyBackreference)(d, flags) && outside.some((resolved) => isCaseVariant(resolved, flags));
|
|
16331
|
+
}
|
|
16306
16332
|
case "Character":
|
|
16307
16333
|
case "CharacterClassRange":
|
|
16308
16334
|
case "CharacterSet":
|
|
@@ -16320,17 +16346,22 @@ var require_case_variation = __commonJS({
|
|
|
16320
16346
|
return d.type !== "CharacterClass" && d.type !== "CharacterClassRange" && d.type !== "ExpressionCharacterClass" && d.type !== "ClassStringDisjunction";
|
|
16321
16347
|
});
|
|
16322
16348
|
}
|
|
16323
|
-
|
|
16349
|
+
function getReferencedGroupsFromBackreference(backRef) {
|
|
16350
|
+
return [backRef.resolved].flat().filter((group) => {
|
|
16351
|
+
const closestAncestor = (0, regexp_ast_analysis_1.getClosestAncestor)(backRef, group);
|
|
16352
|
+
return closestAncestor !== group && closestAncestor.type === "Alternative";
|
|
16353
|
+
});
|
|
16354
|
+
}
|
|
16324
16355
|
}
|
|
16325
16356
|
});
|
|
16326
16357
|
|
|
16327
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
16358
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/regexp-ast/simplify-quantifier.js
|
|
16328
16359
|
var require_simplify_quantifier = __commonJS({
|
|
16329
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
16360
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/regexp-ast/simplify-quantifier.js"(exports2) {
|
|
16330
16361
|
"use strict";
|
|
16331
16362
|
init_cjs_shims();
|
|
16332
16363
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
16333
|
-
exports2.canSimplifyQuantifier =
|
|
16364
|
+
exports2.canSimplifyQuantifier = canSimplifyQuantifier;
|
|
16334
16365
|
var refa_1 = require_refa();
|
|
16335
16366
|
var regexp_ast_analysis_1 = require_regexp_ast_analysis();
|
|
16336
16367
|
var util_1 = require_util();
|
|
@@ -16358,7 +16389,6 @@ var require_simplify_quantifier = __commonJS({
|
|
|
16358
16389
|
}
|
|
16359
16390
|
return canAbsorb(preceding, { direction, flags, parser, quantifier });
|
|
16360
16391
|
}
|
|
16361
|
-
exports2.canSimplifyQuantifier = canSimplifyQuantifier;
|
|
16362
16392
|
function canAbsorb(initialPreceding, options) {
|
|
16363
16393
|
const { direction, flags, parser, quantifier } = options;
|
|
16364
16394
|
const preceding = removeTargetQuantifier(initialPreceding, quantifier, direction, flags);
|
|
@@ -16567,9 +16597,9 @@ var require_simplify_quantifier = __commonJS({
|
|
|
16567
16597
|
}
|
|
16568
16598
|
});
|
|
16569
16599
|
|
|
16570
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
16600
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/regexp-ast/index.js
|
|
16571
16601
|
var require_regexp_ast = __commonJS({
|
|
16572
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
16602
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/regexp-ast/index.js"(exports2) {
|
|
16573
16603
|
"use strict";
|
|
16574
16604
|
init_cjs_shims();
|
|
16575
16605
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
@@ -223121,13 +223151,27 @@ ${e.message}`;
|
|
|
223121
223151
|
}
|
|
223122
223152
|
});
|
|
223123
223153
|
|
|
223124
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
223154
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/ts-util.js
|
|
223125
223155
|
var require_ts_util = __commonJS({
|
|
223126
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
223156
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/ts-util.js"(exports2) {
|
|
223127
223157
|
"use strict";
|
|
223128
223158
|
init_cjs_shims();
|
|
223129
223159
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
223130
|
-
exports2.
|
|
223160
|
+
exports2.getTypeScriptTools = getTypeScriptTools;
|
|
223161
|
+
exports2.getTypeScript = getTypeScript;
|
|
223162
|
+
exports2.isArrayLikeObject = isArrayLikeObject;
|
|
223163
|
+
exports2.isClassOrInterface = isClassOrInterface;
|
|
223164
|
+
exports2.isObject = isObject;
|
|
223165
|
+
exports2.isReferenceObject = isReferenceObject;
|
|
223166
|
+
exports2.isUnionOrIntersection = isUnionOrIntersection;
|
|
223167
|
+
exports2.isTypeParameter = isTypeParameter;
|
|
223168
|
+
exports2.isAny = isAny;
|
|
223169
|
+
exports2.isUnknown = isUnknown;
|
|
223170
|
+
exports2.isStringLine = isStringLine;
|
|
223171
|
+
exports2.isNumberLike = isNumberLike;
|
|
223172
|
+
exports2.isBooleanLike = isBooleanLike;
|
|
223173
|
+
exports2.isBigIntLike = isBigIntLike;
|
|
223174
|
+
exports2.isNull = isNull;
|
|
223131
223175
|
function getTypeScriptTools(context) {
|
|
223132
223176
|
const sourceCode = context.sourceCode;
|
|
223133
223177
|
const ts = getTypeScript();
|
|
@@ -223142,7 +223186,6 @@ var require_ts_util = __commonJS({
|
|
|
223142
223186
|
hasFullTypeInformation
|
|
223143
223187
|
};
|
|
223144
223188
|
}
|
|
223145
|
-
exports2.getTypeScriptTools = getTypeScriptTools;
|
|
223146
223189
|
var cacheTypeScript;
|
|
223147
223190
|
function getTypeScript() {
|
|
223148
223191
|
try {
|
|
@@ -223160,72 +223203,58 @@ var require_ts_util = __commonJS({
|
|
|
223160
223203
|
throw e;
|
|
223161
223204
|
}
|
|
223162
223205
|
}
|
|
223163
|
-
exports2.getTypeScript = getTypeScript;
|
|
223164
223206
|
function isArrayLikeObject(tsType) {
|
|
223165
223207
|
const ts = getTypeScript();
|
|
223166
223208
|
return isObject(tsType) && (tsType.objectFlags & (ts.ObjectFlags.ArrayLiteral | ts.ObjectFlags.EvolvingArray | ts.ObjectFlags.Tuple)) !== 0;
|
|
223167
223209
|
}
|
|
223168
|
-
exports2.isArrayLikeObject = isArrayLikeObject;
|
|
223169
223210
|
function isClassOrInterface(tsType) {
|
|
223170
223211
|
const ts = getTypeScript();
|
|
223171
223212
|
return isObject(tsType) && (tsType.objectFlags & ts.ObjectFlags.ClassOrInterface) !== 0;
|
|
223172
223213
|
}
|
|
223173
|
-
exports2.isClassOrInterface = isClassOrInterface;
|
|
223174
223214
|
function isObject(tsType) {
|
|
223175
223215
|
const ts = getTypeScript();
|
|
223176
223216
|
return (tsType.flags & ts.TypeFlags.Object) !== 0;
|
|
223177
223217
|
}
|
|
223178
|
-
exports2.isObject = isObject;
|
|
223179
223218
|
function isReferenceObject(tsType) {
|
|
223180
223219
|
const ts = getTypeScript();
|
|
223181
223220
|
return isObject(tsType) && (tsType.objectFlags & ts.ObjectFlags.Reference) !== 0;
|
|
223182
223221
|
}
|
|
223183
|
-
exports2.isReferenceObject = isReferenceObject;
|
|
223184
223222
|
function isUnionOrIntersection(tsType) {
|
|
223185
223223
|
const ts = getTypeScript();
|
|
223186
223224
|
return (tsType.flags & ts.TypeFlags.UnionOrIntersection) !== 0;
|
|
223187
223225
|
}
|
|
223188
|
-
exports2.isUnionOrIntersection = isUnionOrIntersection;
|
|
223189
223226
|
function isTypeParameter(tsType) {
|
|
223190
223227
|
const ts = getTypeScript();
|
|
223191
223228
|
return (tsType.flags & ts.TypeFlags.TypeParameter) !== 0;
|
|
223192
223229
|
}
|
|
223193
|
-
exports2.isTypeParameter = isTypeParameter;
|
|
223194
223230
|
function isAny(tsType) {
|
|
223195
223231
|
const ts = getTypeScript();
|
|
223196
223232
|
return (tsType.flags & ts.TypeFlags.Any) !== 0;
|
|
223197
223233
|
}
|
|
223198
|
-
exports2.isAny = isAny;
|
|
223199
223234
|
function isUnknown(tsType) {
|
|
223200
223235
|
const ts = getTypeScript();
|
|
223201
223236
|
return (tsType.flags & ts.TypeFlags.Unknown) !== 0;
|
|
223202
223237
|
}
|
|
223203
|
-
exports2.isUnknown = isUnknown;
|
|
223204
223238
|
function isStringLine(tsType) {
|
|
223205
223239
|
const ts = getTypeScript();
|
|
223206
223240
|
return (tsType.flags & ts.TypeFlags.StringLike) !== 0;
|
|
223207
223241
|
}
|
|
223208
|
-
exports2.isStringLine = isStringLine;
|
|
223209
223242
|
function isNumberLike(tsType) {
|
|
223210
223243
|
const ts = getTypeScript();
|
|
223211
223244
|
return (tsType.flags & ts.TypeFlags.NumberLike) !== 0;
|
|
223212
223245
|
}
|
|
223213
|
-
exports2.isNumberLike = isNumberLike;
|
|
223214
223246
|
function isBooleanLike(tsType) {
|
|
223215
223247
|
const ts = getTypeScript();
|
|
223216
223248
|
return (tsType.flags & ts.TypeFlags.BooleanLike) !== 0;
|
|
223217
223249
|
}
|
|
223218
|
-
exports2.isBooleanLike = isBooleanLike;
|
|
223219
223250
|
function isBigIntLike(tsType) {
|
|
223220
223251
|
const ts = getTypeScript();
|
|
223221
223252
|
return (tsType.flags & ts.TypeFlags.BigIntLike) !== 0;
|
|
223222
223253
|
}
|
|
223223
|
-
exports2.isBigIntLike = isBigIntLike;
|
|
223224
223254
|
function isNull(tsType) {
|
|
223225
223255
|
const ts = getTypeScript();
|
|
223226
223256
|
return (tsType.flags & ts.TypeFlags.Null) !== 0;
|
|
223227
223257
|
}
|
|
223228
|
-
exports2.isNull = isNull;
|
|
223229
223258
|
}
|
|
223230
223259
|
});
|
|
223231
223260
|
|
|
@@ -226498,9 +226527,9 @@ var require_lib = __commonJS({
|
|
|
226498
226527
|
}
|
|
226499
226528
|
});
|
|
226500
226529
|
|
|
226501
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
226530
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/jsdoc.js
|
|
226502
226531
|
var require_jsdoc = __commonJS({
|
|
226503
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
226532
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/jsdoc.js"(exports2) {
|
|
226504
226533
|
"use strict";
|
|
226505
226534
|
init_cjs_shims();
|
|
226506
226535
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
@@ -226531,7 +226560,9 @@ var require_jsdoc = __commonJS({
|
|
|
226531
226560
|
return result;
|
|
226532
226561
|
};
|
|
226533
226562
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
226534
|
-
exports2.
|
|
226563
|
+
exports2.JSDoc = exports2.JSDocParam = exports2.JSDocParams = void 0;
|
|
226564
|
+
exports2.getJSDoc = getJSDoc;
|
|
226565
|
+
exports2.parseTypeText = parseTypeText;
|
|
226535
226566
|
var jsdocTypeParser = __importStar(require_dist());
|
|
226536
226567
|
var eslint_utils_1 = require_eslint_utils();
|
|
226537
226568
|
var commentParser = __importStar(require_lib());
|
|
@@ -226630,7 +226661,6 @@ var require_jsdoc = __commonJS({
|
|
|
226630
226661
|
}
|
|
226631
226662
|
return null;
|
|
226632
226663
|
}
|
|
226633
|
-
exports2.getJSDoc = getJSDoc;
|
|
226634
226664
|
function findJSDocComment(node2, sourceCode) {
|
|
226635
226665
|
let target = node2;
|
|
226636
226666
|
let tokenBefore = null;
|
|
@@ -226674,17 +226704,21 @@ var require_jsdoc = __commonJS({
|
|
|
226674
226704
|
return null;
|
|
226675
226705
|
}
|
|
226676
226706
|
}
|
|
226677
|
-
exports2.parseTypeText = parseTypeText;
|
|
226678
226707
|
}
|
|
226679
226708
|
});
|
|
226680
226709
|
|
|
226681
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
226710
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/common.js
|
|
226682
226711
|
var require_common2 = __commonJS({
|
|
226683
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
226712
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/common.js"(exports2) {
|
|
226684
226713
|
"use strict";
|
|
226685
226714
|
init_cjs_shims();
|
|
226686
226715
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
226687
|
-
exports2.
|
|
226716
|
+
exports2.TypeCollection = void 0;
|
|
226717
|
+
exports2.isTypeClass = isTypeClass;
|
|
226718
|
+
exports2.isEquals = isEquals;
|
|
226719
|
+
exports2.hasType = hasType;
|
|
226720
|
+
exports2.createObject = createObject;
|
|
226721
|
+
exports2.getTypeName = getTypeName;
|
|
226688
226722
|
function isTypeClass(type) {
|
|
226689
226723
|
if (!type) {
|
|
226690
226724
|
return false;
|
|
@@ -226695,7 +226729,6 @@ var require_common2 = __commonJS({
|
|
|
226695
226729
|
}
|
|
226696
226730
|
return true;
|
|
226697
226731
|
}
|
|
226698
|
-
exports2.isTypeClass = isTypeClass;
|
|
226699
226732
|
function isEquals(t1, t2) {
|
|
226700
226733
|
if (t1 === t2) {
|
|
226701
226734
|
return true;
|
|
@@ -226705,7 +226738,6 @@ var require_common2 = __commonJS({
|
|
|
226705
226738
|
}
|
|
226706
226739
|
return false;
|
|
226707
226740
|
}
|
|
226708
|
-
exports2.isEquals = isEquals;
|
|
226709
226741
|
function hasType(result, type) {
|
|
226710
226742
|
if (result == null) {
|
|
226711
226743
|
return false;
|
|
@@ -226715,11 +226747,9 @@ var require_common2 = __commonJS({
|
|
|
226715
226747
|
}
|
|
226716
226748
|
return result.has(type);
|
|
226717
226749
|
}
|
|
226718
|
-
exports2.hasType = hasType;
|
|
226719
226750
|
function createObject(t) {
|
|
226720
226751
|
return Object.assign(/* @__PURE__ */ Object.create(null), t);
|
|
226721
226752
|
}
|
|
226722
|
-
exports2.createObject = createObject;
|
|
226723
226753
|
var TypeCollection = class {
|
|
226724
226754
|
constructor(generator) {
|
|
226725
226755
|
this.unknownIndex = null;
|
|
@@ -226811,17 +226841,17 @@ var require_common2 = __commonJS({
|
|
|
226811
226841
|
}
|
|
226812
226842
|
return type.typeNames().join("|");
|
|
226813
226843
|
}
|
|
226814
|
-
exports2.getTypeName = getTypeName;
|
|
226815
226844
|
}
|
|
226816
226845
|
});
|
|
226817
226846
|
|
|
226818
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
226847
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/object.js
|
|
226819
226848
|
var require_object = __commonJS({
|
|
226820
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
226849
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/object.js"(exports2) {
|
|
226821
226850
|
"use strict";
|
|
226822
226851
|
init_cjs_shims();
|
|
226823
226852
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
226824
|
-
exports2.
|
|
226853
|
+
exports2.UNKNOWN_OBJECT = exports2.TypeObject = exports2.getObjectPrototypes = void 0;
|
|
226854
|
+
exports2.buildObjectConstructor = buildObjectConstructor;
|
|
226825
226855
|
var util_1 = require_util();
|
|
226826
226856
|
var common_1 = require_common2();
|
|
226827
226857
|
var function_1 = require_function();
|
|
@@ -226958,17 +226988,17 @@ var require_object = __commonJS({
|
|
|
226958
226988
|
return (_a = argType === null || argType === void 0 ? void 0 : argType()) !== null && _a !== void 0 ? _a : exports2.UNKNOWN_OBJECT;
|
|
226959
226989
|
}, OBJECT_TYPES);
|
|
226960
226990
|
}
|
|
226961
|
-
exports2.buildObjectConstructor = buildObjectConstructor;
|
|
226962
226991
|
}
|
|
226963
226992
|
});
|
|
226964
226993
|
|
|
226965
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
226994
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/number.js
|
|
226966
226995
|
var require_number = __commonJS({
|
|
226967
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
226996
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/number.js"(exports2) {
|
|
226968
226997
|
"use strict";
|
|
226969
226998
|
init_cjs_shims();
|
|
226970
226999
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
226971
|
-
exports2.
|
|
227000
|
+
exports2.NUMBER = exports2.TypeNumber = void 0;
|
|
227001
|
+
exports2.buildNumberConstructor = buildNumberConstructor;
|
|
226972
227002
|
var util_1 = require_util();
|
|
226973
227003
|
var common_1 = require_common2();
|
|
226974
227004
|
var function_1 = require_function();
|
|
@@ -227021,18 +227051,26 @@ var require_number = __commonJS({
|
|
|
227021
227051
|
});
|
|
227022
227052
|
return new function_1.TypeGlobalFunction(() => exports2.NUMBER, NUMBER_TYPES);
|
|
227023
227053
|
}
|
|
227024
|
-
|
|
227025
|
-
|
|
227054
|
+
var getPrototypes = (0, util_1.lazy)(() => (0, common_1.createObject)({
|
|
227055
|
+
...(0, object_1.getObjectPrototypes)(),
|
|
227056
|
+
toString: function_1.RETURN_STRING,
|
|
227057
|
+
toFixed: function_1.RETURN_STRING,
|
|
227058
|
+
toExponential: function_1.RETURN_STRING,
|
|
227059
|
+
toPrecision: function_1.RETURN_STRING,
|
|
227060
|
+
valueOf: function_1.RETURN_NUMBER,
|
|
227061
|
+
toLocaleString: function_1.RETURN_STRING
|
|
227062
|
+
}));
|
|
227026
227063
|
}
|
|
227027
227064
|
});
|
|
227028
227065
|
|
|
227029
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
227066
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/string.js
|
|
227030
227067
|
var require_string = __commonJS({
|
|
227031
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
227068
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/string.js"(exports2) {
|
|
227032
227069
|
"use strict";
|
|
227033
227070
|
init_cjs_shims();
|
|
227034
227071
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
227035
|
-
exports2.
|
|
227072
|
+
exports2.STRING = exports2.TypeString = void 0;
|
|
227073
|
+
exports2.buildStringConstructor = buildStringConstructor;
|
|
227036
227074
|
var util_1 = require_util();
|
|
227037
227075
|
var common_1 = require_common2();
|
|
227038
227076
|
var function_1 = require_function();
|
|
@@ -227078,18 +227116,71 @@ var require_string = __commonJS({
|
|
|
227078
227116
|
});
|
|
227079
227117
|
return new function_1.TypeGlobalFunction(() => exports2.STRING, STRING_TYPES);
|
|
227080
227118
|
}
|
|
227081
|
-
|
|
227082
|
-
|
|
227119
|
+
var getPrototypes = (0, util_1.lazy)(() => (0, common_1.createObject)({
|
|
227120
|
+
...(0, object_1.getObjectPrototypes)(),
|
|
227121
|
+
toString: function_1.RETURN_STRING,
|
|
227122
|
+
charAt: function_1.RETURN_STRING,
|
|
227123
|
+
charCodeAt: function_1.RETURN_NUMBER,
|
|
227124
|
+
concat: function_1.RETURN_STRING,
|
|
227125
|
+
indexOf: function_1.RETURN_NUMBER,
|
|
227126
|
+
lastIndexOf: function_1.RETURN_NUMBER,
|
|
227127
|
+
localeCompare: function_1.RETURN_NUMBER,
|
|
227128
|
+
match: function_1.RETURN_STRING_ARRAY,
|
|
227129
|
+
replace: function_1.RETURN_STRING,
|
|
227130
|
+
search: function_1.RETURN_NUMBER,
|
|
227131
|
+
slice: function_1.RETURN_STRING,
|
|
227132
|
+
split: function_1.RETURN_STRING_ARRAY,
|
|
227133
|
+
substring: function_1.RETURN_STRING,
|
|
227134
|
+
toLowerCase: function_1.RETURN_STRING,
|
|
227135
|
+
toLocaleLowerCase: function_1.RETURN_STRING,
|
|
227136
|
+
toUpperCase: function_1.RETURN_STRING,
|
|
227137
|
+
toLocaleUpperCase: function_1.RETURN_STRING,
|
|
227138
|
+
trim: function_1.RETURN_STRING,
|
|
227139
|
+
substr: function_1.RETURN_STRING,
|
|
227140
|
+
valueOf: function_1.RETURN_STRING,
|
|
227141
|
+
codePointAt: function_1.RETURN_NUMBER,
|
|
227142
|
+
includes: function_1.RETURN_BOOLEAN,
|
|
227143
|
+
endsWith: function_1.RETURN_BOOLEAN,
|
|
227144
|
+
normalize: function_1.RETURN_STRING,
|
|
227145
|
+
repeat: function_1.RETURN_STRING,
|
|
227146
|
+
startsWith: function_1.RETURN_BOOLEAN,
|
|
227147
|
+
anchor: function_1.RETURN_STRING,
|
|
227148
|
+
big: function_1.RETURN_STRING,
|
|
227149
|
+
blink: function_1.RETURN_STRING,
|
|
227150
|
+
bold: function_1.RETURN_STRING,
|
|
227151
|
+
fixed: function_1.RETURN_STRING,
|
|
227152
|
+
fontcolor: function_1.RETURN_STRING,
|
|
227153
|
+
fontsize: function_1.RETURN_STRING,
|
|
227154
|
+
italics: function_1.RETURN_STRING,
|
|
227155
|
+
link: function_1.RETURN_STRING,
|
|
227156
|
+
small: function_1.RETURN_STRING,
|
|
227157
|
+
strike: function_1.RETURN_STRING,
|
|
227158
|
+
sub: function_1.RETURN_STRING,
|
|
227159
|
+
sup: function_1.RETURN_STRING,
|
|
227160
|
+
padStart: function_1.RETURN_STRING,
|
|
227161
|
+
padEnd: function_1.RETURN_STRING,
|
|
227162
|
+
trimLeft: function_1.RETURN_STRING,
|
|
227163
|
+
trimRight: function_1.RETURN_STRING,
|
|
227164
|
+
trimStart: function_1.RETURN_STRING,
|
|
227165
|
+
trimEnd: function_1.RETURN_STRING,
|
|
227166
|
+
matchAll: null,
|
|
227167
|
+
replaceAll: function_1.RETURN_STRING,
|
|
227168
|
+
at: function_1.RETURN_STRING,
|
|
227169
|
+
length: number_1.NUMBER,
|
|
227170
|
+
0: exports2.STRING,
|
|
227171
|
+
[Symbol.iterator]: null
|
|
227172
|
+
}));
|
|
227083
227173
|
}
|
|
227084
227174
|
});
|
|
227085
227175
|
|
|
227086
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
227176
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/bigint.js
|
|
227087
227177
|
var require_bigint = __commonJS({
|
|
227088
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
227178
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/bigint.js"(exports2) {
|
|
227089
227179
|
"use strict";
|
|
227090
227180
|
init_cjs_shims();
|
|
227091
227181
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
227092
|
-
exports2.
|
|
227182
|
+
exports2.BIGINT = exports2.TypeBigInt = void 0;
|
|
227183
|
+
exports2.buildBigIntConstructor = buildBigIntConstructor;
|
|
227093
227184
|
var util_1 = require_util();
|
|
227094
227185
|
var common_1 = require_common2();
|
|
227095
227186
|
var function_1 = require_function();
|
|
@@ -227131,18 +227222,24 @@ var require_bigint = __commonJS({
|
|
|
227131
227222
|
});
|
|
227132
227223
|
return new function_1.TypeGlobalFunction(() => exports2.BIGINT, BIGINT_TYPES);
|
|
227133
227224
|
}
|
|
227134
|
-
|
|
227135
|
-
|
|
227225
|
+
var getPrototypes = (0, util_1.lazy)(() => (0, common_1.createObject)({
|
|
227226
|
+
...(0, object_1.getObjectPrototypes)(),
|
|
227227
|
+
toString: function_1.RETURN_STRING,
|
|
227228
|
+
toLocaleString: function_1.RETURN_STRING,
|
|
227229
|
+
valueOf: function_1.RETURN_BIGINT,
|
|
227230
|
+
[Symbol.toStringTag]: string_1.STRING
|
|
227231
|
+
}));
|
|
227136
227232
|
}
|
|
227137
227233
|
});
|
|
227138
227234
|
|
|
227139
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
227235
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/boolean.js
|
|
227140
227236
|
var require_boolean = __commonJS({
|
|
227141
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
227237
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/boolean.js"(exports2) {
|
|
227142
227238
|
"use strict";
|
|
227143
227239
|
init_cjs_shims();
|
|
227144
227240
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
227145
|
-
exports2.
|
|
227241
|
+
exports2.BOOLEAN = exports2.TypeBoolean = void 0;
|
|
227242
|
+
exports2.buildBooleanConstructor = buildBooleanConstructor;
|
|
227146
227243
|
var util_1 = require_util();
|
|
227147
227244
|
var common_1 = require_common2();
|
|
227148
227245
|
var function_1 = require_function();
|
|
@@ -227181,18 +227278,21 @@ var require_boolean = __commonJS({
|
|
|
227181
227278
|
});
|
|
227182
227279
|
return new function_1.TypeGlobalFunction(() => exports2.BOOLEAN, BOOLEAN_TYPES);
|
|
227183
227280
|
}
|
|
227184
|
-
|
|
227185
|
-
|
|
227281
|
+
var getPrototypes = (0, util_1.lazy)(() => (0, common_1.createObject)({
|
|
227282
|
+
...(0, object_1.getObjectPrototypes)(),
|
|
227283
|
+
valueOf: function_1.RETURN_BOOLEAN
|
|
227284
|
+
}));
|
|
227186
227285
|
}
|
|
227187
227286
|
});
|
|
227188
227287
|
|
|
227189
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
227288
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/regexp.js
|
|
227190
227289
|
var require_regexp = __commonJS({
|
|
227191
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
227290
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/regexp.js"(exports2) {
|
|
227192
227291
|
"use strict";
|
|
227193
227292
|
init_cjs_shims();
|
|
227194
227293
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
227195
|
-
exports2.
|
|
227294
|
+
exports2.REGEXP = exports2.TypeRegExp = void 0;
|
|
227295
|
+
exports2.buildRegExpConstructor = buildRegExpConstructor;
|
|
227196
227296
|
var util_1 = require_util();
|
|
227197
227297
|
var boolean_1 = require_boolean();
|
|
227198
227298
|
var common_1 = require_common2();
|
|
@@ -227254,18 +227354,38 @@ var require_regexp = __commonJS({
|
|
|
227254
227354
|
});
|
|
227255
227355
|
return new function_1.TypeGlobalFunction(() => exports2.REGEXP, REGEXP_TYPES);
|
|
227256
227356
|
}
|
|
227257
|
-
|
|
227258
|
-
|
|
227357
|
+
var getPrototypes = (0, util_1.lazy)(() => (0, common_1.createObject)({
|
|
227358
|
+
...(0, object_1.getObjectPrototypes)(),
|
|
227359
|
+
exec: function_1.RETURN_STRING_ARRAY,
|
|
227360
|
+
test: function_1.RETURN_BOOLEAN,
|
|
227361
|
+
source: string_1.STRING,
|
|
227362
|
+
global: boolean_1.BOOLEAN,
|
|
227363
|
+
ignoreCase: boolean_1.BOOLEAN,
|
|
227364
|
+
multiline: boolean_1.BOOLEAN,
|
|
227365
|
+
lastIndex: number_1.NUMBER,
|
|
227366
|
+
compile: function_1.RETURN_REGEXP,
|
|
227367
|
+
flags: string_1.STRING,
|
|
227368
|
+
sticky: boolean_1.BOOLEAN,
|
|
227369
|
+
unicode: boolean_1.BOOLEAN,
|
|
227370
|
+
dotAll: boolean_1.BOOLEAN,
|
|
227371
|
+
hasIndices: boolean_1.BOOLEAN,
|
|
227372
|
+
[Symbol.match]: null,
|
|
227373
|
+
[Symbol.replace]: null,
|
|
227374
|
+
[Symbol.search]: null,
|
|
227375
|
+
[Symbol.split]: null,
|
|
227376
|
+
[Symbol.matchAll]: null
|
|
227377
|
+
}));
|
|
227259
227378
|
}
|
|
227260
227379
|
});
|
|
227261
227380
|
|
|
227262
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
227381
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/function.js
|
|
227263
227382
|
var require_function = __commonJS({
|
|
227264
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
227383
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/function.js"(exports2) {
|
|
227265
227384
|
"use strict";
|
|
227266
227385
|
init_cjs_shims();
|
|
227267
227386
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
227268
|
-
exports2.RETURN_BIGINT = exports2.RETURN_REGEXP = exports2.RETURN_UNKNOWN_OBJECT = exports2.RETURN_STRING_ARRAY = exports2.RETURN_UNKNOWN_ARRAY = exports2.RETURN_BOOLEAN = exports2.RETURN_NUMBER = exports2.RETURN_STRING = exports2.RETURN_VOID = exports2.
|
|
227387
|
+
exports2.RETURN_BIGINT = exports2.RETURN_REGEXP = exports2.RETURN_UNKNOWN_OBJECT = exports2.RETURN_STRING_ARRAY = exports2.RETURN_UNKNOWN_ARRAY = exports2.RETURN_BOOLEAN = exports2.RETURN_NUMBER = exports2.RETURN_STRING = exports2.RETURN_VOID = exports2.UNKNOWN_FUNCTION = exports2.TypeGlobalFunction = exports2.TypeFunction = void 0;
|
|
227388
|
+
exports2.buildFunctionConstructor = buildFunctionConstructor;
|
|
227269
227389
|
var util_1 = require_util();
|
|
227270
227390
|
var array_1 = require_array();
|
|
227271
227391
|
var bigint_1 = require_bigint();
|
|
@@ -227324,7 +227444,6 @@ var require_function = __commonJS({
|
|
|
227324
227444
|
return exports2.UNKNOWN_FUNCTION;
|
|
227325
227445
|
}, FUNCTION_TYPES);
|
|
227326
227446
|
}
|
|
227327
|
-
exports2.buildFunctionConstructor = buildFunctionConstructor;
|
|
227328
227447
|
exports2.RETURN_VOID = new TypeFunction(function retVoid() {
|
|
227329
227448
|
return "undefined";
|
|
227330
227449
|
});
|
|
@@ -227356,13 +227475,25 @@ var require_function = __commonJS({
|
|
|
227356
227475
|
var _a;
|
|
227357
227476
|
return (_a = selfType === null || selfType === void 0 ? void 0 : selfType()) !== null && _a !== void 0 ? _a : null;
|
|
227358
227477
|
});
|
|
227359
|
-
var getPrototypes = (0, util_1.lazy)(() => (0, common_1.createObject)(
|
|
227478
|
+
var getPrototypes = (0, util_1.lazy)(() => (0, common_1.createObject)({
|
|
227479
|
+
...(0, object_1.getObjectPrototypes)(),
|
|
227480
|
+
toString: exports2.RETURN_STRING,
|
|
227481
|
+
bind: RETURN_SELF,
|
|
227482
|
+
length: number_1.NUMBER,
|
|
227483
|
+
name: string_1.STRING,
|
|
227484
|
+
apply: exports2.UNKNOWN_FUNCTION,
|
|
227485
|
+
call: exports2.UNKNOWN_FUNCTION,
|
|
227486
|
+
arguments: null,
|
|
227487
|
+
caller: exports2.UNKNOWN_FUNCTION,
|
|
227488
|
+
prototype: null,
|
|
227489
|
+
[Symbol.hasInstance]: null
|
|
227490
|
+
}));
|
|
227360
227491
|
}
|
|
227361
227492
|
});
|
|
227362
227493
|
|
|
227363
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
227494
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/iterable.js
|
|
227364
227495
|
var require_iterable = __commonJS({
|
|
227365
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
227496
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/iterable.js"(exports2) {
|
|
227366
227497
|
"use strict";
|
|
227367
227498
|
init_cjs_shims();
|
|
227368
227499
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -227371,7 +227502,10 @@ var require_iterable = __commonJS({
|
|
|
227371
227502
|
var common_1 = require_common2();
|
|
227372
227503
|
var object_1 = require_object();
|
|
227373
227504
|
var getPrototypes = (0, util_1.lazy)(() => {
|
|
227374
|
-
return (0, common_1.createObject)(
|
|
227505
|
+
return (0, common_1.createObject)({
|
|
227506
|
+
...(0, object_1.getObjectPrototypes)(),
|
|
227507
|
+
[Symbol.iterator]: null
|
|
227508
|
+
});
|
|
227375
227509
|
});
|
|
227376
227510
|
var TypeIterable = class {
|
|
227377
227511
|
constructor(param0) {
|
|
@@ -227412,9 +227546,9 @@ var require_iterable = __commonJS({
|
|
|
227412
227546
|
}
|
|
227413
227547
|
});
|
|
227414
227548
|
|
|
227415
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
227549
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/union-or-intersection.js
|
|
227416
227550
|
var require_union_or_intersection = __commonJS({
|
|
227417
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
227551
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/union-or-intersection.js"(exports2) {
|
|
227418
227552
|
"use strict";
|
|
227419
227553
|
init_cjs_shims();
|
|
227420
227554
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -227504,13 +227638,14 @@ var require_union_or_intersection = __commonJS({
|
|
|
227504
227638
|
}
|
|
227505
227639
|
});
|
|
227506
227640
|
|
|
227507
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
227641
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/array.js
|
|
227508
227642
|
var require_array = __commonJS({
|
|
227509
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
227643
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/array.js"(exports2) {
|
|
227510
227644
|
"use strict";
|
|
227511
227645
|
init_cjs_shims();
|
|
227512
227646
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
227513
|
-
exports2.
|
|
227647
|
+
exports2.STRING_ARRAY = exports2.UNKNOWN_ARRAY = exports2.TypeArray = void 0;
|
|
227648
|
+
exports2.buildArrayConstructor = buildArrayConstructor;
|
|
227514
227649
|
var util_1 = require_util();
|
|
227515
227650
|
var common_1 = require_common2();
|
|
227516
227651
|
var function_1 = require_function();
|
|
@@ -227583,7 +227718,6 @@ var require_array = __commonJS({
|
|
|
227583
227718
|
});
|
|
227584
227719
|
return new function_1.TypeGlobalFunction(() => exports2.UNKNOWN_ARRAY, ARRAY_TYPES);
|
|
227585
227720
|
}
|
|
227586
|
-
exports2.buildArrayConstructor = buildArrayConstructor;
|
|
227587
227721
|
var getPrototypes = (0, util_1.lazy)(() => {
|
|
227588
227722
|
const RETURN_ARRAY_ELEMENT = new function_1.TypeFunction(function returnArrayElement(selfType) {
|
|
227589
227723
|
const type = selfType === null || selfType === void 0 ? void 0 : selfType();
|
|
@@ -227647,18 +227781,63 @@ var require_array = __commonJS({
|
|
|
227647
227781
|
}
|
|
227648
227782
|
});
|
|
227649
227783
|
});
|
|
227650
|
-
return (0, common_1.createObject)(
|
|
227784
|
+
return (0, common_1.createObject)({
|
|
227785
|
+
...(0, object_1.getObjectPrototypes)(),
|
|
227786
|
+
toString: function_1.RETURN_STRING,
|
|
227787
|
+
toLocaleString: function_1.RETURN_STRING,
|
|
227788
|
+
pop: RETURN_ARRAY_ELEMENT,
|
|
227789
|
+
push: function_1.RETURN_NUMBER,
|
|
227790
|
+
concat: RETURN_CONCAT,
|
|
227791
|
+
join: function_1.RETURN_STRING,
|
|
227792
|
+
reverse: RETURN_SELF,
|
|
227793
|
+
shift: RETURN_ARRAY_ELEMENT,
|
|
227794
|
+
slice: RETURN_SELF,
|
|
227795
|
+
sort: RETURN_SELF,
|
|
227796
|
+
splice: RETURN_SELF,
|
|
227797
|
+
unshift: function_1.RETURN_NUMBER,
|
|
227798
|
+
indexOf: function_1.RETURN_NUMBER,
|
|
227799
|
+
lastIndexOf: function_1.RETURN_NUMBER,
|
|
227800
|
+
every: function_1.RETURN_BOOLEAN,
|
|
227801
|
+
some: function_1.RETURN_BOOLEAN,
|
|
227802
|
+
forEach: function_1.RETURN_VOID,
|
|
227803
|
+
map: RETURN_MAP,
|
|
227804
|
+
filter: RETURN_SELF,
|
|
227805
|
+
reduce: null,
|
|
227806
|
+
reduceRight: null,
|
|
227807
|
+
find: RETURN_ARRAY_ELEMENT,
|
|
227808
|
+
findIndex: function_1.RETURN_NUMBER,
|
|
227809
|
+
fill: function_1.RETURN_UNKNOWN_ARRAY,
|
|
227810
|
+
copyWithin: RETURN_SELF,
|
|
227811
|
+
entries: RETURN_ENTRIES,
|
|
227812
|
+
keys: RETURN_KEYS,
|
|
227813
|
+
values: RETURN_VALUES,
|
|
227814
|
+
includes: function_1.RETURN_BOOLEAN,
|
|
227815
|
+
flatMap: function_1.RETURN_UNKNOWN_ARRAY,
|
|
227816
|
+
flat: function_1.RETURN_UNKNOWN_ARRAY,
|
|
227817
|
+
at: RETURN_ARRAY_ELEMENT,
|
|
227818
|
+
findLast: RETURN_ARRAY_ELEMENT,
|
|
227819
|
+
findLastIndex: function_1.RETURN_NUMBER,
|
|
227820
|
+
toReversed: RETURN_SELF,
|
|
227821
|
+
toSorted: RETURN_SELF,
|
|
227822
|
+
toSpliced: RETURN_SELF,
|
|
227823
|
+
with: RETURN_SELF,
|
|
227824
|
+
length: number_1.NUMBER,
|
|
227825
|
+
0: null,
|
|
227826
|
+
[Symbol.iterator]: null,
|
|
227827
|
+
[Symbol.unscopables]: null
|
|
227828
|
+
});
|
|
227651
227829
|
});
|
|
227652
227830
|
}
|
|
227653
227831
|
});
|
|
227654
227832
|
|
|
227655
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
227833
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/map.js
|
|
227656
227834
|
var require_map = __commonJS({
|
|
227657
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
227835
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/map.js"(exports2) {
|
|
227658
227836
|
"use strict";
|
|
227659
227837
|
init_cjs_shims();
|
|
227660
227838
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
227661
|
-
exports2.
|
|
227839
|
+
exports2.UNKNOWN_MAP = exports2.TypeMap = void 0;
|
|
227840
|
+
exports2.buildMapConstructor = buildMapConstructor;
|
|
227662
227841
|
var util_1 = require_util();
|
|
227663
227842
|
var array_1 = require_array();
|
|
227664
227843
|
var common_1 = require_common2();
|
|
@@ -227711,7 +227890,21 @@ var require_map = __commonJS({
|
|
|
227711
227890
|
return null;
|
|
227712
227891
|
});
|
|
227713
227892
|
});
|
|
227714
|
-
return (0, common_1.createObject)(
|
|
227893
|
+
return (0, common_1.createObject)({
|
|
227894
|
+
...(0, object_1.getObjectPrototypes)(),
|
|
227895
|
+
clear: function_1.RETURN_VOID,
|
|
227896
|
+
delete: function_1.RETURN_BOOLEAN,
|
|
227897
|
+
forEach: function_1.RETURN_VOID,
|
|
227898
|
+
get: RETURN_MAP_VALUE,
|
|
227899
|
+
has: function_1.RETURN_BOOLEAN,
|
|
227900
|
+
set: RETURN_SELF,
|
|
227901
|
+
size: number_1.NUMBER,
|
|
227902
|
+
entries: RETURN_ENTRIES,
|
|
227903
|
+
keys: RETURN_KEYS,
|
|
227904
|
+
values: RETURN_VALUES,
|
|
227905
|
+
[Symbol.iterator]: null,
|
|
227906
|
+
[Symbol.toStringTag]: string_1.STRING
|
|
227907
|
+
});
|
|
227715
227908
|
});
|
|
227716
227909
|
var TypeMap = class {
|
|
227717
227910
|
constructor(param0, param1) {
|
|
@@ -227767,7 +227960,6 @@ var require_map = __commonJS({
|
|
|
227767
227960
|
});
|
|
227768
227961
|
return new function_1.TypeGlobalFunction(mapConstructor, MAP_TYPES);
|
|
227769
227962
|
}
|
|
227770
|
-
exports2.buildMapConstructor = buildMapConstructor;
|
|
227771
227963
|
function mapConstructor(_thisType, argTypes, meta) {
|
|
227772
227964
|
var _a;
|
|
227773
227965
|
if (!(meta === null || meta === void 0 ? void 0 : meta.isConstructor)) {
|
|
@@ -227785,13 +227977,14 @@ var require_map = __commonJS({
|
|
|
227785
227977
|
}
|
|
227786
227978
|
});
|
|
227787
227979
|
|
|
227788
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
227980
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/set.js
|
|
227789
227981
|
var require_set = __commonJS({
|
|
227790
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
227982
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/set.js"(exports2) {
|
|
227791
227983
|
"use strict";
|
|
227792
227984
|
init_cjs_shims();
|
|
227793
227985
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
227794
|
-
exports2.
|
|
227986
|
+
exports2.UNKNOWN_SET = exports2.TypeSet = void 0;
|
|
227987
|
+
exports2.buildSetConstructor = buildSetConstructor;
|
|
227795
227988
|
var util_1 = require_util();
|
|
227796
227989
|
var array_1 = require_array();
|
|
227797
227990
|
var common_1 = require_common2();
|
|
@@ -227838,7 +228031,20 @@ var require_set = __commonJS({
|
|
|
227838
228031
|
return null;
|
|
227839
228032
|
});
|
|
227840
228033
|
});
|
|
227841
|
-
return (0, common_1.createObject)(
|
|
228034
|
+
return (0, common_1.createObject)({
|
|
228035
|
+
...(0, object_1.getObjectPrototypes)(),
|
|
228036
|
+
clear: function_1.RETURN_VOID,
|
|
228037
|
+
delete: function_1.RETURN_BOOLEAN,
|
|
228038
|
+
forEach: function_1.RETURN_VOID,
|
|
228039
|
+
has: function_1.RETURN_BOOLEAN,
|
|
228040
|
+
add: RETURN_SELF,
|
|
228041
|
+
size: number_1.NUMBER,
|
|
228042
|
+
entries: RETURN_ENTRIES,
|
|
228043
|
+
keys: RETURN_KEYS,
|
|
228044
|
+
values: RETURN_VALUES,
|
|
228045
|
+
[Symbol.iterator]: null,
|
|
228046
|
+
[Symbol.toStringTag]: string_1.STRING
|
|
228047
|
+
});
|
|
227842
228048
|
});
|
|
227843
228049
|
var TypeSet = class {
|
|
227844
228050
|
constructor(param0) {
|
|
@@ -227883,7 +228089,6 @@ var require_set = __commonJS({
|
|
|
227883
228089
|
});
|
|
227884
228090
|
return new function_1.TypeGlobalFunction(setConstructor, SET_TYPES);
|
|
227885
228091
|
}
|
|
227886
|
-
exports2.buildSetConstructor = buildSetConstructor;
|
|
227887
228092
|
function setConstructor(_thisType, argTypes, meta) {
|
|
227888
228093
|
var _a;
|
|
227889
228094
|
if (!(meta === null || meta === void 0 ? void 0 : meta.isConstructor)) {
|
|
@@ -227898,9 +228103,9 @@ var require_set = __commonJS({
|
|
|
227898
228103
|
}
|
|
227899
228104
|
});
|
|
227900
228105
|
|
|
227901
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
228106
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/global.js
|
|
227902
228107
|
var require_global = __commonJS({
|
|
227903
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
228108
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/global.js"(exports2) {
|
|
227904
228109
|
"use strict";
|
|
227905
228110
|
init_cjs_shims();
|
|
227906
228111
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -227977,9 +228182,9 @@ var require_global = __commonJS({
|
|
|
227977
228182
|
}
|
|
227978
228183
|
});
|
|
227979
228184
|
|
|
227980
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
228185
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/index.js
|
|
227981
228186
|
var require_type_data = __commonJS({
|
|
227982
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
228187
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/type-data/index.js"(exports2) {
|
|
227983
228188
|
"use strict";
|
|
227984
228189
|
init_cjs_shims();
|
|
227985
228190
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -228158,9 +228363,9 @@ var require_type_data = __commonJS({
|
|
|
228158
228363
|
}
|
|
228159
228364
|
});
|
|
228160
228365
|
|
|
228161
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
228366
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/utils.js
|
|
228162
228367
|
var require_utils2 = __commonJS({
|
|
228163
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
228368
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/utils.js"(exports2) {
|
|
228164
228369
|
"use strict";
|
|
228165
228370
|
init_cjs_shims();
|
|
228166
228371
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
@@ -228191,31 +228396,30 @@ var require_utils2 = __commonJS({
|
|
|
228191
228396
|
return result;
|
|
228192
228397
|
};
|
|
228193
228398
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
228194
|
-
exports2.
|
|
228399
|
+
exports2.findVariable = findVariable;
|
|
228400
|
+
exports2.getPropertyName = getPropertyName;
|
|
228401
|
+
exports2.isParenthesized = isParenthesized;
|
|
228195
228402
|
var astUtils = __importStar(require_ast_utils());
|
|
228196
228403
|
var eslintUtils = __importStar(require_eslint_utils());
|
|
228197
228404
|
function findVariable(context, node2) {
|
|
228198
228405
|
return astUtils.findVariable(context, node2);
|
|
228199
228406
|
}
|
|
228200
|
-
exports2.findVariable = findVariable;
|
|
228201
228407
|
function getPropertyName(context, node2) {
|
|
228202
228408
|
return eslintUtils.getPropertyName(node2, astUtils.getScope(context, node2));
|
|
228203
228409
|
}
|
|
228204
|
-
exports2.getPropertyName = getPropertyName;
|
|
228205
228410
|
function isParenthesized(context, node2) {
|
|
228206
228411
|
return eslintUtils.isParenthesized(node2, context.sourceCode);
|
|
228207
228412
|
}
|
|
228208
|
-
exports2.isParenthesized = isParenthesized;
|
|
228209
228413
|
}
|
|
228210
228414
|
});
|
|
228211
228415
|
|
|
228212
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
228416
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/tracker.js
|
|
228213
228417
|
var require_tracker = __commonJS({
|
|
228214
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
228418
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/tracker.js"(exports2) {
|
|
228215
228419
|
"use strict";
|
|
228216
228420
|
init_cjs_shims();
|
|
228217
228421
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
228218
|
-
exports2.createTypeTracker =
|
|
228422
|
+
exports2.createTypeTracker = createTypeTracker;
|
|
228219
228423
|
var ast_utils_1 = require_ast_utils();
|
|
228220
228424
|
var ts_util_1 = require_ts_util();
|
|
228221
228425
|
var util_1 = require_util();
|
|
@@ -228625,7 +228829,6 @@ var require_tracker = __commonJS({
|
|
|
228625
228829
|
return void 0;
|
|
228626
228830
|
}
|
|
228627
228831
|
}
|
|
228628
|
-
exports2.createTypeTracker = createTypeTracker;
|
|
228629
228832
|
function typeTextToTypeInfo(typeText) {
|
|
228630
228833
|
if (typeText == null) {
|
|
228631
228834
|
return null;
|
|
@@ -228645,6 +228848,9 @@ var require_tracker = __commonJS({
|
|
|
228645
228848
|
if (node2.type === "JsdocTypeNumber") {
|
|
228646
228849
|
return type_data_1.NUMBER;
|
|
228647
228850
|
}
|
|
228851
|
+
if (node2.type === "JsdocTypeAsserts") {
|
|
228852
|
+
return type_data_1.BOOLEAN;
|
|
228853
|
+
}
|
|
228648
228854
|
if (node2.type === "JsdocTypeOptional" || node2.type === "JsdocTypeNullable" || node2.type === "JsdocTypeNotNullable" || node2.type === "JsdocTypeParenthesis") {
|
|
228649
228855
|
return jsDocTypeNodeToTypeInfo(node2.element);
|
|
228650
228856
|
}
|
|
@@ -228813,9 +229019,9 @@ var require_tracker = __commonJS({
|
|
|
228813
229019
|
}
|
|
228814
229020
|
});
|
|
228815
229021
|
|
|
228816
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
229022
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/index.js
|
|
228817
229023
|
var require_type_tracker = __commonJS({
|
|
228818
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
229024
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/type-tracker/index.js"(exports2) {
|
|
228819
229025
|
"use strict";
|
|
228820
229026
|
init_cjs_shims();
|
|
228821
229027
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -228827,14 +229033,24 @@ var require_type_tracker = __commonJS({
|
|
|
228827
229033
|
}
|
|
228828
229034
|
});
|
|
228829
229035
|
|
|
228830
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
229036
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/unicode.js
|
|
228831
229037
|
var require_unicode = __commonJS({
|
|
228832
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
229038
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/unicode.js"(exports2) {
|
|
228833
229039
|
"use strict";
|
|
228834
229040
|
init_cjs_shims();
|
|
228835
229041
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
228836
229042
|
exports2.CP_PARAGRAPH_SEPARATOR = exports2.CP_LINE_SEPARATOR = exports2.CP_RLM = exports2.CP_LRM = exports2.CP_ZWJ = exports2.CP_ZWNJ = exports2.CP_ZWSP = exports2.CP_HAIR_SPACE = exports2.CP_EN_QUAD = exports2.CP_MONGOLIAN_VOWEL_SEPARATOR = exports2.CP_OGHAM_SPACE_MARK = exports2.CP_NBSP = exports2.CP_NEL = exports2.CP_TILDE = exports2.CP_CLOSING_BRACE = exports2.CP_PIPE = exports2.CP_OPENING_BRACE = exports2.CP_APOSTROPHE = exports2.CP_BACKTICK = exports2.CP_CARET = exports2.CP_CLOSING_BRACKET = exports2.CP_BACK_SLASH = exports2.CP_OPENING_BRACKET = exports2.CP_AT = exports2.CP_QUESTION = exports2.CP_GT = exports2.CP_EQ = exports2.CP_LT = exports2.CP_SEMI = exports2.CP_COLON = exports2.CP_SLASH = exports2.CP_DOT = exports2.CP_MINUS = exports2.CP_COMMA = exports2.CP_PLUS = exports2.CP_STAR = exports2.CP_CLOSING_PAREN = exports2.CP_OPENING_PAREN = exports2.CP_AMP = exports2.CP_PERCENT = exports2.CP_DOLLAR = exports2.CP_HASH = exports2.CP_BAN = exports2.CP_SPACE = exports2.CP_CR = exports2.CP_FF = exports2.CP_VT = exports2.CP_LF = exports2.CP_TAB = exports2.CP_BACKSPACE = void 0;
|
|
228837
|
-
exports2.
|
|
229043
|
+
exports2.CP_RANGE_CAPITAL_LETTER = exports2.CP_RANGE_SMALL_LETTER = exports2.CP_LOW_LINE = exports2.CP_CAPITAL_Z = exports2.CP_CAPITAL_A = exports2.CP_SMALL_Z = exports2.CP_SMALL_A = exports2.CP_DIGIT_NINE = exports2.CP_DIGIT_ZERO = exports2.CP_BOM = exports2.CP_IDEOGRAPHIC_SPACE = exports2.CP_BRAILLE_PATTERN_BLANK = exports2.CP_MMSP = exports2.CP_NNBSP = void 0;
|
|
229044
|
+
exports2.isDigit = isDigit;
|
|
229045
|
+
exports2.isLowercaseLetter = isLowercaseLetter;
|
|
229046
|
+
exports2.isUppercaseLetter = isUppercaseLetter;
|
|
229047
|
+
exports2.isLetter = isLetter;
|
|
229048
|
+
exports2.toLowerCodePoint = toLowerCodePoint;
|
|
229049
|
+
exports2.toUpperCodePoint = toUpperCodePoint;
|
|
229050
|
+
exports2.isSymbol = isSymbol;
|
|
229051
|
+
exports2.isSpace = isSpace;
|
|
229052
|
+
exports2.isWord = isWord;
|
|
229053
|
+
exports2.isInvisible = isInvisible;
|
|
228838
229054
|
var regexp_ast_analysis_1 = require_regexp_ast_analysis();
|
|
228839
229055
|
exports2.CP_BACKSPACE = 8;
|
|
228840
229056
|
exports2.CP_TAB = 9;
|
|
@@ -228906,58 +229122,48 @@ var require_unicode = __commonJS({
|
|
|
228906
229122
|
function isDigit(codePoint) {
|
|
228907
229123
|
return regexp_ast_analysis_1.Chars.digit({}).has(codePoint);
|
|
228908
229124
|
}
|
|
228909
|
-
exports2.isDigit = isDigit;
|
|
228910
229125
|
function isLowercaseLetter(codePoint) {
|
|
228911
229126
|
return isCodePointInRange(codePoint, exports2.CP_RANGE_SMALL_LETTER);
|
|
228912
229127
|
}
|
|
228913
|
-
exports2.isLowercaseLetter = isLowercaseLetter;
|
|
228914
229128
|
function isUppercaseLetter(codePoint) {
|
|
228915
229129
|
return isCodePointInRange(codePoint, exports2.CP_RANGE_CAPITAL_LETTER);
|
|
228916
229130
|
}
|
|
228917
|
-
exports2.isUppercaseLetter = isUppercaseLetter;
|
|
228918
229131
|
function isLetter(codePoint) {
|
|
228919
229132
|
return isLowercaseLetter(codePoint) || isUppercaseLetter(codePoint);
|
|
228920
229133
|
}
|
|
228921
|
-
exports2.isLetter = isLetter;
|
|
228922
229134
|
function toLowerCodePoint(codePoint) {
|
|
228923
229135
|
if (isUppercaseLetter(codePoint)) {
|
|
228924
229136
|
return codePoint + 32;
|
|
228925
229137
|
}
|
|
228926
229138
|
return codePoint;
|
|
228927
229139
|
}
|
|
228928
|
-
exports2.toLowerCodePoint = toLowerCodePoint;
|
|
228929
229140
|
function toUpperCodePoint(codePoint) {
|
|
228930
229141
|
if (isLowercaseLetter(codePoint)) {
|
|
228931
229142
|
return codePoint - 32;
|
|
228932
229143
|
}
|
|
228933
229144
|
return codePoint;
|
|
228934
229145
|
}
|
|
228935
|
-
exports2.toUpperCodePoint = toUpperCodePoint;
|
|
228936
229146
|
function isSymbol(codePoint) {
|
|
228937
229147
|
return isCodePointInRange(codePoint, [exports2.CP_BAN, exports2.CP_SLASH]) || isCodePointInRange(codePoint, [exports2.CP_COLON, exports2.CP_AT]) || isCodePointInRange(codePoint, [exports2.CP_OPENING_BRACKET, exports2.CP_BACKTICK]) || isCodePointInRange(codePoint, [exports2.CP_OPENING_BRACE, exports2.CP_TILDE]);
|
|
228938
229148
|
}
|
|
228939
|
-
exports2.isSymbol = isSymbol;
|
|
228940
229149
|
function isSpace(codePoint) {
|
|
228941
229150
|
return regexp_ast_analysis_1.Chars.space({}).has(codePoint);
|
|
228942
229151
|
}
|
|
228943
|
-
exports2.isSpace = isSpace;
|
|
228944
229152
|
function isWord(codePoint) {
|
|
228945
229153
|
return regexp_ast_analysis_1.Chars.word({}).has(codePoint);
|
|
228946
229154
|
}
|
|
228947
|
-
exports2.isWord = isWord;
|
|
228948
229155
|
function isInvisible(codePoint) {
|
|
228949
229156
|
if (isSpace(codePoint)) {
|
|
228950
229157
|
return true;
|
|
228951
229158
|
}
|
|
228952
229159
|
return codePoint === exports2.CP_MONGOLIAN_VOWEL_SEPARATOR || codePoint === exports2.CP_NEL || codePoint === exports2.CP_ZWSP || codePoint === exports2.CP_ZWNJ || codePoint === exports2.CP_ZWJ || codePoint === exports2.CP_LRM || codePoint === exports2.CP_RLM || codePoint === exports2.CP_BRAILLE_PATTERN_BLANK;
|
|
228953
229160
|
}
|
|
228954
|
-
exports2.isInvisible = isInvisible;
|
|
228955
229161
|
}
|
|
228956
229162
|
});
|
|
228957
229163
|
|
|
228958
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
229164
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/index.js
|
|
228959
229165
|
var require_utils3 = __commonJS({
|
|
228960
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
229166
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/index.js"(exports2) {
|
|
228961
229167
|
"use strict";
|
|
228962
229168
|
init_cjs_shims();
|
|
228963
229169
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
@@ -228977,7 +229183,14 @@ var require_utils3 = __commonJS({
|
|
|
228977
229183
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports3, p)) __createBinding(exports3, m, p);
|
|
228978
229184
|
};
|
|
228979
229185
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
228980
|
-
exports2.
|
|
229186
|
+
exports2.createRule = createRule;
|
|
229187
|
+
exports2.defineRegexpVisitor = defineRegexpVisitor;
|
|
229188
|
+
exports2.compositingVisitors = compositingVisitors;
|
|
229189
|
+
exports2.mightCreateNewElement = mightCreateNewElement;
|
|
229190
|
+
exports2.fixRemoveCharacterClassElement = fixRemoveCharacterClassElement;
|
|
229191
|
+
exports2.fixRemoveAlternative = fixRemoveAlternative;
|
|
229192
|
+
exports2.fixRemoveStringAlternative = fixRemoveStringAlternative;
|
|
229193
|
+
exports2.canUnwrapped = canUnwrapped;
|
|
228981
229194
|
var regexpp_1 = require_regexpp();
|
|
228982
229195
|
var regexp_ast_analysis_1 = require_regexp_ast_analysis();
|
|
228983
229196
|
var ast_utils_1 = require_ast_utils();
|
|
@@ -228994,11 +229207,18 @@ var require_utils3 = __commonJS({
|
|
|
228994
229207
|
var regexpRules = /* @__PURE__ */ new WeakMap();
|
|
228995
229208
|
function createRule(ruleName, rule) {
|
|
228996
229209
|
return {
|
|
228997
|
-
meta:
|
|
229210
|
+
meta: {
|
|
229211
|
+
...rule.meta,
|
|
229212
|
+
docs: {
|
|
229213
|
+
...rule.meta.docs,
|
|
229214
|
+
url: `https://ota-meshi.github.io/eslint-plugin-regexp/rules/${ruleName}.html`,
|
|
229215
|
+
ruleId: `regexp/${ruleName}`,
|
|
229216
|
+
ruleName
|
|
229217
|
+
}
|
|
229218
|
+
},
|
|
228998
229219
|
create: rule.create
|
|
228999
229220
|
};
|
|
229000
229221
|
}
|
|
229001
|
-
exports2.createRule = createRule;
|
|
229002
229222
|
function defineRegexpVisitor(context, rule) {
|
|
229003
229223
|
const programNode = context.sourceCode.ast;
|
|
229004
229224
|
let visitor;
|
|
@@ -229029,22 +229249,25 @@ var require_utils3 = __commonJS({
|
|
|
229029
229249
|
});
|
|
229030
229250
|
return visitor;
|
|
229031
229251
|
}
|
|
229032
|
-
exports2.defineRegexpVisitor = defineRegexpVisitor;
|
|
229033
229252
|
function buildRegexpVisitor(context, rules, programExit) {
|
|
229034
229253
|
const parser = new regexpp_1.RegExpParser();
|
|
229035
229254
|
function verify(patternNode, flagsNode, regexpNode, patternSource, flagsString, ownsFlags, createVisitor) {
|
|
229036
229255
|
const flags = (0, regex_syntax_1.parseFlags)(flagsString || "");
|
|
229037
229256
|
if (!patternSource) {
|
|
229038
|
-
visitUnknownForRules(rules,
|
|
229039
|
-
|
|
229040
|
-
|
|
229041
|
-
|
|
229042
|
-
|
|
229043
|
-
|
|
229044
|
-
|
|
229045
|
-
|
|
229046
|
-
|
|
229047
|
-
|
|
229257
|
+
visitUnknownForRules(rules, {
|
|
229258
|
+
pattern: null,
|
|
229259
|
+
patternSource: null,
|
|
229260
|
+
...buildUnparsableRegExpContextBase({
|
|
229261
|
+
patternSource,
|
|
229262
|
+
patternNode,
|
|
229263
|
+
regexpNode,
|
|
229264
|
+
context,
|
|
229265
|
+
flags,
|
|
229266
|
+
flagsString,
|
|
229267
|
+
flagsNode,
|
|
229268
|
+
ownsFlags
|
|
229269
|
+
})
|
|
229270
|
+
});
|
|
229048
229271
|
return;
|
|
229049
229272
|
}
|
|
229050
229273
|
let parsedPattern;
|
|
@@ -229052,20 +229275,21 @@ var require_utils3 = __commonJS({
|
|
|
229052
229275
|
parsedPattern = parser.parsePattern(patternSource.value, 0, patternSource.value.length, flags);
|
|
229053
229276
|
} catch (error) {
|
|
229054
229277
|
if (error instanceof SyntaxError) {
|
|
229055
|
-
visitInvalidForRules(rules,
|
|
229278
|
+
visitInvalidForRules(rules, {
|
|
229056
229279
|
pattern: patternSource.value,
|
|
229057
229280
|
patternSource,
|
|
229058
|
-
error
|
|
229059
|
-
|
|
229060
|
-
|
|
229061
|
-
|
|
229062
|
-
|
|
229063
|
-
|
|
229064
|
-
|
|
229065
|
-
|
|
229066
|
-
|
|
229067
|
-
|
|
229068
|
-
|
|
229281
|
+
error,
|
|
229282
|
+
...buildUnparsableRegExpContextBase({
|
|
229283
|
+
patternSource,
|
|
229284
|
+
patternNode,
|
|
229285
|
+
regexpNode,
|
|
229286
|
+
context,
|
|
229287
|
+
flags,
|
|
229288
|
+
flagsString,
|
|
229289
|
+
flagsNode,
|
|
229290
|
+
ownsFlags
|
|
229291
|
+
})
|
|
229292
|
+
});
|
|
229069
229293
|
}
|
|
229070
229294
|
return;
|
|
229071
229295
|
}
|
|
@@ -229089,12 +229313,13 @@ var require_utils3 = __commonJS({
|
|
|
229089
229313
|
const flagsString = node2.regex.flags;
|
|
229090
229314
|
const patternSource = pattern_source_1.PatternSource.fromRegExpLiteral(context, node2);
|
|
229091
229315
|
verify(node2, node2, node2, patternSource, flagsString, true, (base) => {
|
|
229092
|
-
return createLiteralVisitorFromRules(rules,
|
|
229316
|
+
return createLiteralVisitorFromRules(rules, {
|
|
229093
229317
|
node: node2,
|
|
229094
229318
|
flagsString,
|
|
229095
229319
|
ownsFlags: true,
|
|
229096
|
-
regexpNode: node2
|
|
229097
|
-
|
|
229320
|
+
regexpNode: node2,
|
|
229321
|
+
...base
|
|
229322
|
+
});
|
|
229098
229323
|
});
|
|
229099
229324
|
},
|
|
229100
229325
|
Program(program) {
|
|
@@ -229141,12 +229366,13 @@ var require_utils3 = __commonJS({
|
|
|
229141
229366
|
}
|
|
229142
229367
|
for (const { call, patternNode, patternSource, flagsNode, flagsString, ownsFlags } of regexpDataList) {
|
|
229143
229368
|
verify(patternNode, flagsNode, call, patternSource, flagsString, ownsFlags, (base) => {
|
|
229144
|
-
return createSourceVisitorFromRules(rules,
|
|
229369
|
+
return createSourceVisitorFromRules(rules, {
|
|
229145
229370
|
node: patternNode,
|
|
229146
229371
|
flagsString,
|
|
229147
229372
|
ownsFlags,
|
|
229148
|
-
regexpNode: call
|
|
229149
|
-
|
|
229373
|
+
regexpNode: call,
|
|
229374
|
+
...base
|
|
229375
|
+
});
|
|
229150
229376
|
});
|
|
229151
229377
|
}
|
|
229152
229378
|
}
|
|
@@ -229216,7 +229442,6 @@ var require_utils3 = __commonJS({
|
|
|
229216
229442
|
}
|
|
229217
229443
|
return visitor;
|
|
229218
229444
|
}
|
|
229219
|
-
exports2.compositingVisitors = compositingVisitors;
|
|
229220
229445
|
function buildRegExpContextBase({ patternSource, regexpNode, flagsNode, context, flags, parsedPattern }) {
|
|
229221
229446
|
const sourceCode = context.sourceCode;
|
|
229222
229447
|
let cacheUsageOfPattern = null;
|
|
@@ -229401,7 +229626,6 @@ var require_utils3 = __commonJS({
|
|
|
229401
229626
|
}
|
|
229402
229627
|
return false;
|
|
229403
229628
|
}
|
|
229404
|
-
exports2.mightCreateNewElement = mightCreateNewElement;
|
|
229405
229629
|
function fixRemoveCharacterClassElement(context, element) {
|
|
229406
229630
|
const cc = element.parent;
|
|
229407
229631
|
if (cc.type !== "CharacterClass") {
|
|
@@ -229426,7 +229650,6 @@ var require_utils3 = __commonJS({
|
|
|
229426
229650
|
return "";
|
|
229427
229651
|
});
|
|
229428
229652
|
}
|
|
229429
|
-
exports2.fixRemoveCharacterClassElement = fixRemoveCharacterClassElement;
|
|
229430
229653
|
function fixRemoveAlternative(context, alternative) {
|
|
229431
229654
|
const { parent } = alternative;
|
|
229432
229655
|
if (parent.alternatives.length === 1) {
|
|
@@ -229444,7 +229667,6 @@ var require_utils3 = __commonJS({
|
|
|
229444
229667
|
return before + after;
|
|
229445
229668
|
});
|
|
229446
229669
|
}
|
|
229447
|
-
exports2.fixRemoveAlternative = fixRemoveAlternative;
|
|
229448
229670
|
function fixRemoveStringAlternative(context, alternative) {
|
|
229449
229671
|
const { parent } = alternative;
|
|
229450
229672
|
if (parent.alternatives.length === 1) {
|
|
@@ -229462,7 +229684,6 @@ var require_utils3 = __commonJS({
|
|
|
229462
229684
|
return before + after;
|
|
229463
229685
|
});
|
|
229464
229686
|
}
|
|
229465
|
-
exports2.fixRemoveStringAlternative = fixRemoveStringAlternative;
|
|
229466
229687
|
function canUnwrapped(node2, text) {
|
|
229467
229688
|
let textBefore, textAfter;
|
|
229468
229689
|
const parent = node2.parent;
|
|
@@ -229478,13 +229699,12 @@ var require_utils3 = __commonJS({
|
|
|
229478
229699
|
}
|
|
229479
229700
|
return !mightCreateNewElement(textBefore, text) && !mightCreateNewElement(text, textAfter);
|
|
229480
229701
|
}
|
|
229481
|
-
exports2.canUnwrapped = canUnwrapped;
|
|
229482
229702
|
}
|
|
229483
229703
|
});
|
|
229484
229704
|
|
|
229485
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
229705
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/confusing-quantifier.js
|
|
229486
229706
|
var require_confusing_quantifier = __commonJS({
|
|
229487
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
229707
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/confusing-quantifier.js"(exports2) {
|
|
229488
229708
|
"use strict";
|
|
229489
229709
|
init_cjs_shims();
|
|
229490
229710
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -229510,7 +229730,7 @@ var require_confusing_quantifier = __commonJS({
|
|
|
229510
229730
|
return {
|
|
229511
229731
|
onQuantifierEnter(qNode) {
|
|
229512
229732
|
if (qNode.min > 0 && (0, regexp_ast_analysis_1.isPotentiallyEmpty)(qNode.element, flags)) {
|
|
229513
|
-
const proposal = (0, regexp_ast_1.quantToString)(
|
|
229733
|
+
const proposal = (0, regexp_ast_1.quantToString)({ ...qNode, min: 0 });
|
|
229514
229734
|
context.report({
|
|
229515
229735
|
node: node2,
|
|
229516
229736
|
loc: getRegexpLocation(qNode, (0, regexp_ast_1.getQuantifierOffsets)(qNode)),
|
|
@@ -229532,13 +229752,15 @@ var require_confusing_quantifier = __commonJS({
|
|
|
229532
229752
|
}
|
|
229533
229753
|
});
|
|
229534
229754
|
|
|
229535
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
229755
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/mention.js
|
|
229536
229756
|
var require_mention = __commonJS({
|
|
229537
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
229757
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/mention.js"(exports2) {
|
|
229538
229758
|
"use strict";
|
|
229539
229759
|
init_cjs_shims();
|
|
229540
229760
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
229541
|
-
exports2.
|
|
229761
|
+
exports2.mentionChar = mentionChar;
|
|
229762
|
+
exports2.mention = mention;
|
|
229763
|
+
exports2.joinEnglishList = joinEnglishList;
|
|
229542
229764
|
function formatCodePoint(value) {
|
|
229543
229765
|
return `U+${value.toString(16).padStart(4, "0")}`;
|
|
229544
229766
|
}
|
|
@@ -229554,11 +229776,9 @@ var require_mention = __commonJS({
|
|
|
229554
229776
|
}
|
|
229555
229777
|
return mention(element);
|
|
229556
229778
|
}
|
|
229557
|
-
exports2.mentionChar = mentionChar;
|
|
229558
229779
|
function mention(element) {
|
|
229559
229780
|
return `'${escape2(typeof element === "string" ? element : element.raw)}'`;
|
|
229560
229781
|
}
|
|
229561
|
-
exports2.mention = mention;
|
|
229562
229782
|
function escape2(value) {
|
|
229563
229783
|
return value.replace(/\\(?<char>[\s\S])/gu, (m, char) => {
|
|
229564
229784
|
if (char.charCodeAt(0) < 32) {
|
|
@@ -229590,13 +229810,12 @@ var require_mention = __commonJS({
|
|
|
229590
229810
|
result += `, and ${list[list.length - 1]}`;
|
|
229591
229811
|
return result;
|
|
229592
229812
|
}
|
|
229593
|
-
exports2.joinEnglishList = joinEnglishList;
|
|
229594
229813
|
}
|
|
229595
229814
|
});
|
|
229596
229815
|
|
|
229597
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
229816
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/control-character-escape.js
|
|
229598
229817
|
var require_control_character_escape = __commonJS({
|
|
229599
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
229818
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/control-character-escape.js"(exports2) {
|
|
229600
229819
|
"use strict";
|
|
229601
229820
|
init_cjs_shims();
|
|
229602
229821
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -229674,9 +229893,9 @@ var require_control_character_escape = __commonJS({
|
|
|
229674
229893
|
}
|
|
229675
229894
|
});
|
|
229676
229895
|
|
|
229677
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
229896
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/grapheme-string-literal.js
|
|
229678
229897
|
var require_grapheme_string_literal = __commonJS({
|
|
229679
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
229898
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/grapheme-string-literal.js"(exports2) {
|
|
229680
229899
|
"use strict";
|
|
229681
229900
|
init_cjs_shims();
|
|
229682
229901
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -229732,9 +229951,9 @@ var require_grapheme_string_literal = __commonJS({
|
|
|
229732
229951
|
}
|
|
229733
229952
|
});
|
|
229734
229953
|
|
|
229735
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
229954
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/hexadecimal-escape.js
|
|
229736
229955
|
var require_hexadecimal_escape = __commonJS({
|
|
229737
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
229956
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/hexadecimal-escape.js"(exports2) {
|
|
229738
229957
|
"use strict";
|
|
229739
229958
|
init_cjs_shims();
|
|
229740
229959
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -229815,9 +230034,9 @@ var require_hexadecimal_escape = __commonJS({
|
|
|
229815
230034
|
}
|
|
229816
230035
|
});
|
|
229817
230036
|
|
|
229818
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
230037
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/letter-case.js
|
|
229819
230038
|
var require_letter_case = __commonJS({
|
|
229820
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
230039
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/letter-case.js"(exports2) {
|
|
229821
230040
|
"use strict";
|
|
229822
230041
|
init_cjs_shims();
|
|
229823
230042
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -229942,25 +230161,28 @@ var require_letter_case = __commonJS({
|
|
|
229942
230161
|
}
|
|
229943
230162
|
function createVisitor(regexpContext) {
|
|
229944
230163
|
const { flags } = regexpContext;
|
|
229945
|
-
return
|
|
229946
|
-
|
|
229947
|
-
|
|
229948
|
-
|
|
229949
|
-
|
|
229950
|
-
|
|
229951
|
-
|
|
229952
|
-
|
|
229953
|
-
|
|
229954
|
-
|
|
229955
|
-
|
|
229956
|
-
|
|
229957
|
-
|
|
229958
|
-
|
|
229959
|
-
|
|
229960
|
-
|
|
229961
|
-
|
|
229962
|
-
|
|
229963
|
-
|
|
230164
|
+
return {
|
|
230165
|
+
onCharacterEnter(cNode) {
|
|
230166
|
+
if (flags.ignoreCase) {
|
|
230167
|
+
verifyCharacterInCaseInsensitive(regexpContext, cNode);
|
|
230168
|
+
}
|
|
230169
|
+
const escapeKind = (0, regex_syntax_1.getEscapeSequenceKind)(cNode.raw);
|
|
230170
|
+
if (escapeKind === regex_syntax_1.EscapeSequenceKind.unicode || escapeKind === regex_syntax_1.EscapeSequenceKind.unicodeCodePoint) {
|
|
230171
|
+
verifyCharacterInUnicodeEscape(regexpContext, cNode);
|
|
230172
|
+
}
|
|
230173
|
+
if (escapeKind === regex_syntax_1.EscapeSequenceKind.hexadecimal) {
|
|
230174
|
+
verifyCharacterInHexadecimalEscape(regexpContext, cNode);
|
|
230175
|
+
}
|
|
230176
|
+
if (escapeKind === regex_syntax_1.EscapeSequenceKind.control) {
|
|
230177
|
+
verifyCharacterInControl(regexpContext, cNode);
|
|
230178
|
+
}
|
|
230179
|
+
},
|
|
230180
|
+
...flags.ignoreCase ? {
|
|
230181
|
+
onCharacterClassRangeEnter(ccrNode) {
|
|
230182
|
+
verifyCharacterClassRangeInCaseInsensitive(regexpContext, ccrNode);
|
|
230183
|
+
}
|
|
230184
|
+
} : {}
|
|
230185
|
+
};
|
|
229964
230186
|
}
|
|
229965
230187
|
return (0, utils_1.defineRegexpVisitor)(context, {
|
|
229966
230188
|
createVisitor
|
|
@@ -229970,9 +230192,9 @@ var require_letter_case = __commonJS({
|
|
|
229970
230192
|
}
|
|
229971
230193
|
});
|
|
229972
230194
|
|
|
229973
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
230195
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/match-any.js
|
|
229974
230196
|
var require_match_any = __commonJS({
|
|
229975
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
230197
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/match-any.js"(exports2) {
|
|
229976
230198
|
"use strict";
|
|
229977
230199
|
init_cjs_shims();
|
|
229978
230200
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -230108,9 +230330,9 @@ var require_match_any = __commonJS({
|
|
|
230108
230330
|
}
|
|
230109
230331
|
});
|
|
230110
230332
|
|
|
230111
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
230333
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/negation.js
|
|
230112
230334
|
var require_negation = __commonJS({
|
|
230113
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
230335
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/negation.js"(exports2) {
|
|
230114
230336
|
"use strict";
|
|
230115
230337
|
init_cjs_shims();
|
|
230116
230338
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -230150,7 +230372,10 @@ var require_negation = __commonJS({
|
|
|
230150
230372
|
}
|
|
230151
230373
|
if (flags.ignoreCase && !flags.unicodeSets && element.type === "CharacterSet" && element.kind === "property") {
|
|
230152
230374
|
const ccSet = (0, regexp_ast_analysis_1.toUnicodeSet)(ccNode, flags);
|
|
230153
|
-
const negatedElementSet = (0, regexp_ast_analysis_1.toUnicodeSet)(
|
|
230375
|
+
const negatedElementSet = (0, regexp_ast_analysis_1.toUnicodeSet)({
|
|
230376
|
+
...element,
|
|
230377
|
+
negate: !element.negate
|
|
230378
|
+
}, flags);
|
|
230154
230379
|
if (!ccSet.equals(negatedElementSet)) {
|
|
230155
230380
|
return;
|
|
230156
230381
|
}
|
|
@@ -230192,9 +230417,9 @@ var require_negation = __commonJS({
|
|
|
230192
230417
|
}
|
|
230193
230418
|
});
|
|
230194
230419
|
|
|
230195
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
230420
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-contradiction-with-assertion.js
|
|
230196
230421
|
var require_no_contradiction_with_assertion = __commonJS({
|
|
230197
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
230422
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-contradiction-with-assertion.js"(exports2) {
|
|
230198
230423
|
"use strict";
|
|
230199
230424
|
init_cjs_shims();
|
|
230200
230425
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -230389,7 +230614,7 @@ var require_no_contradiction_with_assertion = __commonJS({
|
|
|
230389
230614
|
}
|
|
230390
230615
|
const after = (0, regexp_ast_analysis_1.getFirstCharAfter)(quant, dir, flags);
|
|
230391
230616
|
if (disjoint(assertionLook, after)) {
|
|
230392
|
-
const newQuant = (0, regexp_ast_1.quantToString)(
|
|
230617
|
+
const newQuant = (0, regexp_ast_1.quantToString)({ ...quant, min: 1 });
|
|
230393
230618
|
context.report({
|
|
230394
230619
|
node: node2,
|
|
230395
230620
|
loc: getRegexpLocation(quant),
|
|
@@ -230438,9 +230663,9 @@ var require_no_contradiction_with_assertion = __commonJS({
|
|
|
230438
230663
|
}
|
|
230439
230664
|
});
|
|
230440
230665
|
|
|
230441
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
230666
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-control-character.js
|
|
230442
230667
|
var require_no_control_character = __commonJS({
|
|
230443
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
230668
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-control-character.js"(exports2) {
|
|
230444
230669
|
"use strict";
|
|
230445
230670
|
init_cjs_shims();
|
|
230446
230671
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -230520,13 +230745,16 @@ var require_no_control_character = __commonJS({
|
|
|
230520
230745
|
}
|
|
230521
230746
|
});
|
|
230522
230747
|
|
|
230523
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
230748
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/refa.js
|
|
230524
230749
|
var require_refa2 = __commonJS({
|
|
230525
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
230750
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/refa.js"(exports2) {
|
|
230526
230751
|
"use strict";
|
|
230527
230752
|
init_cjs_shims();
|
|
230528
230753
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
230529
|
-
exports2.
|
|
230754
|
+
exports2.getParser = void 0;
|
|
230755
|
+
exports2.getJSRegexppAst = getJSRegexppAst;
|
|
230756
|
+
exports2.assertValidFlags = assertValidFlags;
|
|
230757
|
+
exports2.toCharSetSource = toCharSetSource;
|
|
230530
230758
|
var refa_1 = require_refa();
|
|
230531
230759
|
var util_1 = require_util();
|
|
230532
230760
|
function getJSRegexppAst(context, ignoreSticky = false) {
|
|
@@ -230551,14 +230779,12 @@ var require_refa2 = __commonJS({
|
|
|
230551
230779
|
}
|
|
230552
230780
|
};
|
|
230553
230781
|
}
|
|
230554
|
-
exports2.getJSRegexppAst = getJSRegexppAst;
|
|
230555
230782
|
exports2.getParser = (0, util_1.cachedFn)((context) => refa_1.JS.Parser.fromAst(getJSRegexppAst(context)));
|
|
230556
230783
|
function assertValidFlags(flags) {
|
|
230557
230784
|
if (!refa_1.JS.isFlags(flags)) {
|
|
230558
230785
|
throw new Error(`Invalid flags: ${JSON.stringify(flags)}`);
|
|
230559
230786
|
}
|
|
230560
230787
|
}
|
|
230561
|
-
exports2.assertValidFlags = assertValidFlags;
|
|
230562
230788
|
function toCharSetSource(charSetOrChar, flags) {
|
|
230563
230789
|
assertValidFlags(flags);
|
|
230564
230790
|
let charSet;
|
|
@@ -230572,13 +230798,12 @@ var require_refa2 = __commonJS({
|
|
|
230572
230798
|
elements: [{ type: "CharacterClass", characters: charSet }]
|
|
230573
230799
|
}, { flags }).source;
|
|
230574
230800
|
}
|
|
230575
|
-
exports2.toCharSetSource = toCharSetSource;
|
|
230576
230801
|
}
|
|
230577
230802
|
});
|
|
230578
230803
|
|
|
230579
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
230804
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-dupe-characters-character-class.js
|
|
230580
230805
|
var require_no_dupe_characters_character_class = __commonJS({
|
|
230581
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
230806
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-dupe-characters-character-class.js"(exports2) {
|
|
230582
230807
|
"use strict";
|
|
230583
230808
|
init_cjs_shims();
|
|
230584
230809
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -230794,13 +231019,15 @@ var require_no_dupe_characters_character_class = __commonJS({
|
|
|
230794
231019
|
}
|
|
230795
231020
|
});
|
|
230796
231021
|
|
|
230797
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
231022
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/char-ranges.js
|
|
230798
231023
|
var require_char_ranges = __commonJS({
|
|
230799
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
231024
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/char-ranges.js"(exports2) {
|
|
230800
231025
|
"use strict";
|
|
230801
231026
|
init_cjs_shims();
|
|
230802
231027
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
230803
|
-
exports2.
|
|
231028
|
+
exports2.getAllowedCharRanges = getAllowedCharRanges;
|
|
231029
|
+
exports2.getAllowedCharValueSchema = getAllowedCharValueSchema;
|
|
231030
|
+
exports2.inRange = inRange;
|
|
230804
231031
|
var unicode_1 = require_unicode();
|
|
230805
231032
|
var ALL_RANGES = [{ min: 0, max: 1114111 }];
|
|
230806
231033
|
var ALPHANUMERIC_RANGES = [
|
|
@@ -230838,7 +231065,6 @@ var require_char_ranges = __commonJS({
|
|
|
230838
231065
|
}
|
|
230839
231066
|
return allowed;
|
|
230840
231067
|
}
|
|
230841
|
-
exports2.getAllowedCharRanges = getAllowedCharRanges;
|
|
230842
231068
|
function getAllowedCharValueSchema() {
|
|
230843
231069
|
return {
|
|
230844
231070
|
anyOf: [
|
|
@@ -230867,7 +231093,6 @@ var require_char_ranges = __commonJS({
|
|
|
230867
231093
|
]
|
|
230868
231094
|
};
|
|
230869
231095
|
}
|
|
230870
|
-
exports2.getAllowedCharValueSchema = getAllowedCharValueSchema;
|
|
230871
231096
|
function inRange(ranges, min, max = min) {
|
|
230872
231097
|
for (const range of ranges) {
|
|
230873
231098
|
if (range.min <= min && max <= range.max) {
|
|
@@ -230876,13 +231101,12 @@ var require_char_ranges = __commonJS({
|
|
|
230876
231101
|
}
|
|
230877
231102
|
return false;
|
|
230878
231103
|
}
|
|
230879
|
-
exports2.inRange = inRange;
|
|
230880
231104
|
}
|
|
230881
231105
|
});
|
|
230882
231106
|
|
|
230883
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
231107
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/partial-parser.js
|
|
230884
231108
|
var require_partial_parser = __commonJS({
|
|
230885
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
231109
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/partial-parser.js"(exports2) {
|
|
230886
231110
|
"use strict";
|
|
230887
231111
|
init_cjs_shims();
|
|
230888
231112
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -231067,9 +231291,9 @@ var require_partial_parser = __commonJS({
|
|
|
231067
231291
|
}
|
|
231068
231292
|
});
|
|
231069
231293
|
|
|
231070
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
231294
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-dupe-disjunctions.js
|
|
231071
231295
|
var require_no_dupe_disjunctions = __commonJS({
|
|
231072
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
231296
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-dupe-disjunctions.js"(exports2) {
|
|
231073
231297
|
"use strict";
|
|
231074
231298
|
init_cjs_shims();
|
|
231075
231299
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -231119,7 +231343,7 @@ var require_no_dupe_disjunctions = __commonJS({
|
|
|
231119
231343
|
}
|
|
231120
231344
|
});
|
|
231121
231345
|
return false;
|
|
231122
|
-
} catch (
|
|
231346
|
+
} catch (_a) {
|
|
231123
231347
|
return true;
|
|
231124
231348
|
}
|
|
231125
231349
|
}
|
|
@@ -231134,7 +231358,7 @@ var require_no_dupe_disjunctions = __commonJS({
|
|
|
231134
231358
|
}
|
|
231135
231359
|
});
|
|
231136
231360
|
return false;
|
|
231137
|
-
} catch (
|
|
231361
|
+
} catch (_a) {
|
|
231138
231362
|
return true;
|
|
231139
231363
|
}
|
|
231140
231364
|
}
|
|
@@ -231160,7 +231384,7 @@ var require_no_dupe_disjunctions = __commonJS({
|
|
|
231160
231384
|
nfa: refa_1.NFA.fromRegex(e, { maxCharacter }, { assertions: "disable", unknowns: "disable" }),
|
|
231161
231385
|
partial: containsAssertionsOrUnknowns(e)
|
|
231162
231386
|
};
|
|
231163
|
-
} catch (
|
|
231387
|
+
} catch (_a) {
|
|
231164
231388
|
return {
|
|
231165
231389
|
nfa: refa_1.NFA.empty({
|
|
231166
231390
|
maxCharacter: parser.maxCharacter
|
|
@@ -231237,7 +231461,7 @@ var require_no_dupe_disjunctions = __commonJS({
|
|
|
231237
231461
|
const expression = partialParser.parse(alternative, nested);
|
|
231238
231462
|
const nfa = refa_1.NFA.fromRegex(expression, { maxCharacter });
|
|
231239
231463
|
yield { nested, nfa };
|
|
231240
|
-
} catch (
|
|
231464
|
+
} catch (_a) {
|
|
231241
231465
|
}
|
|
231242
231466
|
}
|
|
231243
231467
|
}
|
|
@@ -231261,7 +231485,7 @@ var require_no_dupe_disjunctions = __commonJS({
|
|
|
231261
231485
|
a.minimize();
|
|
231262
231486
|
b.minimize();
|
|
231263
231487
|
return a.structurallyEqual(b);
|
|
231264
|
-
} catch (
|
|
231488
|
+
} catch (_a) {
|
|
231265
231489
|
return null;
|
|
231266
231490
|
}
|
|
231267
231491
|
}
|
|
@@ -231283,7 +231507,7 @@ var require_no_dupe_disjunctions = __commonJS({
|
|
|
231283
231507
|
return 3;
|
|
231284
231508
|
}
|
|
231285
231509
|
return 0;
|
|
231286
|
-
} catch (
|
|
231510
|
+
} catch (_a) {
|
|
231287
231511
|
return 4;
|
|
231288
231512
|
}
|
|
231289
231513
|
}
|
|
@@ -231325,7 +231549,7 @@ var require_no_dupe_disjunctions = __commonJS({
|
|
|
231325
231549
|
try {
|
|
231326
231550
|
(0, refa_2.assertValidFlags)(flags);
|
|
231327
231551
|
return refa_1.JS.toLiteral(fa.toRegex(), { flags }).source;
|
|
231328
|
-
} catch (
|
|
231552
|
+
} catch (_a) {
|
|
231329
231553
|
return "<ERROR>";
|
|
231330
231554
|
}
|
|
231331
231555
|
}
|
|
@@ -231393,7 +231617,7 @@ var require_no_dupe_disjunctions = __commonJS({
|
|
|
231393
231617
|
} else {
|
|
231394
231618
|
const nested = tryFindNestedSubsetResult(overlapping.map((o) => [o[0], o[2]]), othersNfa, alternative, parser);
|
|
231395
231619
|
if (nested) {
|
|
231396
|
-
yield
|
|
231620
|
+
yield { ...nested, type: "PrefixNestedSubset" };
|
|
231397
231621
|
}
|
|
231398
231622
|
}
|
|
231399
231623
|
}
|
|
@@ -231879,9 +232103,9 @@ var require_no_dupe_disjunctions = __commonJS({
|
|
|
231879
232103
|
}
|
|
231880
232104
|
});
|
|
231881
232105
|
|
|
231882
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232106
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-empty-alternative.js
|
|
231883
232107
|
var require_no_empty_alternative = __commonJS({
|
|
231884
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232108
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-empty-alternative.js"(exports2) {
|
|
231885
232109
|
"use strict";
|
|
231886
232110
|
init_cjs_shims();
|
|
231887
232111
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -231977,9 +232201,9 @@ var require_no_empty_alternative = __commonJS({
|
|
|
231977
232201
|
}
|
|
231978
232202
|
});
|
|
231979
232203
|
|
|
231980
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232204
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-empty-capturing-group.js
|
|
231981
232205
|
var require_no_empty_capturing_group = __commonJS({
|
|
231982
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232206
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-empty-capturing-group.js"(exports2) {
|
|
231983
232207
|
"use strict";
|
|
231984
232208
|
init_cjs_shims();
|
|
231985
232209
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -232020,9 +232244,9 @@ var require_no_empty_capturing_group = __commonJS({
|
|
|
232020
232244
|
}
|
|
232021
232245
|
});
|
|
232022
232246
|
|
|
232023
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232247
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-empty-character-class.js
|
|
232024
232248
|
var require_no_empty_character_class = __commonJS({
|
|
232025
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232249
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-empty-character-class.js"(exports2) {
|
|
232026
232250
|
"use strict";
|
|
232027
232251
|
init_cjs_shims();
|
|
232028
232252
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -232074,9 +232298,9 @@ var require_no_empty_character_class = __commonJS({
|
|
|
232074
232298
|
}
|
|
232075
232299
|
});
|
|
232076
232300
|
|
|
232077
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232301
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-empty-group.js
|
|
232078
232302
|
var require_no_empty_group = __commonJS({
|
|
232079
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232303
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-empty-group.js"(exports2) {
|
|
232080
232304
|
"use strict";
|
|
232081
232305
|
init_cjs_shims();
|
|
232082
232306
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -232122,9 +232346,9 @@ var require_no_empty_group = __commonJS({
|
|
|
232122
232346
|
}
|
|
232123
232347
|
});
|
|
232124
232348
|
|
|
232125
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232349
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-empty-lookarounds-assertion.js
|
|
232126
232350
|
var require_no_empty_lookarounds_assertion = __commonJS({
|
|
232127
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232351
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-empty-lookarounds-assertion.js"(exports2) {
|
|
232128
232352
|
"use strict";
|
|
232129
232353
|
init_cjs_shims();
|
|
232130
232354
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -232172,9 +232396,9 @@ var require_no_empty_lookarounds_assertion = __commonJS({
|
|
|
232172
232396
|
}
|
|
232173
232397
|
});
|
|
232174
232398
|
|
|
232175
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232399
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-empty-string-literal.js
|
|
232176
232400
|
var require_no_empty_string_literal = __commonJS({
|
|
232177
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232401
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-empty-string-literal.js"(exports2) {
|
|
232178
232402
|
"use strict";
|
|
232179
232403
|
init_cjs_shims();
|
|
232180
232404
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -232215,9 +232439,9 @@ var require_no_empty_string_literal = __commonJS({
|
|
|
232215
232439
|
}
|
|
232216
232440
|
});
|
|
232217
232441
|
|
|
232218
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232442
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-escape-backspace.js
|
|
232219
232443
|
var require_no_escape_backspace = __commonJS({
|
|
232220
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232444
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-escape-backspace.js"(exports2) {
|
|
232221
232445
|
"use strict";
|
|
232222
232446
|
init_cjs_shims();
|
|
232223
232447
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -232265,9 +232489,9 @@ var require_no_escape_backspace = __commonJS({
|
|
|
232265
232489
|
}
|
|
232266
232490
|
});
|
|
232267
232491
|
|
|
232268
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232492
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-extra-lookaround-assertions.js
|
|
232269
232493
|
var require_no_extra_lookaround_assertions = __commonJS({
|
|
232270
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232494
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-extra-lookaround-assertions.js"(exports2) {
|
|
232271
232495
|
"use strict";
|
|
232272
232496
|
init_cjs_shims();
|
|
232273
232497
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -232332,9 +232556,9 @@ var require_no_extra_lookaround_assertions = __commonJS({
|
|
|
232332
232556
|
}
|
|
232333
232557
|
});
|
|
232334
232558
|
|
|
232335
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232559
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-invalid-regexp.js
|
|
232336
232560
|
var require_no_invalid_regexp = __commonJS({
|
|
232337
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232561
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-invalid-regexp.js"(exports2) {
|
|
232338
232562
|
"use strict";
|
|
232339
232563
|
init_cjs_shims();
|
|
232340
232564
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -232408,9 +232632,9 @@ var require_no_invalid_regexp = __commonJS({
|
|
|
232408
232632
|
}
|
|
232409
232633
|
});
|
|
232410
232634
|
|
|
232411
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232635
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-invisible-character.js
|
|
232412
232636
|
var require_no_invisible_character = __commonJS({
|
|
232413
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232637
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-invisible-character.js"(exports2) {
|
|
232414
232638
|
"use strict";
|
|
232415
232639
|
init_cjs_shims();
|
|
232416
232640
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -232499,9 +232723,9 @@ var require_no_invisible_character = __commonJS({
|
|
|
232499
232723
|
}
|
|
232500
232724
|
});
|
|
232501
232725
|
|
|
232502
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232726
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-lazy-ends.js
|
|
232503
232727
|
var require_no_lazy_ends = __commonJS({
|
|
232504
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232728
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-lazy-ends.js"(exports2) {
|
|
232505
232729
|
"use strict";
|
|
232506
232730
|
init_cjs_shims();
|
|
232507
232731
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -232637,9 +232861,9 @@ var require_no_lazy_ends = __commonJS({
|
|
|
232637
232861
|
}
|
|
232638
232862
|
});
|
|
232639
232863
|
|
|
232640
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232864
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-legacy-features.js
|
|
232641
232865
|
var require_no_legacy_features = __commonJS({
|
|
232642
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232866
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-legacy-features.js"(exports2) {
|
|
232643
232867
|
"use strict";
|
|
232644
232868
|
init_cjs_shims();
|
|
232645
232869
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -232704,50 +232928,53 @@ var require_no_legacy_features = __commonJS({
|
|
|
232704
232928
|
const staticProperties = (_b = (_a = context.options[0]) === null || _a === void 0 ? void 0 : _a.staticProperties) !== null && _b !== void 0 ? _b : STATIC_PROPERTIES;
|
|
232705
232929
|
const prototypeMethods = (_d = (_c = context.options[0]) === null || _c === void 0 ? void 0 : _c.prototypeMethods) !== null && _d !== void 0 ? _d : PROTOTYPE_METHODS;
|
|
232706
232930
|
const typeTracer = (0, type_tracker_1.createTypeTracker)(context);
|
|
232707
|
-
return
|
|
232708
|
-
|
|
232709
|
-
|
|
232710
|
-
|
|
232711
|
-
|
|
232712
|
-
|
|
232713
|
-
|
|
232714
|
-
|
|
232715
|
-
|
|
232716
|
-
|
|
232717
|
-
|
|
232718
|
-
|
|
232719
|
-
|
|
232720
|
-
|
|
232721
|
-
|
|
232722
|
-
|
|
232723
|
-
|
|
232724
|
-
|
|
232725
|
-
} : {}), prototypeMethods.length ? {
|
|
232726
|
-
MemberExpression(node2) {
|
|
232727
|
-
if (node2.computed || node2.property.type !== "Identifier" || !prototypeMethods.includes(node2.property.name) || node2.object.type === "Super") {
|
|
232728
|
-
return;
|
|
232931
|
+
return {
|
|
232932
|
+
...staticProperties.length ? {
|
|
232933
|
+
Program(program) {
|
|
232934
|
+
const scope = context.sourceCode.getScope(program);
|
|
232935
|
+
const tracker = new eslint_utils_1.ReferenceTracker(scope);
|
|
232936
|
+
const regexpTraceMap = {};
|
|
232937
|
+
for (const sp of staticProperties) {
|
|
232938
|
+
regexpTraceMap[sp] = { [eslint_utils_1.READ]: true };
|
|
232939
|
+
}
|
|
232940
|
+
for (const { node: node2, path: path2 } of tracker.iterateGlobalReferences({
|
|
232941
|
+
RegExp: regexpTraceMap
|
|
232942
|
+
})) {
|
|
232943
|
+
context.report({
|
|
232944
|
+
node: node2,
|
|
232945
|
+
messageId: "forbiddenStaticProperty",
|
|
232946
|
+
data: { name: path2.join(".") }
|
|
232947
|
+
});
|
|
232948
|
+
}
|
|
232729
232949
|
}
|
|
232730
|
-
|
|
232731
|
-
|
|
232732
|
-
|
|
232733
|
-
|
|
232734
|
-
|
|
232735
|
-
}
|
|
232950
|
+
} : {},
|
|
232951
|
+
...prototypeMethods.length ? {
|
|
232952
|
+
MemberExpression(node2) {
|
|
232953
|
+
if (node2.computed || node2.property.type !== "Identifier" || !prototypeMethods.includes(node2.property.name) || node2.object.type === "Super") {
|
|
232954
|
+
return;
|
|
232955
|
+
}
|
|
232956
|
+
if (typeTracer.isRegExp(node2.object)) {
|
|
232957
|
+
context.report({
|
|
232958
|
+
node: node2,
|
|
232959
|
+
messageId: "forbiddenPrototypeMethods",
|
|
232960
|
+
data: { name: node2.property.name }
|
|
232961
|
+
});
|
|
232962
|
+
}
|
|
232736
232963
|
}
|
|
232737
|
-
}
|
|
232738
|
-
}
|
|
232964
|
+
} : {}
|
|
232965
|
+
};
|
|
232739
232966
|
}
|
|
232740
232967
|
});
|
|
232741
232968
|
}
|
|
232742
232969
|
});
|
|
232743
232970
|
|
|
232744
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232971
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/fix-simplify-quantifier.js
|
|
232745
232972
|
var require_fix_simplify_quantifier = __commonJS({
|
|
232746
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
232973
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/fix-simplify-quantifier.js"(exports2) {
|
|
232747
232974
|
"use strict";
|
|
232748
232975
|
init_cjs_shims();
|
|
232749
232976
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
232750
|
-
exports2.fixSimplifyQuantifier =
|
|
232977
|
+
exports2.fixSimplifyQuantifier = fixSimplifyQuantifier;
|
|
232751
232978
|
var regexp_ast_analysis_1 = require_regexp_ast_analysis();
|
|
232752
232979
|
var regexp_ast_1 = require_regexp_ast();
|
|
232753
232980
|
function fixSimplifyQuantifier(quantifier, result, { fixReplaceNode }) {
|
|
@@ -232771,13 +232998,12 @@ var require_fix_simplify_quantifier = __commonJS({
|
|
|
232771
232998
|
})
|
|
232772
232999
|
];
|
|
232773
233000
|
}
|
|
232774
|
-
exports2.fixSimplifyQuantifier = fixSimplifyQuantifier;
|
|
232775
233001
|
}
|
|
232776
233002
|
});
|
|
232777
233003
|
|
|
232778
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
233004
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-misleading-capturing-group.js
|
|
232779
233005
|
var require_no_misleading_capturing_group = __commonJS({
|
|
232780
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
233006
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-misleading-capturing-group.js"(exports2) {
|
|
232781
233007
|
"use strict";
|
|
232782
233008
|
init_cjs_shims();
|
|
232783
233009
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -233074,9 +233300,9 @@ var require_no_misleading_capturing_group = __commonJS({
|
|
|
233074
233300
|
}
|
|
233075
233301
|
});
|
|
233076
233302
|
|
|
233077
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
233303
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-misleading-unicode-character.js
|
|
233078
233304
|
var require_no_misleading_unicode_character = __commonJS({
|
|
233079
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
233305
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-misleading-unicode-character.js"(exports2) {
|
|
233080
233306
|
"use strict";
|
|
233081
233307
|
init_cjs_shims();
|
|
233082
233308
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -233227,11 +233453,17 @@ var require_no_misleading_unicode_character = __commonJS({
|
|
|
233227
233453
|
const fix = getGraphemeProblemsFix(problems, ccNode, flags);
|
|
233228
233454
|
const graphemes = problems.map((p) => (0, mention_1.mention)(p.grapheme)).join(", ");
|
|
233229
233455
|
const uFlag = problems.every((p) => p.problem === "Surrogate");
|
|
233230
|
-
context.report(
|
|
233231
|
-
|
|
233232
|
-
|
|
233233
|
-
|
|
233234
|
-
|
|
233456
|
+
context.report({
|
|
233457
|
+
node: node2,
|
|
233458
|
+
loc: getRegexpLocation(range),
|
|
233459
|
+
messageId: "characterClass",
|
|
233460
|
+
data: {
|
|
233461
|
+
graphemes,
|
|
233462
|
+
unit: flags.unicode || flags.unicodeSets ? "code points" : "char codes",
|
|
233463
|
+
uFlag: uFlag ? " Use the `u` flag." : ""
|
|
233464
|
+
},
|
|
233465
|
+
...makeFix(fixReplaceNode(ccNode, () => fix), "fixCharacterClass", { graphemes })
|
|
233466
|
+
});
|
|
233235
233467
|
},
|
|
233236
233468
|
onQuantifierEnter(qNode) {
|
|
233237
233469
|
if (qNode.element.type !== "Character") {
|
|
@@ -233242,19 +233474,25 @@ var require_no_misleading_unicode_character = __commonJS({
|
|
|
233242
233474
|
if (problem === null) {
|
|
233243
233475
|
return;
|
|
233244
233476
|
}
|
|
233245
|
-
context.report(
|
|
233246
|
-
|
|
233247
|
-
|
|
233248
|
-
|
|
233249
|
-
|
|
233250
|
-
|
|
233251
|
-
|
|
233252
|
-
}
|
|
233253
|
-
|
|
233254
|
-
|
|
233255
|
-
|
|
233256
|
-
|
|
233257
|
-
|
|
233477
|
+
context.report({
|
|
233478
|
+
node: node2,
|
|
233479
|
+
loc: getRegexpLocation(qNode),
|
|
233480
|
+
messageId: `quantifier${problem}`,
|
|
233481
|
+
data: {
|
|
233482
|
+
grapheme: (0, mention_1.mention)(grapheme),
|
|
233483
|
+
last: (0, mention_1.mentionChar)(qNode.element)
|
|
233484
|
+
},
|
|
233485
|
+
...makeFix((fixer) => {
|
|
233486
|
+
const range = patternSource.getReplaceRange({
|
|
233487
|
+
start: qNode.element.end - grapheme.length,
|
|
233488
|
+
end: qNode.element.end
|
|
233489
|
+
});
|
|
233490
|
+
if (!range) {
|
|
233491
|
+
return null;
|
|
233492
|
+
}
|
|
233493
|
+
return range.replace(fixer, `(?:${grapheme})`);
|
|
233494
|
+
}, "fixQuantifier", { grapheme: (0, mention_1.mention)(grapheme) })
|
|
233495
|
+
});
|
|
233258
233496
|
}
|
|
233259
233497
|
};
|
|
233260
233498
|
}
|
|
@@ -233266,9 +233504,9 @@ var require_no_misleading_unicode_character = __commonJS({
|
|
|
233266
233504
|
}
|
|
233267
233505
|
});
|
|
233268
233506
|
|
|
233269
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
233507
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-missing-g-flag.js
|
|
233270
233508
|
var require_no_missing_g_flag = __commonJS({
|
|
233271
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
233509
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-missing-g-flag.js"(exports2) {
|
|
233272
233510
|
"use strict";
|
|
233273
233511
|
init_cjs_shims();
|
|
233274
233512
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -233362,9 +233600,9 @@ var require_no_missing_g_flag = __commonJS({
|
|
|
233362
233600
|
}
|
|
233363
233601
|
});
|
|
233364
233602
|
|
|
233365
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
233603
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-non-standard-flag.js
|
|
233366
233604
|
var require_no_non_standard_flag = __commonJS({
|
|
233367
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
233605
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-non-standard-flag.js"(exports2) {
|
|
233368
233606
|
"use strict";
|
|
233369
233607
|
init_cjs_shims();
|
|
233370
233608
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -233410,9 +233648,9 @@ var require_no_non_standard_flag = __commonJS({
|
|
|
233410
233648
|
}
|
|
233411
233649
|
});
|
|
233412
233650
|
|
|
233413
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
233651
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-obscure-range.js
|
|
233414
233652
|
var require_no_obscure_range = __commonJS({
|
|
233415
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
233653
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-obscure-range.js"(exports2) {
|
|
233416
233654
|
"use strict";
|
|
233417
233655
|
init_cjs_shims();
|
|
233418
233656
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -233482,9 +233720,9 @@ var require_no_obscure_range = __commonJS({
|
|
|
233482
233720
|
}
|
|
233483
233721
|
});
|
|
233484
233722
|
|
|
233485
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
233723
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-octal.js
|
|
233486
233724
|
var require_no_octal = __commonJS({
|
|
233487
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
233725
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-octal.js"(exports2) {
|
|
233488
233726
|
"use strict";
|
|
233489
233727
|
init_cjs_shims();
|
|
233490
233728
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -233545,9 +233783,9 @@ var require_no_octal = __commonJS({
|
|
|
233545
233783
|
}
|
|
233546
233784
|
});
|
|
233547
233785
|
|
|
233548
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
233786
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-optional-assertion.js
|
|
233549
233787
|
var require_no_optional_assertion = __commonJS({
|
|
233550
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
233788
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-optional-assertion.js"(exports2) {
|
|
233551
233789
|
"use strict";
|
|
233552
233790
|
init_cjs_shims();
|
|
233553
233791
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -233632,9 +233870,9 @@ var require_no_optional_assertion = __commonJS({
|
|
|
233632
233870
|
}
|
|
233633
233871
|
});
|
|
233634
233872
|
|
|
233635
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
233873
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-potentially-useless-backreference.js
|
|
233636
233874
|
var require_no_potentially_useless_backreference = __commonJS({
|
|
233637
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
233875
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-potentially-useless-backreference.js"(exports2) {
|
|
233638
233876
|
"use strict";
|
|
233639
233877
|
init_cjs_shims();
|
|
233640
233878
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -233679,9 +233917,9 @@ var require_no_potentially_useless_backreference = __commonJS({
|
|
|
233679
233917
|
}
|
|
233680
233918
|
});
|
|
233681
233919
|
|
|
233682
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
233920
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-standalone-backslash.js
|
|
233683
233921
|
var require_no_standalone_backslash = __commonJS({
|
|
233684
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
233922
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-standalone-backslash.js"(exports2) {
|
|
233685
233923
|
"use strict";
|
|
233686
233924
|
init_cjs_shims();
|
|
233687
233925
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -234126,9 +234364,9 @@ var require_scslre = __commonJS({
|
|
|
234126
234364
|
}
|
|
234127
234365
|
});
|
|
234128
234366
|
|
|
234129
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
234367
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-super-linear-backtracking.js
|
|
234130
234368
|
var require_no_super_linear_backtracking = __commonJS({
|
|
234131
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
234369
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-super-linear-backtracking.js"(exports2) {
|
|
234132
234370
|
"use strict";
|
|
234133
234371
|
init_cjs_shims();
|
|
234134
234372
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -234147,8 +234385,8 @@ var require_no_super_linear_backtracking = __commonJS({
|
|
|
234147
234385
|
return x.column < y.column;
|
|
234148
234386
|
}
|
|
234149
234387
|
return {
|
|
234150
|
-
start:
|
|
234151
|
-
end:
|
|
234388
|
+
start: { ...less(a.start, b.start) ? a.start : b.start },
|
|
234389
|
+
end: { ...less(a.end, b.end) ? b.end : a.end }
|
|
234152
234390
|
};
|
|
234153
234391
|
}
|
|
234154
234392
|
exports2.default = (0, utils_1.createRule)("no-super-linear-backtracking", {
|
|
@@ -234229,9 +234467,9 @@ var require_no_super_linear_backtracking = __commonJS({
|
|
|
234229
234467
|
}
|
|
234230
234468
|
});
|
|
234231
234469
|
|
|
234232
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
234470
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-super-linear-move.js
|
|
234233
234471
|
var require_no_super_linear_move = __commonJS({
|
|
234234
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
234472
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-super-linear-move.js"(exports2) {
|
|
234235
234473
|
"use strict";
|
|
234236
234474
|
init_cjs_shims();
|
|
234237
234475
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -234298,7 +234536,10 @@ var require_no_super_linear_move = __commonJS({
|
|
|
234298
234536
|
var PASS_2 = new refa_1.CombinedTransformer([
|
|
234299
234537
|
refa_1.Transformers.inline(TRANSFORMER_OPTIONS),
|
|
234300
234538
|
refa_1.Transformers.removeDeadBranches(TRANSFORMER_OPTIONS),
|
|
234301
|
-
refa_1.Transformers.replaceAssertions(
|
|
234539
|
+
refa_1.Transformers.replaceAssertions({
|
|
234540
|
+
...TRANSFORMER_OPTIONS,
|
|
234541
|
+
replacement: "empty-set"
|
|
234542
|
+
})
|
|
234302
234543
|
]);
|
|
234303
234544
|
exports2.default = (0, utils_1.createRule)("no-super-linear-move", {
|
|
234304
234545
|
meta: {
|
|
@@ -234425,9 +234666,9 @@ var require_no_super_linear_move = __commonJS({
|
|
|
234425
234666
|
}
|
|
234426
234667
|
});
|
|
234427
234668
|
|
|
234428
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
234669
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-trivially-nested-assertion.js
|
|
234429
234670
|
var require_no_trivially_nested_assertion = __commonJS({
|
|
234430
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
234671
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-trivially-nested-assertion.js"(exports2) {
|
|
234431
234672
|
"use strict";
|
|
234432
234673
|
init_cjs_shims();
|
|
234433
234674
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -234511,9 +234752,9 @@ var require_no_trivially_nested_assertion = __commonJS({
|
|
|
234511
234752
|
}
|
|
234512
234753
|
});
|
|
234513
234754
|
|
|
234514
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
234755
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-trivially-nested-quantifier.js
|
|
234515
234756
|
var require_no_trivially_nested_quantifier = __commonJS({
|
|
234516
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
234757
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-trivially-nested-quantifier.js"(exports2) {
|
|
234517
234758
|
"use strict";
|
|
234518
234759
|
init_cjs_shims();
|
|
234519
234760
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -234652,9 +234893,9 @@ var require_no_trivially_nested_quantifier = __commonJS({
|
|
|
234652
234893
|
}
|
|
234653
234894
|
});
|
|
234654
234895
|
|
|
234655
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
234896
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-unused-capturing-group.js
|
|
234656
234897
|
var require_no_unused_capturing_group = __commonJS({
|
|
234657
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
234898
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-unused-capturing-group.js"(exports2) {
|
|
234658
234899
|
"use strict";
|
|
234659
234900
|
init_cjs_shims();
|
|
234660
234901
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -234798,9 +235039,9 @@ var require_no_unused_capturing_group = __commonJS({
|
|
|
234798
235039
|
}
|
|
234799
235040
|
});
|
|
234800
235041
|
|
|
234801
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
235042
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-assertions.js
|
|
234802
235043
|
var require_no_useless_assertions = __commonJS({
|
|
234803
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
235044
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-assertions.js"(exports2) {
|
|
234804
235045
|
"use strict";
|
|
234805
235046
|
init_cjs_shims();
|
|
234806
235047
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -235007,7 +235248,10 @@ var require_no_useless_assertions = __commonJS({
|
|
|
235007
235248
|
node: node2,
|
|
235008
235249
|
loc: getRegexpLocation(assertion),
|
|
235009
235250
|
messageId,
|
|
235010
|
-
data:
|
|
235251
|
+
data: {
|
|
235252
|
+
assertion: (0, mention_1.mention)(assertion),
|
|
235253
|
+
...data
|
|
235254
|
+
},
|
|
235011
235255
|
suggest: [
|
|
235012
235256
|
{
|
|
235013
235257
|
messageId: `${acceptOrReject}Suggestion`,
|
|
@@ -235158,9 +235402,9 @@ var require_no_useless_assertions = __commonJS({
|
|
|
235158
235402
|
}
|
|
235159
235403
|
});
|
|
235160
235404
|
|
|
235161
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
235405
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-backreference.js
|
|
235162
235406
|
var require_no_useless_backreference = __commonJS({
|
|
235163
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
235407
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-backreference.js"(exports2) {
|
|
235164
235408
|
"use strict";
|
|
235165
235409
|
init_cjs_shims();
|
|
235166
235410
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -235175,8 +235419,40 @@ var require_no_useless_backreference = __commonJS({
|
|
|
235175
235419
|
}
|
|
235176
235420
|
return false;
|
|
235177
235421
|
}
|
|
235178
|
-
function
|
|
235179
|
-
const
|
|
235422
|
+
function getUselessProblem(backRef, flags) {
|
|
235423
|
+
const groups = [backRef.resolved].flat();
|
|
235424
|
+
const problems = [];
|
|
235425
|
+
for (const group2 of groups) {
|
|
235426
|
+
const messageId2 = getUselessMessageId(backRef, group2, flags);
|
|
235427
|
+
if (!messageId2) {
|
|
235428
|
+
return null;
|
|
235429
|
+
}
|
|
235430
|
+
problems.push({ messageId: messageId2, group: group2 });
|
|
235431
|
+
}
|
|
235432
|
+
if (problems.length === 0) {
|
|
235433
|
+
return null;
|
|
235434
|
+
}
|
|
235435
|
+
let problemsToReport;
|
|
235436
|
+
const problemsInSameDisjunction = problems.filter((problem) => problem.messageId !== "disjunctive");
|
|
235437
|
+
if (problemsInSameDisjunction.length) {
|
|
235438
|
+
problemsToReport = problemsInSameDisjunction;
|
|
235439
|
+
} else {
|
|
235440
|
+
problemsToReport = problems;
|
|
235441
|
+
}
|
|
235442
|
+
const [{ messageId, group }, ...other] = problemsToReport;
|
|
235443
|
+
let otherGroups = "";
|
|
235444
|
+
if (other.length === 1) {
|
|
235445
|
+
otherGroups = " and another group";
|
|
235446
|
+
} else if (other.length > 1) {
|
|
235447
|
+
otherGroups = ` and other ${other.length} groups`;
|
|
235448
|
+
}
|
|
235449
|
+
return {
|
|
235450
|
+
messageId,
|
|
235451
|
+
group,
|
|
235452
|
+
otherGroups
|
|
235453
|
+
};
|
|
235454
|
+
}
|
|
235455
|
+
function getUselessMessageId(backRef, group, flags) {
|
|
235180
235456
|
const closestAncestor = (0, regexp_ast_analysis_1.getClosestAncestor)(backRef, group);
|
|
235181
235457
|
if (closestAncestor === group) {
|
|
235182
235458
|
return "nested";
|
|
@@ -235206,12 +235482,12 @@ var require_no_useless_backreference = __commonJS({
|
|
|
235206
235482
|
},
|
|
235207
235483
|
schema: [],
|
|
235208
235484
|
messages: {
|
|
235209
|
-
nested: "Backreference {{ bref }} will be ignored. It references group {{ group }} from within that group.",
|
|
235210
|
-
forward: "Backreference {{ bref }} will be ignored. It references group {{ group }} which appears later in the pattern.",
|
|
235211
|
-
backward: "Backreference {{ bref }} will be ignored. It references group {{ group }} which appears before in the same lookbehind.",
|
|
235212
|
-
disjunctive: "Backreference {{ bref }} will be ignored. It references group {{ group }} which is in another alternative.",
|
|
235213
|
-
intoNegativeLookaround: "Backreference {{ bref }} will be ignored. It references group {{ group }} which is in a negative lookaround.",
|
|
235214
|
-
empty: "Backreference {{ bref }} will be ignored. It references group {{ group }} which always captures zero characters."
|
|
235485
|
+
nested: "Backreference {{ bref }} will be ignored. It references group {{ group }}{{ otherGroups }} from within that group.",
|
|
235486
|
+
forward: "Backreference {{ bref }} will be ignored. It references group {{ group }}{{ otherGroups }} which appears later in the pattern.",
|
|
235487
|
+
backward: "Backreference {{ bref }} will be ignored. It references group {{ group }}{{ otherGroups }} which appears before in the same lookbehind.",
|
|
235488
|
+
disjunctive: "Backreference {{ bref }} will be ignored. It references group {{ group }}{{ otherGroups }} which is in another alternative.",
|
|
235489
|
+
intoNegativeLookaround: "Backreference {{ bref }} will be ignored. It references group {{ group }}{{ otherGroups }} which is in a negative lookaround.",
|
|
235490
|
+
empty: "Backreference {{ bref }} will be ignored. It references group {{ group }}{{ otherGroups }} which always captures zero characters."
|
|
235215
235491
|
},
|
|
235216
235492
|
type: "suggestion"
|
|
235217
235493
|
},
|
|
@@ -235219,15 +235495,16 @@ var require_no_useless_backreference = __commonJS({
|
|
|
235219
235495
|
function createVisitor({ node: node2, flags, getRegexpLocation }) {
|
|
235220
235496
|
return {
|
|
235221
235497
|
onBackreferenceEnter(backRef) {
|
|
235222
|
-
const
|
|
235223
|
-
if (
|
|
235498
|
+
const problem = getUselessProblem(backRef, flags);
|
|
235499
|
+
if (problem) {
|
|
235224
235500
|
context.report({
|
|
235225
235501
|
node: node2,
|
|
235226
235502
|
loc: getRegexpLocation(backRef),
|
|
235227
|
-
messageId,
|
|
235503
|
+
messageId: problem.messageId,
|
|
235228
235504
|
data: {
|
|
235229
235505
|
bref: (0, mention_1.mention)(backRef),
|
|
235230
|
-
group: (0, mention_1.mention)(
|
|
235506
|
+
group: (0, mention_1.mention)(problem.group),
|
|
235507
|
+
otherGroups: problem.otherGroups
|
|
235231
235508
|
}
|
|
235232
235509
|
});
|
|
235233
235510
|
}
|
|
@@ -235242,9 +235519,9 @@ var require_no_useless_backreference = __commonJS({
|
|
|
235242
235519
|
}
|
|
235243
235520
|
});
|
|
235244
235521
|
|
|
235245
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
235522
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-character-class.js
|
|
235246
235523
|
var require_no_useless_character_class = __commonJS({
|
|
235247
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
235524
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-character-class.js"(exports2) {
|
|
235248
235525
|
"use strict";
|
|
235249
235526
|
init_cjs_shims();
|
|
235250
235527
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -235426,9 +235703,9 @@ var require_no_useless_character_class = __commonJS({
|
|
|
235426
235703
|
}
|
|
235427
235704
|
});
|
|
235428
235705
|
|
|
235429
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
235706
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-dollar-replacements.js
|
|
235430
235707
|
var require_no_useless_dollar_replacements = __commonJS({
|
|
235431
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
235708
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-dollar-replacements.js"(exports2) {
|
|
235432
235709
|
"use strict";
|
|
235433
235710
|
init_cjs_shims();
|
|
235434
235711
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -235449,9 +235726,9 @@ var require_no_useless_dollar_replacements = __commonJS({
|
|
|
235449
235726
|
schema: [],
|
|
235450
235727
|
messages: {
|
|
235451
235728
|
numberRef: "'${{ refText }}' replacement will insert '${{ refText }}' because there are less than {{ num }} capturing groups. Use '$$' if you want to escape '$'.",
|
|
235452
|
-
numberRefCapturingNotFound: "'${{ refText }}' replacement will insert '${{ refText }}' because capturing group
|
|
235729
|
+
numberRefCapturingNotFound: "'${{ refText }}' replacement will insert '${{ refText }}' because capturing group is not found. Use '$$' if you want to escape '$'.",
|
|
235453
235730
|
namedRef: "'$<{{ refText }}>' replacement will be ignored because the named capturing group is not found. Use '$$' if you want to escape '$'.",
|
|
235454
|
-
namedRefNamedCapturingNotFound: "'$<{{ refText }}>' replacement will insert '$<{{ refText }}>' because named capturing group
|
|
235731
|
+
namedRefNamedCapturingNotFound: "'$<{{ refText }}>' replacement will insert '$<{{ refText }}>' because named capturing group is not found. Use '$$' if you want to escape '$'."
|
|
235455
235732
|
},
|
|
235456
235733
|
type: "suggestion"
|
|
235457
235734
|
},
|
|
@@ -235518,9 +235795,9 @@ var require_no_useless_dollar_replacements = __commonJS({
|
|
|
235518
235795
|
}
|
|
235519
235796
|
});
|
|
235520
235797
|
|
|
235521
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
235798
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-escape.js
|
|
235522
235799
|
var require_no_useless_escape = __commonJS({
|
|
235523
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
235800
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-escape.js"(exports2) {
|
|
235524
235801
|
"use strict";
|
|
235525
235802
|
init_cjs_shims();
|
|
235526
235803
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -235654,9 +235931,9 @@ var require_no_useless_escape = __commonJS({
|
|
|
235654
235931
|
}
|
|
235655
235932
|
});
|
|
235656
235933
|
|
|
235657
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
235934
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-flag.js
|
|
235658
235935
|
var require_no_useless_flag = __commonJS({
|
|
235659
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
235936
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-flag.js"(exports2) {
|
|
235660
235937
|
"use strict";
|
|
235661
235938
|
init_cjs_shims();
|
|
235662
235939
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -236192,9 +236469,9 @@ var require_no_useless_flag = __commonJS({
|
|
|
236192
236469
|
}
|
|
236193
236470
|
});
|
|
236194
236471
|
|
|
236195
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
236472
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-lazy.js
|
|
236196
236473
|
var require_no_useless_lazy = __commonJS({
|
|
236197
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
236474
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-lazy.js"(exports2) {
|
|
236198
236475
|
"use strict";
|
|
236199
236476
|
init_cjs_shims();
|
|
236200
236477
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -236275,9 +236552,9 @@ var require_no_useless_lazy = __commonJS({
|
|
|
236275
236552
|
}
|
|
236276
236553
|
});
|
|
236277
236554
|
|
|
236278
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
236555
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-non-capturing-group.js
|
|
236279
236556
|
var require_no_useless_non_capturing_group = __commonJS({
|
|
236280
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
236557
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-non-capturing-group.js"(exports2) {
|
|
236281
236558
|
"use strict";
|
|
236282
236559
|
init_cjs_shims();
|
|
236283
236560
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -236386,9 +236663,9 @@ var require_no_useless_non_capturing_group = __commonJS({
|
|
|
236386
236663
|
}
|
|
236387
236664
|
});
|
|
236388
236665
|
|
|
236389
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
236666
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-quantifier.js
|
|
236390
236667
|
var require_no_useless_quantifier = __commonJS({
|
|
236391
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
236668
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-quantifier.js"(exports2) {
|
|
236392
236669
|
"use strict";
|
|
236393
236670
|
init_cjs_shims();
|
|
236394
236671
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -236481,9 +236758,9 @@ var require_no_useless_quantifier = __commonJS({
|
|
|
236481
236758
|
}
|
|
236482
236759
|
});
|
|
236483
236760
|
|
|
236484
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
236761
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-range.js
|
|
236485
236762
|
var require_no_useless_range = __commonJS({
|
|
236486
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
236763
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-range.js"(exports2) {
|
|
236487
236764
|
"use strict";
|
|
236488
236765
|
init_cjs_shims();
|
|
236489
236766
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -236545,9 +236822,9 @@ var require_no_useless_range = __commonJS({
|
|
|
236545
236822
|
}
|
|
236546
236823
|
});
|
|
236547
236824
|
|
|
236548
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
236825
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-set-operand.js
|
|
236549
236826
|
var require_no_useless_set_operand = __commonJS({
|
|
236550
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
236827
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-set-operand.js"(exports2) {
|
|
236551
236828
|
"use strict";
|
|
236552
236829
|
init_cjs_shims();
|
|
236553
236830
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -236736,9 +237013,9 @@ var require_no_useless_set_operand = __commonJS({
|
|
|
236736
237013
|
}
|
|
236737
237014
|
});
|
|
236738
237015
|
|
|
236739
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
237016
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-string-literal.js
|
|
236740
237017
|
var require_no_useless_string_literal = __commonJS({
|
|
236741
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
237018
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-string-literal.js"(exports2) {
|
|
236742
237019
|
"use strict";
|
|
236743
237020
|
init_cjs_shims();
|
|
236744
237021
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -236806,9 +237083,9 @@ var require_no_useless_string_literal = __commonJS({
|
|
|
236806
237083
|
}
|
|
236807
237084
|
});
|
|
236808
237085
|
|
|
236809
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
237086
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-two-nums-quantifier.js
|
|
236810
237087
|
var require_no_useless_two_nums_quantifier = __commonJS({
|
|
236811
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
237088
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-useless-two-nums-quantifier.js"(exports2) {
|
|
236812
237089
|
"use strict";
|
|
236813
237090
|
init_cjs_shims();
|
|
236814
237091
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -236862,9 +237139,9 @@ var require_no_useless_two_nums_quantifier = __commonJS({
|
|
|
236862
237139
|
}
|
|
236863
237140
|
});
|
|
236864
237141
|
|
|
236865
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
237142
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-zero-quantifier.js
|
|
236866
237143
|
var require_no_zero_quantifier = __commonJS({
|
|
236867
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
237144
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/no-zero-quantifier.js"(exports2) {
|
|
236868
237145
|
"use strict";
|
|
236869
237146
|
init_cjs_shims();
|
|
236870
237147
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -236931,9 +237208,9 @@ var require_no_zero_quantifier = __commonJS({
|
|
|
236931
237208
|
}
|
|
236932
237209
|
});
|
|
236933
237210
|
|
|
236934
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
237211
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/optimal-lookaround-quantifier.js
|
|
236935
237212
|
var require_optimal_lookaround_quantifier = __commonJS({
|
|
236936
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
237213
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/optimal-lookaround-quantifier.js"(exports2) {
|
|
236937
237214
|
"use strict";
|
|
236938
237215
|
init_cjs_shims();
|
|
236939
237216
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -237033,9 +237310,9 @@ var require_optimal_lookaround_quantifier = __commonJS({
|
|
|
237033
237310
|
}
|
|
237034
237311
|
});
|
|
237035
237312
|
|
|
237036
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
237313
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/optimal-quantifier-concatenation.js
|
|
237037
237314
|
var require_optimal_quantifier_concatenation = __commonJS({
|
|
237038
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
237315
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/optimal-quantifier-concatenation.js"(exports2) {
|
|
237039
237316
|
"use strict";
|
|
237040
237317
|
init_cjs_shims();
|
|
237041
237318
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -237235,7 +237512,7 @@ var require_optimal_quantifier_concatenation = __commonJS({
|
|
|
237235
237512
|
return {
|
|
237236
237513
|
type: "Nested",
|
|
237237
237514
|
messageId: "nestedReplace",
|
|
237238
|
-
raw: quantize(nested.element,
|
|
237515
|
+
raw: quantize(nested.element, { ...nested, max: min }),
|
|
237239
237516
|
nested,
|
|
237240
237517
|
dominate
|
|
237241
237518
|
};
|
|
@@ -237487,9 +237764,9 @@ var require_optimal_quantifier_concatenation = __commonJS({
|
|
|
237487
237764
|
}
|
|
237488
237765
|
});
|
|
237489
237766
|
|
|
237490
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
237767
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-character-class.js
|
|
237491
237768
|
var require_prefer_character_class = __commonJS({
|
|
237492
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
237769
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-character-class.js"(exports2) {
|
|
237493
237770
|
"use strict";
|
|
237494
237771
|
init_cjs_shims();
|
|
237495
237772
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -237833,9 +238110,9 @@ var require_prefer_character_class = __commonJS({
|
|
|
237833
238110
|
}
|
|
237834
238111
|
});
|
|
237835
238112
|
|
|
237836
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
238113
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-d.js
|
|
237837
238114
|
var require_prefer_d = __commonJS({
|
|
237838
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
238115
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-d.js"(exports2) {
|
|
237839
238116
|
"use strict";
|
|
237840
238117
|
init_cjs_shims();
|
|
237841
238118
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -237929,9 +238206,9 @@ var require_prefer_d = __commonJS({
|
|
|
237929
238206
|
}
|
|
237930
238207
|
});
|
|
237931
238208
|
|
|
237932
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
238209
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-escape-replacement-dollar-char.js
|
|
237933
238210
|
var require_prefer_escape_replacement_dollar_char = __commonJS({
|
|
237934
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
238211
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-escape-replacement-dollar-char.js"(exports2) {
|
|
237935
238212
|
"use strict";
|
|
237936
238213
|
init_cjs_shims();
|
|
237937
238214
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -237992,9 +238269,9 @@ var require_prefer_escape_replacement_dollar_char = __commonJS({
|
|
|
237992
238269
|
}
|
|
237993
238270
|
});
|
|
237994
238271
|
|
|
237995
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
238272
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-lookaround.js
|
|
237996
238273
|
var require_prefer_lookaround = __commonJS({
|
|
237997
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
238274
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-lookaround.js"(exports2) {
|
|
237998
238275
|
"use strict";
|
|
237999
238276
|
init_cjs_shims();
|
|
238000
238277
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -238464,9 +238741,9 @@ var require_prefer_lookaround = __commonJS({
|
|
|
238464
238741
|
}
|
|
238465
238742
|
});
|
|
238466
238743
|
|
|
238467
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
238744
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-named-backreference.js
|
|
238468
238745
|
var require_prefer_named_backreference = __commonJS({
|
|
238469
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
238746
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-named-backreference.js"(exports2) {
|
|
238470
238747
|
"use strict";
|
|
238471
238748
|
init_cjs_shims();
|
|
238472
238749
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -238489,7 +238766,7 @@ var require_prefer_named_backreference = __commonJS({
|
|
|
238489
238766
|
function createVisitor({ node: node2, fixReplaceNode, getRegexpLocation }) {
|
|
238490
238767
|
return {
|
|
238491
238768
|
onBackreferenceEnter(bNode) {
|
|
238492
|
-
if (bNode.resolved.name && !bNode.raw.startsWith("\\k<")) {
|
|
238769
|
+
if (!bNode.ambiguous && bNode.resolved.name && !bNode.raw.startsWith("\\k<")) {
|
|
238493
238770
|
context.report({
|
|
238494
238771
|
node: node2,
|
|
238495
238772
|
loc: getRegexpLocation(bNode),
|
|
@@ -238508,9 +238785,9 @@ var require_prefer_named_backreference = __commonJS({
|
|
|
238508
238785
|
}
|
|
238509
238786
|
});
|
|
238510
238787
|
|
|
238511
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
238788
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-named-capture-group.js
|
|
238512
238789
|
var require_prefer_named_capture_group = __commonJS({
|
|
238513
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
238790
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-named-capture-group.js"(exports2) {
|
|
238514
238791
|
"use strict";
|
|
238515
238792
|
init_cjs_shims();
|
|
238516
238793
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -238555,9 +238832,9 @@ var require_prefer_named_capture_group = __commonJS({
|
|
|
238555
238832
|
}
|
|
238556
238833
|
});
|
|
238557
238834
|
|
|
238558
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
238835
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-named-replacement.js
|
|
238559
238836
|
var require_prefer_named_replacement = __commonJS({
|
|
238560
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
238837
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-named-replacement.js"(exports2) {
|
|
238561
238838
|
"use strict";
|
|
238562
238839
|
init_cjs_shims();
|
|
238563
238840
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -238622,9 +238899,9 @@ var require_prefer_named_replacement = __commonJS({
|
|
|
238622
238899
|
}
|
|
238623
238900
|
});
|
|
238624
238901
|
|
|
238625
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
238902
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-plus-quantifier.js
|
|
238626
238903
|
var require_prefer_plus_quantifier = __commonJS({
|
|
238627
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
238904
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-plus-quantifier.js"(exports2) {
|
|
238628
238905
|
"use strict";
|
|
238629
238906
|
init_cjs_shims();
|
|
238630
238907
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -238677,9 +238954,9 @@ var require_prefer_plus_quantifier = __commonJS({
|
|
|
238677
238954
|
}
|
|
238678
238955
|
});
|
|
238679
238956
|
|
|
238680
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
238957
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-predefined-assertion.js
|
|
238681
238958
|
var require_prefer_predefined_assertion = __commonJS({
|
|
238682
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
238959
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-predefined-assertion.js"(exports2) {
|
|
238683
238960
|
"use strict";
|
|
238684
238961
|
init_cjs_shims();
|
|
238685
238962
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -238816,9 +239093,9 @@ var require_prefer_predefined_assertion = __commonJS({
|
|
|
238816
239093
|
}
|
|
238817
239094
|
});
|
|
238818
239095
|
|
|
238819
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
239096
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-quantifier.js
|
|
238820
239097
|
var require_prefer_quantifier = __commonJS({
|
|
238821
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
239098
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-quantifier.js"(exports2) {
|
|
238822
239099
|
"use strict";
|
|
238823
239100
|
init_cjs_shims();
|
|
238824
239101
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -238945,9 +239222,9 @@ var require_prefer_quantifier = __commonJS({
|
|
|
238945
239222
|
}
|
|
238946
239223
|
});
|
|
238947
239224
|
|
|
238948
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
239225
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-question-quantifier.js
|
|
238949
239226
|
var require_prefer_question_quantifier = __commonJS({
|
|
238950
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
239227
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-question-quantifier.js"(exports2) {
|
|
238951
239228
|
"use strict";
|
|
238952
239229
|
init_cjs_shims();
|
|
238953
239230
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -239037,9 +239314,9 @@ var require_prefer_question_quantifier = __commonJS({
|
|
|
239037
239314
|
}
|
|
239038
239315
|
});
|
|
239039
239316
|
|
|
239040
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
239317
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-range.js
|
|
239041
239318
|
var require_prefer_range = __commonJS({
|
|
239042
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
239319
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-range.js"(exports2) {
|
|
239043
239320
|
"use strict";
|
|
239044
239321
|
init_cjs_shims();
|
|
239045
239322
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -239129,7 +239406,10 @@ var require_prefer_range = __commonJS({
|
|
|
239129
239406
|
}
|
|
239130
239407
|
group.nodes.push(element);
|
|
239131
239408
|
} else {
|
|
239132
|
-
groups.push(
|
|
239409
|
+
groups.push({
|
|
239410
|
+
...data,
|
|
239411
|
+
nodes: [element]
|
|
239412
|
+
});
|
|
239133
239413
|
}
|
|
239134
239414
|
}
|
|
239135
239415
|
for (const group of groups) {
|
|
@@ -239175,9 +239455,9 @@ var require_prefer_range = __commonJS({
|
|
|
239175
239455
|
}
|
|
239176
239456
|
});
|
|
239177
239457
|
|
|
239178
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
239458
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-regexp-exec.js
|
|
239179
239459
|
var require_prefer_regexp_exec = __commonJS({
|
|
239180
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
239460
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-regexp-exec.js"(exports2) {
|
|
239181
239461
|
"use strict";
|
|
239182
239462
|
init_cjs_shims();
|
|
239183
239463
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -239223,9 +239503,9 @@ var require_prefer_regexp_exec = __commonJS({
|
|
|
239223
239503
|
}
|
|
239224
239504
|
});
|
|
239225
239505
|
|
|
239226
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
239506
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-regexp-test.js
|
|
239227
239507
|
var require_prefer_regexp_test = __commonJS({
|
|
239228
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
239508
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-regexp-test.js"(exports2) {
|
|
239229
239509
|
"use strict";
|
|
239230
239510
|
init_cjs_shims();
|
|
239231
239511
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -239341,9 +239621,9 @@ var require_prefer_regexp_test = __commonJS({
|
|
|
239341
239621
|
}
|
|
239342
239622
|
});
|
|
239343
239623
|
|
|
239344
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
239624
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-result-array-groups.js
|
|
239345
239625
|
var require_prefer_result_array_groups = __commonJS({
|
|
239346
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
239626
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-result-array-groups.js"(exports2) {
|
|
239347
239627
|
"use strict";
|
|
239348
239628
|
init_cjs_shims();
|
|
239349
239629
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -239459,9 +239739,9 @@ var require_prefer_result_array_groups = __commonJS({
|
|
|
239459
239739
|
}
|
|
239460
239740
|
});
|
|
239461
239741
|
|
|
239462
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
239742
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-set-operation.js
|
|
239463
239743
|
var require_prefer_set_operation = __commonJS({
|
|
239464
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
239744
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-set-operation.js"(exports2) {
|
|
239465
239745
|
"use strict";
|
|
239466
239746
|
init_cjs_shims();
|
|
239467
239747
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -239551,9 +239831,9 @@ var require_prefer_set_operation = __commonJS({
|
|
|
239551
239831
|
}
|
|
239552
239832
|
});
|
|
239553
239833
|
|
|
239554
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
239834
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-star-quantifier.js
|
|
239555
239835
|
var require_prefer_star_quantifier = __commonJS({
|
|
239556
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
239836
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-star-quantifier.js"(exports2) {
|
|
239557
239837
|
"use strict";
|
|
239558
239838
|
init_cjs_shims();
|
|
239559
239839
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -239606,9 +239886,9 @@ var require_prefer_star_quantifier = __commonJS({
|
|
|
239606
239886
|
}
|
|
239607
239887
|
});
|
|
239608
239888
|
|
|
239609
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
239889
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-unicode-codepoint-escapes.js
|
|
239610
239890
|
var require_prefer_unicode_codepoint_escapes = __commonJS({
|
|
239611
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
239891
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-unicode-codepoint-escapes.js"(exports2) {
|
|
239612
239892
|
"use strict";
|
|
239613
239893
|
init_cjs_shims();
|
|
239614
239894
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -239662,9 +239942,9 @@ var require_prefer_unicode_codepoint_escapes = __commonJS({
|
|
|
239662
239942
|
}
|
|
239663
239943
|
});
|
|
239664
239944
|
|
|
239665
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
239945
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-w.js
|
|
239666
239946
|
var require_prefer_w = __commonJS({
|
|
239667
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
239947
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/prefer-w.js"(exports2) {
|
|
239668
239948
|
"use strict";
|
|
239669
239949
|
init_cjs_shims();
|
|
239670
239950
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -239790,9 +240070,9 @@ var require_prefer_w = __commonJS({
|
|
|
239790
240070
|
}
|
|
239791
240071
|
});
|
|
239792
240072
|
|
|
239793
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
240073
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/require-unicode-regexp.js
|
|
239794
240074
|
var require_require_unicode_regexp = __commonJS({
|
|
239795
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
240075
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/require-unicode-regexp.js"(exports2) {
|
|
239796
240076
|
"use strict";
|
|
239797
240077
|
init_cjs_shims();
|
|
239798
240078
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -239805,7 +240085,7 @@ var require_require_unicode_regexp = __commonJS({
|
|
|
239805
240085
|
let uPattern;
|
|
239806
240086
|
try {
|
|
239807
240087
|
uPattern = new regexpp_1.RegExpParser().parsePattern(pattern.raw, void 0, void 0, { unicode: true });
|
|
239808
|
-
} catch (
|
|
240088
|
+
} catch (_a) {
|
|
239809
240089
|
return false;
|
|
239810
240090
|
}
|
|
239811
240091
|
try {
|
|
@@ -239908,7 +240188,7 @@ var require_require_unicode_regexp = __commonJS({
|
|
|
239908
240188
|
});
|
|
239909
240189
|
const pattern = regexpContext.patternAst;
|
|
239910
240190
|
const flags = regexpContext.flags;
|
|
239911
|
-
const uFlags = (0, regexp_ast_analysis_1.toCache)(
|
|
240191
|
+
const uFlags = (0, regexp_ast_analysis_1.toCache)({ ...flags, unicode: true });
|
|
239912
240192
|
const skip = /* @__PURE__ */ new Set();
|
|
239913
240193
|
return !(0, regexp_ast_analysis_1.hasSomeDescendant)(pattern, (n) => {
|
|
239914
240194
|
if (n.type === "Character" && surrogatePositions.has(n.start)) {
|
|
@@ -239982,9 +240262,9 @@ var require_require_unicode_regexp = __commonJS({
|
|
|
239982
240262
|
}
|
|
239983
240263
|
});
|
|
239984
240264
|
|
|
239985
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
240265
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/require-unicode-sets-regexp.js
|
|
239986
240266
|
var require_require_unicode_sets_regexp = __commonJS({
|
|
239987
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
240267
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/require-unicode-sets-regexp.js"(exports2) {
|
|
239988
240268
|
"use strict";
|
|
239989
240269
|
init_cjs_shims();
|
|
239990
240270
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -239996,11 +240276,11 @@ var require_require_unicode_sets_regexp = __commonJS({
|
|
|
239996
240276
|
const INCOMPATIBLE = {};
|
|
239997
240277
|
const { flags, patternAst, pattern } = regexpContext;
|
|
239998
240278
|
try {
|
|
239999
|
-
const flagsWithV =
|
|
240279
|
+
const flagsWithV = { ...flags, unicodeSets: true, unicode: false };
|
|
240000
240280
|
(0, regexpp_1.visitRegExpAST)(patternAst, {
|
|
240001
240281
|
onCharacterClassEnter(node2) {
|
|
240002
240282
|
const us = (0, regexp_ast_analysis_1.toUnicodeSet)(node2, flags);
|
|
240003
|
-
const vus = (0, regexp_ast_analysis_1.toUnicodeSet)(
|
|
240283
|
+
const vus = (0, regexp_ast_analysis_1.toUnicodeSet)({ ...node2, unicodeSets: true }, flagsWithV);
|
|
240004
240284
|
if (!us.equals(vus)) {
|
|
240005
240285
|
throw INCOMPATIBLE;
|
|
240006
240286
|
}
|
|
@@ -240019,7 +240299,7 @@ var require_require_unicode_sets_regexp = __commonJS({
|
|
|
240019
240299
|
new regexpp_1.RegExpParser().parsePattern(pattern, void 0, void 0, {
|
|
240020
240300
|
unicodeSets: true
|
|
240021
240301
|
});
|
|
240022
|
-
} catch (
|
|
240302
|
+
} catch (_a) {
|
|
240023
240303
|
return false;
|
|
240024
240304
|
}
|
|
240025
240305
|
return true;
|
|
@@ -240067,9 +240347,9 @@ var require_require_unicode_sets_regexp = __commonJS({
|
|
|
240067
240347
|
}
|
|
240068
240348
|
});
|
|
240069
240349
|
|
|
240070
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
240350
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/simplify-set-operations.js
|
|
240071
240351
|
var require_simplify_set_operations = __commonJS({
|
|
240072
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
240352
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/simplify-set-operations.js"(exports2) {
|
|
240073
240353
|
"use strict";
|
|
240074
240354
|
init_cjs_shims();
|
|
240075
240355
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -240113,7 +240393,7 @@ var require_simplify_set_operations = __commonJS({
|
|
|
240113
240393
|
return element;
|
|
240114
240394
|
}
|
|
240115
240395
|
}
|
|
240116
|
-
} catch (
|
|
240396
|
+
} catch (_a) {
|
|
240117
240397
|
}
|
|
240118
240398
|
return null;
|
|
240119
240399
|
}
|
|
@@ -240309,13 +240589,14 @@ var require_simplify_set_operations = __commonJS({
|
|
|
240309
240589
|
}
|
|
240310
240590
|
});
|
|
240311
240591
|
|
|
240312
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
240592
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/lexicographically-smallest.js
|
|
240313
240593
|
var require_lexicographically_smallest = __commonJS({
|
|
240314
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
240594
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/lexicographically-smallest.js"(exports2) {
|
|
240315
240595
|
"use strict";
|
|
240316
240596
|
init_cjs_shims();
|
|
240317
240597
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
240318
|
-
exports2.
|
|
240598
|
+
exports2.getLexicographicallySmallest = getLexicographicallySmallest;
|
|
240599
|
+
exports2.getLexicographicallySmallestInConcatenation = getLexicographicallySmallestInConcatenation;
|
|
240319
240600
|
function findMin(array, compare) {
|
|
240320
240601
|
if (array.length === 0) {
|
|
240321
240602
|
return void 0;
|
|
@@ -240346,7 +240627,6 @@ var require_lexicographically_smallest = __commonJS({
|
|
|
240346
240627
|
const words = set.accept.wordSets.map((w) => w.map((c) => c.ranges[0].min));
|
|
240347
240628
|
return findMin(words, compareWords);
|
|
240348
240629
|
}
|
|
240349
|
-
exports2.getLexicographicallySmallest = getLexicographicallySmallest;
|
|
240350
240630
|
function getLexicographicallySmallestInConcatenation(elements) {
|
|
240351
240631
|
if (elements.length === 1) {
|
|
240352
240632
|
return getLexicographicallySmallest(elements[0]);
|
|
@@ -240376,13 +240656,12 @@ var require_lexicographically_smallest = __commonJS({
|
|
|
240376
240656
|
}
|
|
240377
240657
|
return smallest;
|
|
240378
240658
|
}
|
|
240379
|
-
exports2.getLexicographicallySmallestInConcatenation = getLexicographicallySmallestInConcatenation;
|
|
240380
240659
|
}
|
|
240381
240660
|
});
|
|
240382
240661
|
|
|
240383
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
240662
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/sort-alternatives.js
|
|
240384
240663
|
var require_sort_alternatives = __commonJS({
|
|
240385
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
240664
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/sort-alternatives.js"(exports2) {
|
|
240386
240665
|
"use strict";
|
|
240387
240666
|
init_cjs_shims();
|
|
240388
240667
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -240468,7 +240747,7 @@ var require_sort_alternatives = __commonJS({
|
|
|
240468
240747
|
}, result.expression);
|
|
240469
240748
|
const nfa = refa_1.NFA.fromRegex(expression, { maxCharacter: result.maxCharacter }, {}, new refa_1.NFA.LimitedNodeFactory(1e3));
|
|
240470
240749
|
return getLexicographicallySmallestFromNfa(nfa.initial, nfa.finals);
|
|
240471
|
-
} catch (
|
|
240750
|
+
} catch (_a) {
|
|
240472
240751
|
return void 0;
|
|
240473
240752
|
}
|
|
240474
240753
|
}
|
|
@@ -240766,9 +241045,9 @@ var require_sort_alternatives = __commonJS({
|
|
|
240766
241045
|
}
|
|
240767
241046
|
});
|
|
240768
241047
|
|
|
240769
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
241048
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/sort-character-class-elements.js
|
|
240770
241049
|
var require_sort_character_class_elements = __commonJS({
|
|
240771
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
241050
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/sort-character-class-elements.js"(exports2) {
|
|
240772
241051
|
"use strict";
|
|
240773
241052
|
init_cjs_shims();
|
|
240774
241053
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -240798,7 +241077,7 @@ var require_sort_character_class_elements = __commonJS({
|
|
|
240798
241077
|
return "*";
|
|
240799
241078
|
}
|
|
240800
241079
|
function getLexicographicallySmallestFromElement(node2, flags) {
|
|
240801
|
-
const us = node2.type === "CharacterSet" && node2.negate ? (0, regexp_ast_analysis_1.toUnicodeSet)(
|
|
241080
|
+
const us = node2.type === "CharacterSet" && node2.negate ? (0, regexp_ast_analysis_1.toUnicodeSet)({ ...node2, negate: false }, flags) : (0, regexp_ast_analysis_1.toUnicodeSet)(node2, flags);
|
|
240802
241081
|
return (0, lexicographically_smallest_1.getLexicographicallySmallest)(us) || [];
|
|
240803
241082
|
}
|
|
240804
241083
|
function compareWords(a, b) {
|
|
@@ -240963,9 +241242,9 @@ var require_sort_character_class_elements = __commonJS({
|
|
|
240963
241242
|
}
|
|
240964
241243
|
});
|
|
240965
241244
|
|
|
240966
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
241245
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/sort-flags.js
|
|
240967
241246
|
var require_sort_flags = __commonJS({
|
|
240968
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
241247
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/sort-flags.js"(exports2) {
|
|
240969
241248
|
"use strict";
|
|
240970
241249
|
init_cjs_shims();
|
|
240971
241250
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -241015,9 +241294,9 @@ var require_sort_flags = __commonJS({
|
|
|
241015
241294
|
}
|
|
241016
241295
|
});
|
|
241017
241296
|
|
|
241018
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
241297
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/strict.js
|
|
241019
241298
|
var require_strict = __commonJS({
|
|
241020
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
241299
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/strict.js"(exports2) {
|
|
241021
241300
|
"use strict";
|
|
241022
241301
|
init_cjs_shims();
|
|
241023
241302
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -241197,9 +241476,9 @@ var require_strict = __commonJS({
|
|
|
241197
241476
|
}
|
|
241198
241477
|
});
|
|
241199
241478
|
|
|
241200
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
241479
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/unicode-escape.js
|
|
241201
241480
|
var require_unicode_escape = __commonJS({
|
|
241202
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
241481
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/unicode-escape.js"(exports2) {
|
|
241203
241482
|
"use strict";
|
|
241204
241483
|
init_cjs_shims();
|
|
241205
241484
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -241285,9 +241564,9 @@ var require_unicode_escape = __commonJS({
|
|
|
241285
241564
|
}
|
|
241286
241565
|
});
|
|
241287
241566
|
|
|
241288
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
241567
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/unicode-alias.js
|
|
241289
241568
|
var require_unicode_alias = __commonJS({
|
|
241290
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
241569
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/utils/unicode-alias.js"(exports2) {
|
|
241291
241570
|
"use strict";
|
|
241292
241571
|
init_cjs_shims();
|
|
241293
241572
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -241364,6 +241643,7 @@ var require_unicode_alias = __commonJS({
|
|
|
241364
241643
|
Join_C: "Join_Control",
|
|
241365
241644
|
LOE: "Logical_Order_Exception",
|
|
241366
241645
|
Lower: "Lowercase",
|
|
241646
|
+
MCM: "Modifier_Combining_Mark",
|
|
241367
241647
|
NChar: "Noncharacter_Code_Point",
|
|
241368
241648
|
OAlpha: "Other_Alphabetic",
|
|
241369
241649
|
ODI: "Other_Default_Ignorable_Code_Point",
|
|
@@ -241481,6 +241761,7 @@ var require_unicode_alias = __commonJS({
|
|
|
241481
241761
|
Elba: "Elbasan",
|
|
241482
241762
|
Elym: "Elymaic",
|
|
241483
241763
|
Ethi: "Ethiopic",
|
|
241764
|
+
Gara: "Garay",
|
|
241484
241765
|
Geor: "Georgian",
|
|
241485
241766
|
Glag: "Glagolitic",
|
|
241486
241767
|
Gong: "Gunjala_Gondi",
|
|
@@ -241489,6 +241770,7 @@ var require_unicode_alias = __commonJS({
|
|
|
241489
241770
|
Gran: "Grantha",
|
|
241490
241771
|
Grek: "Greek",
|
|
241491
241772
|
Gujr: "Gujarati",
|
|
241773
|
+
Gukh: "Gurung_Khema",
|
|
241492
241774
|
Guru: "Gurmukhi",
|
|
241493
241775
|
Hang: "Hangul",
|
|
241494
241776
|
Hani: "Han",
|
|
@@ -241510,6 +241792,7 @@ var require_unicode_alias = __commonJS({
|
|
|
241510
241792
|
Khoj: "Khojki",
|
|
241511
241793
|
Kits: "Khitan_Small_Script",
|
|
241512
241794
|
Knda: "Kannada",
|
|
241795
|
+
Krai: "Kirat_Rai",
|
|
241513
241796
|
Kthi: "Kaithi",
|
|
241514
241797
|
Lana: "Tai_Tham",
|
|
241515
241798
|
Laoo: "Lao",
|
|
@@ -241543,6 +241826,7 @@ var require_unicode_alias = __commonJS({
|
|
|
241543
241826
|
Nshu: "Nushu",
|
|
241544
241827
|
Ogam: "Ogham",
|
|
241545
241828
|
Olck: "Ol_Chiki",
|
|
241829
|
+
Onao: "Ol_Onal",
|
|
241546
241830
|
Orkh: "Old_Turkic",
|
|
241547
241831
|
Orya: "Oriya",
|
|
241548
241832
|
Osge: "Osage",
|
|
@@ -241574,6 +241858,7 @@ var require_unicode_alias = __commonJS({
|
|
|
241574
241858
|
Sora: "Sora_Sompeng",
|
|
241575
241859
|
Soyo: "Soyombo",
|
|
241576
241860
|
Sund: "Sundanese",
|
|
241861
|
+
Sunu: "Sunuwar",
|
|
241577
241862
|
Sylo: "Syloti_Nagri",
|
|
241578
241863
|
Syrc: "Syriac",
|
|
241579
241864
|
Tagb: "Tagbanwa",
|
|
@@ -241590,6 +241875,8 @@ var require_unicode_alias = __commonJS({
|
|
|
241590
241875
|
Tibt: "Tibetan",
|
|
241591
241876
|
Tirh: "Tirhuta",
|
|
241592
241877
|
Tnsa: "Tangsa",
|
|
241878
|
+
Todr: "Todhri",
|
|
241879
|
+
Tutg: "Tulu_Tigalari",
|
|
241593
241880
|
Ugar: "Ugaritic",
|
|
241594
241881
|
Vaii: "Vai",
|
|
241595
241882
|
Vith: "Vithkuqi",
|
|
@@ -241612,9 +241899,9 @@ var require_unicode_alias = __commonJS({
|
|
|
241612
241899
|
}
|
|
241613
241900
|
});
|
|
241614
241901
|
|
|
241615
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
241902
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/unicode-property.js
|
|
241616
241903
|
var require_unicode_property = __commonJS({
|
|
241617
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
241904
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/unicode-property.js"(exports2) {
|
|
241618
241905
|
"use strict";
|
|
241619
241906
|
init_cjs_shims();
|
|
241620
241907
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -241806,9 +242093,9 @@ var require_unicode_property = __commonJS({
|
|
|
241806
242093
|
}
|
|
241807
242094
|
});
|
|
241808
242095
|
|
|
241809
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
242096
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/use-ignore-case.js
|
|
241810
242097
|
var require_use_ignore_case = __commonJS({
|
|
241811
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
242098
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/rules/use-ignore-case.js"(exports2) {
|
|
241812
242099
|
"use strict";
|
|
241813
242100
|
init_cjs_shims();
|
|
241814
242101
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -241996,9 +242283,9 @@ var require_use_ignore_case = __commonJS({
|
|
|
241996
242283
|
}
|
|
241997
242284
|
});
|
|
241998
242285
|
|
|
241999
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
242286
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/all-rules.js
|
|
242000
242287
|
var require_all_rules = __commonJS({
|
|
242001
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
242288
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/all-rules.js"(exports2) {
|
|
242002
242289
|
"use strict";
|
|
242003
242290
|
init_cjs_shims();
|
|
242004
242291
|
var __importDefault = exports2 && exports2.__importDefault || function(mod) {
|
|
@@ -242175,9 +242462,9 @@ var require_all_rules = __commonJS({
|
|
|
242175
242462
|
}
|
|
242176
242463
|
});
|
|
242177
242464
|
|
|
242178
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
242465
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/configs/rules/recommended.js
|
|
242179
242466
|
var require_recommended = __commonJS({
|
|
242180
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
242467
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/configs/rules/recommended.js"(exports2) {
|
|
242181
242468
|
"use strict";
|
|
242182
242469
|
init_cjs_shims();
|
|
242183
242470
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -242254,9 +242541,9 @@ var require_recommended = __commonJS({
|
|
|
242254
242541
|
}
|
|
242255
242542
|
});
|
|
242256
242543
|
|
|
242257
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
242544
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/configs/rules/all.js
|
|
242258
242545
|
var require_all = __commonJS({
|
|
242259
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
242546
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/configs/rules/all.js"(exports2) {
|
|
242260
242547
|
"use strict";
|
|
242261
242548
|
init_cjs_shims();
|
|
242262
242549
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -242267,13 +242554,16 @@ var require_all = __commonJS({
|
|
|
242267
242554
|
for (const rule of all_rules_1.rules) {
|
|
242268
242555
|
all[rule.meta.docs.ruleId] = "error";
|
|
242269
242556
|
}
|
|
242270
|
-
exports2.rules =
|
|
242557
|
+
exports2.rules = {
|
|
242558
|
+
...all,
|
|
242559
|
+
...recommended_1.rules
|
|
242560
|
+
};
|
|
242271
242561
|
}
|
|
242272
242562
|
});
|
|
242273
242563
|
|
|
242274
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
242564
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/configs/all.js
|
|
242275
242565
|
var require_all2 = __commonJS({
|
|
242276
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
242566
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/configs/all.js"(exports2) {
|
|
242277
242567
|
"use strict";
|
|
242278
242568
|
init_cjs_shims();
|
|
242279
242569
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -242286,9 +242576,9 @@ var require_all2 = __commonJS({
|
|
|
242286
242576
|
}
|
|
242287
242577
|
});
|
|
242288
242578
|
|
|
242289
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
242579
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/configs/flat/all.js
|
|
242290
242580
|
var require_all3 = __commonJS({
|
|
242291
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
242581
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/configs/flat/all.js"(exports2) {
|
|
242292
242582
|
"use strict";
|
|
242293
242583
|
init_cjs_shims();
|
|
242294
242584
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
@@ -242329,9 +242619,9 @@ var require_all3 = __commonJS({
|
|
|
242329
242619
|
}
|
|
242330
242620
|
});
|
|
242331
242621
|
|
|
242332
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
242622
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/configs/flat/recommended.js
|
|
242333
242623
|
var require_recommended2 = __commonJS({
|
|
242334
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
242624
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/configs/flat/recommended.js"(exports2) {
|
|
242335
242625
|
"use strict";
|
|
242336
242626
|
init_cjs_shims();
|
|
242337
242627
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
@@ -242372,9 +242662,9 @@ var require_recommended2 = __commonJS({
|
|
|
242372
242662
|
}
|
|
242373
242663
|
});
|
|
242374
242664
|
|
|
242375
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
242665
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/configs/recommended.js
|
|
242376
242666
|
var require_recommended3 = __commonJS({
|
|
242377
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
242667
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/configs/recommended.js"(exports2) {
|
|
242378
242668
|
"use strict";
|
|
242379
242669
|
init_cjs_shims();
|
|
242380
242670
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
@@ -242387,12 +242677,12 @@ var require_recommended3 = __commonJS({
|
|
|
242387
242677
|
}
|
|
242388
242678
|
});
|
|
242389
242679
|
|
|
242390
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
242680
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/package.json
|
|
242391
242681
|
var require_package = __commonJS({
|
|
242392
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
242682
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/package.json"(exports2, module2) {
|
|
242393
242683
|
module2.exports = {
|
|
242394
242684
|
name: "eslint-plugin-regexp",
|
|
242395
|
-
version: "2.
|
|
242685
|
+
version: "2.7.0",
|
|
242396
242686
|
description: "ESLint plugin for finding RegExp mistakes and RegExp style guide violations.",
|
|
242397
242687
|
engines: {
|
|
242398
242688
|
node: "^18 || >=20"
|
|
@@ -242407,9 +242697,9 @@ var require_package = __commonJS({
|
|
|
242407
242697
|
build: "tsc --project ./tsconfig.build.json",
|
|
242408
242698
|
clean: "rimraf .nyc_output dist coverage",
|
|
242409
242699
|
lint: 'npm-run-all "lint:*"',
|
|
242410
|
-
"lint:js": "eslint .
|
|
242700
|
+
"lint:js": "eslint .",
|
|
242411
242701
|
"lint:docs": 'markdownlint "**/*.md"',
|
|
242412
|
-
"eslint-fix": "eslint . --
|
|
242702
|
+
"eslint-fix": "eslint . --fix",
|
|
242413
242703
|
pretest: "npm run build",
|
|
242414
242704
|
"test:base": 'mocha --require ts-node/register/transpile-only "tests/**/*.ts" --reporter dot --timeout 60000',
|
|
242415
242705
|
test: "npm run test:nyc",
|
|
@@ -242455,55 +242745,64 @@ var require_package = __commonJS({
|
|
|
242455
242745
|
},
|
|
242456
242746
|
devDependencies: {
|
|
242457
242747
|
"@changesets/cli": "^2.26.2",
|
|
242458
|
-
"@
|
|
242748
|
+
"@changesets/get-release-plan": "^4.0.2",
|
|
242749
|
+
"@eslint-community/eslint-plugin-eslint-comments": "^4.3.0",
|
|
242750
|
+
"@eslint/compat": "^1.1.0",
|
|
242751
|
+
"@eslint/eslintrc": "^3.1.0",
|
|
242752
|
+
"@eslint/js": "^9.5.0",
|
|
242753
|
+
"@ota-meshi/eslint-plugin": "^0.17.4",
|
|
242459
242754
|
"@ota-meshi/site-kit-eslint-editor-vue": "^0.2.0",
|
|
242460
242755
|
"@svitejs/changesets-changelog-github-compact": "^1.1.0",
|
|
242461
|
-
"@types/chai": "^
|
|
242462
|
-
"@types/eslint": "^
|
|
242756
|
+
"@types/chai": "^5.0.0",
|
|
242757
|
+
"@types/eslint": "^9.0.0",
|
|
242758
|
+
"@types/eslint__eslintrc": "^2.1.1",
|
|
242463
242759
|
"@types/eslint-scope": "^3.7.1",
|
|
242464
|
-
"@types/estree": "^1.0.
|
|
242760
|
+
"@types/estree": "^1.0.6",
|
|
242465
242761
|
"@types/mocha": "^10.0.0",
|
|
242466
|
-
"@types/node": "^
|
|
242467
|
-
"@
|
|
242468
|
-
"@typescript-eslint/
|
|
242762
|
+
"@types/node": "^22.0.0",
|
|
242763
|
+
"@types/pako": "^2.0.3",
|
|
242764
|
+
"@typescript-eslint/eslint-plugin": "~8.14.0",
|
|
242765
|
+
"@typescript-eslint/parser": "~8.14.0",
|
|
242469
242766
|
assert: "^2.0.0",
|
|
242470
|
-
chai: "^
|
|
242767
|
+
chai: "^5.0.0",
|
|
242471
242768
|
"env-cmd": "^10.1.0",
|
|
242472
|
-
eslint: "^
|
|
242473
|
-
"eslint-config-prettier": "^9.
|
|
242474
|
-
"eslint-doc-generator": "^1.7.
|
|
242769
|
+
eslint: "^9.14.0",
|
|
242770
|
+
"eslint-config-prettier": "^9.1.0",
|
|
242771
|
+
"eslint-doc-generator": "^1.7.1",
|
|
242475
242772
|
"eslint-import-resolver-typescript": "^3.6.1",
|
|
242476
|
-
"eslint-plugin-eslint-
|
|
242477
|
-
"eslint-plugin-eslint-plugin": "^6.0.0",
|
|
242773
|
+
"eslint-plugin-eslint-plugin": "^6.1.0",
|
|
242478
242774
|
"eslint-plugin-import": "^2.29.1",
|
|
242479
|
-
"eslint-plugin-
|
|
242480
|
-
"eslint-plugin-
|
|
242481
|
-
"eslint-plugin-
|
|
242482
|
-
"eslint-plugin-
|
|
242483
|
-
"eslint-plugin-
|
|
242484
|
-
"eslint-plugin-
|
|
242485
|
-
"eslint-plugin-
|
|
242775
|
+
"eslint-plugin-jsdoc": "^50.5.0",
|
|
242776
|
+
"eslint-plugin-json-schema-validator": "^5.1.1",
|
|
242777
|
+
"eslint-plugin-jsonc": "^2.16.0",
|
|
242778
|
+
"eslint-plugin-markdown": "^5.0.0",
|
|
242779
|
+
"eslint-plugin-n": "^17.9.0",
|
|
242780
|
+
"eslint-plugin-prettier": "^5.1.3",
|
|
242781
|
+
"eslint-plugin-regexp": "~2.6.0",
|
|
242782
|
+
"eslint-plugin-vue": "^9.26.0",
|
|
242783
|
+
"eslint-plugin-yml": "^1.14.0",
|
|
242486
242784
|
"eslint-snapshot-rule-tester": "^0.1.0",
|
|
242487
|
-
"
|
|
242488
|
-
"markdownlint-cli": "^0.40.0",
|
|
242785
|
+
"markdownlint-cli": "^0.42.0",
|
|
242489
242786
|
mocha: "^10.0.0",
|
|
242490
242787
|
"mocha-chai-jest-snapshot": "^1.1.3",
|
|
242491
|
-
"npm-run-all2": "^
|
|
242492
|
-
nyc: "^
|
|
242788
|
+
"npm-run-all2": "^7.0.0",
|
|
242789
|
+
nyc: "^17.0.0",
|
|
242493
242790
|
pako: "^2.1.0",
|
|
242494
|
-
prettier: "~3.
|
|
242791
|
+
prettier: "~3.3.0",
|
|
242495
242792
|
semver: "^7.5.4",
|
|
242496
242793
|
stylelint: "^16.0.0",
|
|
242497
|
-
"stylelint-config-
|
|
242498
|
-
"
|
|
242499
|
-
|
|
242500
|
-
|
|
242794
|
+
"stylelint-config-recommended": "^14.0.1",
|
|
242795
|
+
"stylelint-config-recommended-vue": "^1.5.0",
|
|
242796
|
+
"ts-node": "^10.9.2",
|
|
242797
|
+
typescript: "~5.6.2",
|
|
242798
|
+
"typescript-eslint": "~8.14.0",
|
|
242799
|
+
"vite-plugin-eslint4b": "^0.4.6",
|
|
242501
242800
|
vitepress: "^1.0.0",
|
|
242502
242801
|
"vue-eslint-parser": "^9.0.0"
|
|
242503
242802
|
},
|
|
242504
242803
|
dependencies: {
|
|
242505
242804
|
"@eslint-community/eslint-utils": "^4.2.0",
|
|
242506
|
-
"@eslint-community/regexpp": "^4.
|
|
242805
|
+
"@eslint-community/regexpp": "^4.11.0",
|
|
242507
242806
|
"comment-parser": "^1.4.0",
|
|
242508
242807
|
"jsdoc-type-pratt-parser": "^4.0.0",
|
|
242509
242808
|
refa: "^0.12.1",
|
|
@@ -242517,9 +242816,9 @@ var require_package = __commonJS({
|
|
|
242517
242816
|
}
|
|
242518
242817
|
});
|
|
242519
242818
|
|
|
242520
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
242819
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/meta.js
|
|
242521
242820
|
var require_meta = __commonJS({
|
|
242522
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
242821
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/meta.js"(exports2) {
|
|
242523
242822
|
"use strict";
|
|
242524
242823
|
init_cjs_shims();
|
|
242525
242824
|
var _a;
|
|
@@ -242529,9 +242828,9 @@ var require_meta = __commonJS({
|
|
|
242529
242828
|
}
|
|
242530
242829
|
});
|
|
242531
242830
|
|
|
242532
|
-
// node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
242831
|
+
// node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/index.js
|
|
242533
242832
|
var require_dist2 = __commonJS({
|
|
242534
|
-
"node_modules/.pnpm/eslint-plugin-regexp@2.
|
|
242833
|
+
"node_modules/.pnpm/eslint-plugin-regexp@2.7.0_eslint@9.15.0_jiti@1.21.6_/node_modules/eslint-plugin-regexp/dist/index.js"(exports2) {
|
|
242535
242834
|
"use strict";
|
|
242536
242835
|
init_cjs_shims();
|
|
242537
242836
|
var __createBinding = exports2 && exports2.__createBinding || (Object.create ? function(o, m, k, k2) {
|
|
@@ -244866,7 +245165,7 @@ async function yaml(options = {}) {
|
|
|
244866
245165
|
"yaml/indent": ["error", indent === "tab" ? 2 : indent],
|
|
244867
245166
|
"yaml/key-spacing": "error",
|
|
244868
245167
|
"yaml/no-tab-indent": "error",
|
|
244869
|
-
"yaml/quotes": ["error", { avoidEscape:
|
|
245168
|
+
"yaml/quotes": ["error", { avoidEscape: true, prefer: quotes === "backtick" ? "single" : quotes }],
|
|
244870
245169
|
"yaml/spaced-comment": "error"
|
|
244871
245170
|
} : {},
|
|
244872
245171
|
"max-lines": "off",
|