@typespec/html-program-viewer 0.83.0-dev.1 → 0.83.0-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/emitter/index.js +936 -911
- package/dist/{manifest-Vqzuc5uB.js → manifest-BNef1S5o.js} +1 -1
- package/dist/react/index.js +399 -291
- package/package.json +5 -5
package/dist/react/index.js
CHANGED
|
@@ -11,7 +11,7 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
11
11
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
12
12
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
13
13
|
var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
14
|
-
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
14
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
15
15
|
var __exportAll = (all, no_symbols) => {
|
|
16
16
|
let target = {};
|
|
17
17
|
for (var name in all) __defProp$1(target, name, {
|
|
@@ -934,6 +934,9 @@ function paramMessage(strings, ...keys) {
|
|
|
934
934
|
return template;
|
|
935
935
|
}
|
|
936
936
|
var { createDiagnostic, reportDiagnostic } = createDiagnosticCreator({
|
|
937
|
+
/**
|
|
938
|
+
* Scanner errors.
|
|
939
|
+
*/
|
|
937
940
|
"digit-expected": {
|
|
938
941
|
severity: "error",
|
|
939
942
|
messages: { default: "Digit expected." }
|
|
@@ -976,6 +979,9 @@ var { createDiagnostic, reportDiagnostic } = createDiagnosticCreator({
|
|
|
976
979
|
severity: "error",
|
|
977
980
|
messages: { default: "Invalid character." }
|
|
978
981
|
},
|
|
982
|
+
/**
|
|
983
|
+
* Utils
|
|
984
|
+
*/
|
|
979
985
|
"file-not-found": {
|
|
980
986
|
severity: "error",
|
|
981
987
|
messages: { default: paramMessage`File ${"path"} not found.` }
|
|
@@ -984,6 +990,9 @@ var { createDiagnostic, reportDiagnostic } = createDiagnosticCreator({
|
|
|
984
990
|
severity: "error",
|
|
985
991
|
messages: { default: paramMessage`${"message"}` }
|
|
986
992
|
},
|
|
993
|
+
/**
|
|
994
|
+
* Init templates
|
|
995
|
+
*/
|
|
987
996
|
"init-template-invalid-json": {
|
|
988
997
|
severity: "error",
|
|
989
998
|
messages: { default: paramMessage`Unable to parse ${"url"}: ${"message"}. Check that the template URL is correct.` }
|
|
@@ -992,6 +1001,9 @@ var { createDiagnostic, reportDiagnostic } = createDiagnosticCreator({
|
|
|
992
1001
|
severity: "error",
|
|
993
1002
|
messages: { default: paramMessage`Failed to download template from ${"url"}: ${"message"}. Check that the template URL is correct.` }
|
|
994
1003
|
},
|
|
1004
|
+
/**
|
|
1005
|
+
* Parser errors.
|
|
1006
|
+
*/
|
|
995
1007
|
"multiple-blockless-namespace": {
|
|
996
1008
|
severity: "error",
|
|
997
1009
|
messages: { default: "Cannot use multiple blockless namespaces." }
|
|
@@ -1092,6 +1104,10 @@ var { createDiagnostic, reportDiagnostic } = createDiagnosticCreator({
|
|
|
1092
1104
|
severity: "error",
|
|
1093
1105
|
messages: { default: "A rest parameter cannot be optional." }
|
|
1094
1106
|
},
|
|
1107
|
+
/**
|
|
1108
|
+
* Parser doc comment warnings.
|
|
1109
|
+
* Design goal: Malformed doc comments should only produce warnings, not errors.
|
|
1110
|
+
*/
|
|
1095
1111
|
"doc-invalid-identifier": {
|
|
1096
1112
|
severity: "warning",
|
|
1097
1113
|
messages: {
|
|
@@ -1102,12 +1118,14 @@ var { createDiagnostic, reportDiagnostic } = createDiagnosticCreator({
|
|
|
1102
1118
|
templateParam: "Invalid template parameter name."
|
|
1103
1119
|
}
|
|
1104
1120
|
},
|
|
1121
|
+
/**
|
|
1122
|
+
* Checker
|
|
1123
|
+
*/
|
|
1105
1124
|
"experimental-feature": {
|
|
1106
1125
|
severity: "warning",
|
|
1107
1126
|
messages: {
|
|
1108
1127
|
default: paramMessage`${"feature"} is an experimental feature. It may change in the future or be removed. Use with caution and consider providing feedback on this feature.`,
|
|
1109
|
-
functionDeclarations: "Function declarations are an experimental feature that may change in the future. Use with caution and consider providing feedback to the TypeSpec team."
|
|
1110
|
-
internal: `Internal symbols are experimental and may be changed in a future release. Use with caution. Suppress this message ('#suppress "experimental-feature"') to silence this warning.`
|
|
1128
|
+
functionDeclarations: "Function declarations are an experimental feature that may change in the future. Use with caution and consider providing feedback to the TypeSpec team."
|
|
1111
1129
|
}
|
|
1112
1130
|
},
|
|
1113
1131
|
"using-invalid-ref": {
|
|
@@ -1365,6 +1383,12 @@ var { createDiagnostic, reportDiagnostic } = createDiagnosticCreator({
|
|
|
1365
1383
|
severity: "error",
|
|
1366
1384
|
messages: { default: "Extern declaration must have an implementation in JS file." }
|
|
1367
1385
|
},
|
|
1386
|
+
"missing-extern-declaration": {
|
|
1387
|
+
severity: "error",
|
|
1388
|
+
description: "Report when a function is registered in $functions in a JS file but has no corresponding `extern fn` declaration in TypeSpec.",
|
|
1389
|
+
url: "https://typespec.io/docs/standard-library/diags/missing-extern-declaration",
|
|
1390
|
+
messages: { default: paramMessage`Function implementation "${"name"}" is exported in JS via $functions but has no corresponding 'extern fn' declaration in TypeSpec.` }
|
|
1391
|
+
},
|
|
1368
1392
|
"overload-same-parent": {
|
|
1369
1393
|
severity: "error",
|
|
1370
1394
|
messages: { default: `Overload must be in the same interface or namespace.` }
|
|
@@ -1384,6 +1408,9 @@ var { createDiagnostic, reportDiagnostic } = createDiagnosticCreator({
|
|
|
1384
1408
|
severity: "warning",
|
|
1385
1409
|
messages: { default: "The #deprecated directive cannot be used more than once on the same declaration." }
|
|
1386
1410
|
},
|
|
1411
|
+
/**
|
|
1412
|
+
* Configuration
|
|
1413
|
+
*/
|
|
1387
1414
|
"config-invalid-argument": {
|
|
1388
1415
|
severity: "error",
|
|
1389
1416
|
messages: { default: paramMessage`Argument "${"name"}" is not defined as a parameter in the config.` }
|
|
@@ -1408,6 +1435,21 @@ var { createDiagnostic, reportDiagnostic } = createDiagnosticCreator({
|
|
|
1408
1435
|
severity: "error",
|
|
1409
1436
|
messages: { default: paramMessage`No configuration file found at config path "${"path"}".` }
|
|
1410
1437
|
},
|
|
1438
|
+
"config-project-kind-filename": {
|
|
1439
|
+
severity: "error",
|
|
1440
|
+
messages: { default: paramMessage`Config with \`kind: project\` must be named "tspconfig.yaml". Found in "${"filename"}".` }
|
|
1441
|
+
},
|
|
1442
|
+
"config-project-only-option": {
|
|
1443
|
+
severity: "error",
|
|
1444
|
+
messages: { default: paramMessage`Property "${"option"}" can only be used in a project config (with \`kind: project\`).` }
|
|
1445
|
+
},
|
|
1446
|
+
"config-project-not-as-cli-config": {
|
|
1447
|
+
severity: "error",
|
|
1448
|
+
messages: { default: "`--config` cannot point to a project config (with `kind: project`). Use a non-project build config that `extends` the project config instead." }
|
|
1449
|
+
},
|
|
1450
|
+
/**
|
|
1451
|
+
* Program
|
|
1452
|
+
*/
|
|
1411
1453
|
"dynamic-import": {
|
|
1412
1454
|
severity: "error",
|
|
1413
1455
|
messages: { default: "Dynamically generated TypeSpec cannot have imports" }
|
|
@@ -1455,6 +1497,9 @@ var { createDiagnostic, reportDiagnostic } = createDiagnosticCreator({
|
|
|
1455
1497
|
severity: "error",
|
|
1456
1498
|
messages: { default: "Value interpolated in this string template cannot be converted to a string. Only literal types can be automatically interpolated." }
|
|
1457
1499
|
},
|
|
1500
|
+
/**
|
|
1501
|
+
* Binder
|
|
1502
|
+
*/
|
|
1458
1503
|
"ambiguous-symbol": {
|
|
1459
1504
|
severity: "error",
|
|
1460
1505
|
messages: { default: paramMessage`"${"name"}" is an ambiguous name between ${"duplicateNames"}. Try using fully qualified name instead: ${"duplicateNames"}` }
|
|
@@ -1463,6 +1508,9 @@ var { createDiagnostic, reportDiagnostic } = createDiagnosticCreator({
|
|
|
1463
1508
|
severity: "error",
|
|
1464
1509
|
messages: { default: paramMessage`duplicate using of "${"usingName"}" namespace` }
|
|
1465
1510
|
},
|
|
1511
|
+
/**
|
|
1512
|
+
* Library
|
|
1513
|
+
*/
|
|
1466
1514
|
"on-validate-fail": {
|
|
1467
1515
|
severity: "error",
|
|
1468
1516
|
messages: { default: paramMessage`onValidate failed with errors. ${"error"}` }
|
|
@@ -1479,6 +1527,9 @@ var { createDiagnostic, reportDiagnostic } = createDiagnosticCreator({
|
|
|
1479
1527
|
severity: "error",
|
|
1480
1528
|
messages: { default: paramMessage`Emitter '${"emitterName"}' requires '${"requiredImport"}' to be imported. Add 'import "${"requiredImport"}".` }
|
|
1481
1529
|
},
|
|
1530
|
+
/**
|
|
1531
|
+
* Linter
|
|
1532
|
+
*/
|
|
1482
1533
|
"invalid-rule-ref": {
|
|
1483
1534
|
severity: "error",
|
|
1484
1535
|
messages: { default: paramMessage`Reference "${"ref"}" is not a valid reference to a rule or ruleset. It must be in the following format: "<library-name>:<rule-name>"` }
|
|
@@ -1499,10 +1550,16 @@ var { createDiagnostic, reportDiagnostic } = createDiagnosticCreator({
|
|
|
1499
1550
|
severity: "error",
|
|
1500
1551
|
messages: { default: paramMessage`Invalid options for rule "${"ruleName"}": ${"details"}` }
|
|
1501
1552
|
},
|
|
1553
|
+
/**
|
|
1554
|
+
* Formatter
|
|
1555
|
+
*/
|
|
1502
1556
|
"format-failed": {
|
|
1503
1557
|
severity: "error",
|
|
1504
1558
|
messages: { default: paramMessage`File '${"file"}' failed to format. ${"details"}` }
|
|
1505
1559
|
},
|
|
1560
|
+
/**
|
|
1561
|
+
* Decorator
|
|
1562
|
+
*/
|
|
1506
1563
|
"invalid-pattern-regex": {
|
|
1507
1564
|
severity: "warning",
|
|
1508
1565
|
messages: { default: "@pattern decorator expects a valid regular expression pattern." }
|
|
@@ -1619,6 +1676,9 @@ var { createDiagnostic, reportDiagnostic } = createDiagnosticCreator({
|
|
|
1619
1676
|
severity: "error",
|
|
1620
1677
|
messages: { default: paramMessage`Paged operation '${"operationName"}' return type must have a property annotated with @pageItems.` }
|
|
1621
1678
|
},
|
|
1679
|
+
/**
|
|
1680
|
+
* Service
|
|
1681
|
+
*/
|
|
1622
1682
|
"service-decorator-duplicate": {
|
|
1623
1683
|
severity: "error",
|
|
1624
1684
|
messages: { default: `@service can only be set once per TypeSpec document.` }
|
|
@@ -1631,6 +1691,9 @@ var { createDiagnostic, reportDiagnostic } = createDiagnosticCreator({
|
|
|
1631
1691
|
severity: "error",
|
|
1632
1692
|
messages: { default: paramMessage`Range "${"start"}..${"end"}" is invalid.` }
|
|
1633
1693
|
},
|
|
1694
|
+
/**
|
|
1695
|
+
* Mutator
|
|
1696
|
+
*/
|
|
1634
1697
|
"add-response": {
|
|
1635
1698
|
severity: "error",
|
|
1636
1699
|
messages: { default: "Cannot add a response to anything except an operation statement." }
|
|
@@ -1716,7 +1779,7 @@ var { createDiagnostic, reportDiagnostic } = createDiagnosticCreator({
|
|
|
1716
1779
|
}
|
|
1717
1780
|
});
|
|
1718
1781
|
//#endregion
|
|
1719
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
1782
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/code.js
|
|
1720
1783
|
var require_code$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1721
1784
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1722
1785
|
exports.regexpCode = exports.getEsmExportName = exports.getProperty = exports.safeStringify = exports.stringify = exports.strConcat = exports.addCodeArg = exports.str = exports._ = exports.nil = exports._Code = exports.Name = exports.IDENTIFIER = exports._CodeOrName = void 0;
|
|
@@ -1851,7 +1914,7 @@ var require_code$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1851
1914
|
exports.regexpCode = regexpCode;
|
|
1852
1915
|
}));
|
|
1853
1916
|
//#endregion
|
|
1854
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
1917
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/scope.js
|
|
1855
1918
|
var require_scope = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1856
1919
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1857
1920
|
exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = void 0;
|
|
@@ -1988,7 +2051,7 @@ var require_scope = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1988
2051
|
exports.ValueScope = ValueScope;
|
|
1989
2052
|
}));
|
|
1990
2053
|
//#endregion
|
|
1991
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
2054
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/index.js
|
|
1992
2055
|
var require_codegen = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1993
2056
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1994
2057
|
exports.or = exports.and = exports.not = exports.CodeGen = exports.operators = exports.varKinds = exports.ValueScopeName = exports.ValueScope = exports.Scope = exports.Name = exports.regexpCode = exports.stringify = exports.getProperty = exports.nil = exports.strConcat = exports.str = exports._ = void 0;
|
|
@@ -2657,7 +2720,7 @@ var require_codegen = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2657
2720
|
}
|
|
2658
2721
|
}));
|
|
2659
2722
|
//#endregion
|
|
2660
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
2723
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/util.js
|
|
2661
2724
|
var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2662
2725
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2663
2726
|
exports.checkStrictMode = exports.getErrorPath = exports.Type = exports.useFunc = exports.setEvaluated = exports.evaluatedPropsToName = exports.mergeEvaluated = exports.eachItem = exports.unescapeJsonPointer = exports.escapeJsonPointer = exports.escapeFragment = exports.unescapeFragment = exports.schemaRefOrVal = exports.schemaHasRulesButRef = exports.schemaHasRules = exports.checkUnknownRules = exports.alwaysValidSchema = exports.toHash = void 0;
|
|
@@ -2798,7 +2861,7 @@ var require_util = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2798
2861
|
exports.checkStrictMode = checkStrictMode;
|
|
2799
2862
|
}));
|
|
2800
2863
|
//#endregion
|
|
2801
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
2864
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/names.js
|
|
2802
2865
|
var require_names = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2803
2866
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2804
2867
|
var codegen_1 = require_codegen();
|
|
@@ -2822,7 +2885,7 @@ var require_names = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2822
2885
|
};
|
|
2823
2886
|
}));
|
|
2824
2887
|
//#endregion
|
|
2825
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
2888
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/errors.js
|
|
2826
2889
|
var require_errors = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2827
2890
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2828
2891
|
exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = void 0;
|
|
@@ -2918,7 +2981,7 @@ var require_errors = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2918
2981
|
}
|
|
2919
2982
|
}));
|
|
2920
2983
|
//#endregion
|
|
2921
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
2984
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/boolSchema.js
|
|
2922
2985
|
var require_boolSchema = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2923
2986
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2924
2987
|
exports.boolOrEmptySchema = exports.topBoolOrEmptySchema = void 0;
|
|
@@ -2960,7 +3023,7 @@ var require_boolSchema = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
2960
3023
|
}
|
|
2961
3024
|
}));
|
|
2962
3025
|
//#endregion
|
|
2963
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
3026
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/rules.js
|
|
2964
3027
|
var require_rules = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
2965
3028
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2966
3029
|
exports.getRules = exports.isJSONType = void 0;
|
|
@@ -3018,7 +3081,7 @@ var require_rules = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3018
3081
|
exports.getRules = getRules;
|
|
3019
3082
|
}));
|
|
3020
3083
|
//#endregion
|
|
3021
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
3084
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/applicability.js
|
|
3022
3085
|
var require_applicability = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3023
3086
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3024
3087
|
exports.shouldUseRule = exports.shouldUseGroup = exports.schemaHasRulesForType = void 0;
|
|
@@ -3038,7 +3101,7 @@ var require_applicability = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3038
3101
|
exports.shouldUseRule = shouldUseRule;
|
|
3039
3102
|
}));
|
|
3040
3103
|
//#endregion
|
|
3041
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
3104
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/dataType.js
|
|
3042
3105
|
var require_dataType = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3043
3106
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3044
3107
|
exports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = void 0;
|
|
@@ -3202,7 +3265,7 @@ var require_dataType = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3202
3265
|
}
|
|
3203
3266
|
}));
|
|
3204
3267
|
//#endregion
|
|
3205
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
3268
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/defaults.js
|
|
3206
3269
|
var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3207
3270
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3208
3271
|
exports.assignDefaults = void 0;
|
|
@@ -3228,7 +3291,7 @@ var require_defaults = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3228
3291
|
}
|
|
3229
3292
|
}));
|
|
3230
3293
|
//#endregion
|
|
3231
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
3294
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/code.js
|
|
3232
3295
|
var require_code = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3233
3296
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3234
3297
|
exports.validateUnion = exports.validateArray = exports.usePattern = exports.callValidateCode = exports.schemaProperties = exports.allSchemaProperties = exports.noPropertyInData = exports.propertyInData = exports.isOwnProperty = exports.hasPropFunc = exports.reportMissingProp = exports.checkMissingProp = exports.checkReportMissingProp = void 0;
|
|
@@ -3352,7 +3415,7 @@ var require_code = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3352
3415
|
exports.validateUnion = validateUnion;
|
|
3353
3416
|
}));
|
|
3354
3417
|
//#endregion
|
|
3355
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
3418
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/keyword.js
|
|
3356
3419
|
var require_keyword = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3357
3420
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3358
3421
|
exports.validateKeywordUsage = exports.validSchemaType = exports.funcKeywordCode = exports.macroKeywordCode = void 0;
|
|
@@ -3458,7 +3521,7 @@ var require_keyword = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3458
3521
|
exports.validateKeywordUsage = validateKeywordUsage;
|
|
3459
3522
|
}));
|
|
3460
3523
|
//#endregion
|
|
3461
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
3524
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/subschema.js
|
|
3462
3525
|
var require_subschema = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3463
3526
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3464
3527
|
exports.extendSubschemaMode = exports.extendSubschemaData = exports.getSubschema = void 0;
|
|
@@ -3630,7 +3693,7 @@ var require_json_schema_traverse = /* @__PURE__ */ __commonJSMin(((exports, modu
|
|
|
3630
3693
|
}
|
|
3631
3694
|
}));
|
|
3632
3695
|
//#endregion
|
|
3633
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
3696
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/resolve.js
|
|
3634
3697
|
var require_resolve = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3635
3698
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3636
3699
|
exports.getSchemaRefs = exports.resolveUrl = exports.normalizeId = exports._getFullPath = exports.getFullPath = exports.inlineRef = void 0;
|
|
@@ -3757,7 +3820,7 @@ var require_resolve = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3757
3820
|
exports.getSchemaRefs = getSchemaRefs;
|
|
3758
3821
|
}));
|
|
3759
3822
|
//#endregion
|
|
3760
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
3823
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/index.js
|
|
3761
3824
|
var require_validate = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3762
3825
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3763
3826
|
exports.getData = exports.KeywordCxt = exports.validateFunctionCode = void 0;
|
|
@@ -4176,7 +4239,7 @@ var require_validate = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4176
4239
|
exports.getData = getData;
|
|
4177
4240
|
}));
|
|
4178
4241
|
//#endregion
|
|
4179
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
4242
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/validation_error.js
|
|
4180
4243
|
var require_validation_error = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4181
4244
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4182
4245
|
var ValidationError = class extends Error {
|
|
@@ -4189,7 +4252,7 @@ var require_validation_error = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4189
4252
|
exports.default = ValidationError;
|
|
4190
4253
|
}));
|
|
4191
4254
|
//#endregion
|
|
4192
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
4255
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/ref_error.js
|
|
4193
4256
|
var require_ref_error = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4194
4257
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4195
4258
|
var resolve_1 = require_resolve();
|
|
@@ -4203,7 +4266,7 @@ var require_ref_error = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4203
4266
|
exports.default = MissingRefError;
|
|
4204
4267
|
}));
|
|
4205
4268
|
//#endregion
|
|
4206
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
4269
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/index.js
|
|
4207
4270
|
var require_compile = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4208
4271
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4209
4272
|
exports.resolveSchema = exports.getCompilingSchema = exports.resolveRef = exports.compileSchema = exports.SchemaEnv = void 0;
|
|
@@ -4417,7 +4480,7 @@ var require_compile = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4417
4480
|
}
|
|
4418
4481
|
}));
|
|
4419
4482
|
//#endregion
|
|
4420
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
4483
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/data.json
|
|
4421
4484
|
var data_exports = /* @__PURE__ */ __exportAll({
|
|
4422
4485
|
$id: () => $id$1,
|
|
4423
4486
|
additionalProperties: () => false,
|
|
@@ -4446,12 +4509,18 @@ var init_data = __esmMin((() => {
|
|
|
4446
4509
|
};
|
|
4447
4510
|
}));
|
|
4448
4511
|
//#endregion
|
|
4449
|
-
//#region ../../node_modules/.pnpm/fast-uri@3.1.
|
|
4512
|
+
//#region ../../node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/utils.js
|
|
4450
4513
|
var require_utils = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4451
4514
|
/** @type {(value: string) => boolean} */
|
|
4452
4515
|
var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
|
|
4453
4516
|
/** @type {(value: string) => boolean} */
|
|
4454
4517
|
var isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
|
|
4518
|
+
/** @type {(value: string) => boolean} */
|
|
4519
|
+
var isHexPair = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu);
|
|
4520
|
+
/** @type {(value: string) => boolean} */
|
|
4521
|
+
var isUnreserved = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu);
|
|
4522
|
+
/** @type {(value: string) => boolean} */
|
|
4523
|
+
var isPathCharacter = RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);
|
|
4455
4524
|
/**
|
|
4456
4525
|
* @param {Array<string>} input
|
|
4457
4526
|
* @returns {string}
|
|
@@ -4674,19 +4743,103 @@ var require_utils = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4674
4743
|
return output.join("");
|
|
4675
4744
|
}
|
|
4676
4745
|
/**
|
|
4677
|
-
*
|
|
4678
|
-
*
|
|
4679
|
-
*
|
|
4746
|
+
* Re-escape RFC 3986 gen-delims that must not appear literally in the host.
|
|
4747
|
+
* After the URI regex parses, these characters cannot be literal in the host
|
|
4748
|
+
* field, so any that appear after decoding came from percent-encoding and
|
|
4749
|
+
* must be restored to prevent authority structure changes.
|
|
4750
|
+
*
|
|
4751
|
+
* @param {string} host
|
|
4752
|
+
* @param {boolean} isIP - true for IPv4/IPv6 hosts (skip colon re-escaping)
|
|
4753
|
+
* @returns {string}
|
|
4680
4754
|
*/
|
|
4681
|
-
|
|
4682
|
-
|
|
4683
|
-
|
|
4684
|
-
|
|
4685
|
-
|
|
4686
|
-
|
|
4687
|
-
|
|
4688
|
-
|
|
4689
|
-
|
|
4755
|
+
var HOST_DELIMS = {
|
|
4756
|
+
"@": "%40",
|
|
4757
|
+
"/": "%2F",
|
|
4758
|
+
"?": "%3F",
|
|
4759
|
+
"#": "%23",
|
|
4760
|
+
":": "%3A"
|
|
4761
|
+
};
|
|
4762
|
+
var HOST_DELIM_RE = /[@/?#:]/g;
|
|
4763
|
+
var HOST_DELIM_NO_COLON_RE = /[@/?#]/g;
|
|
4764
|
+
function reescapeHostDelimiters(host, isIP) {
|
|
4765
|
+
const re = isIP ? HOST_DELIM_NO_COLON_RE : HOST_DELIM_RE;
|
|
4766
|
+
re.lastIndex = 0;
|
|
4767
|
+
return host.replace(re, (ch) => HOST_DELIMS[ch]);
|
|
4768
|
+
}
|
|
4769
|
+
/**
|
|
4770
|
+
* Normalizes percent escapes and optionally decodes only unreserved ASCII bytes.
|
|
4771
|
+
* Reserved delimiters such as `%2F` and `%2E` stay escaped.
|
|
4772
|
+
*
|
|
4773
|
+
* @param {string} input
|
|
4774
|
+
* @param {boolean} [decodeUnreserved=false]
|
|
4775
|
+
* @returns {string}
|
|
4776
|
+
*/
|
|
4777
|
+
function normalizePercentEncoding(input, decodeUnreserved = false) {
|
|
4778
|
+
if (input.indexOf("%") === -1) return input;
|
|
4779
|
+
let output = "";
|
|
4780
|
+
for (let i = 0; i < input.length; i++) {
|
|
4781
|
+
if (input[i] === "%" && i + 2 < input.length) {
|
|
4782
|
+
const hex = input.slice(i + 1, i + 3);
|
|
4783
|
+
if (isHexPair(hex)) {
|
|
4784
|
+
const normalizedHex = hex.toUpperCase();
|
|
4785
|
+
const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
|
|
4786
|
+
if (decodeUnreserved && isUnreserved(decoded)) output += decoded;
|
|
4787
|
+
else output += "%" + normalizedHex;
|
|
4788
|
+
i += 2;
|
|
4789
|
+
continue;
|
|
4790
|
+
}
|
|
4791
|
+
}
|
|
4792
|
+
output += input[i];
|
|
4793
|
+
}
|
|
4794
|
+
return output;
|
|
4795
|
+
}
|
|
4796
|
+
/**
|
|
4797
|
+
* Normalizes path data without turning reserved escapes into live path syntax.
|
|
4798
|
+
* Valid escapes are uppercased, raw unsafe characters are escaped, and only
|
|
4799
|
+
* unreserved bytes that are not `.` are decoded.
|
|
4800
|
+
*
|
|
4801
|
+
* @param {string} input
|
|
4802
|
+
* @returns {string}
|
|
4803
|
+
*/
|
|
4804
|
+
function normalizePathEncoding(input) {
|
|
4805
|
+
let output = "";
|
|
4806
|
+
for (let i = 0; i < input.length; i++) {
|
|
4807
|
+
if (input[i] === "%" && i + 2 < input.length) {
|
|
4808
|
+
const hex = input.slice(i + 1, i + 3);
|
|
4809
|
+
if (isHexPair(hex)) {
|
|
4810
|
+
const normalizedHex = hex.toUpperCase();
|
|
4811
|
+
const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
|
|
4812
|
+
if (decoded !== "." && isUnreserved(decoded)) output += decoded;
|
|
4813
|
+
else output += "%" + normalizedHex;
|
|
4814
|
+
i += 2;
|
|
4815
|
+
continue;
|
|
4816
|
+
}
|
|
4817
|
+
}
|
|
4818
|
+
if (isPathCharacter(input[i])) output += input[i];
|
|
4819
|
+
else output += escape(input[i]);
|
|
4820
|
+
}
|
|
4821
|
+
return output;
|
|
4822
|
+
}
|
|
4823
|
+
/**
|
|
4824
|
+
* Escapes a component while preserving existing valid percent escapes.
|
|
4825
|
+
*
|
|
4826
|
+
* @param {string} input
|
|
4827
|
+
* @returns {string}
|
|
4828
|
+
*/
|
|
4829
|
+
function escapePreservingEscapes(input) {
|
|
4830
|
+
let output = "";
|
|
4831
|
+
for (let i = 0; i < input.length; i++) {
|
|
4832
|
+
if (input[i] === "%" && i + 2 < input.length) {
|
|
4833
|
+
const hex = input.slice(i + 1, i + 3);
|
|
4834
|
+
if (isHexPair(hex)) {
|
|
4835
|
+
output += "%" + hex.toUpperCase();
|
|
4836
|
+
i += 2;
|
|
4837
|
+
continue;
|
|
4838
|
+
}
|
|
4839
|
+
}
|
|
4840
|
+
output += escape(input[i]);
|
|
4841
|
+
}
|
|
4842
|
+
return output;
|
|
4690
4843
|
}
|
|
4691
4844
|
/**
|
|
4692
4845
|
* @param {import('../types/index').URIComponent} component
|
|
@@ -4703,7 +4856,7 @@ var require_utils = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4703
4856
|
if (!isIPv4(host)) {
|
|
4704
4857
|
const ipV6res = normalizeIPv6(host);
|
|
4705
4858
|
if (ipV6res.isIPV6 === true) host = `[${ipV6res.escapedHost}]`;
|
|
4706
|
-
else host =
|
|
4859
|
+
else host = reescapeHostDelimiters(host, false);
|
|
4707
4860
|
}
|
|
4708
4861
|
uriTokens.push(host);
|
|
4709
4862
|
}
|
|
@@ -4716,7 +4869,10 @@ var require_utils = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4716
4869
|
module.exports = {
|
|
4717
4870
|
nonSimpleDomain,
|
|
4718
4871
|
recomposeAuthority,
|
|
4719
|
-
|
|
4872
|
+
reescapeHostDelimiters,
|
|
4873
|
+
normalizePercentEncoding,
|
|
4874
|
+
normalizePathEncoding,
|
|
4875
|
+
escapePreservingEscapes,
|
|
4720
4876
|
removeDotSegments,
|
|
4721
4877
|
isIPv4,
|
|
4722
4878
|
isUUID,
|
|
@@ -4725,7 +4881,7 @@ var require_utils = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4725
4881
|
};
|
|
4726
4882
|
}));
|
|
4727
4883
|
//#endregion
|
|
4728
|
-
//#region ../../node_modules/.pnpm/fast-uri@3.1.
|
|
4884
|
+
//#region ../../node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/lib/schemes.js
|
|
4729
4885
|
var require_schemes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4730
4886
|
var { isUUID } = require_utils();
|
|
4731
4887
|
var URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu;
|
|
@@ -4908,9 +5064,9 @@ var require_schemes = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4908
5064
|
};
|
|
4909
5065
|
}));
|
|
4910
5066
|
//#endregion
|
|
4911
|
-
//#region ../../node_modules/.pnpm/fast-uri@3.1.
|
|
5067
|
+
//#region ../../node_modules/.pnpm/fast-uri@3.1.2/node_modules/fast-uri/index.js
|
|
4912
5068
|
var require_fast_uri = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4913
|
-
var { normalizeIPv6, removeDotSegments, recomposeAuthority,
|
|
5069
|
+
var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, escapePreservingEscapes, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
|
|
4914
5070
|
var { SCHEMES, getSchemeHandler } = require_schemes();
|
|
4915
5071
|
/**
|
|
4916
5072
|
* @template {import('./types/index').URIComponent|string} T
|
|
@@ -4919,7 +5075,7 @@ var require_fast_uri = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4919
5075
|
* @returns {T}
|
|
4920
5076
|
*/
|
|
4921
5077
|
function normalize(uri, options) {
|
|
4922
|
-
if (typeof uri === "string") uri =
|
|
5078
|
+
if (typeof uri === "string") uri = normalizeString(uri, options);
|
|
4923
5079
|
else if (typeof uri === "object") uri = parse(serialize(uri, options), options);
|
|
4924
5080
|
return uri;
|
|
4925
5081
|
}
|
|
@@ -4995,27 +5151,9 @@ var require_fast_uri = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4995
5151
|
* @returns {boolean}
|
|
4996
5152
|
*/
|
|
4997
5153
|
function equal(uriA, uriB, options) {
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
...options,
|
|
5002
|
-
skipEscape: true
|
|
5003
|
-
});
|
|
5004
|
-
} else if (typeof uriA === "object") uriA = serialize(normalizeComponentEncoding(uriA, true), {
|
|
5005
|
-
...options,
|
|
5006
|
-
skipEscape: true
|
|
5007
|
-
});
|
|
5008
|
-
if (typeof uriB === "string") {
|
|
5009
|
-
uriB = unescape(uriB);
|
|
5010
|
-
uriB = serialize(normalizeComponentEncoding(parse(uriB, options), true), {
|
|
5011
|
-
...options,
|
|
5012
|
-
skipEscape: true
|
|
5013
|
-
});
|
|
5014
|
-
} else if (typeof uriB === "object") uriB = serialize(normalizeComponentEncoding(uriB, true), {
|
|
5015
|
-
...options,
|
|
5016
|
-
skipEscape: true
|
|
5017
|
-
});
|
|
5018
|
-
return uriA.toLowerCase() === uriB.toLowerCase();
|
|
5154
|
+
const normalizedA = normalizeComparableURI(uriA, options);
|
|
5155
|
+
const normalizedB = normalizeComparableURI(uriB, options);
|
|
5156
|
+
return normalizedA !== void 0 && normalizedB !== void 0 && normalizedA.toLowerCase() === normalizedB.toLowerCase();
|
|
5019
5157
|
}
|
|
5020
5158
|
/**
|
|
5021
5159
|
* @param {Readonly<import('./types/index').URIComponent>} cmpts
|
|
@@ -5044,9 +5182,9 @@ var require_fast_uri = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5044
5182
|
const schemeHandler = getSchemeHandler(options.scheme || component.scheme);
|
|
5045
5183
|
if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(component, options);
|
|
5046
5184
|
if (component.path !== void 0) if (!options.skipEscape) {
|
|
5047
|
-
component.path =
|
|
5185
|
+
component.path = escapePreservingEscapes(component.path);
|
|
5048
5186
|
if (component.scheme !== void 0) component.path = component.path.split("%3A").join(":");
|
|
5049
|
-
} else component.path =
|
|
5187
|
+
} else component.path = normalizePercentEncoding(component.path);
|
|
5050
5188
|
if (options.reference !== "suffix" && component.scheme) uriTokens.push(component.scheme, ":");
|
|
5051
5189
|
const authority = recomposeAuthority(component);
|
|
5052
5190
|
if (authority !== void 0) {
|
|
@@ -5066,11 +5204,20 @@ var require_fast_uri = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5066
5204
|
}
|
|
5067
5205
|
var URI_PARSE = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
|
|
5068
5206
|
/**
|
|
5207
|
+
* @param {import('./types/index').URIComponent} parsed
|
|
5208
|
+
* @param {RegExpMatchArray} matches
|
|
5209
|
+
* @returns {string|undefined}
|
|
5210
|
+
*/
|
|
5211
|
+
function getParseError(parsed, matches) {
|
|
5212
|
+
if (matches[2] !== void 0 && parsed.path && parsed.path[0] !== "/") return "URI path must start with \"/\" when authority is present.";
|
|
5213
|
+
if (typeof parsed.port === "number" && (parsed.port < 0 || parsed.port > 65535)) return "URI port is malformed.";
|
|
5214
|
+
}
|
|
5215
|
+
/**
|
|
5069
5216
|
* @param {string} uri
|
|
5070
5217
|
* @param {import('./types/index').Options} [opts]
|
|
5071
|
-
* @returns
|
|
5218
|
+
* @returns {{ parsed: import('./types/index').URIComponent, malformedAuthorityOrPort: boolean }}
|
|
5072
5219
|
*/
|
|
5073
|
-
function
|
|
5220
|
+
function parseWithStatus(uri, opts) {
|
|
5074
5221
|
const options = Object.assign({}, opts);
|
|
5075
5222
|
/** @type {import('./types/index').URIComponent} */
|
|
5076
5223
|
const parsed = {
|
|
@@ -5082,6 +5229,7 @@ var require_fast_uri = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5082
5229
|
query: void 0,
|
|
5083
5230
|
fragment: void 0
|
|
5084
5231
|
};
|
|
5232
|
+
let malformedAuthorityOrPort = false;
|
|
5085
5233
|
let isIP = false;
|
|
5086
5234
|
if (options.reference === "suffix") if (options.scheme) uri = options.scheme + ":" + uri;
|
|
5087
5235
|
else uri = "//" + uri;
|
|
@@ -5095,6 +5243,11 @@ var require_fast_uri = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5095
5243
|
parsed.query = matches[7];
|
|
5096
5244
|
parsed.fragment = matches[8];
|
|
5097
5245
|
if (isNaN(parsed.port)) parsed.port = matches[5];
|
|
5246
|
+
const parseError = getParseError(parsed, matches);
|
|
5247
|
+
if (parseError !== void 0) {
|
|
5248
|
+
parsed.error = parsed.error || parseError;
|
|
5249
|
+
malformedAuthorityOrPort = true;
|
|
5250
|
+
}
|
|
5098
5251
|
if (parsed.host) if (isIPv4(parsed.host) === false) {
|
|
5099
5252
|
const ipv6result = normalizeIPv6(parsed.host);
|
|
5100
5253
|
parsed.host = ipv6result.host.toLowerCase();
|
|
@@ -5116,14 +5269,61 @@ var require_fast_uri = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5116
5269
|
if (!schemeHandler || schemeHandler && !schemeHandler.skipNormalize) {
|
|
5117
5270
|
if (uri.indexOf("%") !== -1) {
|
|
5118
5271
|
if (parsed.scheme !== void 0) parsed.scheme = unescape(parsed.scheme);
|
|
5119
|
-
if (parsed.host !== void 0) parsed.host = unescape(parsed.host);
|
|
5272
|
+
if (parsed.host !== void 0) parsed.host = reescapeHostDelimiters(unescape(parsed.host), isIP);
|
|
5273
|
+
}
|
|
5274
|
+
if (parsed.path) parsed.path = normalizePathEncoding(parsed.path);
|
|
5275
|
+
if (parsed.fragment) try {
|
|
5276
|
+
parsed.fragment = encodeURI(decodeURIComponent(parsed.fragment));
|
|
5277
|
+
} catch {
|
|
5278
|
+
parsed.error = parsed.error || "URI malformed";
|
|
5120
5279
|
}
|
|
5121
|
-
if (parsed.path) parsed.path = escape(unescape(parsed.path));
|
|
5122
|
-
if (parsed.fragment) parsed.fragment = encodeURI(decodeURIComponent(parsed.fragment));
|
|
5123
5280
|
}
|
|
5124
5281
|
if (schemeHandler && schemeHandler.parse) schemeHandler.parse(parsed, options);
|
|
5125
5282
|
} else parsed.error = parsed.error || "URI can not be parsed.";
|
|
5126
|
-
return
|
|
5283
|
+
return {
|
|
5284
|
+
parsed,
|
|
5285
|
+
malformedAuthorityOrPort
|
|
5286
|
+
};
|
|
5287
|
+
}
|
|
5288
|
+
/**
|
|
5289
|
+
* @param {string} uri
|
|
5290
|
+
* @param {import('./types/index').Options} [opts]
|
|
5291
|
+
* @returns
|
|
5292
|
+
*/
|
|
5293
|
+
function parse(uri, opts) {
|
|
5294
|
+
return parseWithStatus(uri, opts).parsed;
|
|
5295
|
+
}
|
|
5296
|
+
/**
|
|
5297
|
+
* @param {string} uri
|
|
5298
|
+
* @param {import('./types/index').Options} [opts]
|
|
5299
|
+
* @returns {string}
|
|
5300
|
+
*/
|
|
5301
|
+
function normalizeString(uri, opts) {
|
|
5302
|
+
return normalizeStringWithStatus(uri, opts).normalized;
|
|
5303
|
+
}
|
|
5304
|
+
/**
|
|
5305
|
+
* @param {string} uri
|
|
5306
|
+
* @param {import('./types/index').Options} [opts]
|
|
5307
|
+
* @returns {{ normalized: string, malformedAuthorityOrPort: boolean }}
|
|
5308
|
+
*/
|
|
5309
|
+
function normalizeStringWithStatus(uri, opts) {
|
|
5310
|
+
const { parsed, malformedAuthorityOrPort } = parseWithStatus(uri, opts);
|
|
5311
|
+
return {
|
|
5312
|
+
normalized: malformedAuthorityOrPort ? uri : serialize(parsed, opts),
|
|
5313
|
+
malformedAuthorityOrPort
|
|
5314
|
+
};
|
|
5315
|
+
}
|
|
5316
|
+
/**
|
|
5317
|
+
* @param {import ('./types/index').URIComponent|string} uri
|
|
5318
|
+
* @param {import('./types/index').Options} [opts]
|
|
5319
|
+
* @returns {string|undefined}
|
|
5320
|
+
*/
|
|
5321
|
+
function normalizeComparableURI(uri, opts) {
|
|
5322
|
+
if (typeof uri === "string") {
|
|
5323
|
+
const { normalized, malformedAuthorityOrPort } = normalizeStringWithStatus(uri, opts);
|
|
5324
|
+
return malformedAuthorityOrPort ? void 0 : normalized;
|
|
5325
|
+
}
|
|
5326
|
+
if (typeof uri === "object") return serialize(uri, opts);
|
|
5127
5327
|
}
|
|
5128
5328
|
var fastUri = {
|
|
5129
5329
|
SCHEMES,
|
|
@@ -5139,7 +5339,7 @@ var require_fast_uri = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
5139
5339
|
module.exports.fastUri = fastUri;
|
|
5140
5340
|
}));
|
|
5141
5341
|
//#endregion
|
|
5142
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
5342
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/uri.js
|
|
5143
5343
|
var require_uri = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5144
5344
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5145
5345
|
var uri = require_fast_uri();
|
|
@@ -5147,7 +5347,7 @@ var require_uri = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5147
5347
|
exports.default = uri;
|
|
5148
5348
|
}));
|
|
5149
5349
|
//#endregion
|
|
5150
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
5350
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/core.js
|
|
5151
5351
|
var require_core$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5152
5352
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5153
5353
|
exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0;
|
|
@@ -5289,7 +5489,7 @@ var require_core$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5289
5489
|
constructor(opts = {}) {
|
|
5290
5490
|
this.schemas = {};
|
|
5291
5491
|
this.refs = {};
|
|
5292
|
-
this.formats =
|
|
5492
|
+
this.formats = Object.create(null);
|
|
5293
5493
|
this._compilations = /* @__PURE__ */ new Set();
|
|
5294
5494
|
this._loading = {};
|
|
5295
5495
|
this._cache = /* @__PURE__ */ new Map();
|
|
@@ -5716,7 +5916,7 @@ var require_core$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5716
5916
|
}
|
|
5717
5917
|
}));
|
|
5718
5918
|
//#endregion
|
|
5719
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
5919
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/id.js
|
|
5720
5920
|
var require_id = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5721
5921
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5722
5922
|
exports.default = {
|
|
@@ -5727,7 +5927,7 @@ var require_id = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5727
5927
|
};
|
|
5728
5928
|
}));
|
|
5729
5929
|
//#endregion
|
|
5730
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
5930
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/ref.js
|
|
5731
5931
|
var require_ref = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5732
5932
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5733
5933
|
exports.callRef = exports.getValidate = void 0;
|
|
@@ -5830,7 +6030,7 @@ var require_ref = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5830
6030
|
exports.default = def;
|
|
5831
6031
|
}));
|
|
5832
6032
|
//#endregion
|
|
5833
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
6033
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/index.js
|
|
5834
6034
|
var require_core = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5835
6035
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5836
6036
|
var id_1 = require_id();
|
|
@@ -5847,7 +6047,7 @@ var require_core = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5847
6047
|
];
|
|
5848
6048
|
}));
|
|
5849
6049
|
//#endregion
|
|
5850
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
6050
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js
|
|
5851
6051
|
var require_limitNumber = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5852
6052
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5853
6053
|
var codegen_1 = require_codegen();
|
|
@@ -5890,7 +6090,7 @@ var require_limitNumber = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5890
6090
|
};
|
|
5891
6091
|
}));
|
|
5892
6092
|
//#endregion
|
|
5893
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
6093
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js
|
|
5894
6094
|
var require_multipleOf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5895
6095
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5896
6096
|
var codegen_1 = require_codegen();
|
|
@@ -5913,7 +6113,7 @@ var require_multipleOf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5913
6113
|
};
|
|
5914
6114
|
}));
|
|
5915
6115
|
//#endregion
|
|
5916
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
6116
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js
|
|
5917
6117
|
var require_ucs2length = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5918
6118
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5919
6119
|
function ucs2length(str) {
|
|
@@ -5935,7 +6135,7 @@ var require_ucs2length = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5935
6135
|
ucs2length.code = "require(\"ajv/dist/runtime/ucs2length\").default";
|
|
5936
6136
|
}));
|
|
5937
6137
|
//#endregion
|
|
5938
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
6138
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js
|
|
5939
6139
|
var require_limitLength = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5940
6140
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5941
6141
|
var codegen_1 = require_codegen();
|
|
@@ -5962,7 +6162,7 @@ var require_limitLength = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5962
6162
|
};
|
|
5963
6163
|
}));
|
|
5964
6164
|
//#endregion
|
|
5965
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
6165
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/pattern.js
|
|
5966
6166
|
var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5967
6167
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5968
6168
|
var code_1 = require_code();
|
|
@@ -5994,7 +6194,7 @@ var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5994
6194
|
};
|
|
5995
6195
|
}));
|
|
5996
6196
|
//#endregion
|
|
5997
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
6197
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js
|
|
5998
6198
|
var require_limitProperties = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5999
6199
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6000
6200
|
var codegen_1 = require_codegen();
|
|
@@ -6018,7 +6218,7 @@ var require_limitProperties = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6018
6218
|
};
|
|
6019
6219
|
}));
|
|
6020
6220
|
//#endregion
|
|
6021
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
6221
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/required.js
|
|
6022
6222
|
var require_required = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6023
6223
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6024
6224
|
var code_1 = require_code();
|
|
@@ -6084,7 +6284,7 @@ var require_required = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6084
6284
|
};
|
|
6085
6285
|
}));
|
|
6086
6286
|
//#endregion
|
|
6087
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
6287
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js
|
|
6088
6288
|
var require_limitItems = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6089
6289
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6090
6290
|
var codegen_1 = require_codegen();
|
|
@@ -6108,7 +6308,7 @@ var require_limitItems = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6108
6308
|
};
|
|
6109
6309
|
}));
|
|
6110
6310
|
//#endregion
|
|
6111
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
6311
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/equal.js
|
|
6112
6312
|
var require_equal = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6113
6313
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6114
6314
|
var equal = require_fast_deep_equal();
|
|
@@ -6116,7 +6316,7 @@ var require_equal = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6116
6316
|
exports.default = equal;
|
|
6117
6317
|
}));
|
|
6118
6318
|
//#endregion
|
|
6119
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
6319
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
|
|
6120
6320
|
var require_uniqueItems = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6121
6321
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6122
6322
|
var dataType_1 = require_dataType();
|
|
@@ -6179,7 +6379,7 @@ var require_uniqueItems = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6179
6379
|
};
|
|
6180
6380
|
}));
|
|
6181
6381
|
//#endregion
|
|
6182
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
6382
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/const.js
|
|
6183
6383
|
var require_const = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6184
6384
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6185
6385
|
var codegen_1 = require_codegen();
|
|
@@ -6200,7 +6400,7 @@ var require_const = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6200
6400
|
};
|
|
6201
6401
|
}));
|
|
6202
6402
|
//#endregion
|
|
6203
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
6403
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/enum.js
|
|
6204
6404
|
var require_enum = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6205
6405
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6206
6406
|
var codegen_1 = require_codegen();
|
|
@@ -6243,7 +6443,7 @@ var require_enum = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6243
6443
|
};
|
|
6244
6444
|
}));
|
|
6245
6445
|
//#endregion
|
|
6246
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
6446
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/index.js
|
|
6247
6447
|
var require_validation = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6248
6448
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6249
6449
|
var limitNumber_1 = require_limitNumber();
|
|
@@ -6278,7 +6478,7 @@ var require_validation = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6278
6478
|
];
|
|
6279
6479
|
}));
|
|
6280
6480
|
//#endregion
|
|
6281
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
6481
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
|
|
6282
6482
|
var require_additionalItems = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6283
6483
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6284
6484
|
exports.validateAdditionalItems = void 0;
|
|
@@ -6330,7 +6530,7 @@ var require_additionalItems = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6330
6530
|
exports.default = def;
|
|
6331
6531
|
}));
|
|
6332
6532
|
//#endregion
|
|
6333
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
6533
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items.js
|
|
6334
6534
|
var require_items = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6335
6535
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6336
6536
|
exports.validateTuple = void 0;
|
|
@@ -6383,7 +6583,7 @@ var require_items = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6383
6583
|
exports.default = def;
|
|
6384
6584
|
}));
|
|
6385
6585
|
//#endregion
|
|
6386
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
6586
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
|
|
6387
6587
|
var require_prefixItems = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6388
6588
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6389
6589
|
var items_1 = require_items();
|
|
@@ -6396,7 +6596,7 @@ var require_prefixItems = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6396
6596
|
};
|
|
6397
6597
|
}));
|
|
6398
6598
|
//#endregion
|
|
6399
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
6599
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js
|
|
6400
6600
|
var require_items2020 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6401
6601
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6402
6602
|
var codegen_1 = require_codegen();
|
|
@@ -6423,7 +6623,7 @@ var require_items2020 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6423
6623
|
};
|
|
6424
6624
|
}));
|
|
6425
6625
|
//#endregion
|
|
6426
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
6626
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/contains.js
|
|
6427
6627
|
var require_contains = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6428
6628
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6429
6629
|
var codegen_1 = require_codegen();
|
|
@@ -6507,7 +6707,7 @@ var require_contains = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6507
6707
|
};
|
|
6508
6708
|
}));
|
|
6509
6709
|
//#endregion
|
|
6510
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
6710
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js
|
|
6511
6711
|
var require_dependencies = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6512
6712
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6513
6713
|
exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = void 0;
|
|
@@ -6588,7 +6788,7 @@ var require_dependencies = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6588
6788
|
exports.default = def;
|
|
6589
6789
|
}));
|
|
6590
6790
|
//#endregion
|
|
6591
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
6791
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
|
|
6592
6792
|
var require_propertyNames = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6593
6793
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6594
6794
|
var codegen_1 = require_codegen();
|
|
@@ -6624,7 +6824,7 @@ var require_propertyNames = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6624
6824
|
};
|
|
6625
6825
|
}));
|
|
6626
6826
|
//#endregion
|
|
6627
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
6827
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
|
|
6628
6828
|
var require_additionalProperties = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6629
6829
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6630
6830
|
var code_1 = require_code();
|
|
@@ -6713,7 +6913,7 @@ var require_additionalProperties = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6713
6913
|
};
|
|
6714
6914
|
}));
|
|
6715
6915
|
//#endregion
|
|
6716
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
6916
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/properties.js
|
|
6717
6917
|
var require_properties = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6718
6918
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6719
6919
|
var validate_1 = require_validate();
|
|
@@ -6758,7 +6958,7 @@ var require_properties = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6758
6958
|
};
|
|
6759
6959
|
}));
|
|
6760
6960
|
//#endregion
|
|
6761
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
6961
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
|
|
6762
6962
|
var require_patternProperties = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6763
6963
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6764
6964
|
var code_1 = require_code();
|
|
@@ -6813,7 +7013,7 @@ var require_patternProperties = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6813
7013
|
};
|
|
6814
7014
|
}));
|
|
6815
7015
|
//#endregion
|
|
6816
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
7016
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/not.js
|
|
6817
7017
|
var require_not = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6818
7018
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6819
7019
|
var util_1 = require_util();
|
|
@@ -6840,7 +7040,7 @@ var require_not = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6840
7040
|
};
|
|
6841
7041
|
}));
|
|
6842
7042
|
//#endregion
|
|
6843
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
7043
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js
|
|
6844
7044
|
var require_anyOf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6845
7045
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6846
7046
|
exports.default = {
|
|
@@ -6852,7 +7052,7 @@ var require_anyOf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6852
7052
|
};
|
|
6853
7053
|
}));
|
|
6854
7054
|
//#endregion
|
|
6855
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
7055
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js
|
|
6856
7056
|
var require_oneOf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6857
7057
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6858
7058
|
var codegen_1 = require_codegen();
|
|
@@ -6898,7 +7098,7 @@ var require_oneOf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6898
7098
|
};
|
|
6899
7099
|
}));
|
|
6900
7100
|
//#endregion
|
|
6901
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
7101
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js
|
|
6902
7102
|
var require_allOf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6903
7103
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6904
7104
|
var util_1 = require_util();
|
|
@@ -6923,7 +7123,7 @@ var require_allOf = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6923
7123
|
};
|
|
6924
7124
|
}));
|
|
6925
7125
|
//#endregion
|
|
6926
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
7126
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/if.js
|
|
6927
7127
|
var require_if = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6928
7128
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6929
7129
|
var codegen_1 = require_codegen();
|
|
@@ -6980,7 +7180,7 @@ var require_if = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6980
7180
|
exports.default = def;
|
|
6981
7181
|
}));
|
|
6982
7182
|
//#endregion
|
|
6983
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
7183
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js
|
|
6984
7184
|
var require_thenElse = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6985
7185
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6986
7186
|
var util_1 = require_util();
|
|
@@ -6993,7 +7193,7 @@ var require_thenElse = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
6993
7193
|
};
|
|
6994
7194
|
}));
|
|
6995
7195
|
//#endregion
|
|
6996
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
7196
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/index.js
|
|
6997
7197
|
var require_applicator = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
6998
7198
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6999
7199
|
var additionalItems_1 = require_additionalItems();
|
|
@@ -7034,7 +7234,7 @@ var require_applicator = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
7034
7234
|
exports.default = getApplicator;
|
|
7035
7235
|
}));
|
|
7036
7236
|
//#endregion
|
|
7037
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
7237
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/format.js
|
|
7038
7238
|
var require_format$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
7039
7239
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7040
7240
|
var codegen_1 = require_codegen();
|
|
@@ -7122,13 +7322,13 @@ var require_format$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
7122
7322
|
};
|
|
7123
7323
|
}));
|
|
7124
7324
|
//#endregion
|
|
7125
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
7325
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/index.js
|
|
7126
7326
|
var require_format = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
7127
7327
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7128
7328
|
exports.default = [require_format$1().default];
|
|
7129
7329
|
}));
|
|
7130
7330
|
//#endregion
|
|
7131
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
7331
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/metadata.js
|
|
7132
7332
|
var require_metadata = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
7133
7333
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7134
7334
|
exports.contentVocabulary = exports.metadataVocabulary = void 0;
|
|
@@ -7148,7 +7348,7 @@ var require_metadata = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
7148
7348
|
];
|
|
7149
7349
|
}));
|
|
7150
7350
|
//#endregion
|
|
7151
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
7351
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/draft7.js
|
|
7152
7352
|
var require_draft7 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
7153
7353
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7154
7354
|
var core_1 = require_core();
|
|
@@ -7166,7 +7366,7 @@ var require_draft7 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
7166
7366
|
];
|
|
7167
7367
|
}));
|
|
7168
7368
|
//#endregion
|
|
7169
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
7369
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/types.js
|
|
7170
7370
|
var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
7171
7371
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7172
7372
|
exports.DiscrError = void 0;
|
|
@@ -7177,7 +7377,7 @@ var require_types = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
7177
7377
|
})(DiscrError || (exports.DiscrError = DiscrError = {}));
|
|
7178
7378
|
}));
|
|
7179
7379
|
//#endregion
|
|
7180
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
7380
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/index.js
|
|
7181
7381
|
var require_discriminator = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
7182
7382
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7183
7383
|
var codegen_1 = require_codegen();
|
|
@@ -7270,7 +7470,7 @@ var require_discriminator = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
7270
7470
|
};
|
|
7271
7471
|
}));
|
|
7272
7472
|
//#endregion
|
|
7273
|
-
//#region ../../node_modules/.pnpm/ajv@8.
|
|
7473
|
+
//#region ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-draft-07.json
|
|
7274
7474
|
var json_schema_draft_07_exports = /* @__PURE__ */ __exportAll({
|
|
7275
7475
|
$id: () => $id,
|
|
7276
7476
|
$schema: () => $schema,
|
|
@@ -7424,7 +7624,7 @@ var init_json_schema_draft_07 = __esmMin((() => {
|
|
|
7424
7624
|
};
|
|
7425
7625
|
}));
|
|
7426
7626
|
//#endregion
|
|
7427
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
7627
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/identity.js
|
|
7428
7628
|
var import_ajv = (/* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
7429
7629
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7430
7630
|
exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv = void 0;
|
|
@@ -7546,7 +7746,7 @@ function isNode(node) {
|
|
|
7546
7746
|
}
|
|
7547
7747
|
var hasAnchor = (node) => (isScalar(node) || isCollection(node)) && !!node.anchor;
|
|
7548
7748
|
//#endregion
|
|
7549
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
7749
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/visit.js
|
|
7550
7750
|
var BREAK$1 = Symbol("break visit");
|
|
7551
7751
|
var SKIP$1 = Symbol("skip children");
|
|
7552
7752
|
var REMOVE$1 = Symbol("remove node");
|
|
@@ -7731,7 +7931,7 @@ function replaceNode(key, path, node) {
|
|
|
7731
7931
|
}
|
|
7732
7932
|
}
|
|
7733
7933
|
//#endregion
|
|
7734
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
7934
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/doc/directives.js
|
|
7735
7935
|
var escapeChars = {
|
|
7736
7936
|
"!": "%21",
|
|
7737
7937
|
",": "%2C",
|
|
@@ -7891,7 +8091,7 @@ Directives.defaultYaml = {
|
|
|
7891
8091
|
};
|
|
7892
8092
|
Directives.defaultTags = { "!!": "tag:yaml.org,2002:" };
|
|
7893
8093
|
//#endregion
|
|
7894
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
8094
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/doc/anchors.js
|
|
7895
8095
|
/**
|
|
7896
8096
|
* Verify that the input string is a valid anchor.
|
|
7897
8097
|
*
|
|
@@ -7905,7 +8105,7 @@ function anchorIsValid(anchor) {
|
|
|
7905
8105
|
return true;
|
|
7906
8106
|
}
|
|
7907
8107
|
//#endregion
|
|
7908
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
8108
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/doc/applyReviver.js
|
|
7909
8109
|
/**
|
|
7910
8110
|
* Applies the JSON.parse reviver algorithm as defined in the ECMA-262 spec,
|
|
7911
8111
|
* in section 24.5.1.1 "Runtime Semantics: InternalizeJSONProperty" of the
|
|
@@ -7942,7 +8142,7 @@ function applyReviver(reviver, obj, key, val) {
|
|
|
7942
8142
|
return reviver.call(obj, key, val);
|
|
7943
8143
|
}
|
|
7944
8144
|
//#endregion
|
|
7945
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
8145
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/toJS.js
|
|
7946
8146
|
/**
|
|
7947
8147
|
* Recursively convert any node or its contents to native JavaScript
|
|
7948
8148
|
*
|
|
@@ -7975,7 +8175,7 @@ function toJS(value, arg, ctx) {
|
|
|
7975
8175
|
return value;
|
|
7976
8176
|
}
|
|
7977
8177
|
//#endregion
|
|
7978
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
8178
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Node.js
|
|
7979
8179
|
var NodeBase = class {
|
|
7980
8180
|
constructor(type) {
|
|
7981
8181
|
Object.defineProperty(this, NODE_TYPE, { value: type });
|
|
@@ -8003,7 +8203,7 @@ var NodeBase = class {
|
|
|
8003
8203
|
}
|
|
8004
8204
|
};
|
|
8005
8205
|
//#endregion
|
|
8006
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
8206
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Alias.js
|
|
8007
8207
|
var Alias = class extends NodeBase {
|
|
8008
8208
|
constructor(source) {
|
|
8009
8209
|
super(ALIAS);
|
|
@@ -8017,6 +8217,7 @@ var Alias = class extends NodeBase {
|
|
|
8017
8217
|
* instance of the `source` anchor before this node.
|
|
8018
8218
|
*/
|
|
8019
8219
|
resolve(doc, ctx) {
|
|
8220
|
+
if (ctx?.maxAliasCount === 0) throw new ReferenceError("Alias resolution is disabled");
|
|
8020
8221
|
let nodes;
|
|
8021
8222
|
if (ctx?.aliasResolveCache) nodes = ctx.aliasResolveCache;
|
|
8022
8223
|
else {
|
|
@@ -8088,7 +8289,7 @@ function getAliasCount(doc, node, anchors) {
|
|
|
8088
8289
|
return 1;
|
|
8089
8290
|
}
|
|
8090
8291
|
//#endregion
|
|
8091
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
8292
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Scalar.js
|
|
8092
8293
|
var isScalarValue = (value) => !value || typeof value !== "function" && typeof value !== "object";
|
|
8093
8294
|
var Scalar = class extends NodeBase {
|
|
8094
8295
|
constructor(value) {
|
|
@@ -8108,7 +8309,7 @@ Scalar.PLAIN = "PLAIN";
|
|
|
8108
8309
|
Scalar.QUOTE_DOUBLE = "QUOTE_DOUBLE";
|
|
8109
8310
|
Scalar.QUOTE_SINGLE = "QUOTE_SINGLE";
|
|
8110
8311
|
//#endregion
|
|
8111
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
8312
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/doc/createNode.js
|
|
8112
8313
|
var defaultTagPrefix = "tag:yaml.org,2002:";
|
|
8113
8314
|
function findTagObject(value, tagName, tags) {
|
|
8114
8315
|
if (tagName) {
|
|
@@ -8165,7 +8366,7 @@ function createNode(value, tagName, ctx) {
|
|
|
8165
8366
|
return node;
|
|
8166
8367
|
}
|
|
8167
8368
|
//#endregion
|
|
8168
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
8369
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Collection.js
|
|
8169
8370
|
function collectionFromPath(schema, path, value) {
|
|
8170
8371
|
let v = value;
|
|
8171
8372
|
for (let i = path.length - 1; i >= 0; --i) {
|
|
@@ -8278,7 +8479,7 @@ var Collection = class extends NodeBase {
|
|
|
8278
8479
|
}
|
|
8279
8480
|
};
|
|
8280
8481
|
//#endregion
|
|
8281
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
8482
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyComment.js
|
|
8282
8483
|
/**
|
|
8283
8484
|
* Stringifies a comment.
|
|
8284
8485
|
*
|
|
@@ -8293,7 +8494,7 @@ function indentComment(comment, indent) {
|
|
|
8293
8494
|
}
|
|
8294
8495
|
var lineComment = (str, indent, comment) => str.endsWith("\n") ? indentComment(comment, indent) : comment.includes("\n") ? "\n" + indentComment(comment, indent) : (str.endsWith(" ") ? "" : " ") + comment;
|
|
8295
8496
|
//#endregion
|
|
8296
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
8497
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/foldFlowLines.js
|
|
8297
8498
|
var FOLD_FLOW = "flow";
|
|
8298
8499
|
var FOLD_BLOCK = "block";
|
|
8299
8500
|
var FOLD_QUOTED = "quoted";
|
|
@@ -8403,7 +8604,7 @@ function consumeMoreIndentedLines(text, i, indent) {
|
|
|
8403
8604
|
return end;
|
|
8404
8605
|
}
|
|
8405
8606
|
//#endregion
|
|
8406
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
8607
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyString.js
|
|
8407
8608
|
var getFoldOptions = (ctx, isBlock) => ({
|
|
8408
8609
|
indentAtStart: isBlock ? ctx.indent.length : ctx.indentAtStart,
|
|
8409
8610
|
lineWidth: ctx.options.lineWidth,
|
|
@@ -8622,7 +8823,7 @@ function stringifyString(item, ctx, onComment, onChompKeep) {
|
|
|
8622
8823
|
return res;
|
|
8623
8824
|
}
|
|
8624
8825
|
//#endregion
|
|
8625
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
8826
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringify.js
|
|
8626
8827
|
function createStringifyContext(doc, options) {
|
|
8627
8828
|
const opt = Object.assign({
|
|
8628
8829
|
blockQuote: true,
|
|
@@ -8722,7 +8923,7 @@ function stringify$1(item, ctx, onComment, onChompKeep) {
|
|
|
8722
8923
|
return isScalar(node) || str[0] === "{" || str[0] === "[" ? `${props} ${str}` : `${props}\n${ctx.indent}${str}`;
|
|
8723
8924
|
}
|
|
8724
8925
|
//#endregion
|
|
8725
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
8926
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyPair.js
|
|
8726
8927
|
function stringifyPair({ key, value }, ctx, onComment, onChompKeep) {
|
|
8727
8928
|
const { allNullValues, doc, indent, indentStep, options: { commentString, indentSeq, simpleKeys } } = ctx;
|
|
8728
8929
|
let keyComment = isNode(key) && key.comment || null;
|
|
@@ -8812,12 +9013,12 @@ function stringifyPair({ key, value }, ctx, onComment, onChompKeep) {
|
|
|
8812
9013
|
return str;
|
|
8813
9014
|
}
|
|
8814
9015
|
//#endregion
|
|
8815
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
9016
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/log.js
|
|
8816
9017
|
function warn(logLevel, warning) {
|
|
8817
9018
|
if (logLevel === "debug" || logLevel === "warn") console.warn(warning);
|
|
8818
9019
|
}
|
|
8819
9020
|
//#endregion
|
|
8820
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
9021
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/merge.js
|
|
8821
9022
|
var MERGE_KEY = "<<";
|
|
8822
9023
|
var merge = {
|
|
8823
9024
|
identify: (value) => value === MERGE_KEY || typeof value === "symbol" && value.description === MERGE_KEY,
|
|
@@ -8829,13 +9030,13 @@ var merge = {
|
|
|
8829
9030
|
};
|
|
8830
9031
|
var isMergeKey = (ctx, key) => (merge.identify(key) || isScalar(key) && (!key.type || key.type === Scalar.PLAIN) && merge.identify(key.value)) && ctx?.doc.schema.tags.some((tag) => tag.tag === merge.tag && tag.default);
|
|
8831
9032
|
function addMergeToJSMap(ctx, map, value) {
|
|
8832
|
-
|
|
8833
|
-
if (isSeq(
|
|
8834
|
-
else if (Array.isArray(
|
|
8835
|
-
else mergeValue(ctx, map,
|
|
9033
|
+
const source = resolveAliasValue(ctx, value);
|
|
9034
|
+
if (isSeq(source)) for (const it of source.items) mergeValue(ctx, map, it);
|
|
9035
|
+
else if (Array.isArray(source)) for (const it of source) mergeValue(ctx, map, it);
|
|
9036
|
+
else mergeValue(ctx, map, source);
|
|
8836
9037
|
}
|
|
8837
9038
|
function mergeValue(ctx, map, value) {
|
|
8838
|
-
const source = ctx
|
|
9039
|
+
const source = resolveAliasValue(ctx, value);
|
|
8839
9040
|
if (!isMap(source)) throw new Error("Merge sources must be maps or map aliases");
|
|
8840
9041
|
const srcMap = source.toJSON(null, ctx, Map);
|
|
8841
9042
|
for (const [key, value] of srcMap) if (map instanceof Map) {
|
|
@@ -8849,8 +9050,11 @@ function mergeValue(ctx, map, value) {
|
|
|
8849
9050
|
});
|
|
8850
9051
|
return map;
|
|
8851
9052
|
}
|
|
9053
|
+
function resolveAliasValue(ctx, value) {
|
|
9054
|
+
return ctx && isAlias(value) ? value.resolve(ctx.doc, ctx) : value;
|
|
9055
|
+
}
|
|
8852
9056
|
//#endregion
|
|
8853
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
9057
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/addPairToJSMap.js
|
|
8854
9058
|
function addPairToJSMap(ctx, map, { key, value }) {
|
|
8855
9059
|
if (isNode(key) && key.addToJSMap) key.addToJSMap(ctx, map, value);
|
|
8856
9060
|
else if (isMergeKey(ctx, key)) addMergeToJSMap(ctx, map, value);
|
|
@@ -8893,7 +9097,7 @@ function stringifyKey(key, jsKey, ctx) {
|
|
|
8893
9097
|
return JSON.stringify(jsKey);
|
|
8894
9098
|
}
|
|
8895
9099
|
//#endregion
|
|
8896
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
9100
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/Pair.js
|
|
8897
9101
|
function createPair(key, value, ctx) {
|
|
8898
9102
|
return new Pair(createNode(key, void 0, ctx), createNode(value, void 0, ctx));
|
|
8899
9103
|
}
|
|
@@ -8917,7 +9121,7 @@ var Pair = class Pair {
|
|
|
8917
9121
|
}
|
|
8918
9122
|
};
|
|
8919
9123
|
//#endregion
|
|
8920
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
9124
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/stringify/stringifyCollection.js
|
|
8921
9125
|
function stringifyCollection(collection, ctx, options) {
|
|
8922
9126
|
return (ctx.inFlow ?? collection.flow ? stringifyFlowCollection : stringifyBlockCollection)(collection, ctx, options);
|
|
8923
9127
|
}
|
|
@@ -9029,7 +9233,7 @@ function addCommentBefore({ indent, options: { commentString } }, lines, comment
|
|
|
9029
9233
|
}
|
|
9030
9234
|
}
|
|
9031
9235
|
//#endregion
|
|
9032
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
9236
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/YAMLMap.js
|
|
9033
9237
|
function findPair(items, key) {
|
|
9034
9238
|
const k = isScalar(key) ? key.value : key;
|
|
9035
9239
|
for (const it of items) if (isPair(it)) {
|
|
@@ -9128,7 +9332,7 @@ var YAMLMap = class extends Collection {
|
|
|
9128
9332
|
}
|
|
9129
9333
|
};
|
|
9130
9334
|
//#endregion
|
|
9131
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
9335
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/common/map.js
|
|
9132
9336
|
var map = {
|
|
9133
9337
|
collection: "map",
|
|
9134
9338
|
default: true,
|
|
@@ -9141,7 +9345,7 @@ var map = {
|
|
|
9141
9345
|
createNode: (schema, obj, ctx) => YAMLMap.from(schema, obj, ctx)
|
|
9142
9346
|
};
|
|
9143
9347
|
//#endregion
|
|
9144
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
9348
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/nodes/YAMLSeq.js
|
|
9145
9349
|
var YAMLSeq = class extends Collection {
|
|
9146
9350
|
static get tagName() {
|
|
9147
9351
|
return "tag:yaml.org,2002:seq";
|
|
@@ -9238,7 +9442,7 @@ function asItemIndex(key) {
|
|
|
9238
9442
|
return typeof idx === "number" && Number.isInteger(idx) && idx >= 0 ? idx : null;
|
|
9239
9443
|
}
|
|
9240
9444
|
//#endregion
|
|
9241
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
9445
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/common/seq.js
|
|
9242
9446
|
var seq = {
|
|
9243
9447
|
collection: "seq",
|
|
9244
9448
|
default: true,
|
|
@@ -9251,7 +9455,7 @@ var seq = {
|
|
|
9251
9455
|
createNode: (schema, obj, ctx) => YAMLSeq.from(schema, obj, ctx)
|
|
9252
9456
|
};
|
|
9253
9457
|
//#endregion
|
|
9254
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
9458
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/json/schema.js
|
|
9255
9459
|
function intIdentify(value) {
|
|
9256
9460
|
return typeof value === "bigint" || Number.isInteger(value);
|
|
9257
9461
|
}
|
|
@@ -9308,7 +9512,7 @@ var jsonScalars = [
|
|
|
9308
9512
|
}
|
|
9309
9513
|
});
|
|
9310
9514
|
//#endregion
|
|
9311
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
9515
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/pairs.js
|
|
9312
9516
|
function createPairs(schema, iterable, ctx) {
|
|
9313
9517
|
const { replacer } = ctx;
|
|
9314
9518
|
const pairs = new YAMLSeq(schema);
|
|
@@ -9333,7 +9537,7 @@ function createPairs(schema, iterable, ctx) {
|
|
|
9333
9537
|
return pairs;
|
|
9334
9538
|
}
|
|
9335
9539
|
//#endregion
|
|
9336
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
9540
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/omap.js
|
|
9337
9541
|
var YAMLOMap = class YAMLOMap extends YAMLSeq {
|
|
9338
9542
|
constructor() {
|
|
9339
9543
|
super();
|
|
@@ -9372,7 +9576,7 @@ var YAMLOMap = class YAMLOMap extends YAMLSeq {
|
|
|
9372
9576
|
};
|
|
9373
9577
|
YAMLOMap.tag = "tag:yaml.org,2002:omap";
|
|
9374
9578
|
//#endregion
|
|
9375
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
9579
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/schema/yaml-1.1/set.js
|
|
9376
9580
|
var YAMLSet = class YAMLSet extends YAMLMap {
|
|
9377
9581
|
constructor(schema) {
|
|
9378
9582
|
super(schema);
|
|
@@ -9419,7 +9623,7 @@ var YAMLSet = class YAMLSet extends YAMLMap {
|
|
|
9419
9623
|
};
|
|
9420
9624
|
YAMLSet.tag = "tag:yaml.org,2002:set";
|
|
9421
9625
|
//#endregion
|
|
9422
|
-
//#region ../../node_modules/.pnpm/yaml@2.
|
|
9626
|
+
//#region ../../node_modules/.pnpm/yaml@2.9.0/node_modules/yaml/browser/dist/parse/cst-visit.js
|
|
9423
9627
|
var BREAK = Symbol("break visit");
|
|
9424
9628
|
var SKIP = Symbol("skip children");
|
|
9425
9629
|
var REMOVE = Symbol("remove item");
|
|
@@ -9917,6 +10121,15 @@ var TypeSpecConfigJsonSchema = {
|
|
|
9917
10121
|
type: "string",
|
|
9918
10122
|
nullable: true
|
|
9919
10123
|
},
|
|
10124
|
+
kind: {
|
|
10125
|
+
type: "string",
|
|
10126
|
+
enum: ["project"],
|
|
10127
|
+
nullable: true
|
|
10128
|
+
},
|
|
10129
|
+
entrypoint: {
|
|
10130
|
+
type: "string",
|
|
10131
|
+
nullable: true
|
|
10132
|
+
},
|
|
9920
10133
|
"environment-variables": {
|
|
9921
10134
|
type: "object",
|
|
9922
10135
|
nullable: true,
|
|
@@ -13667,6 +13880,12 @@ function hasVisibility(program, property, modifier) {
|
|
|
13667
13880
|
}
|
|
13668
13881
|
var VISIBILITY_FILTER = Symbol.for("TypeSpec.Core.VisibilityFilter");
|
|
13669
13882
|
var VisibilityFilter = {
|
|
13883
|
+
/**
|
|
13884
|
+
* Convert a TypeSpec `GeneratedVisibilityFilter` value to a `VisibilityFilter`.
|
|
13885
|
+
*
|
|
13886
|
+
* @param filter - the decorator argument filter to convert
|
|
13887
|
+
* @returns a `VisibilityFilter` object that can be consumed by the visibility APIs
|
|
13888
|
+
*/
|
|
13670
13889
|
fromDecoratorArgument(filter) {
|
|
13671
13890
|
return filter[VISIBILITY_FILTER] ??= {
|
|
13672
13891
|
all: filter.all && new Set(filter.all.map((v) => v.value)),
|
|
@@ -13674,6 +13893,13 @@ var VisibilityFilter = {
|
|
|
13674
13893
|
none: filter.none && new Set(filter.none.map((v) => v.value))
|
|
13675
13894
|
};
|
|
13676
13895
|
},
|
|
13896
|
+
/**
|
|
13897
|
+
* Extracts the unique visibility classes referred to by the modifiers in a
|
|
13898
|
+
* visibility filter.
|
|
13899
|
+
*
|
|
13900
|
+
* @param filter - the visibility filter to extract visibility classes from
|
|
13901
|
+
* @returns a set of visibility classes referred to by the filter
|
|
13902
|
+
*/
|
|
13677
13903
|
getVisibilityClasses(filter) {
|
|
13678
13904
|
const classes = /* @__PURE__ */ new Set();
|
|
13679
13905
|
if (filter.all) filter.all.forEach((v) => classes.add(v.enum));
|
|
@@ -13681,6 +13907,12 @@ var VisibilityFilter = {
|
|
|
13681
13907
|
if (filter.none) filter.none.forEach((v) => classes.add(v.enum));
|
|
13682
13908
|
return classes;
|
|
13683
13909
|
},
|
|
13910
|
+
/**
|
|
13911
|
+
* Converts a visibility filter into a stable string representation.
|
|
13912
|
+
*
|
|
13913
|
+
* This can be used as a cache key for the filter that will be stable for filters that are not object-identical but
|
|
13914
|
+
* are semantically identical.
|
|
13915
|
+
*/
|
|
13684
13916
|
toCacheKey(program, filter) {
|
|
13685
13917
|
return visibilityFilterToCacheKey(program, filter);
|
|
13686
13918
|
}
|
|
@@ -16167,7 +16399,7 @@ var ResolutionKind;
|
|
|
16167
16399
|
var emittedFilesPerProgramKey = Symbol.for("TYPESPEC_EMITTED_FILES_PATHS");
|
|
16168
16400
|
if (globalThis[emittedFilesPerProgramKey] === void 0) globalThis[emittedFilesPerProgramKey] = /* @__PURE__ */ new WeakMap();
|
|
16169
16401
|
//#endregion
|
|
16170
|
-
//#region ../../node_modules/.pnpm/prettier@3.8.
|
|
16402
|
+
//#region ../../node_modules/.pnpm/prettier@3.8.3/node_modules/prettier/standalone.mjs
|
|
16171
16403
|
var Zn = Object.create;
|
|
16172
16404
|
var Mt = Object.defineProperty;
|
|
16173
16405
|
var eo = Object.getOwnPropertyDescriptor;
|
|
@@ -19610,7 +19842,7 @@ var Wa = {
|
|
|
19610
19842
|
replaceEndOfLine: Ju,
|
|
19611
19843
|
canBreak: Hu
|
|
19612
19844
|
};
|
|
19613
|
-
var Mn = "3.8.
|
|
19845
|
+
var Mn = "3.8.3";
|
|
19614
19846
|
var Pu = {};
|
|
19615
19847
|
Yt(Pu, {
|
|
19616
19848
|
addDanglingComment: () => ue,
|
|
@@ -19765,7 +19997,7 @@ var fi = me(it, 0), li = {
|
|
|
19765
19997
|
printDocToString: me(Ln)
|
|
19766
19998
|
};
|
|
19767
19999
|
//#endregion
|
|
19768
|
-
//#region ../../node_modules/.pnpm/prettier@3.8.
|
|
20000
|
+
//#region ../../node_modules/.pnpm/prettier@3.8.3/node_modules/prettier/doc.mjs
|
|
19769
20001
|
var __defProp = Object.defineProperty;
|
|
19770
20002
|
var __export = (target, all) => {
|
|
19771
20003
|
for (var name in all) __defProp(target, name, {
|
|
@@ -20837,9 +21069,13 @@ globalThis[globalLibraryUrlsLoadedSym];
|
|
|
20837
21069
|
//#region ../compiler/dist/src/manifest.js
|
|
20838
21070
|
var manifest;
|
|
20839
21071
|
try {
|
|
20840
|
-
manifest = (await import("../manifest-
|
|
21072
|
+
manifest = (await import("../manifest-BNef1S5o.js")).default;
|
|
20841
21073
|
} catch {
|
|
20842
|
-
manifest = (await import(
|
|
21074
|
+
manifest = (await import(
|
|
21075
|
+
/* @vite-ignore */
|
|
21076
|
+
/* webpackIgnore: true */
|
|
21077
|
+
["../dist", "manifest.js"].join("/")
|
|
21078
|
+
)).default;
|
|
20843
21079
|
}
|
|
20844
21080
|
manifest.version;
|
|
20845
21081
|
//#endregion
|
|
@@ -22571,7 +22807,7 @@ var require_connection$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22571
22807
|
const toCancel = messageQueue.get(key);
|
|
22572
22808
|
if (messages_1.Message.isRequest(toCancel)) {
|
|
22573
22809
|
const strategy = options?.connectionStrategy;
|
|
22574
|
-
const response = strategy && strategy.cancelUndispatched ? strategy.cancelUndispatched(toCancel, cancelUndispatched) :
|
|
22810
|
+
const response = strategy && strategy.cancelUndispatched ? strategy.cancelUndispatched(toCancel, cancelUndispatched) : void 0;
|
|
22575
22811
|
if (response && (response.error !== void 0 || response.result !== void 0)) {
|
|
22576
22812
|
messageQueue.delete(key);
|
|
22577
22813
|
requestTokens.delete(cancelId);
|
|
@@ -29941,120 +30177,6 @@ var require_main = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
29941
30177
|
resolvePath(void 0, "templates");
|
|
29942
30178
|
({ ...TypeSpecConfigJsonSchema });
|
|
29943
30179
|
//#endregion
|
|
29944
|
-
//#region ../../node_modules/.pnpm/change-case@5.4.4/node_modules/change-case/dist/index.js
|
|
29945
|
-
var SPLIT_LOWER_UPPER_RE = /([\p{Ll}\d])(\p{Lu})/gu;
|
|
29946
|
-
var SPLIT_UPPER_UPPER_RE = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
|
|
29947
|
-
var SPLIT_SEPARATE_NUMBER_RE = /(\d)\p{Ll}|(\p{L})\d/u;
|
|
29948
|
-
var DEFAULT_STRIP_REGEXP = /[^\p{L}\d]+/giu;
|
|
29949
|
-
var SPLIT_REPLACE_VALUE = "$1\0$2";
|
|
29950
|
-
var DEFAULT_PREFIX_SUFFIX_CHARACTERS = "";
|
|
29951
|
-
/**
|
|
29952
|
-
* Split any cased input strings into an array of words.
|
|
29953
|
-
*/
|
|
29954
|
-
function split(value) {
|
|
29955
|
-
let result = value.trim();
|
|
29956
|
-
result = result.replace(SPLIT_LOWER_UPPER_RE, SPLIT_REPLACE_VALUE).replace(SPLIT_UPPER_UPPER_RE, SPLIT_REPLACE_VALUE);
|
|
29957
|
-
result = result.replace(DEFAULT_STRIP_REGEXP, "\0");
|
|
29958
|
-
let start = 0;
|
|
29959
|
-
let end = result.length;
|
|
29960
|
-
while (result.charAt(start) === "\0") start++;
|
|
29961
|
-
if (start === end) return [];
|
|
29962
|
-
while (result.charAt(end - 1) === "\0") end--;
|
|
29963
|
-
return result.slice(start, end).split(/\0/g);
|
|
29964
|
-
}
|
|
29965
|
-
/**
|
|
29966
|
-
* Split the input string into an array of words, separating numbers.
|
|
29967
|
-
*/
|
|
29968
|
-
function splitSeparateNumbers(value) {
|
|
29969
|
-
const words = split(value);
|
|
29970
|
-
for (let i = 0; i < words.length; i++) {
|
|
29971
|
-
const word = words[i];
|
|
29972
|
-
const match = SPLIT_SEPARATE_NUMBER_RE.exec(word);
|
|
29973
|
-
if (match) {
|
|
29974
|
-
const offset = match.index + (match[1] ?? match[2]).length;
|
|
29975
|
-
words.splice(i, 1, word.slice(0, offset), word.slice(offset));
|
|
29976
|
-
}
|
|
29977
|
-
}
|
|
29978
|
-
return words;
|
|
29979
|
-
}
|
|
29980
|
-
/**
|
|
29981
|
-
* Convert a string to space separated lower case (`foo bar`).
|
|
29982
|
-
*/
|
|
29983
|
-
function noCase(input, options) {
|
|
29984
|
-
const [prefix, words, suffix] = splitPrefixSuffix(input, options);
|
|
29985
|
-
return prefix + words.map(lowerFactory(options?.locale)).join(options?.delimiter ?? " ") + suffix;
|
|
29986
|
-
}
|
|
29987
|
-
/**
|
|
29988
|
-
* Convert a string to camel case (`fooBar`).
|
|
29989
|
-
*/
|
|
29990
|
-
function camelCase(input, options) {
|
|
29991
|
-
const [prefix, words, suffix] = splitPrefixSuffix(input, options);
|
|
29992
|
-
const lower = lowerFactory(options?.locale);
|
|
29993
|
-
const upper = upperFactory(options?.locale);
|
|
29994
|
-
const transform = options?.mergeAmbiguousCharacters ? capitalCaseTransformFactory(lower, upper) : pascalCaseTransformFactory(lower, upper);
|
|
29995
|
-
return prefix + words.map((word, index) => {
|
|
29996
|
-
if (index === 0) return lower(word);
|
|
29997
|
-
return transform(word, index);
|
|
29998
|
-
}).join(options?.delimiter ?? "") + suffix;
|
|
29999
|
-
}
|
|
30000
|
-
/**
|
|
30001
|
-
* Convert a string to pascal case (`FooBar`).
|
|
30002
|
-
*/
|
|
30003
|
-
function pascalCase(input, options) {
|
|
30004
|
-
const [prefix, words, suffix] = splitPrefixSuffix(input, options);
|
|
30005
|
-
const lower = lowerFactory(options?.locale);
|
|
30006
|
-
const upper = upperFactory(options?.locale);
|
|
30007
|
-
const transform = options?.mergeAmbiguousCharacters ? capitalCaseTransformFactory(lower, upper) : pascalCaseTransformFactory(lower, upper);
|
|
30008
|
-
return prefix + words.map(transform).join(options?.delimiter ?? "") + suffix;
|
|
30009
|
-
}
|
|
30010
|
-
/**
|
|
30011
|
-
* Convert a string to kebab case (`foo-bar`).
|
|
30012
|
-
*/
|
|
30013
|
-
function kebabCase(input, options) {
|
|
30014
|
-
return noCase(input, {
|
|
30015
|
-
delimiter: "-",
|
|
30016
|
-
...options
|
|
30017
|
-
});
|
|
30018
|
-
}
|
|
30019
|
-
function lowerFactory(locale) {
|
|
30020
|
-
return locale === false ? (input) => input.toLowerCase() : (input) => input.toLocaleLowerCase(locale);
|
|
30021
|
-
}
|
|
30022
|
-
function upperFactory(locale) {
|
|
30023
|
-
return locale === false ? (input) => input.toUpperCase() : (input) => input.toLocaleUpperCase(locale);
|
|
30024
|
-
}
|
|
30025
|
-
function capitalCaseTransformFactory(lower, upper) {
|
|
30026
|
-
return (word) => `${upper(word[0])}${lower(word.slice(1))}`;
|
|
30027
|
-
}
|
|
30028
|
-
function pascalCaseTransformFactory(lower, upper) {
|
|
30029
|
-
return (word, index) => {
|
|
30030
|
-
const char0 = word[0];
|
|
30031
|
-
return (index > 0 && char0 >= "0" && char0 <= "9" ? "_" + char0 : upper(char0)) + lower(word.slice(1));
|
|
30032
|
-
};
|
|
30033
|
-
}
|
|
30034
|
-
function splitPrefixSuffix(input, options = {}) {
|
|
30035
|
-
const splitFn = options.split ?? (options.separateNumbers ? splitSeparateNumbers : split);
|
|
30036
|
-
const prefixCharacters = options.prefixCharacters ?? DEFAULT_PREFIX_SUFFIX_CHARACTERS;
|
|
30037
|
-
const suffixCharacters = options.suffixCharacters ?? DEFAULT_PREFIX_SUFFIX_CHARACTERS;
|
|
30038
|
-
let prefixIndex = 0;
|
|
30039
|
-
let suffixIndex = input.length;
|
|
30040
|
-
while (prefixIndex < input.length) {
|
|
30041
|
-
const char = input.charAt(prefixIndex);
|
|
30042
|
-
if (!prefixCharacters.includes(char)) break;
|
|
30043
|
-
prefixIndex++;
|
|
30044
|
-
}
|
|
30045
|
-
while (suffixIndex > prefixIndex) {
|
|
30046
|
-
const index = suffixIndex - 1;
|
|
30047
|
-
const char = input.charAt(index);
|
|
30048
|
-
if (!suffixCharacters.includes(char)) break;
|
|
30049
|
-
suffixIndex = index;
|
|
30050
|
-
}
|
|
30051
|
-
return [
|
|
30052
|
-
input.slice(0, prefixIndex),
|
|
30053
|
-
splitFn(input.slice(prefixIndex, suffixIndex)),
|
|
30054
|
-
input.slice(suffixIndex)
|
|
30055
|
-
];
|
|
30056
|
-
}
|
|
30057
|
-
//#endregion
|
|
30058
30180
|
//#region ../../node_modules/.pnpm/mustache@4.2.0/node_modules/mustache/mustache.mjs
|
|
30059
30181
|
/*!
|
|
30060
30182
|
* mustache.js - Logic-less {{mustache}} templates with JavaScript
|
|
@@ -30596,9 +30718,17 @@ var mustache = {
|
|
|
30596
30718
|
Scanner: void 0,
|
|
30597
30719
|
Context: void 0,
|
|
30598
30720
|
Writer: void 0,
|
|
30721
|
+
/**
|
|
30722
|
+
* Allows a user to override the default caching strategy, by providing an
|
|
30723
|
+
* object with set, get and clear methods. This can also be used to disable
|
|
30724
|
+
* the cache by setting it to the literal `undefined`.
|
|
30725
|
+
*/
|
|
30599
30726
|
set templateCache(cache) {
|
|
30600
30727
|
defaultWriter.templateCache = cache;
|
|
30601
30728
|
},
|
|
30729
|
+
/**
|
|
30730
|
+
* Gets the default or overridden caching object from the default writer.
|
|
30731
|
+
*/
|
|
30602
30732
|
get templateCache() {
|
|
30603
30733
|
return defaultWriter.templateCache;
|
|
30604
30734
|
}
|
|
@@ -30630,28 +30760,6 @@ mustache.escape = escapeHtml;
|
|
|
30630
30760
|
mustache.Scanner = Scanner;
|
|
30631
30761
|
mustache.Context = Context;
|
|
30632
30762
|
mustache.Writer = Writer;
|
|
30633
|
-
createNamingUtils(camelCase), createNamingUtils(kebabCase), createNamingUtils(pascalCase);
|
|
30634
|
-
function createNamingUtils(fn) {
|
|
30635
|
-
return () => (text, render) => fn(render(text));
|
|
30636
|
-
}
|
|
30637
|
-
`
|
|
30638
|
-
# extends: ../tspconfig.yaml # Extend another config file
|
|
30639
|
-
# emit: # Emitter name
|
|
30640
|
-
# - "<emitter-name"
|
|
30641
|
-
# options: # Emitter options
|
|
30642
|
-
# <emitter-name>:
|
|
30643
|
-
# "<option-name>": "<option-value>"
|
|
30644
|
-
# environment-variables: # Environment variables which can be used to interpolate emitter options
|
|
30645
|
-
# <variable-name>:
|
|
30646
|
-
# default: "<variable-default>"
|
|
30647
|
-
# parameters: # Parameters which can be used to interpolate emitter options
|
|
30648
|
-
# <param-name>:
|
|
30649
|
-
# default: "<param-default>"
|
|
30650
|
-
# trace: # Trace areas to enable tracing
|
|
30651
|
-
# - "<trace-name>"
|
|
30652
|
-
# warn-as-error: true # Treat warnings as errors
|
|
30653
|
-
# output-dir: "{project-root}/_generated" # Configure the base output directory for all emitters
|
|
30654
|
-
`.trim();
|
|
30655
30763
|
`
|
|
30656
30764
|
# MacOS
|
|
30657
30765
|
.DS_Store
|