@agentproto/adapter-pi 0.3.10 → 0.3.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +919 -699
- package/dist/index.mjs.map +1 -1
- package/dist/mcp-bridge-extension.mjs +919 -699
- package/dist/mcp-bridge-extension.mjs.map +1 -1
- package/package.json +6 -6
package/dist/index.mjs
CHANGED
|
@@ -61,17 +61,17 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
61
61
|
|
|
62
62
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/code.js
|
|
63
63
|
var require_code = __commonJS({
|
|
64
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/code.js"(exports
|
|
65
|
-
Object.defineProperty(exports
|
|
66
|
-
exports
|
|
64
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/code.js"(exports) {
|
|
65
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
66
|
+
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;
|
|
67
67
|
var _CodeOrName = class {
|
|
68
68
|
};
|
|
69
|
-
exports
|
|
70
|
-
exports
|
|
69
|
+
exports._CodeOrName = _CodeOrName;
|
|
70
|
+
exports.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
|
|
71
71
|
var Name = class extends _CodeOrName {
|
|
72
72
|
constructor(s) {
|
|
73
73
|
super();
|
|
74
|
-
if (!exports
|
|
74
|
+
if (!exports.IDENTIFIER.test(s))
|
|
75
75
|
throw new Error("CodeGen: name must be a valid identifier");
|
|
76
76
|
this.str = s;
|
|
77
77
|
}
|
|
@@ -85,7 +85,7 @@ var require_code = __commonJS({
|
|
|
85
85
|
return { [this.str]: 1 };
|
|
86
86
|
}
|
|
87
87
|
};
|
|
88
|
-
exports
|
|
88
|
+
exports.Name = Name;
|
|
89
89
|
var _Code = class extends _CodeOrName {
|
|
90
90
|
constructor(code) {
|
|
91
91
|
super();
|
|
@@ -113,8 +113,8 @@ var require_code = __commonJS({
|
|
|
113
113
|
}, {});
|
|
114
114
|
}
|
|
115
115
|
};
|
|
116
|
-
exports
|
|
117
|
-
exports
|
|
116
|
+
exports._Code = _Code;
|
|
117
|
+
exports.nil = new _Code("");
|
|
118
118
|
function _(strs, ...args) {
|
|
119
119
|
const code = [strs[0]];
|
|
120
120
|
let i = 0;
|
|
@@ -124,7 +124,7 @@ var require_code = __commonJS({
|
|
|
124
124
|
}
|
|
125
125
|
return new _Code(code);
|
|
126
126
|
}
|
|
127
|
-
exports
|
|
127
|
+
exports._ = _;
|
|
128
128
|
var plus = new _Code("+");
|
|
129
129
|
function str(strs, ...args) {
|
|
130
130
|
const expr = [safeStringify(strs[0])];
|
|
@@ -137,7 +137,7 @@ var require_code = __commonJS({
|
|
|
137
137
|
optimize(expr);
|
|
138
138
|
return new _Code(expr);
|
|
139
139
|
}
|
|
140
|
-
exports
|
|
140
|
+
exports.str = str;
|
|
141
141
|
function addCodeArg(code, arg) {
|
|
142
142
|
if (arg instanceof _Code)
|
|
143
143
|
code.push(...arg._items);
|
|
@@ -146,7 +146,7 @@ var require_code = __commonJS({
|
|
|
146
146
|
else
|
|
147
147
|
code.push(interpolate(arg));
|
|
148
148
|
}
|
|
149
|
-
exports
|
|
149
|
+
exports.addCodeArg = addCodeArg;
|
|
150
150
|
function optimize(expr) {
|
|
151
151
|
let i = 1;
|
|
152
152
|
while (i < expr.length - 1) {
|
|
@@ -182,41 +182,41 @@ var require_code = __commonJS({
|
|
|
182
182
|
function strConcat(c1, c2) {
|
|
183
183
|
return c2.emptyStr() ? c1 : c1.emptyStr() ? c2 : str`${c1}${c2}`;
|
|
184
184
|
}
|
|
185
|
-
exports
|
|
185
|
+
exports.strConcat = strConcat;
|
|
186
186
|
function interpolate(x) {
|
|
187
187
|
return typeof x == "number" || typeof x == "boolean" || x === null ? x : safeStringify(Array.isArray(x) ? x.join(",") : x);
|
|
188
188
|
}
|
|
189
189
|
function stringify(x) {
|
|
190
190
|
return new _Code(safeStringify(x));
|
|
191
191
|
}
|
|
192
|
-
exports
|
|
192
|
+
exports.stringify = stringify;
|
|
193
193
|
function safeStringify(x) {
|
|
194
194
|
return JSON.stringify(x).replace(/\u2028/g, "\\u2028").replace(/\u2029/g, "\\u2029");
|
|
195
195
|
}
|
|
196
|
-
exports
|
|
196
|
+
exports.safeStringify = safeStringify;
|
|
197
197
|
function getProperty(key) {
|
|
198
|
-
return typeof key == "string" && exports
|
|
198
|
+
return typeof key == "string" && exports.IDENTIFIER.test(key) ? new _Code(`.${key}`) : _`[${key}]`;
|
|
199
199
|
}
|
|
200
|
-
exports
|
|
200
|
+
exports.getProperty = getProperty;
|
|
201
201
|
function getEsmExportName(key) {
|
|
202
|
-
if (typeof key == "string" && exports
|
|
202
|
+
if (typeof key == "string" && exports.IDENTIFIER.test(key)) {
|
|
203
203
|
return new _Code(`${key}`);
|
|
204
204
|
}
|
|
205
205
|
throw new Error(`CodeGen: invalid export name: ${key}, use explicit $id name mapping`);
|
|
206
206
|
}
|
|
207
|
-
exports
|
|
207
|
+
exports.getEsmExportName = getEsmExportName;
|
|
208
208
|
function regexpCode(rx) {
|
|
209
209
|
return new _Code(rx.toString());
|
|
210
210
|
}
|
|
211
|
-
exports
|
|
211
|
+
exports.regexpCode = regexpCode;
|
|
212
212
|
}
|
|
213
213
|
});
|
|
214
214
|
|
|
215
215
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/scope.js
|
|
216
216
|
var require_scope = __commonJS({
|
|
217
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/scope.js"(exports
|
|
218
|
-
Object.defineProperty(exports
|
|
219
|
-
exports
|
|
217
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/scope.js"(exports) {
|
|
218
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
219
|
+
exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = void 0;
|
|
220
220
|
var code_1 = require_code();
|
|
221
221
|
var ValueError = class extends Error {
|
|
222
222
|
constructor(name) {
|
|
@@ -228,8 +228,8 @@ var require_scope = __commonJS({
|
|
|
228
228
|
(function(UsedValueState2) {
|
|
229
229
|
UsedValueState2[UsedValueState2["Started"] = 0] = "Started";
|
|
230
230
|
UsedValueState2[UsedValueState2["Completed"] = 1] = "Completed";
|
|
231
|
-
})(UsedValueState || (exports
|
|
232
|
-
exports
|
|
231
|
+
})(UsedValueState || (exports.UsedValueState = UsedValueState = {}));
|
|
232
|
+
exports.varKinds = {
|
|
233
233
|
const: new code_1.Name("const"),
|
|
234
234
|
let: new code_1.Name("let"),
|
|
235
235
|
var: new code_1.Name("var")
|
|
@@ -258,7 +258,7 @@ var require_scope = __commonJS({
|
|
|
258
258
|
return this._names[prefix] = { prefix, index: 0 };
|
|
259
259
|
}
|
|
260
260
|
};
|
|
261
|
-
exports
|
|
261
|
+
exports.Scope = Scope;
|
|
262
262
|
var ValueScopeName = class extends code_1.Name {
|
|
263
263
|
constructor(prefix, nameStr) {
|
|
264
264
|
super(nameStr);
|
|
@@ -269,7 +269,7 @@ var require_scope = __commonJS({
|
|
|
269
269
|
this.scopePath = (0, code_1._)`.${new code_1.Name(property)}[${itemIndex}]`;
|
|
270
270
|
}
|
|
271
271
|
};
|
|
272
|
-
exports
|
|
272
|
+
exports.ValueScopeName = ValueScopeName;
|
|
273
273
|
var line = (0, code_1._)`\n`;
|
|
274
274
|
var ValueScope = class extends Scope {
|
|
275
275
|
constructor(opts) {
|
|
@@ -339,7 +339,7 @@ var require_scope = __commonJS({
|
|
|
339
339
|
nameSet.set(name, UsedValueState.Started);
|
|
340
340
|
let c = valueCode(name);
|
|
341
341
|
if (c) {
|
|
342
|
-
const def = this.opts.es5 ? exports
|
|
342
|
+
const def = this.opts.es5 ? exports.varKinds.var : exports.varKinds.const;
|
|
343
343
|
code = (0, code_1._)`${code}${def} ${name} = ${c};${this.opts._n}`;
|
|
344
344
|
} else if (c = getCode === null || getCode === void 0 ? void 0 : getCode(name)) {
|
|
345
345
|
code = (0, code_1._)`${code}${c}${this.opts._n}`;
|
|
@@ -352,56 +352,56 @@ var require_scope = __commonJS({
|
|
|
352
352
|
return code;
|
|
353
353
|
}
|
|
354
354
|
};
|
|
355
|
-
exports
|
|
355
|
+
exports.ValueScope = ValueScope;
|
|
356
356
|
}
|
|
357
357
|
});
|
|
358
358
|
|
|
359
359
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/index.js
|
|
360
360
|
var require_codegen = __commonJS({
|
|
361
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/index.js"(exports
|
|
362
|
-
Object.defineProperty(exports
|
|
363
|
-
exports
|
|
361
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/index.js"(exports) {
|
|
362
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
363
|
+
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;
|
|
364
364
|
var code_1 = require_code();
|
|
365
365
|
var scope_1 = require_scope();
|
|
366
366
|
var code_2 = require_code();
|
|
367
|
-
Object.defineProperty(exports
|
|
367
|
+
Object.defineProperty(exports, "_", { enumerable: true, get: function() {
|
|
368
368
|
return code_2._;
|
|
369
369
|
} });
|
|
370
|
-
Object.defineProperty(exports
|
|
370
|
+
Object.defineProperty(exports, "str", { enumerable: true, get: function() {
|
|
371
371
|
return code_2.str;
|
|
372
372
|
} });
|
|
373
|
-
Object.defineProperty(exports
|
|
373
|
+
Object.defineProperty(exports, "strConcat", { enumerable: true, get: function() {
|
|
374
374
|
return code_2.strConcat;
|
|
375
375
|
} });
|
|
376
|
-
Object.defineProperty(exports
|
|
376
|
+
Object.defineProperty(exports, "nil", { enumerable: true, get: function() {
|
|
377
377
|
return code_2.nil;
|
|
378
378
|
} });
|
|
379
|
-
Object.defineProperty(exports
|
|
379
|
+
Object.defineProperty(exports, "getProperty", { enumerable: true, get: function() {
|
|
380
380
|
return code_2.getProperty;
|
|
381
381
|
} });
|
|
382
|
-
Object.defineProperty(exports
|
|
382
|
+
Object.defineProperty(exports, "stringify", { enumerable: true, get: function() {
|
|
383
383
|
return code_2.stringify;
|
|
384
384
|
} });
|
|
385
|
-
Object.defineProperty(exports
|
|
385
|
+
Object.defineProperty(exports, "regexpCode", { enumerable: true, get: function() {
|
|
386
386
|
return code_2.regexpCode;
|
|
387
387
|
} });
|
|
388
|
-
Object.defineProperty(exports
|
|
388
|
+
Object.defineProperty(exports, "Name", { enumerable: true, get: function() {
|
|
389
389
|
return code_2.Name;
|
|
390
390
|
} });
|
|
391
391
|
var scope_2 = require_scope();
|
|
392
|
-
Object.defineProperty(exports
|
|
392
|
+
Object.defineProperty(exports, "Scope", { enumerable: true, get: function() {
|
|
393
393
|
return scope_2.Scope;
|
|
394
394
|
} });
|
|
395
|
-
Object.defineProperty(exports
|
|
395
|
+
Object.defineProperty(exports, "ValueScope", { enumerable: true, get: function() {
|
|
396
396
|
return scope_2.ValueScope;
|
|
397
397
|
} });
|
|
398
|
-
Object.defineProperty(exports
|
|
398
|
+
Object.defineProperty(exports, "ValueScopeName", { enumerable: true, get: function() {
|
|
399
399
|
return scope_2.ValueScopeName;
|
|
400
400
|
} });
|
|
401
|
-
Object.defineProperty(exports
|
|
401
|
+
Object.defineProperty(exports, "varKinds", { enumerable: true, get: function() {
|
|
402
402
|
return scope_2.varKinds;
|
|
403
403
|
} });
|
|
404
|
-
exports
|
|
404
|
+
exports.operators = {
|
|
405
405
|
GT: new code_1._Code(">"),
|
|
406
406
|
GTE: new code_1._Code(">="),
|
|
407
407
|
LT: new code_1._Code("<"),
|
|
@@ -814,7 +814,7 @@ var require_codegen = __commonJS({
|
|
|
814
814
|
}
|
|
815
815
|
// `+=` code
|
|
816
816
|
add(lhs, rhs) {
|
|
817
|
-
return this._leafNode(new AssignOp(lhs, exports
|
|
817
|
+
return this._leafNode(new AssignOp(lhs, exports.operators.ADD, rhs));
|
|
818
818
|
}
|
|
819
819
|
// appends passed SafeExpr to code or executes Block
|
|
820
820
|
code(c) {
|
|
@@ -1014,7 +1014,7 @@ var require_codegen = __commonJS({
|
|
|
1014
1014
|
ns[ns.length - 1] = node2;
|
|
1015
1015
|
}
|
|
1016
1016
|
};
|
|
1017
|
-
exports
|
|
1017
|
+
exports.CodeGen = CodeGen;
|
|
1018
1018
|
function addNames(names, from) {
|
|
1019
1019
|
for (const n in from)
|
|
1020
1020
|
names[n] = (names[n] || 0) + (from[n] || 0);
|
|
@@ -1055,17 +1055,17 @@ var require_codegen = __commonJS({
|
|
|
1055
1055
|
function not(x) {
|
|
1056
1056
|
return typeof x == "boolean" || typeof x == "number" || x === null ? !x : (0, code_1._)`!${par(x)}`;
|
|
1057
1057
|
}
|
|
1058
|
-
exports
|
|
1059
|
-
var andCode = mappend(exports
|
|
1058
|
+
exports.not = not;
|
|
1059
|
+
var andCode = mappend(exports.operators.AND);
|
|
1060
1060
|
function and(...args) {
|
|
1061
1061
|
return args.reduce(andCode);
|
|
1062
1062
|
}
|
|
1063
|
-
exports
|
|
1064
|
-
var orCode = mappend(exports
|
|
1063
|
+
exports.and = and;
|
|
1064
|
+
var orCode = mappend(exports.operators.OR);
|
|
1065
1065
|
function or(...args) {
|
|
1066
1066
|
return args.reduce(orCode);
|
|
1067
1067
|
}
|
|
1068
|
-
exports
|
|
1068
|
+
exports.or = or;
|
|
1069
1069
|
function mappend(op) {
|
|
1070
1070
|
return (x, y) => x === code_1.nil ? y : y === code_1.nil ? x : (0, code_1._)`${par(x)} ${op} ${par(y)}`;
|
|
1071
1071
|
}
|
|
@@ -1077,9 +1077,9 @@ var require_codegen = __commonJS({
|
|
|
1077
1077
|
|
|
1078
1078
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/util.js
|
|
1079
1079
|
var require_util = __commonJS({
|
|
1080
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/util.js"(exports
|
|
1081
|
-
Object.defineProperty(exports
|
|
1082
|
-
exports
|
|
1080
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/util.js"(exports) {
|
|
1081
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1082
|
+
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;
|
|
1083
1083
|
var codegen_1 = require_codegen();
|
|
1084
1084
|
var code_1 = require_code();
|
|
1085
1085
|
function toHash(arr) {
|
|
@@ -1088,7 +1088,7 @@ var require_util = __commonJS({
|
|
|
1088
1088
|
hash[item] = true;
|
|
1089
1089
|
return hash;
|
|
1090
1090
|
}
|
|
1091
|
-
exports
|
|
1091
|
+
exports.toHash = toHash;
|
|
1092
1092
|
function alwaysValidSchema(it, schema) {
|
|
1093
1093
|
if (typeof schema == "boolean")
|
|
1094
1094
|
return schema;
|
|
@@ -1097,7 +1097,7 @@ var require_util = __commonJS({
|
|
|
1097
1097
|
checkUnknownRules(it, schema);
|
|
1098
1098
|
return !schemaHasRules(schema, it.self.RULES.all);
|
|
1099
1099
|
}
|
|
1100
|
-
exports
|
|
1100
|
+
exports.alwaysValidSchema = alwaysValidSchema;
|
|
1101
1101
|
function checkUnknownRules(it, schema = it.schema) {
|
|
1102
1102
|
const { opts, self } = it;
|
|
1103
1103
|
if (!opts.strictSchema)
|
|
@@ -1110,7 +1110,7 @@ var require_util = __commonJS({
|
|
|
1110
1110
|
checkStrictMode(it, `unknown keyword: "${key}"`);
|
|
1111
1111
|
}
|
|
1112
1112
|
}
|
|
1113
|
-
exports
|
|
1113
|
+
exports.checkUnknownRules = checkUnknownRules;
|
|
1114
1114
|
function schemaHasRules(schema, rules) {
|
|
1115
1115
|
if (typeof schema == "boolean")
|
|
1116
1116
|
return !schema;
|
|
@@ -1119,7 +1119,7 @@ var require_util = __commonJS({
|
|
|
1119
1119
|
return true;
|
|
1120
1120
|
return false;
|
|
1121
1121
|
}
|
|
1122
|
-
exports
|
|
1122
|
+
exports.schemaHasRules = schemaHasRules;
|
|
1123
1123
|
function schemaHasRulesButRef(schema, RULES) {
|
|
1124
1124
|
if (typeof schema == "boolean")
|
|
1125
1125
|
return !schema;
|
|
@@ -1128,7 +1128,7 @@ var require_util = __commonJS({
|
|
|
1128
1128
|
return true;
|
|
1129
1129
|
return false;
|
|
1130
1130
|
}
|
|
1131
|
-
exports
|
|
1131
|
+
exports.schemaHasRulesButRef = schemaHasRulesButRef;
|
|
1132
1132
|
function schemaRefOrVal({ topSchemaRef, schemaPath }, schema, keyword, $data) {
|
|
1133
1133
|
if (!$data) {
|
|
1134
1134
|
if (typeof schema == "number" || typeof schema == "boolean")
|
|
@@ -1138,25 +1138,25 @@ var require_util = __commonJS({
|
|
|
1138
1138
|
}
|
|
1139
1139
|
return (0, codegen_1._)`${topSchemaRef}${schemaPath}${(0, codegen_1.getProperty)(keyword)}`;
|
|
1140
1140
|
}
|
|
1141
|
-
exports
|
|
1141
|
+
exports.schemaRefOrVal = schemaRefOrVal;
|
|
1142
1142
|
function unescapeFragment(str) {
|
|
1143
1143
|
return unescapeJsonPointer(decodeURIComponent(str));
|
|
1144
1144
|
}
|
|
1145
|
-
exports
|
|
1145
|
+
exports.unescapeFragment = unescapeFragment;
|
|
1146
1146
|
function escapeFragment(str) {
|
|
1147
1147
|
return encodeURIComponent(escapeJsonPointer(str));
|
|
1148
1148
|
}
|
|
1149
|
-
exports
|
|
1149
|
+
exports.escapeFragment = escapeFragment;
|
|
1150
1150
|
function escapeJsonPointer(str) {
|
|
1151
1151
|
if (typeof str == "number")
|
|
1152
1152
|
return `${str}`;
|
|
1153
1153
|
return str.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
1154
1154
|
}
|
|
1155
|
-
exports
|
|
1155
|
+
exports.escapeJsonPointer = escapeJsonPointer;
|
|
1156
1156
|
function unescapeJsonPointer(str) {
|
|
1157
1157
|
return str.replace(/~1/g, "/").replace(/~0/g, "~");
|
|
1158
1158
|
}
|
|
1159
|
-
exports
|
|
1159
|
+
exports.unescapeJsonPointer = unescapeJsonPointer;
|
|
1160
1160
|
function eachItem(xs, f) {
|
|
1161
1161
|
if (Array.isArray(xs)) {
|
|
1162
1162
|
for (const x of xs)
|
|
@@ -1165,14 +1165,14 @@ var require_util = __commonJS({
|
|
|
1165
1165
|
f(xs);
|
|
1166
1166
|
}
|
|
1167
1167
|
}
|
|
1168
|
-
exports
|
|
1168
|
+
exports.eachItem = eachItem;
|
|
1169
1169
|
function makeMergeEvaluated({ mergeNames, mergeToName, mergeValues: mergeValues2, resultToName }) {
|
|
1170
1170
|
return (gen, from, to, toName) => {
|
|
1171
1171
|
const res = to === void 0 ? from : to instanceof codegen_1.Name ? (from instanceof codegen_1.Name ? mergeNames(gen, from, to) : mergeToName(gen, from, to), to) : from instanceof codegen_1.Name ? (mergeToName(gen, to, from), from) : mergeValues2(from, to);
|
|
1172
1172
|
return toName === codegen_1.Name && !(res instanceof codegen_1.Name) ? resultToName(gen, res) : res;
|
|
1173
1173
|
};
|
|
1174
1174
|
}
|
|
1175
|
-
exports
|
|
1175
|
+
exports.mergeEvaluated = {
|
|
1176
1176
|
props: makeMergeEvaluated({
|
|
1177
1177
|
mergeNames: (gen, from, to) => gen.if((0, codegen_1._)`${to} !== true && ${from} !== undefined`, () => {
|
|
1178
1178
|
gen.if((0, codegen_1._)`${from} === true`, () => gen.assign(to, true), () => gen.assign(to, (0, codegen_1._)`${to} || {}`).code((0, codegen_1._)`Object.assign(${to}, ${from})`));
|
|
@@ -1203,11 +1203,11 @@ var require_util = __commonJS({
|
|
|
1203
1203
|
setEvaluated(gen, props, ps);
|
|
1204
1204
|
return props;
|
|
1205
1205
|
}
|
|
1206
|
-
exports
|
|
1206
|
+
exports.evaluatedPropsToName = evaluatedPropsToName;
|
|
1207
1207
|
function setEvaluated(gen, props, ps) {
|
|
1208
1208
|
Object.keys(ps).forEach((p) => gen.assign((0, codegen_1._)`${props}${(0, codegen_1.getProperty)(p)}`, true));
|
|
1209
1209
|
}
|
|
1210
|
-
exports
|
|
1210
|
+
exports.setEvaluated = setEvaluated;
|
|
1211
1211
|
var snippets = {};
|
|
1212
1212
|
function useFunc(gen, f) {
|
|
1213
1213
|
return gen.scopeValue("func", {
|
|
@@ -1215,12 +1215,12 @@ var require_util = __commonJS({
|
|
|
1215
1215
|
code: snippets[f.code] || (snippets[f.code] = new code_1._Code(f.code))
|
|
1216
1216
|
});
|
|
1217
1217
|
}
|
|
1218
|
-
exports
|
|
1218
|
+
exports.useFunc = useFunc;
|
|
1219
1219
|
var Type;
|
|
1220
1220
|
(function(Type2) {
|
|
1221
1221
|
Type2[Type2["Num"] = 0] = "Num";
|
|
1222
1222
|
Type2[Type2["Str"] = 1] = "Str";
|
|
1223
|
-
})(Type || (exports
|
|
1223
|
+
})(Type || (exports.Type = Type = {}));
|
|
1224
1224
|
function getErrorPath(dataProp, dataPropType, jsPropertySyntax) {
|
|
1225
1225
|
if (dataProp instanceof codegen_1.Name) {
|
|
1226
1226
|
const isNumber = dataPropType === Type.Num;
|
|
@@ -1228,7 +1228,7 @@ var require_util = __commonJS({
|
|
|
1228
1228
|
}
|
|
1229
1229
|
return jsPropertySyntax ? (0, codegen_1.getProperty)(dataProp).toString() : "/" + escapeJsonPointer(dataProp);
|
|
1230
1230
|
}
|
|
1231
|
-
exports
|
|
1231
|
+
exports.getErrorPath = getErrorPath;
|
|
1232
1232
|
function checkStrictMode(it, msg, mode = it.opts.strictSchema) {
|
|
1233
1233
|
if (!mode)
|
|
1234
1234
|
return;
|
|
@@ -1237,14 +1237,14 @@ var require_util = __commonJS({
|
|
|
1237
1237
|
throw new Error(msg);
|
|
1238
1238
|
it.self.logger.warn(msg);
|
|
1239
1239
|
}
|
|
1240
|
-
exports
|
|
1240
|
+
exports.checkStrictMode = checkStrictMode;
|
|
1241
1241
|
}
|
|
1242
1242
|
});
|
|
1243
1243
|
|
|
1244
1244
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/names.js
|
|
1245
1245
|
var require_names = __commonJS({
|
|
1246
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/names.js"(exports
|
|
1247
|
-
Object.defineProperty(exports
|
|
1246
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/names.js"(exports) {
|
|
1247
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1248
1248
|
var codegen_1 = require_codegen();
|
|
1249
1249
|
var names = {
|
|
1250
1250
|
// validation function arguments
|
|
@@ -1275,25 +1275,25 @@ var require_names = __commonJS({
|
|
|
1275
1275
|
jsonLen: new codegen_1.Name("jsonLen"),
|
|
1276
1276
|
jsonPart: new codegen_1.Name("jsonPart")
|
|
1277
1277
|
};
|
|
1278
|
-
exports
|
|
1278
|
+
exports.default = names;
|
|
1279
1279
|
}
|
|
1280
1280
|
});
|
|
1281
1281
|
|
|
1282
1282
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/errors.js
|
|
1283
1283
|
var require_errors = __commonJS({
|
|
1284
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/errors.js"(exports
|
|
1285
|
-
Object.defineProperty(exports
|
|
1286
|
-
exports
|
|
1284
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/errors.js"(exports) {
|
|
1285
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1286
|
+
exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = void 0;
|
|
1287
1287
|
var codegen_1 = require_codegen();
|
|
1288
1288
|
var util_1 = require_util();
|
|
1289
1289
|
var names_1 = require_names();
|
|
1290
|
-
exports
|
|
1290
|
+
exports.keywordError = {
|
|
1291
1291
|
message: ({ keyword }) => (0, codegen_1.str)`must pass "${keyword}" keyword validation`
|
|
1292
1292
|
};
|
|
1293
|
-
exports
|
|
1293
|
+
exports.keyword$DataError = {
|
|
1294
1294
|
message: ({ keyword, schemaType }) => schemaType ? (0, codegen_1.str)`"${keyword}" keyword must be ${schemaType} ($data)` : (0, codegen_1.str)`"${keyword}" keyword is invalid ($data)`
|
|
1295
1295
|
};
|
|
1296
|
-
function reportError(cxt, error2 = exports
|
|
1296
|
+
function reportError(cxt, error2 = exports.keywordError, errorPaths, overrideAllErrors) {
|
|
1297
1297
|
const { it } = cxt;
|
|
1298
1298
|
const { gen, compositeRule, allErrors } = it;
|
|
1299
1299
|
const errObj = errorObjectCode(cxt, error2, errorPaths);
|
|
@@ -1303,8 +1303,8 @@ var require_errors = __commonJS({
|
|
|
1303
1303
|
returnErrors(it, (0, codegen_1._)`[${errObj}]`);
|
|
1304
1304
|
}
|
|
1305
1305
|
}
|
|
1306
|
-
exports
|
|
1307
|
-
function reportExtraError(cxt, error2 = exports
|
|
1306
|
+
exports.reportError = reportError;
|
|
1307
|
+
function reportExtraError(cxt, error2 = exports.keywordError, errorPaths) {
|
|
1308
1308
|
const { it } = cxt;
|
|
1309
1309
|
const { gen, compositeRule, allErrors } = it;
|
|
1310
1310
|
const errObj = errorObjectCode(cxt, error2, errorPaths);
|
|
@@ -1313,12 +1313,12 @@ var require_errors = __commonJS({
|
|
|
1313
1313
|
returnErrors(it, names_1.default.vErrors);
|
|
1314
1314
|
}
|
|
1315
1315
|
}
|
|
1316
|
-
exports
|
|
1316
|
+
exports.reportExtraError = reportExtraError;
|
|
1317
1317
|
function resetErrorsCount(gen, errsCount) {
|
|
1318
1318
|
gen.assign(names_1.default.errors, errsCount);
|
|
1319
1319
|
gen.if((0, codegen_1._)`${names_1.default.vErrors} !== null`, () => gen.if(errsCount, () => gen.assign((0, codegen_1._)`${names_1.default.vErrors}.length`, errsCount), () => gen.assign(names_1.default.vErrors, null)));
|
|
1320
1320
|
}
|
|
1321
|
-
exports
|
|
1321
|
+
exports.resetErrorsCount = resetErrorsCount;
|
|
1322
1322
|
function extendErrors({ gen, keyword, schemaValue, data, errsCount, it }) {
|
|
1323
1323
|
if (errsCount === void 0)
|
|
1324
1324
|
throw new Error("ajv implementation error");
|
|
@@ -1333,7 +1333,7 @@ var require_errors = __commonJS({
|
|
|
1333
1333
|
}
|
|
1334
1334
|
});
|
|
1335
1335
|
}
|
|
1336
|
-
exports
|
|
1336
|
+
exports.extendErrors = extendErrors;
|
|
1337
1337
|
function addError(gen, errObj) {
|
|
1338
1338
|
const err = gen.const("err", errObj);
|
|
1339
1339
|
gen.if((0, codegen_1._)`${names_1.default.vErrors} === null`, () => gen.assign(names_1.default.vErrors, (0, codegen_1._)`[${err}]`), (0, codegen_1._)`${names_1.default.vErrors}.push(${err})`);
|
|
@@ -1402,9 +1402,9 @@ var require_errors = __commonJS({
|
|
|
1402
1402
|
|
|
1403
1403
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/boolSchema.js
|
|
1404
1404
|
var require_boolSchema = __commonJS({
|
|
1405
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/boolSchema.js"(exports
|
|
1406
|
-
Object.defineProperty(exports
|
|
1407
|
-
exports
|
|
1405
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/boolSchema.js"(exports) {
|
|
1406
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1407
|
+
exports.boolOrEmptySchema = exports.topBoolOrEmptySchema = void 0;
|
|
1408
1408
|
var errors_1 = require_errors();
|
|
1409
1409
|
var codegen_1 = require_codegen();
|
|
1410
1410
|
var names_1 = require_names();
|
|
@@ -1422,7 +1422,7 @@ var require_boolSchema = __commonJS({
|
|
|
1422
1422
|
gen.return(true);
|
|
1423
1423
|
}
|
|
1424
1424
|
}
|
|
1425
|
-
exports
|
|
1425
|
+
exports.topBoolOrEmptySchema = topBoolOrEmptySchema;
|
|
1426
1426
|
function boolOrEmptySchema(it, valid) {
|
|
1427
1427
|
const { gen, schema } = it;
|
|
1428
1428
|
if (schema === false) {
|
|
@@ -1432,7 +1432,7 @@ var require_boolSchema = __commonJS({
|
|
|
1432
1432
|
gen.var(valid, true);
|
|
1433
1433
|
}
|
|
1434
1434
|
}
|
|
1435
|
-
exports
|
|
1435
|
+
exports.boolOrEmptySchema = boolOrEmptySchema;
|
|
1436
1436
|
function falseSchemaError(it, overrideAllErrors) {
|
|
1437
1437
|
const { gen, data } = it;
|
|
1438
1438
|
const cxt = {
|
|
@@ -1452,15 +1452,15 @@ var require_boolSchema = __commonJS({
|
|
|
1452
1452
|
|
|
1453
1453
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/rules.js
|
|
1454
1454
|
var require_rules = __commonJS({
|
|
1455
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/rules.js"(exports
|
|
1456
|
-
Object.defineProperty(exports
|
|
1457
|
-
exports
|
|
1455
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/rules.js"(exports) {
|
|
1456
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1457
|
+
exports.getRules = exports.isJSONType = void 0;
|
|
1458
1458
|
var _jsonTypes = ["string", "number", "integer", "boolean", "null", "object", "array"];
|
|
1459
1459
|
var jsonTypes = new Set(_jsonTypes);
|
|
1460
1460
|
function isJSONType(x) {
|
|
1461
1461
|
return typeof x == "string" && jsonTypes.has(x);
|
|
1462
1462
|
}
|
|
1463
|
-
exports
|
|
1463
|
+
exports.isJSONType = isJSONType;
|
|
1464
1464
|
function getRules() {
|
|
1465
1465
|
const groups = {
|
|
1466
1466
|
number: { type: "number", rules: [] },
|
|
@@ -1476,37 +1476,37 @@ var require_rules = __commonJS({
|
|
|
1476
1476
|
keywords: {}
|
|
1477
1477
|
};
|
|
1478
1478
|
}
|
|
1479
|
-
exports
|
|
1479
|
+
exports.getRules = getRules;
|
|
1480
1480
|
}
|
|
1481
1481
|
});
|
|
1482
1482
|
|
|
1483
1483
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/applicability.js
|
|
1484
1484
|
var require_applicability = __commonJS({
|
|
1485
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/applicability.js"(exports
|
|
1486
|
-
Object.defineProperty(exports
|
|
1487
|
-
exports
|
|
1485
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/applicability.js"(exports) {
|
|
1486
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1487
|
+
exports.shouldUseRule = exports.shouldUseGroup = exports.schemaHasRulesForType = void 0;
|
|
1488
1488
|
function schemaHasRulesForType({ schema, self }, type) {
|
|
1489
1489
|
const group = self.RULES.types[type];
|
|
1490
1490
|
return group && group !== true && shouldUseGroup(schema, group);
|
|
1491
1491
|
}
|
|
1492
|
-
exports
|
|
1492
|
+
exports.schemaHasRulesForType = schemaHasRulesForType;
|
|
1493
1493
|
function shouldUseGroup(schema, group) {
|
|
1494
1494
|
return group.rules.some((rule) => shouldUseRule(schema, rule));
|
|
1495
1495
|
}
|
|
1496
|
-
exports
|
|
1496
|
+
exports.shouldUseGroup = shouldUseGroup;
|
|
1497
1497
|
function shouldUseRule(schema, rule) {
|
|
1498
1498
|
var _a3;
|
|
1499
1499
|
return schema[rule.keyword] !== void 0 || ((_a3 = rule.definition.implements) === null || _a3 === void 0 ? void 0 : _a3.some((kwd) => schema[kwd] !== void 0));
|
|
1500
1500
|
}
|
|
1501
|
-
exports
|
|
1501
|
+
exports.shouldUseRule = shouldUseRule;
|
|
1502
1502
|
}
|
|
1503
1503
|
});
|
|
1504
1504
|
|
|
1505
1505
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/dataType.js
|
|
1506
1506
|
var require_dataType = __commonJS({
|
|
1507
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/dataType.js"(exports
|
|
1508
|
-
Object.defineProperty(exports
|
|
1509
|
-
exports
|
|
1507
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/dataType.js"(exports) {
|
|
1508
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1509
|
+
exports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = void 0;
|
|
1510
1510
|
var rules_1 = require_rules();
|
|
1511
1511
|
var applicability_1 = require_applicability();
|
|
1512
1512
|
var errors_1 = require_errors();
|
|
@@ -1516,7 +1516,7 @@ var require_dataType = __commonJS({
|
|
|
1516
1516
|
(function(DataType2) {
|
|
1517
1517
|
DataType2[DataType2["Correct"] = 0] = "Correct";
|
|
1518
1518
|
DataType2[DataType2["Wrong"] = 1] = "Wrong";
|
|
1519
|
-
})(DataType || (exports
|
|
1519
|
+
})(DataType || (exports.DataType = DataType = {}));
|
|
1520
1520
|
function getSchemaTypes(schema) {
|
|
1521
1521
|
const types = getJSONTypes(schema.type);
|
|
1522
1522
|
const hasNull = types.includes("null");
|
|
@@ -1532,14 +1532,14 @@ var require_dataType = __commonJS({
|
|
|
1532
1532
|
}
|
|
1533
1533
|
return types;
|
|
1534
1534
|
}
|
|
1535
|
-
exports
|
|
1535
|
+
exports.getSchemaTypes = getSchemaTypes;
|
|
1536
1536
|
function getJSONTypes(ts) {
|
|
1537
1537
|
const types = Array.isArray(ts) ? ts : ts ? [ts] : [];
|
|
1538
1538
|
if (types.every(rules_1.isJSONType))
|
|
1539
1539
|
return types;
|
|
1540
1540
|
throw new Error("type must be JSONType or JSONType[]: " + types.join(","));
|
|
1541
1541
|
}
|
|
1542
|
-
exports
|
|
1542
|
+
exports.getJSONTypes = getJSONTypes;
|
|
1543
1543
|
function coerceAndCheckDataType(it, types) {
|
|
1544
1544
|
const { gen, data, opts } = it;
|
|
1545
1545
|
const coerceTo = coerceToTypes(types, opts.coerceTypes);
|
|
@@ -1555,7 +1555,7 @@ var require_dataType = __commonJS({
|
|
|
1555
1555
|
}
|
|
1556
1556
|
return checkTypes;
|
|
1557
1557
|
}
|
|
1558
|
-
exports
|
|
1558
|
+
exports.coerceAndCheckDataType = coerceAndCheckDataType;
|
|
1559
1559
|
var COERCIBLE = /* @__PURE__ */ new Set(["string", "number", "integer", "boolean", "null"]);
|
|
1560
1560
|
function coerceToTypes(types, coerceTypes) {
|
|
1561
1561
|
return coerceTypes ? types.filter((t) => COERCIBLE.has(t) || coerceTypes === "array" && t === "array") : [];
|
|
@@ -1635,7 +1635,7 @@ var require_dataType = __commonJS({
|
|
|
1635
1635
|
return (0, codegen_1.and)((0, codegen_1._)`typeof ${data} == "number"`, _cond, strictNums ? (0, codegen_1._)`isFinite(${data})` : codegen_1.nil);
|
|
1636
1636
|
}
|
|
1637
1637
|
}
|
|
1638
|
-
exports
|
|
1638
|
+
exports.checkDataType = checkDataType;
|
|
1639
1639
|
function checkDataTypes(dataTypes, data, strictNums, correct) {
|
|
1640
1640
|
if (dataTypes.length === 1) {
|
|
1641
1641
|
return checkDataType(dataTypes[0], data, strictNums, correct);
|
|
@@ -1657,7 +1657,7 @@ var require_dataType = __commonJS({
|
|
|
1657
1657
|
cond = (0, codegen_1.and)(cond, checkDataType(t, data, strictNums, correct));
|
|
1658
1658
|
return cond;
|
|
1659
1659
|
}
|
|
1660
|
-
exports
|
|
1660
|
+
exports.checkDataTypes = checkDataTypes;
|
|
1661
1661
|
var typeError = {
|
|
1662
1662
|
message: ({ schema }) => `must be ${schema}`,
|
|
1663
1663
|
params: ({ schema, schemaValue }) => typeof schema == "string" ? (0, codegen_1._)`{type: ${schema}}` : (0, codegen_1._)`{type: ${schemaValue}}`
|
|
@@ -1666,7 +1666,7 @@ var require_dataType = __commonJS({
|
|
|
1666
1666
|
const cxt = getTypeErrorContext(it);
|
|
1667
1667
|
(0, errors_1.reportError)(cxt, typeError);
|
|
1668
1668
|
}
|
|
1669
|
-
exports
|
|
1669
|
+
exports.reportTypeError = reportTypeError;
|
|
1670
1670
|
function getTypeErrorContext(it) {
|
|
1671
1671
|
const { gen, data, schema } = it;
|
|
1672
1672
|
const schemaCode = (0, util_1.schemaRefOrVal)(it, schema, "type");
|
|
@@ -1687,9 +1687,9 @@ var require_dataType = __commonJS({
|
|
|
1687
1687
|
|
|
1688
1688
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/defaults.js
|
|
1689
1689
|
var require_defaults = __commonJS({
|
|
1690
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/defaults.js"(exports
|
|
1691
|
-
Object.defineProperty(exports
|
|
1692
|
-
exports
|
|
1690
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/defaults.js"(exports) {
|
|
1691
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1692
|
+
exports.assignDefaults = void 0;
|
|
1693
1693
|
var codegen_1 = require_codegen();
|
|
1694
1694
|
var util_1 = require_util();
|
|
1695
1695
|
function assignDefaults(it, ty) {
|
|
@@ -1702,7 +1702,7 @@ var require_defaults = __commonJS({
|
|
|
1702
1702
|
items.forEach((sch, i) => assignDefault(it, i, sch.default));
|
|
1703
1703
|
}
|
|
1704
1704
|
}
|
|
1705
|
-
exports
|
|
1705
|
+
exports.assignDefaults = assignDefaults;
|
|
1706
1706
|
function assignDefault(it, prop, defaultValue) {
|
|
1707
1707
|
const { gen, compositeRule, data, opts } = it;
|
|
1708
1708
|
if (defaultValue === void 0)
|
|
@@ -1723,9 +1723,9 @@ var require_defaults = __commonJS({
|
|
|
1723
1723
|
|
|
1724
1724
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/code.js
|
|
1725
1725
|
var require_code2 = __commonJS({
|
|
1726
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/code.js"(exports
|
|
1727
|
-
Object.defineProperty(exports
|
|
1728
|
-
exports
|
|
1726
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/code.js"(exports) {
|
|
1727
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1728
|
+
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;
|
|
1729
1729
|
var codegen_1 = require_codegen();
|
|
1730
1730
|
var util_1 = require_util();
|
|
1731
1731
|
var names_1 = require_names();
|
|
@@ -1737,16 +1737,16 @@ var require_code2 = __commonJS({
|
|
|
1737
1737
|
cxt.error();
|
|
1738
1738
|
});
|
|
1739
1739
|
}
|
|
1740
|
-
exports
|
|
1740
|
+
exports.checkReportMissingProp = checkReportMissingProp;
|
|
1741
1741
|
function checkMissingProp({ gen, data, it: { opts } }, properties, missing) {
|
|
1742
1742
|
return (0, codegen_1.or)(...properties.map((prop) => (0, codegen_1.and)(noPropertyInData(gen, data, prop, opts.ownProperties), (0, codegen_1._)`${missing} = ${prop}`)));
|
|
1743
1743
|
}
|
|
1744
|
-
exports
|
|
1744
|
+
exports.checkMissingProp = checkMissingProp;
|
|
1745
1745
|
function reportMissingProp(cxt, missing) {
|
|
1746
1746
|
cxt.setParams({ missingProperty: missing }, true);
|
|
1747
1747
|
cxt.error();
|
|
1748
1748
|
}
|
|
1749
|
-
exports
|
|
1749
|
+
exports.reportMissingProp = reportMissingProp;
|
|
1750
1750
|
function hasPropFunc(gen) {
|
|
1751
1751
|
return gen.scopeValue("func", {
|
|
1752
1752
|
// eslint-disable-next-line @typescript-eslint/unbound-method
|
|
@@ -1754,29 +1754,29 @@ var require_code2 = __commonJS({
|
|
|
1754
1754
|
code: (0, codegen_1._)`Object.prototype.hasOwnProperty`
|
|
1755
1755
|
});
|
|
1756
1756
|
}
|
|
1757
|
-
exports
|
|
1757
|
+
exports.hasPropFunc = hasPropFunc;
|
|
1758
1758
|
function isOwnProperty(gen, data, property) {
|
|
1759
1759
|
return (0, codegen_1._)`${hasPropFunc(gen)}.call(${data}, ${property})`;
|
|
1760
1760
|
}
|
|
1761
|
-
exports
|
|
1761
|
+
exports.isOwnProperty = isOwnProperty;
|
|
1762
1762
|
function propertyInData(gen, data, property, ownProperties) {
|
|
1763
1763
|
const cond = (0, codegen_1._)`${data}${(0, codegen_1.getProperty)(property)} !== undefined`;
|
|
1764
1764
|
return ownProperties ? (0, codegen_1._)`${cond} && ${isOwnProperty(gen, data, property)}` : cond;
|
|
1765
1765
|
}
|
|
1766
|
-
exports
|
|
1766
|
+
exports.propertyInData = propertyInData;
|
|
1767
1767
|
function noPropertyInData(gen, data, property, ownProperties) {
|
|
1768
1768
|
const cond = (0, codegen_1._)`${data}${(0, codegen_1.getProperty)(property)} === undefined`;
|
|
1769
1769
|
return ownProperties ? (0, codegen_1.or)(cond, (0, codegen_1.not)(isOwnProperty(gen, data, property))) : cond;
|
|
1770
1770
|
}
|
|
1771
|
-
exports
|
|
1771
|
+
exports.noPropertyInData = noPropertyInData;
|
|
1772
1772
|
function allSchemaProperties(schemaMap) {
|
|
1773
1773
|
return schemaMap ? Object.keys(schemaMap).filter((p) => p !== "__proto__") : [];
|
|
1774
1774
|
}
|
|
1775
|
-
exports
|
|
1775
|
+
exports.allSchemaProperties = allSchemaProperties;
|
|
1776
1776
|
function schemaProperties(it, schemaMap) {
|
|
1777
1777
|
return allSchemaProperties(schemaMap).filter((p) => !(0, util_1.alwaysValidSchema)(it, schemaMap[p]));
|
|
1778
1778
|
}
|
|
1779
|
-
exports
|
|
1779
|
+
exports.schemaProperties = schemaProperties;
|
|
1780
1780
|
function callValidateCode({ schemaCode, data, it: { gen, topSchemaRef, schemaPath, errorPath }, it }, func, context, passSchema) {
|
|
1781
1781
|
const dataAndSchema = passSchema ? (0, codegen_1._)`${schemaCode}, ${data}, ${topSchemaRef}${schemaPath}` : data;
|
|
1782
1782
|
const valCxt = [
|
|
@@ -1790,7 +1790,7 @@ var require_code2 = __commonJS({
|
|
|
1790
1790
|
const args = (0, codegen_1._)`${dataAndSchema}, ${gen.object(...valCxt)}`;
|
|
1791
1791
|
return context !== codegen_1.nil ? (0, codegen_1._)`${func}.call(${context}, ${args})` : (0, codegen_1._)`${func}(${args})`;
|
|
1792
1792
|
}
|
|
1793
|
-
exports
|
|
1793
|
+
exports.callValidateCode = callValidateCode;
|
|
1794
1794
|
var newRegExp = (0, codegen_1._)`new RegExp`;
|
|
1795
1795
|
function usePattern({ gen, it: { opts } }, pattern) {
|
|
1796
1796
|
const u = opts.unicodeRegExp ? "u" : "";
|
|
@@ -1802,7 +1802,7 @@ var require_code2 = __commonJS({
|
|
|
1802
1802
|
code: (0, codegen_1._)`${regExp.code === "new RegExp" ? newRegExp : (0, util_2.useFunc)(gen, regExp)}(${pattern}, ${u})`
|
|
1803
1803
|
});
|
|
1804
1804
|
}
|
|
1805
|
-
exports
|
|
1805
|
+
exports.usePattern = usePattern;
|
|
1806
1806
|
function validateArray(cxt) {
|
|
1807
1807
|
const { gen, data, keyword, it } = cxt;
|
|
1808
1808
|
const valid = gen.name("valid");
|
|
@@ -1826,7 +1826,7 @@ var require_code2 = __commonJS({
|
|
|
1826
1826
|
});
|
|
1827
1827
|
}
|
|
1828
1828
|
}
|
|
1829
|
-
exports
|
|
1829
|
+
exports.validateArray = validateArray;
|
|
1830
1830
|
function validateUnion(cxt) {
|
|
1831
1831
|
const { gen, schema, keyword, it } = cxt;
|
|
1832
1832
|
if (!Array.isArray(schema))
|
|
@@ -1849,15 +1849,15 @@ var require_code2 = __commonJS({
|
|
|
1849
1849
|
}));
|
|
1850
1850
|
cxt.result(valid, () => cxt.reset(), () => cxt.error(true));
|
|
1851
1851
|
}
|
|
1852
|
-
exports
|
|
1852
|
+
exports.validateUnion = validateUnion;
|
|
1853
1853
|
}
|
|
1854
1854
|
});
|
|
1855
1855
|
|
|
1856
1856
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/keyword.js
|
|
1857
1857
|
var require_keyword = __commonJS({
|
|
1858
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/keyword.js"(exports
|
|
1859
|
-
Object.defineProperty(exports
|
|
1860
|
-
exports
|
|
1858
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/keyword.js"(exports) {
|
|
1859
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1860
|
+
exports.validateKeywordUsage = exports.validSchemaType = exports.funcKeywordCode = exports.macroKeywordCode = void 0;
|
|
1861
1861
|
var codegen_1 = require_codegen();
|
|
1862
1862
|
var names_1 = require_names();
|
|
1863
1863
|
var code_1 = require_code2();
|
|
@@ -1878,7 +1878,7 @@ var require_keyword = __commonJS({
|
|
|
1878
1878
|
}, valid);
|
|
1879
1879
|
cxt.pass(valid, () => cxt.error(true));
|
|
1880
1880
|
}
|
|
1881
|
-
exports
|
|
1881
|
+
exports.macroKeywordCode = macroKeywordCode;
|
|
1882
1882
|
function funcKeywordCode(cxt, def) {
|
|
1883
1883
|
var _a3;
|
|
1884
1884
|
const { gen, keyword, schema, parentSchema, $data, it } = cxt;
|
|
@@ -1922,7 +1922,7 @@ var require_keyword = __commonJS({
|
|
|
1922
1922
|
gen.if((0, codegen_1.not)((_a4 = def.valid) !== null && _a4 !== void 0 ? _a4 : valid), errors);
|
|
1923
1923
|
}
|
|
1924
1924
|
}
|
|
1925
|
-
exports
|
|
1925
|
+
exports.funcKeywordCode = funcKeywordCode;
|
|
1926
1926
|
function modifyData(cxt) {
|
|
1927
1927
|
const { gen, data, it } = cxt;
|
|
1928
1928
|
gen.if(it.parentData, () => gen.assign(data, (0, codegen_1._)`${it.parentData}[${it.parentDataProperty}]`));
|
|
@@ -1946,7 +1946,7 @@ var require_keyword = __commonJS({
|
|
|
1946
1946
|
function validSchemaType(schema, schemaType, allowUndefined = false) {
|
|
1947
1947
|
return !schemaType.length || schemaType.some((st) => st === "array" ? Array.isArray(schema) : st === "object" ? schema && typeof schema == "object" && !Array.isArray(schema) : typeof schema == st || allowUndefined && typeof schema == "undefined");
|
|
1948
1948
|
}
|
|
1949
|
-
exports
|
|
1949
|
+
exports.validSchemaType = validSchemaType;
|
|
1950
1950
|
function validateKeywordUsage({ schema, opts, self, errSchemaPath }, def, keyword) {
|
|
1951
1951
|
if (Array.isArray(def.keyword) ? !def.keyword.includes(keyword) : def.keyword !== keyword) {
|
|
1952
1952
|
throw new Error("ajv implementation error");
|
|
@@ -1966,15 +1966,15 @@ var require_keyword = __commonJS({
|
|
|
1966
1966
|
}
|
|
1967
1967
|
}
|
|
1968
1968
|
}
|
|
1969
|
-
exports
|
|
1969
|
+
exports.validateKeywordUsage = validateKeywordUsage;
|
|
1970
1970
|
}
|
|
1971
1971
|
});
|
|
1972
1972
|
|
|
1973
1973
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/subschema.js
|
|
1974
1974
|
var require_subschema = __commonJS({
|
|
1975
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/subschema.js"(exports
|
|
1976
|
-
Object.defineProperty(exports
|
|
1977
|
-
exports
|
|
1975
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/subschema.js"(exports) {
|
|
1976
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1977
|
+
exports.extendSubschemaMode = exports.extendSubschemaData = exports.getSubschema = void 0;
|
|
1978
1978
|
var codegen_1 = require_codegen();
|
|
1979
1979
|
var util_1 = require_util();
|
|
1980
1980
|
function getSubschema(it, { keyword, schemaProp, schema, schemaPath, errSchemaPath, topSchemaRef }) {
|
|
@@ -2006,7 +2006,7 @@ var require_subschema = __commonJS({
|
|
|
2006
2006
|
}
|
|
2007
2007
|
throw new Error('either "keyword" or "schema" must be passed');
|
|
2008
2008
|
}
|
|
2009
|
-
exports
|
|
2009
|
+
exports.getSubschema = getSubschema;
|
|
2010
2010
|
function extendSubschemaData(subschema, it, { dataProp, dataPropType: dpType, data, dataTypes, propertyName }) {
|
|
2011
2011
|
if (data !== void 0 && dataProp !== void 0) {
|
|
2012
2012
|
throw new Error('both "data" and "dataProp" passed, only one allowed');
|
|
@@ -2037,7 +2037,7 @@ var require_subschema = __commonJS({
|
|
|
2037
2037
|
subschema.dataNames = [...it.dataNames, _nextData];
|
|
2038
2038
|
}
|
|
2039
2039
|
}
|
|
2040
|
-
exports
|
|
2040
|
+
exports.extendSubschemaData = extendSubschemaData;
|
|
2041
2041
|
function extendSubschemaMode(subschema, { jtdDiscriminator, jtdMetadata, compositeRule, createErrors, allErrors }) {
|
|
2042
2042
|
if (compositeRule !== void 0)
|
|
2043
2043
|
subschema.compositeRule = compositeRule;
|
|
@@ -2048,13 +2048,13 @@ var require_subschema = __commonJS({
|
|
|
2048
2048
|
subschema.jtdDiscriminator = jtdDiscriminator;
|
|
2049
2049
|
subschema.jtdMetadata = jtdMetadata;
|
|
2050
2050
|
}
|
|
2051
|
-
exports
|
|
2051
|
+
exports.extendSubschemaMode = extendSubschemaMode;
|
|
2052
2052
|
}
|
|
2053
2053
|
});
|
|
2054
2054
|
|
|
2055
2055
|
// ../../node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js
|
|
2056
2056
|
var require_fast_deep_equal = __commonJS({
|
|
2057
|
-
"../../node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js"(exports
|
|
2057
|
+
"../../node_modules/.pnpm/fast-deep-equal@3.1.3/node_modules/fast-deep-equal/index.js"(exports, module) {
|
|
2058
2058
|
module.exports = function equal(a, b) {
|
|
2059
2059
|
if (a === b) return true;
|
|
2060
2060
|
if (a && b && typeof a == "object" && typeof b == "object") {
|
|
@@ -2088,7 +2088,7 @@ var require_fast_deep_equal = __commonJS({
|
|
|
2088
2088
|
|
|
2089
2089
|
// ../../node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js
|
|
2090
2090
|
var require_json_schema_traverse = __commonJS({
|
|
2091
|
-
"../../node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js"(exports
|
|
2091
|
+
"../../node_modules/.pnpm/json-schema-traverse@1.0.0/node_modules/json-schema-traverse/index.js"(exports, module) {
|
|
2092
2092
|
var traverse = module.exports = function(schema, opts, cb) {
|
|
2093
2093
|
if (typeof opts == "function") {
|
|
2094
2094
|
cb = opts;
|
|
@@ -2175,9 +2175,9 @@ var require_json_schema_traverse = __commonJS({
|
|
|
2175
2175
|
|
|
2176
2176
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/resolve.js
|
|
2177
2177
|
var require_resolve = __commonJS({
|
|
2178
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/resolve.js"(exports
|
|
2179
|
-
Object.defineProperty(exports
|
|
2180
|
-
exports
|
|
2178
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/resolve.js"(exports) {
|
|
2179
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2180
|
+
exports.getSchemaRefs = exports.resolveUrl = exports.normalizeId = exports._getFullPath = exports.getFullPath = exports.inlineRef = void 0;
|
|
2181
2181
|
var util_1 = require_util();
|
|
2182
2182
|
var equal = require_fast_deep_equal();
|
|
2183
2183
|
var traverse = require_json_schema_traverse();
|
|
@@ -2208,7 +2208,7 @@ var require_resolve = __commonJS({
|
|
|
2208
2208
|
return false;
|
|
2209
2209
|
return countKeys(schema) <= limit;
|
|
2210
2210
|
}
|
|
2211
|
-
exports
|
|
2211
|
+
exports.inlineRef = inlineRef;
|
|
2212
2212
|
var REF_KEYWORDS = /* @__PURE__ */ new Set([
|
|
2213
2213
|
"$ref",
|
|
2214
2214
|
"$recursiveRef",
|
|
@@ -2250,22 +2250,22 @@ var require_resolve = __commonJS({
|
|
|
2250
2250
|
const p = resolver.parse(id);
|
|
2251
2251
|
return _getFullPath(resolver, p);
|
|
2252
2252
|
}
|
|
2253
|
-
exports
|
|
2253
|
+
exports.getFullPath = getFullPath;
|
|
2254
2254
|
function _getFullPath(resolver, p) {
|
|
2255
2255
|
const serialized = resolver.serialize(p);
|
|
2256
2256
|
return serialized.split("#")[0] + "#";
|
|
2257
2257
|
}
|
|
2258
|
-
exports
|
|
2258
|
+
exports._getFullPath = _getFullPath;
|
|
2259
2259
|
var TRAILING_SLASH_HASH = /#\/?$/;
|
|
2260
2260
|
function normalizeId(id) {
|
|
2261
2261
|
return id ? id.replace(TRAILING_SLASH_HASH, "") : "";
|
|
2262
2262
|
}
|
|
2263
|
-
exports
|
|
2263
|
+
exports.normalizeId = normalizeId;
|
|
2264
2264
|
function resolveUrl(resolver, baseId, id) {
|
|
2265
2265
|
id = normalizeId(id);
|
|
2266
2266
|
return resolver.resolve(baseId, id);
|
|
2267
2267
|
}
|
|
2268
|
-
exports
|
|
2268
|
+
exports.resolveUrl = resolveUrl;
|
|
2269
2269
|
var ANCHOR = /^[a-z_][-a-z0-9._]*$/i;
|
|
2270
2270
|
function getSchemaRefs(schema, baseId) {
|
|
2271
2271
|
if (typeof schema == "boolean")
|
|
@@ -2324,15 +2324,15 @@ var require_resolve = __commonJS({
|
|
|
2324
2324
|
return new Error(`reference "${ref}" resolves to more than one schema`);
|
|
2325
2325
|
}
|
|
2326
2326
|
}
|
|
2327
|
-
exports
|
|
2327
|
+
exports.getSchemaRefs = getSchemaRefs;
|
|
2328
2328
|
}
|
|
2329
2329
|
});
|
|
2330
2330
|
|
|
2331
2331
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/index.js
|
|
2332
2332
|
var require_validate = __commonJS({
|
|
2333
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/index.js"(exports
|
|
2334
|
-
Object.defineProperty(exports
|
|
2335
|
-
exports
|
|
2333
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/index.js"(exports) {
|
|
2334
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2335
|
+
exports.getData = exports.KeywordCxt = exports.validateFunctionCode = void 0;
|
|
2336
2336
|
var boolSchema_1 = require_boolSchema();
|
|
2337
2337
|
var dataType_1 = require_dataType();
|
|
2338
2338
|
var applicability_1 = require_applicability();
|
|
@@ -2355,7 +2355,7 @@ var require_validate = __commonJS({
|
|
|
2355
2355
|
}
|
|
2356
2356
|
validateFunction(it, () => (0, boolSchema_1.topBoolOrEmptySchema)(it));
|
|
2357
2357
|
}
|
|
2358
|
-
exports
|
|
2358
|
+
exports.validateFunctionCode = validateFunctionCode;
|
|
2359
2359
|
function validateFunction({ gen, validateName, schema, schemaEnv, opts }, body) {
|
|
2360
2360
|
if (opts.code.es5) {
|
|
2361
2361
|
gen.func(validateName, (0, codegen_1._)`${names_1.default.data}, ${names_1.default.valCxt}`, schemaEnv.$async, () => {
|
|
@@ -2775,7 +2775,7 @@ var require_validate = __commonJS({
|
|
|
2775
2775
|
}
|
|
2776
2776
|
}
|
|
2777
2777
|
};
|
|
2778
|
-
exports
|
|
2778
|
+
exports.KeywordCxt = KeywordCxt;
|
|
2779
2779
|
function keywordCode(it, keyword, def, ruleType) {
|
|
2780
2780
|
const cxt = new KeywordCxt(it, def, keyword);
|
|
2781
2781
|
if ("code" in def) {
|
|
@@ -2830,14 +2830,14 @@ var require_validate = __commonJS({
|
|
|
2830
2830
|
return `Cannot access ${pointerType} ${up} levels up, current level is ${dataLevel}`;
|
|
2831
2831
|
}
|
|
2832
2832
|
}
|
|
2833
|
-
exports
|
|
2833
|
+
exports.getData = getData;
|
|
2834
2834
|
}
|
|
2835
2835
|
});
|
|
2836
2836
|
|
|
2837
2837
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/validation_error.js
|
|
2838
2838
|
var require_validation_error = __commonJS({
|
|
2839
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/validation_error.js"(exports
|
|
2840
|
-
Object.defineProperty(exports
|
|
2839
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/validation_error.js"(exports) {
|
|
2840
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2841
2841
|
var ValidationError = class extends Error {
|
|
2842
2842
|
constructor(errors) {
|
|
2843
2843
|
super("validation failed");
|
|
@@ -2845,14 +2845,14 @@ var require_validation_error = __commonJS({
|
|
|
2845
2845
|
this.ajv = this.validation = true;
|
|
2846
2846
|
}
|
|
2847
2847
|
};
|
|
2848
|
-
exports
|
|
2848
|
+
exports.default = ValidationError;
|
|
2849
2849
|
}
|
|
2850
2850
|
});
|
|
2851
2851
|
|
|
2852
2852
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/ref_error.js
|
|
2853
2853
|
var require_ref_error = __commonJS({
|
|
2854
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/ref_error.js"(exports
|
|
2855
|
-
Object.defineProperty(exports
|
|
2854
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/ref_error.js"(exports) {
|
|
2855
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2856
2856
|
var resolve_1 = require_resolve();
|
|
2857
2857
|
var MissingRefError = class extends Error {
|
|
2858
2858
|
constructor(resolver, baseId, ref, msg) {
|
|
@@ -2861,15 +2861,15 @@ var require_ref_error = __commonJS({
|
|
|
2861
2861
|
this.missingSchema = (0, resolve_1.normalizeId)((0, resolve_1.getFullPath)(resolver, this.missingRef));
|
|
2862
2862
|
}
|
|
2863
2863
|
};
|
|
2864
|
-
exports
|
|
2864
|
+
exports.default = MissingRefError;
|
|
2865
2865
|
}
|
|
2866
2866
|
});
|
|
2867
2867
|
|
|
2868
2868
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/index.js
|
|
2869
2869
|
var require_compile = __commonJS({
|
|
2870
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/index.js"(exports
|
|
2871
|
-
Object.defineProperty(exports
|
|
2872
|
-
exports
|
|
2870
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/index.js"(exports) {
|
|
2871
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2872
|
+
exports.resolveSchema = exports.getCompilingSchema = exports.resolveRef = exports.compileSchema = exports.SchemaEnv = void 0;
|
|
2873
2873
|
var codegen_1 = require_codegen();
|
|
2874
2874
|
var validation_error_1 = require_validation_error();
|
|
2875
2875
|
var names_1 = require_names();
|
|
@@ -2895,7 +2895,7 @@ var require_compile = __commonJS({
|
|
|
2895
2895
|
this.refs = {};
|
|
2896
2896
|
}
|
|
2897
2897
|
};
|
|
2898
|
-
exports
|
|
2898
|
+
exports.SchemaEnv = SchemaEnv;
|
|
2899
2899
|
function compileSchema(sch) {
|
|
2900
2900
|
const _sch = getCompilingSchema.call(this, sch);
|
|
2901
2901
|
if (_sch)
|
|
@@ -2981,7 +2981,7 @@ var require_compile = __commonJS({
|
|
|
2981
2981
|
this._compilations.delete(sch);
|
|
2982
2982
|
}
|
|
2983
2983
|
}
|
|
2984
|
-
exports
|
|
2984
|
+
exports.compileSchema = compileSchema;
|
|
2985
2985
|
function resolveRef(root, baseId, ref) {
|
|
2986
2986
|
var _a3;
|
|
2987
2987
|
ref = (0, resolve_1.resolveUrl)(this.opts.uriResolver, baseId, ref);
|
|
@@ -2999,7 +2999,7 @@ var require_compile = __commonJS({
|
|
|
2999
2999
|
return;
|
|
3000
3000
|
return root.refs[ref] = inlineOrCompile.call(this, _sch);
|
|
3001
3001
|
}
|
|
3002
|
-
exports
|
|
3002
|
+
exports.resolveRef = resolveRef;
|
|
3003
3003
|
function inlineOrCompile(sch) {
|
|
3004
3004
|
if ((0, resolve_1.inlineRef)(sch.schema, this.opts.inlineRefs))
|
|
3005
3005
|
return sch.schema;
|
|
@@ -3011,7 +3011,7 @@ var require_compile = __commonJS({
|
|
|
3011
3011
|
return sch;
|
|
3012
3012
|
}
|
|
3013
3013
|
}
|
|
3014
|
-
exports
|
|
3014
|
+
exports.getCompilingSchema = getCompilingSchema;
|
|
3015
3015
|
function sameSchemaEnv(s1, s2) {
|
|
3016
3016
|
return s1.schema === s2.schema && s1.root === s2.root && s1.baseId === s2.baseId;
|
|
3017
3017
|
}
|
|
@@ -3050,7 +3050,7 @@ var require_compile = __commonJS({
|
|
|
3050
3050
|
}
|
|
3051
3051
|
return getJsonPointer.call(this, p, schOrRef);
|
|
3052
3052
|
}
|
|
3053
|
-
exports
|
|
3053
|
+
exports.resolveSchema = resolveSchema;
|
|
3054
3054
|
var PREVENT_SCOPE_CHANGE = /* @__PURE__ */ new Set([
|
|
3055
3055
|
"properties",
|
|
3056
3056
|
"patternProperties",
|
|
@@ -3090,7 +3090,7 @@ var require_compile = __commonJS({
|
|
|
3090
3090
|
|
|
3091
3091
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/data.json
|
|
3092
3092
|
var require_data = __commonJS({
|
|
3093
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/data.json"(exports
|
|
3093
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/data.json"(exports, module) {
|
|
3094
3094
|
module.exports = {
|
|
3095
3095
|
$id: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",
|
|
3096
3096
|
description: "Meta-schema for $data reference (JSON AnySchema extension proposal)",
|
|
@@ -3107,11 +3107,33 @@ var require_data = __commonJS({
|
|
|
3107
3107
|
}
|
|
3108
3108
|
});
|
|
3109
3109
|
|
|
3110
|
-
// ../../node_modules/.pnpm/fast-uri@3.1.
|
|
3110
|
+
// ../../node_modules/.pnpm/fast-uri@3.1.7/node_modules/fast-uri/lib/utils.js
|
|
3111
3111
|
var require_utils = __commonJS({
|
|
3112
|
-
"../../node_modules/.pnpm/fast-uri@3.1.
|
|
3112
|
+
"../../node_modules/.pnpm/fast-uri@3.1.7/node_modules/fast-uri/lib/utils.js"(exports, module) {
|
|
3113
3113
|
var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
|
|
3114
3114
|
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);
|
|
3115
|
+
var isPort = RegExp.prototype.test.bind(/^\d*$/u);
|
|
3116
|
+
var isHexPair = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu);
|
|
3117
|
+
var isUnreserved = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu);
|
|
3118
|
+
var isPathCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u);
|
|
3119
|
+
var isQueryFragmentCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]$/u);
|
|
3120
|
+
var isUserinfoCharacter = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u);
|
|
3121
|
+
var BYTE_HEX = new Array(256);
|
|
3122
|
+
{
|
|
3123
|
+
const HEX_DIGITS = "0123456789ABCDEF";
|
|
3124
|
+
for (let i = 0; i < 256; i++) {
|
|
3125
|
+
BYTE_HEX[i] = "%" + HEX_DIGITS[i >> 4] + HEX_DIGITS[i & 15];
|
|
3126
|
+
}
|
|
3127
|
+
}
|
|
3128
|
+
function percentEncodeNonAscii(cp) {
|
|
3129
|
+
if (cp < 2048) {
|
|
3130
|
+
return BYTE_HEX[192 | cp >> 6] + BYTE_HEX[128 | cp & 63];
|
|
3131
|
+
}
|
|
3132
|
+
if (cp < 65536) {
|
|
3133
|
+
return BYTE_HEX[224 | cp >> 12] + BYTE_HEX[128 | cp >> 6 & 63] + BYTE_HEX[128 | cp & 63];
|
|
3134
|
+
}
|
|
3135
|
+
return BYTE_HEX[240 | cp >> 18] + BYTE_HEX[128 | cp >> 12 & 63] + BYTE_HEX[128 | cp >> 6 & 63] + BYTE_HEX[128 | cp & 63];
|
|
3136
|
+
}
|
|
3115
3137
|
function stringArrayToHexStripped(input) {
|
|
3116
3138
|
let acc = "";
|
|
3117
3139
|
let code = 0;
|
|
@@ -3136,91 +3158,105 @@ var require_utils = __commonJS({
|
|
|
3136
3158
|
}
|
|
3137
3159
|
return acc;
|
|
3138
3160
|
}
|
|
3161
|
+
var isHextet = RegExp.prototype.test.bind(/^[\dA-Fa-f]{1,4}$/);
|
|
3162
|
+
var isIPvFuture = RegExp.prototype.test.bind(/^[vV][\dA-Fa-f]+\.[A-Za-z\d\-._~!$&'()*+,;=:]+$/);
|
|
3163
|
+
var isZoneCharacter = RegExp.prototype.test.bind(/^[A-Za-z\d\-._~]$/);
|
|
3139
3164
|
var nonSimpleDomain = RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);
|
|
3140
|
-
function
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
if (hex !== "") {
|
|
3148
|
-
address.push(hex);
|
|
3149
|
-
} else {
|
|
3150
|
-
output.error = true;
|
|
3151
|
-
return false;
|
|
3165
|
+
function isZoneIdentifier(zone) {
|
|
3166
|
+
if (zone.length === 0) return false;
|
|
3167
|
+
for (let i = 0; i < zone.length; i++) {
|
|
3168
|
+
if (isZoneCharacter(zone[i])) continue;
|
|
3169
|
+
if (zone[i] === "%" && i + 2 < zone.length && isHexPair(zone.slice(i + 1, i + 3))) {
|
|
3170
|
+
i += 2;
|
|
3171
|
+
continue;
|
|
3152
3172
|
}
|
|
3153
|
-
|
|
3173
|
+
return false;
|
|
3154
3174
|
}
|
|
3155
3175
|
return true;
|
|
3156
3176
|
}
|
|
3157
|
-
function
|
|
3158
|
-
let
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
let
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
}
|
|
3170
|
-
if (cursor === ":") {
|
|
3171
|
-
if (endipv6Encountered === true) {
|
|
3172
|
-
endIpv6 = true;
|
|
3173
|
-
}
|
|
3174
|
-
if (!consume(buffer, address, output)) {
|
|
3175
|
-
break;
|
|
3176
|
-
}
|
|
3177
|
-
if (++tokenCount > 7) {
|
|
3178
|
-
output.error = true;
|
|
3179
|
-
break;
|
|
3180
|
-
}
|
|
3181
|
-
if (i > 0 && input[i - 1] === ":") {
|
|
3182
|
-
endipv6Encountered = true;
|
|
3177
|
+
function compressIPv6ZeroRun(hextets) {
|
|
3178
|
+
let bestStart = -1;
|
|
3179
|
+
let bestLength = 0;
|
|
3180
|
+
let runStart = -1;
|
|
3181
|
+
let runLength = 0;
|
|
3182
|
+
for (let i = 0; i < hextets.length; i++) {
|
|
3183
|
+
if (hextets[i] === "0") {
|
|
3184
|
+
if (runStart === -1) runStart = i;
|
|
3185
|
+
runLength++;
|
|
3186
|
+
if (runLength > bestLength) {
|
|
3187
|
+
bestLength = runLength;
|
|
3188
|
+
bestStart = runStart;
|
|
3183
3189
|
}
|
|
3184
|
-
address.push(":");
|
|
3185
|
-
continue;
|
|
3186
|
-
} else if (cursor === "%") {
|
|
3187
|
-
if (!consume(buffer, address, output)) {
|
|
3188
|
-
break;
|
|
3189
|
-
}
|
|
3190
|
-
consume = consumeIsZone;
|
|
3191
3190
|
} else {
|
|
3192
|
-
|
|
3191
|
+
runStart = -1;
|
|
3192
|
+
runLength = 0;
|
|
3193
|
+
}
|
|
3194
|
+
}
|
|
3195
|
+
if (bestLength < 2) return hextets.join(":");
|
|
3196
|
+
const head = hextets.slice(0, bestStart).join(":");
|
|
3197
|
+
const tail = hextets.slice(bestStart + bestLength).join(":");
|
|
3198
|
+
return head + "::" + tail;
|
|
3199
|
+
}
|
|
3200
|
+
function normalizeIPv6Address(input) {
|
|
3201
|
+
const compression = input.indexOf("::");
|
|
3202
|
+
if (compression !== -1 && input.indexOf("::", compression + 1) !== -1) return void 0;
|
|
3203
|
+
const left = compression === -1 ? input.split(":") : input.slice(0, compression).split(":");
|
|
3204
|
+
const right = compression === -1 ? [] : input.slice(compression + 2).split(":");
|
|
3205
|
+
if (compression !== -1) {
|
|
3206
|
+
if (left.length === 1 && left[0] === "") left.length = 0;
|
|
3207
|
+
if (right.length === 1 && right[0] === "") right.length = 0;
|
|
3208
|
+
}
|
|
3209
|
+
const parts = left.concat(right);
|
|
3210
|
+
let hextetCount = 0;
|
|
3211
|
+
for (let i = 0; i < parts.length; i++) {
|
|
3212
|
+
const part = parts[i];
|
|
3213
|
+
if (part === "") return void 0;
|
|
3214
|
+
if (part.indexOf(".") !== -1) {
|
|
3215
|
+
if (i !== parts.length - 1 || compression !== -1 && right.length === 0 || !isIPv4(part)) return void 0;
|
|
3216
|
+
hextetCount += 2;
|
|
3193
3217
|
continue;
|
|
3194
3218
|
}
|
|
3219
|
+
if (!isHextet(part)) return void 0;
|
|
3220
|
+
parts[i] = parseInt(part, 16).toString(16);
|
|
3221
|
+
hextetCount++;
|
|
3195
3222
|
}
|
|
3196
|
-
if (
|
|
3197
|
-
if (
|
|
3198
|
-
|
|
3199
|
-
} else if (endIpv6) {
|
|
3200
|
-
address.push(buffer.join(""));
|
|
3201
|
-
} else {
|
|
3202
|
-
address.push(stringArrayToHexStripped(buffer));
|
|
3203
|
-
}
|
|
3223
|
+
if (compression === -1) {
|
|
3224
|
+
if (hextetCount !== 8) return void 0;
|
|
3225
|
+
return compressIPv6ZeroRun(parts);
|
|
3204
3226
|
}
|
|
3205
|
-
|
|
3206
|
-
|
|
3227
|
+
if (hextetCount >= 8) return void 0;
|
|
3228
|
+
const expanded = parts.slice(0, left.length);
|
|
3229
|
+
for (let i = hextetCount; i < 8; i++) expanded.push("0");
|
|
3230
|
+
for (let i = left.length; i < parts.length; i++) expanded.push(parts[i]);
|
|
3231
|
+
return compressIPv6ZeroRun(expanded);
|
|
3207
3232
|
}
|
|
3208
3233
|
function normalizeIPv6(host) {
|
|
3209
|
-
|
|
3210
|
-
|
|
3211
|
-
}
|
|
3212
|
-
|
|
3213
|
-
if (
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3234
|
+
const bracketed = host[0] === "[" && host[host.length - 1] === "]";
|
|
3235
|
+
const hasBracket = host[0] === "[" || host[host.length - 1] === "]";
|
|
3236
|
+
if (hasBracket && !bracketed) return { host, isIPV6: false, error: true };
|
|
3237
|
+
let input = bracketed ? host.slice(1, -1) : host;
|
|
3238
|
+
if (bracketed && isIPvFuture(input)) {
|
|
3239
|
+
input = input.toLowerCase();
|
|
3240
|
+
return { host: `[${input}]`, escapedHost: input, isIPV6: false, isIPVFuture: true };
|
|
3241
|
+
}
|
|
3242
|
+
if (findToken(input, ":") < 2) {
|
|
3243
|
+
return { host, isIPV6: false, error: bracketed };
|
|
3244
|
+
}
|
|
3245
|
+
let zoneIdentifier = "";
|
|
3246
|
+
const zoneSeparator = input.indexOf("%");
|
|
3247
|
+
if (zoneSeparator !== -1) {
|
|
3248
|
+
const separatorLength = input.slice(zoneSeparator, zoneSeparator + 3).toLowerCase() === "%25" ? 3 : 1;
|
|
3249
|
+
zoneIdentifier = input.slice(zoneSeparator + separatorLength);
|
|
3250
|
+
if (!isZoneIdentifier(zoneIdentifier)) return { host, isIPV6: false, error: true };
|
|
3251
|
+
input = input.slice(0, zoneSeparator);
|
|
3252
|
+
}
|
|
3253
|
+
const address = normalizeIPv6Address(input);
|
|
3254
|
+
if (address === void 0) return { host, isIPV6: false, error: true };
|
|
3255
|
+
return {
|
|
3256
|
+
host: address + (zoneIdentifier ? "%" + zoneIdentifier : ""),
|
|
3257
|
+
escapedHost: address + (zoneIdentifier ? "%25" + zoneIdentifier : ""),
|
|
3258
|
+
isIPV6: true
|
|
3259
|
+
};
|
|
3224
3260
|
}
|
|
3225
3261
|
function findToken(str, token) {
|
|
3226
3262
|
let ind = 0;
|
|
@@ -3304,56 +3340,265 @@ var require_utils = __commonJS({
|
|
|
3304
3340
|
}
|
|
3305
3341
|
return output.join("");
|
|
3306
3342
|
}
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3343
|
+
var HOST_DELIMS = { "@": "%40", "/": "%2F", "?": "%3F", "#": "%23", ":": "%3A" };
|
|
3344
|
+
var HOST_DELIM_RE = /[@/?#:]/g;
|
|
3345
|
+
var HOST_DELIM_NO_COLON_RE = /[@/?#]/g;
|
|
3346
|
+
function reescapeHostDelimiters(host, isIP) {
|
|
3347
|
+
const re = isIP ? HOST_DELIM_NO_COLON_RE : HOST_DELIM_RE;
|
|
3348
|
+
re.lastIndex = 0;
|
|
3349
|
+
return host.replace(re, (ch) => HOST_DELIMS[ch]);
|
|
3350
|
+
}
|
|
3351
|
+
function normalizePercentEncoding(input, decodeUnreserved = false) {
|
|
3352
|
+
if (input.indexOf("%") === -1) {
|
|
3353
|
+
return input;
|
|
3311
3354
|
}
|
|
3312
|
-
|
|
3313
|
-
|
|
3355
|
+
let output = "";
|
|
3356
|
+
for (let i = 0; i < input.length; i++) {
|
|
3357
|
+
if (input[i] === "%" && i + 2 < input.length) {
|
|
3358
|
+
const hex = input.slice(i + 1, i + 3);
|
|
3359
|
+
if (isHexPair(hex)) {
|
|
3360
|
+
const normalizedHex = hex.toUpperCase();
|
|
3361
|
+
const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
|
|
3362
|
+
if (decodeUnreserved && isUnreserved(decoded)) {
|
|
3363
|
+
output += decoded;
|
|
3364
|
+
} else {
|
|
3365
|
+
output += "%" + normalizedHex;
|
|
3366
|
+
}
|
|
3367
|
+
i += 2;
|
|
3368
|
+
continue;
|
|
3369
|
+
}
|
|
3370
|
+
}
|
|
3371
|
+
output += input[i];
|
|
3314
3372
|
}
|
|
3315
|
-
|
|
3316
|
-
|
|
3373
|
+
return output;
|
|
3374
|
+
}
|
|
3375
|
+
function normalizePathEncoding(input) {
|
|
3376
|
+
let output = "";
|
|
3377
|
+
for (let i = 0; i < input.length; i++) {
|
|
3378
|
+
const ch = input[i];
|
|
3379
|
+
if (ch === "%" && i + 2 < input.length) {
|
|
3380
|
+
const hex = input.slice(i + 1, i + 3);
|
|
3381
|
+
if (isHexPair(hex)) {
|
|
3382
|
+
const normalizedHex = hex.toUpperCase();
|
|
3383
|
+
const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
|
|
3384
|
+
if (decoded !== "." && isUnreserved(decoded)) {
|
|
3385
|
+
output += decoded;
|
|
3386
|
+
} else {
|
|
3387
|
+
output += "%" + normalizedHex;
|
|
3388
|
+
}
|
|
3389
|
+
i += 2;
|
|
3390
|
+
continue;
|
|
3391
|
+
}
|
|
3392
|
+
}
|
|
3393
|
+
if (isPathCharacter(ch)) {
|
|
3394
|
+
output += ch;
|
|
3395
|
+
} else {
|
|
3396
|
+
const code = input.charCodeAt(i);
|
|
3397
|
+
if (code < 128) {
|
|
3398
|
+
output += isEscapeSafe(code) ? ch : BYTE_HEX[code];
|
|
3399
|
+
} else if (code < 55296 || code > 57343) {
|
|
3400
|
+
output += percentEncodeNonAscii(code);
|
|
3401
|
+
} else if (code <= 56319 && i + 1 < input.length) {
|
|
3402
|
+
const low = input.charCodeAt(i + 1);
|
|
3403
|
+
if (low >= 56320 && low <= 57343) {
|
|
3404
|
+
output += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
|
|
3405
|
+
i++;
|
|
3406
|
+
} else {
|
|
3407
|
+
output += percentEncodeNonAscii(65533);
|
|
3408
|
+
}
|
|
3409
|
+
} else {
|
|
3410
|
+
output += percentEncodeNonAscii(65533);
|
|
3411
|
+
}
|
|
3412
|
+
}
|
|
3317
3413
|
}
|
|
3318
|
-
|
|
3319
|
-
|
|
3414
|
+
return output;
|
|
3415
|
+
}
|
|
3416
|
+
function serializePathEncoding(input, pathNoScheme = false) {
|
|
3417
|
+
let output = "";
|
|
3418
|
+
let firstSegment = pathNoScheme && input[0] !== "/";
|
|
3419
|
+
for (let i = 0; i < input.length; i++) {
|
|
3420
|
+
const ch = input[i];
|
|
3421
|
+
if (ch === "%" && i + 2 < input.length) {
|
|
3422
|
+
const hex = input.slice(i + 1, i + 3);
|
|
3423
|
+
if (isHexPair(hex)) {
|
|
3424
|
+
output += "%" + hex.toUpperCase();
|
|
3425
|
+
i += 2;
|
|
3426
|
+
continue;
|
|
3427
|
+
}
|
|
3428
|
+
}
|
|
3429
|
+
if (ch === "/") {
|
|
3430
|
+
firstSegment = false;
|
|
3431
|
+
}
|
|
3432
|
+
if (isPathCharacter(ch) && (ch !== ":" || !firstSegment)) {
|
|
3433
|
+
output += ch;
|
|
3434
|
+
} else {
|
|
3435
|
+
const code = input.charCodeAt(i);
|
|
3436
|
+
if (code < 128) {
|
|
3437
|
+
output += BYTE_HEX[code];
|
|
3438
|
+
} else if (code < 55296 || code > 57343) {
|
|
3439
|
+
output += percentEncodeNonAscii(code);
|
|
3440
|
+
} else if (code <= 56319 && i + 1 < input.length) {
|
|
3441
|
+
const low = input.charCodeAt(i + 1);
|
|
3442
|
+
if (low >= 56320 && low <= 57343) {
|
|
3443
|
+
output += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
|
|
3444
|
+
i++;
|
|
3445
|
+
} else {
|
|
3446
|
+
output += percentEncodeNonAscii(65533);
|
|
3447
|
+
}
|
|
3448
|
+
} else {
|
|
3449
|
+
output += percentEncodeNonAscii(65533);
|
|
3450
|
+
}
|
|
3451
|
+
}
|
|
3320
3452
|
}
|
|
3321
|
-
|
|
3322
|
-
|
|
3453
|
+
return output;
|
|
3454
|
+
}
|
|
3455
|
+
function encodeComponent(input, isAllowed) {
|
|
3456
|
+
let output = "";
|
|
3457
|
+
for (let i = 0; i < input.length; i++) {
|
|
3458
|
+
const ch = input[i];
|
|
3459
|
+
if (ch === "%" && i + 2 < input.length) {
|
|
3460
|
+
const hex = input.slice(i + 1, i + 3);
|
|
3461
|
+
if (isHexPair(hex)) {
|
|
3462
|
+
output += "%" + hex.toUpperCase();
|
|
3463
|
+
i += 2;
|
|
3464
|
+
continue;
|
|
3465
|
+
}
|
|
3466
|
+
}
|
|
3467
|
+
if (isAllowed(ch)) {
|
|
3468
|
+
output += ch;
|
|
3469
|
+
} else {
|
|
3470
|
+
const code = input.charCodeAt(i);
|
|
3471
|
+
if (code < 128) {
|
|
3472
|
+
output += BYTE_HEX[code];
|
|
3473
|
+
} else if (code < 55296 || code > 57343) {
|
|
3474
|
+
output += percentEncodeNonAscii(code);
|
|
3475
|
+
} else if (code <= 56319 && i + 1 < input.length) {
|
|
3476
|
+
const low = input.charCodeAt(i + 1);
|
|
3477
|
+
if (low >= 56320 && low <= 57343) {
|
|
3478
|
+
output += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
|
|
3479
|
+
i++;
|
|
3480
|
+
} else {
|
|
3481
|
+
output += percentEncodeNonAscii(65533);
|
|
3482
|
+
}
|
|
3483
|
+
} else {
|
|
3484
|
+
output += percentEncodeNonAscii(65533);
|
|
3485
|
+
}
|
|
3486
|
+
}
|
|
3323
3487
|
}
|
|
3324
|
-
|
|
3325
|
-
|
|
3488
|
+
return output;
|
|
3489
|
+
}
|
|
3490
|
+
function encodeUserinfo(input) {
|
|
3491
|
+
return encodeComponent(input, isUserinfoCharacter);
|
|
3492
|
+
}
|
|
3493
|
+
function encodeQuery(input) {
|
|
3494
|
+
return encodeComponent(input, isQueryFragmentCharacter);
|
|
3495
|
+
}
|
|
3496
|
+
function encodeFragment(input) {
|
|
3497
|
+
return encodeComponent(input, isQueryFragmentCharacter);
|
|
3498
|
+
}
|
|
3499
|
+
function isEscapeSafe(cp) {
|
|
3500
|
+
return cp >= 48 && cp <= 57 || cp >= 65 && cp <= 90 || cp >= 97 && cp <= 122 || cp === 42 || cp === 43 || cp === 45 || cp === 46 || cp === 47 || cp === 64 || cp === 95;
|
|
3501
|
+
}
|
|
3502
|
+
function normalizeQueryFragmentEncoding(input) {
|
|
3503
|
+
let output = "";
|
|
3504
|
+
for (let i = 0; i < input.length; i++) {
|
|
3505
|
+
const ch = input[i];
|
|
3506
|
+
if (ch === "%" && i + 2 < input.length) {
|
|
3507
|
+
const hex = input.slice(i + 1, i + 3);
|
|
3508
|
+
if (isHexPair(hex)) {
|
|
3509
|
+
const normalizedHex = hex.toUpperCase();
|
|
3510
|
+
const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
|
|
3511
|
+
if (isUnreserved(decoded)) {
|
|
3512
|
+
output += decoded;
|
|
3513
|
+
} else {
|
|
3514
|
+
output += "%" + normalizedHex;
|
|
3515
|
+
}
|
|
3516
|
+
i += 2;
|
|
3517
|
+
continue;
|
|
3518
|
+
}
|
|
3519
|
+
}
|
|
3520
|
+
if (isQueryFragmentCharacter(ch)) {
|
|
3521
|
+
output += ch;
|
|
3522
|
+
} else {
|
|
3523
|
+
const code = input.charCodeAt(i);
|
|
3524
|
+
if (code < 128) {
|
|
3525
|
+
output += isEscapeSafe(code) ? ch : BYTE_HEX[code];
|
|
3526
|
+
} else if (code < 55296 || code > 57343) {
|
|
3527
|
+
output += percentEncodeNonAscii(code);
|
|
3528
|
+
} else if (code <= 56319 && i + 1 < input.length) {
|
|
3529
|
+
const low = input.charCodeAt(i + 1);
|
|
3530
|
+
if (low >= 56320 && low <= 57343) {
|
|
3531
|
+
output += percentEncodeNonAscii(65536 + (code - 55296 << 10) + (low - 56320));
|
|
3532
|
+
i++;
|
|
3533
|
+
} else {
|
|
3534
|
+
output += percentEncodeNonAscii(65533);
|
|
3535
|
+
}
|
|
3536
|
+
} else {
|
|
3537
|
+
output += percentEncodeNonAscii(65533);
|
|
3538
|
+
}
|
|
3539
|
+
}
|
|
3326
3540
|
}
|
|
3327
|
-
return
|
|
3541
|
+
return output;
|
|
3542
|
+
}
|
|
3543
|
+
function escapePreservingEscapes(input) {
|
|
3544
|
+
let output = "";
|
|
3545
|
+
for (let i = 0; i < input.length; i++) {
|
|
3546
|
+
if (input[i] === "%" && i + 2 < input.length) {
|
|
3547
|
+
const hex = input.slice(i + 1, i + 3);
|
|
3548
|
+
if (isHexPair(hex)) {
|
|
3549
|
+
output += "%" + hex.toUpperCase();
|
|
3550
|
+
i += 2;
|
|
3551
|
+
continue;
|
|
3552
|
+
}
|
|
3553
|
+
}
|
|
3554
|
+
output += escape(input[i]);
|
|
3555
|
+
}
|
|
3556
|
+
return output;
|
|
3328
3557
|
}
|
|
3329
3558
|
function recomposeAuthority(component) {
|
|
3330
3559
|
const uriTokens = [];
|
|
3331
3560
|
if (component.userinfo !== void 0) {
|
|
3332
|
-
uriTokens.push(component.userinfo);
|
|
3561
|
+
uriTokens.push(encodeUserinfo(component.userinfo));
|
|
3333
3562
|
uriTokens.push("@");
|
|
3334
3563
|
}
|
|
3335
3564
|
if (component.host !== void 0) {
|
|
3336
|
-
let host =
|
|
3565
|
+
let host = component.host;
|
|
3337
3566
|
if (!isIPv4(host)) {
|
|
3338
|
-
|
|
3339
|
-
if (ipV6res.isIPV6
|
|
3567
|
+
let ipV6res = normalizeIPv6(host);
|
|
3568
|
+
if (ipV6res.isIPV6 !== true && ipV6res.isIPVFuture !== true) {
|
|
3569
|
+
host = normalizePercentEncoding(host, true);
|
|
3570
|
+
ipV6res = normalizeIPv6(host);
|
|
3571
|
+
}
|
|
3572
|
+
if (ipV6res.isIPV6 === true || ipV6res.isIPVFuture === true) {
|
|
3340
3573
|
host = `[${ipV6res.escapedHost}]`;
|
|
3341
3574
|
} else {
|
|
3342
|
-
host =
|
|
3575
|
+
host = reescapeHostDelimiters(host, false);
|
|
3343
3576
|
}
|
|
3344
3577
|
}
|
|
3345
3578
|
uriTokens.push(host);
|
|
3346
3579
|
}
|
|
3347
3580
|
if (typeof component.port === "number" || typeof component.port === "string") {
|
|
3581
|
+
const port = String(component.port);
|
|
3582
|
+
if (!isPort(port)) {
|
|
3583
|
+
throw new TypeError("URI port is malformed.");
|
|
3584
|
+
}
|
|
3348
3585
|
uriTokens.push(":");
|
|
3349
|
-
uriTokens.push(
|
|
3586
|
+
uriTokens.push(port);
|
|
3350
3587
|
}
|
|
3351
3588
|
return uriTokens.length ? uriTokens.join("") : void 0;
|
|
3352
3589
|
}
|
|
3353
3590
|
module.exports = {
|
|
3354
3591
|
nonSimpleDomain,
|
|
3355
3592
|
recomposeAuthority,
|
|
3356
|
-
|
|
3593
|
+
reescapeHostDelimiters,
|
|
3594
|
+
normalizePercentEncoding,
|
|
3595
|
+
normalizePathEncoding,
|
|
3596
|
+
serializePathEncoding,
|
|
3597
|
+
normalizeQueryFragmentEncoding,
|
|
3598
|
+
encodeUserinfo,
|
|
3599
|
+
encodeQuery,
|
|
3600
|
+
encodeFragment,
|
|
3601
|
+
escapePreservingEscapes,
|
|
3357
3602
|
removeDotSegments,
|
|
3358
3603
|
isIPv4,
|
|
3359
3604
|
isUUID,
|
|
@@ -3363,11 +3608,11 @@ var require_utils = __commonJS({
|
|
|
3363
3608
|
}
|
|
3364
3609
|
});
|
|
3365
3610
|
|
|
3366
|
-
// ../../node_modules/.pnpm/fast-uri@3.1.
|
|
3611
|
+
// ../../node_modules/.pnpm/fast-uri@3.1.7/node_modules/fast-uri/lib/schemes.js
|
|
3367
3612
|
var require_schemes = __commonJS({
|
|
3368
|
-
"../../node_modules/.pnpm/fast-uri@3.1.
|
|
3613
|
+
"../../node_modules/.pnpm/fast-uri@3.1.7/node_modules/fast-uri/lib/schemes.js"(exports, module) {
|
|
3369
3614
|
var { isUUID } = require_utils();
|
|
3370
|
-
var URN_REG =
|
|
3615
|
+
var URN_REG = /^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu;
|
|
3371
3616
|
var supportedSchemeNames = (
|
|
3372
3617
|
/** @type {const} */
|
|
3373
3618
|
[
|
|
@@ -3428,9 +3673,10 @@ var require_schemes = __commonJS({
|
|
|
3428
3673
|
wsComponent.secure = void 0;
|
|
3429
3674
|
}
|
|
3430
3675
|
if (wsComponent.resourceName) {
|
|
3431
|
-
const
|
|
3676
|
+
const queryIndex = wsComponent.resourceName.indexOf("?");
|
|
3677
|
+
const path = queryIndex === -1 ? wsComponent.resourceName : wsComponent.resourceName.slice(0, queryIndex);
|
|
3432
3678
|
wsComponent.path = path && path !== "/" ? path : void 0;
|
|
3433
|
-
wsComponent.query =
|
|
3679
|
+
wsComponent.query = queryIndex === -1 ? void 0 : wsComponent.resourceName.slice(queryIndex + 1);
|
|
3434
3680
|
wsComponent.resourceName = void 0;
|
|
3435
3681
|
}
|
|
3436
3682
|
wsComponent.fragment = void 0;
|
|
@@ -3442,7 +3688,7 @@ var require_schemes = __commonJS({
|
|
|
3442
3688
|
return urnComponent;
|
|
3443
3689
|
}
|
|
3444
3690
|
const matches = urnComponent.path.match(URN_REG);
|
|
3445
|
-
if (matches) {
|
|
3691
|
+
if (matches && matches[0] === urnComponent.path) {
|
|
3446
3692
|
const scheme = options.scheme || urnComponent.scheme || "urn";
|
|
3447
3693
|
urnComponent.nid = matches[1].toLowerCase();
|
|
3448
3694
|
urnComponent.nss = matches[2];
|
|
@@ -3572,15 +3818,24 @@ var require_schemes = __commonJS({
|
|
|
3572
3818
|
}
|
|
3573
3819
|
});
|
|
3574
3820
|
|
|
3575
|
-
// ../../node_modules/.pnpm/fast-uri@3.1.
|
|
3821
|
+
// ../../node_modules/.pnpm/fast-uri@3.1.7/node_modules/fast-uri/index.js
|
|
3576
3822
|
var require_fast_uri = __commonJS({
|
|
3577
|
-
"../../node_modules/.pnpm/fast-uri@3.1.
|
|
3578
|
-
var { normalizeIPv6, removeDotSegments, recomposeAuthority,
|
|
3823
|
+
"../../node_modules/.pnpm/fast-uri@3.1.7/node_modules/fast-uri/index.js"(exports, module) {
|
|
3824
|
+
var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, serializePathEncoding, normalizeQueryFragmentEncoding, encodeQuery, encodeFragment, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
|
|
3579
3825
|
var { SCHEMES, getSchemeHandler } = require_schemes();
|
|
3826
|
+
var VALID_SCHEME = /^[A-Za-z][A-Za-z0-9+.-]*$/u;
|
|
3827
|
+
var MALFORMED_SCHEME_ERROR = "URI scheme is malformed.";
|
|
3828
|
+
function decodeValidScheme(scheme) {
|
|
3829
|
+
const decodedScheme = unescape(String(scheme));
|
|
3830
|
+
if (!VALID_SCHEME.test(decodedScheme)) {
|
|
3831
|
+
throw new TypeError(MALFORMED_SCHEME_ERROR);
|
|
3832
|
+
}
|
|
3833
|
+
return decodedScheme;
|
|
3834
|
+
}
|
|
3580
3835
|
function normalize(uri, options) {
|
|
3581
3836
|
if (typeof uri === "string") {
|
|
3582
3837
|
uri = /** @type {T} */
|
|
3583
|
-
|
|
3838
|
+
normalizeString(uri, options);
|
|
3584
3839
|
} else if (typeof uri === "object") {
|
|
3585
3840
|
uri = /** @type {T} */
|
|
3586
3841
|
parse3(serialize(uri, options), options);
|
|
@@ -3589,7 +3844,34 @@ var require_fast_uri = __commonJS({
|
|
|
3589
3844
|
}
|
|
3590
3845
|
function resolve(baseURI, relativeURI, options) {
|
|
3591
3846
|
const schemelessOptions = options ? Object.assign({ scheme: "null" }, options) : { scheme: "null" };
|
|
3592
|
-
const
|
|
3847
|
+
const {
|
|
3848
|
+
parsed: baseParsed,
|
|
3849
|
+
malformedAuthorityOrPort: baseMalformed,
|
|
3850
|
+
malformedPercentEncoding: baseMalformedPercentEncoding,
|
|
3851
|
+
malformedSchemeSpecific: baseMalformedSchemeSpecific,
|
|
3852
|
+
malformedHost: baseMalformedHost,
|
|
3853
|
+
malformedScheme: baseMalformedScheme
|
|
3854
|
+
} = parseWithStatus(baseURI, schemelessOptions);
|
|
3855
|
+
const {
|
|
3856
|
+
parsed: relativeParsed,
|
|
3857
|
+
malformedAuthorityOrPort: relativeMalformed,
|
|
3858
|
+
malformedPercentEncoding: relativeMalformedPercentEncoding,
|
|
3859
|
+
malformedSchemeSpecific: relativeMalformedSchemeSpecific,
|
|
3860
|
+
malformedHost: relativeMalformedHost,
|
|
3861
|
+
malformedScheme: relativeMalformedScheme
|
|
3862
|
+
} = parseWithStatus(relativeURI, schemelessOptions);
|
|
3863
|
+
if (baseMalformed || relativeMalformed || baseMalformedPercentEncoding || relativeMalformedPercentEncoding || baseMalformedSchemeSpecific || relativeMalformedSchemeSpecific || baseMalformedHost || relativeMalformedHost || baseMalformedScheme || relativeMalformedScheme) {
|
|
3864
|
+
throw new Error(baseParsed.error || relativeParsed.error || "URI is malformed.");
|
|
3865
|
+
}
|
|
3866
|
+
const resolved = resolveComponent(baseParsed, relativeParsed, schemelessOptions, true);
|
|
3867
|
+
const resolvedSchemeHandler = getSchemeHandler(options && options.scheme || resolved.scheme);
|
|
3868
|
+
const resolvedHost = resolved.host;
|
|
3869
|
+
const resolvedHostIsIP = resolvedHost !== void 0 && resolvedHost !== "" && (isIPv4(resolvedHost) || normalizeIPv6(resolvedHost).isIPV6);
|
|
3870
|
+
canonicalizeHost(resolved, options || {}, resolvedSchemeHandler, resolvedHostIsIP);
|
|
3871
|
+
const encodedASCIIHost = resolvedHost && resolvedHost.indexOf("%") !== -1 && !/\P{ASCII}/u.test(resolvedHost);
|
|
3872
|
+
if (resolved.error && !encodedASCIIHost) {
|
|
3873
|
+
throw new Error(resolved.error);
|
|
3874
|
+
}
|
|
3593
3875
|
schemelessOptions.skipEscape = true;
|
|
3594
3876
|
return serialize(resolved, schemelessOptions);
|
|
3595
3877
|
}
|
|
@@ -3647,19 +3929,9 @@ var require_fast_uri = __commonJS({
|
|
|
3647
3929
|
return target;
|
|
3648
3930
|
}
|
|
3649
3931
|
function equal(uriA, uriB, options) {
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
} else if (typeof uriA === "object") {
|
|
3654
|
-
uriA = serialize(normalizeComponentEncoding(uriA, true), { ...options, skipEscape: true });
|
|
3655
|
-
}
|
|
3656
|
-
if (typeof uriB === "string") {
|
|
3657
|
-
uriB = unescape(uriB);
|
|
3658
|
-
uriB = serialize(normalizeComponentEncoding(parse3(uriB, options), true), { ...options, skipEscape: true });
|
|
3659
|
-
} else if (typeof uriB === "object") {
|
|
3660
|
-
uriB = serialize(normalizeComponentEncoding(uriB, true), { ...options, skipEscape: true });
|
|
3661
|
-
}
|
|
3662
|
-
return uriA.toLowerCase() === uriB.toLowerCase();
|
|
3932
|
+
const normalizedA = normalizeComparableURI(uriA, options);
|
|
3933
|
+
const normalizedB = normalizeComparableURI(uriB, options);
|
|
3934
|
+
return normalizedA !== void 0 && normalizedB !== void 0 && normalizedA === normalizedB;
|
|
3663
3935
|
}
|
|
3664
3936
|
function serialize(cmpts, opts) {
|
|
3665
3937
|
const component = {
|
|
@@ -3680,19 +3952,22 @@ var require_fast_uri = __commonJS({
|
|
|
3680
3952
|
};
|
|
3681
3953
|
const options = Object.assign({}, opts);
|
|
3682
3954
|
const uriTokens = [];
|
|
3955
|
+
if (component.scheme) {
|
|
3956
|
+
component.scheme = decodeValidScheme(component.scheme);
|
|
3957
|
+
}
|
|
3683
3958
|
const schemeHandler = getSchemeHandler(options.scheme || component.scheme);
|
|
3684
3959
|
if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(component, options);
|
|
3960
|
+
const hasAuthority = component.userinfo !== void 0 || component.host !== void 0 || component.port !== void 0;
|
|
3961
|
+
const pathNoScheme = !options.skipEscape && component.scheme === void 0 && !hasAuthority;
|
|
3685
3962
|
if (component.path !== void 0) {
|
|
3686
3963
|
if (!options.skipEscape) {
|
|
3687
|
-
component.path =
|
|
3688
|
-
if (component.scheme !== void 0) {
|
|
3689
|
-
component.path = component.path.split("%3A").join(":");
|
|
3690
|
-
}
|
|
3964
|
+
component.path = serializePathEncoding(component.path, pathNoScheme);
|
|
3691
3965
|
} else {
|
|
3692
|
-
component.path =
|
|
3966
|
+
component.path = normalizePercentEncoding(component.path);
|
|
3693
3967
|
}
|
|
3694
3968
|
}
|
|
3695
3969
|
if (options.reference !== "suffix" && component.scheme) {
|
|
3970
|
+
component.scheme = decodeValidScheme(component.scheme);
|
|
3696
3971
|
uriTokens.push(component.scheme, ":");
|
|
3697
3972
|
}
|
|
3698
3973
|
const authority = recomposeAuthority(component);
|
|
@@ -3710,21 +3985,64 @@ var require_fast_uri = __commonJS({
|
|
|
3710
3985
|
if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {
|
|
3711
3986
|
s = removeDotSegments(s);
|
|
3712
3987
|
}
|
|
3988
|
+
if (pathNoScheme) {
|
|
3989
|
+
s = serializePathEncoding(s, true);
|
|
3990
|
+
}
|
|
3713
3991
|
if (authority === void 0 && s[0] === "/" && s[1] === "/") {
|
|
3714
3992
|
s = "/%2F" + s.slice(2);
|
|
3715
3993
|
}
|
|
3716
3994
|
uriTokens.push(s);
|
|
3717
3995
|
}
|
|
3718
3996
|
if (component.query !== void 0) {
|
|
3719
|
-
uriTokens.push("?", component.query);
|
|
3997
|
+
uriTokens.push("?", encodeQuery(component.query));
|
|
3720
3998
|
}
|
|
3721
3999
|
if (component.fragment !== void 0) {
|
|
3722
|
-
uriTokens.push("#", component.fragment);
|
|
4000
|
+
uriTokens.push("#", encodeFragment(component.fragment));
|
|
3723
4001
|
}
|
|
3724
4002
|
return uriTokens.join("");
|
|
3725
4003
|
}
|
|
3726
4004
|
var URI_PARSE = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
|
|
3727
|
-
|
|
4005
|
+
var AUTHORITY_PREFIX = /^(?:[^#/:?]+:)?\/\/([^/?#]*)/;
|
|
4006
|
+
var AUTHORITY_INTRODUCER_REGION = /^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;
|
|
4007
|
+
function getParseError(parsed, matches) {
|
|
4008
|
+
if (matches[2] !== void 0 && parsed.path && parsed.path[0] !== "/") {
|
|
4009
|
+
return 'URI path must start with "/" when authority is present.';
|
|
4010
|
+
}
|
|
4011
|
+
if (typeof parsed.port === "number" && (parsed.port < 0 || parsed.port > 65535)) {
|
|
4012
|
+
return "URI port is malformed.";
|
|
4013
|
+
}
|
|
4014
|
+
return void 0;
|
|
4015
|
+
}
|
|
4016
|
+
function hasMalformedPercentEncoding(component) {
|
|
4017
|
+
if (component === void 0) return false;
|
|
4018
|
+
let percent = component.indexOf("%");
|
|
4019
|
+
while (percent !== -1) {
|
|
4020
|
+
if (percent + 2 >= component.length || !/^[\da-f]{2}$/iu.test(component.slice(percent + 1, percent + 3))) {
|
|
4021
|
+
return true;
|
|
4022
|
+
}
|
|
4023
|
+
percent = component.indexOf("%", percent + 3);
|
|
4024
|
+
}
|
|
4025
|
+
return false;
|
|
4026
|
+
}
|
|
4027
|
+
function isIPLiteral(host) {
|
|
4028
|
+
return host[0] === "[" && host[host.length - 1] === "]";
|
|
4029
|
+
}
|
|
4030
|
+
function hasMalformedComponentPercentEncoding(matches) {
|
|
4031
|
+
const host = matches[4];
|
|
4032
|
+
return hasMalformedPercentEncoding(matches[3]) || host !== void 0 && !isIPLiteral(host) && hasMalformedPercentEncoding(host) || hasMalformedPercentEncoding(matches[6]) || hasMalformedPercentEncoding(matches[7]) || hasMalformedPercentEncoding(matches[8]);
|
|
4033
|
+
}
|
|
4034
|
+
function canonicalizeHost(parsed, options, schemeHandler, isIP) {
|
|
4035
|
+
if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport) && parsed.host && !isIPLiteral(parsed.host) && (options.domainHost || schemeHandler && schemeHandler.domainHost) && isIP === false && nonSimpleDomain(parsed.host)) {
|
|
4036
|
+
try {
|
|
4037
|
+
parsed.host = new URL("http://" + parsed.host).hostname;
|
|
4038
|
+
} catch (e) {
|
|
4039
|
+
parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e;
|
|
4040
|
+
return true;
|
|
4041
|
+
}
|
|
4042
|
+
}
|
|
4043
|
+
return false;
|
|
4044
|
+
}
|
|
4045
|
+
function parseWithStatus(uri, opts) {
|
|
3728
4046
|
const options = Object.assign({}, opts);
|
|
3729
4047
|
const parsed = {
|
|
3730
4048
|
scheme: void 0,
|
|
@@ -3735,6 +4053,12 @@ var require_fast_uri = __commonJS({
|
|
|
3735
4053
|
query: void 0,
|
|
3736
4054
|
fragment: void 0
|
|
3737
4055
|
};
|
|
4056
|
+
let malformedAuthorityOrPort = false;
|
|
4057
|
+
let malformedPercentEncoding = false;
|
|
4058
|
+
let malformedSchemeSpecific = false;
|
|
4059
|
+
let malformedHost = false;
|
|
4060
|
+
let malformedIPLiteral = false;
|
|
4061
|
+
let malformedScheme = false;
|
|
3738
4062
|
let isIP = false;
|
|
3739
4063
|
if (options.reference === "suffix") {
|
|
3740
4064
|
if (options.scheme) {
|
|
@@ -3743,6 +4067,25 @@ var require_fast_uri = __commonJS({
|
|
|
3743
4067
|
uri = "//" + uri;
|
|
3744
4068
|
}
|
|
3745
4069
|
}
|
|
4070
|
+
const authorityMatch = uri.match(AUTHORITY_PREFIX);
|
|
4071
|
+
if (authorityMatch !== null && authorityMatch[1].indexOf("\\") !== -1) {
|
|
4072
|
+
parsed.error = "URI authority must not contain a literal backslash.";
|
|
4073
|
+
malformedAuthorityOrPort = true;
|
|
4074
|
+
}
|
|
4075
|
+
const introducerMatch = uri.match(AUTHORITY_INTRODUCER_REGION);
|
|
4076
|
+
if (introducerMatch !== null) {
|
|
4077
|
+
const region = introducerMatch[1];
|
|
4078
|
+
const normalizedRegion = region.replace(/[\t\n\r]/g, "");
|
|
4079
|
+
if (normalizedRegion.length >= 2) {
|
|
4080
|
+
if (normalizedRegion.slice(0, 2) !== "//") {
|
|
4081
|
+
parsed.error = parsed.error || "URI authority must not contain a literal backslash.";
|
|
4082
|
+
malformedAuthorityOrPort = true;
|
|
4083
|
+
} else if (region.length !== normalizedRegion.length) {
|
|
4084
|
+
parsed.error = parsed.error || "URI authority introducer must not contain whitespace.";
|
|
4085
|
+
malformedAuthorityOrPort = true;
|
|
4086
|
+
}
|
|
4087
|
+
}
|
|
4088
|
+
}
|
|
3746
4089
|
const matches = uri.match(URI_PARSE);
|
|
3747
4090
|
if (matches) {
|
|
3748
4091
|
parsed.scheme = matches[1];
|
|
@@ -3752,15 +4095,40 @@ var require_fast_uri = __commonJS({
|
|
|
3752
4095
|
parsed.path = matches[6] || "";
|
|
3753
4096
|
parsed.query = matches[7];
|
|
3754
4097
|
parsed.fragment = matches[8];
|
|
4098
|
+
if (parsed.scheme !== void 0) {
|
|
4099
|
+
const decodedScheme = unescape(parsed.scheme);
|
|
4100
|
+
if (VALID_SCHEME.test(decodedScheme)) {
|
|
4101
|
+
parsed.scheme = decodedScheme.toLowerCase();
|
|
4102
|
+
} else {
|
|
4103
|
+
parsed.error = parsed.error || MALFORMED_SCHEME_ERROR;
|
|
4104
|
+
malformedScheme = true;
|
|
4105
|
+
}
|
|
4106
|
+
}
|
|
4107
|
+
malformedPercentEncoding = hasMalformedComponentPercentEncoding(matches);
|
|
4108
|
+
if (malformedPercentEncoding) {
|
|
4109
|
+
parsed.error = parsed.error || "URI contains malformed percent-encoding.";
|
|
4110
|
+
}
|
|
3755
4111
|
if (isNaN(parsed.port)) {
|
|
3756
4112
|
parsed.port = matches[5];
|
|
3757
4113
|
}
|
|
4114
|
+
const parseError = getParseError(parsed, matches);
|
|
4115
|
+
if (parseError !== void 0) {
|
|
4116
|
+
parsed.error = parsed.error || parseError;
|
|
4117
|
+
malformedAuthorityOrPort = true;
|
|
4118
|
+
}
|
|
3758
4119
|
if (parsed.host) {
|
|
3759
4120
|
const ipv4result = isIPv4(parsed.host);
|
|
3760
4121
|
if (ipv4result === false) {
|
|
4122
|
+
const bracketedIPLiteral = isIPLiteral(parsed.host);
|
|
4123
|
+
const hasIPLiteralBracket = parsed.host.indexOf("[") !== -1 || parsed.host.indexOf("]") !== -1;
|
|
3761
4124
|
const ipv6result = normalizeIPv6(parsed.host);
|
|
3762
|
-
|
|
3763
|
-
|
|
4125
|
+
isIP = ipv6result.isIPV6 || ipv6result.isIPVFuture === true;
|
|
4126
|
+
malformedIPLiteral = hasIPLiteralBracket && (!bracketedIPLiteral || ipv6result.error === true);
|
|
4127
|
+
parsed.host = isIP ? ipv6result.host : ipv6result.host.toLowerCase();
|
|
4128
|
+
if (malformedIPLiteral) {
|
|
4129
|
+
parsed.error = parsed.error || "URI host is malformed.";
|
|
4130
|
+
malformedAuthorityOrPort = true;
|
|
4131
|
+
}
|
|
3764
4132
|
} else {
|
|
3765
4133
|
isIP = true;
|
|
3766
4134
|
}
|
|
@@ -3778,38 +4146,66 @@ var require_fast_uri = __commonJS({
|
|
|
3778
4146
|
parsed.error = parsed.error || "URI is not a " + options.reference + " reference.";
|
|
3779
4147
|
}
|
|
3780
4148
|
const schemeHandler = getSchemeHandler(options.scheme || parsed.scheme);
|
|
3781
|
-
if (!
|
|
3782
|
-
|
|
3783
|
-
try {
|
|
3784
|
-
parsed.host = URL.domainToASCII(parsed.host.toLowerCase());
|
|
3785
|
-
} catch (e) {
|
|
3786
|
-
parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e;
|
|
3787
|
-
}
|
|
3788
|
-
}
|
|
4149
|
+
if (!malformedIPLiteral) {
|
|
4150
|
+
malformedHost = canonicalizeHost(parsed, options, schemeHandler, isIP);
|
|
3789
4151
|
}
|
|
3790
4152
|
if (!schemeHandler || schemeHandler && !schemeHandler.skipNormalize) {
|
|
3791
4153
|
if (uri.indexOf("%") !== -1) {
|
|
3792
|
-
if (parsed.
|
|
3793
|
-
parsed.
|
|
3794
|
-
|
|
3795
|
-
if (parsed.host !== void 0) {
|
|
3796
|
-
parsed.host = unescape(parsed.host);
|
|
4154
|
+
if (parsed.host !== void 0 && !malformedIPLiteral) {
|
|
4155
|
+
const host = isIP ? parsed.host : normalizePercentEncoding(parsed.host, true);
|
|
4156
|
+
parsed.host = reescapeHostDelimiters(host, isIP);
|
|
3797
4157
|
}
|
|
3798
4158
|
}
|
|
3799
4159
|
if (parsed.path) {
|
|
3800
|
-
parsed.path =
|
|
4160
|
+
parsed.path = normalizePathEncoding(parsed.path);
|
|
4161
|
+
}
|
|
4162
|
+
if (parsed.query) {
|
|
4163
|
+
parsed.query = normalizeQueryFragmentEncoding(parsed.query);
|
|
3801
4164
|
}
|
|
3802
4165
|
if (parsed.fragment) {
|
|
3803
|
-
parsed.fragment =
|
|
4166
|
+
parsed.fragment = normalizeQueryFragmentEncoding(parsed.fragment);
|
|
3804
4167
|
}
|
|
3805
4168
|
}
|
|
3806
4169
|
if (schemeHandler && schemeHandler.parse) {
|
|
3807
4170
|
schemeHandler.parse(parsed, options);
|
|
4171
|
+
if (schemeHandler === SCHEMES.urn && parsed.nid === void 0) {
|
|
4172
|
+
malformedSchemeSpecific = true;
|
|
4173
|
+
}
|
|
3808
4174
|
}
|
|
3809
4175
|
} else {
|
|
3810
4176
|
parsed.error = parsed.error || "URI can not be parsed.";
|
|
3811
4177
|
}
|
|
3812
|
-
return parsed;
|
|
4178
|
+
return { parsed, malformedAuthorityOrPort, malformedPercentEncoding, malformedSchemeSpecific, malformedHost, malformedScheme };
|
|
4179
|
+
}
|
|
4180
|
+
function parse3(uri, opts) {
|
|
4181
|
+
return parseWithStatus(uri, opts).parsed;
|
|
4182
|
+
}
|
|
4183
|
+
function normalizeString(uri, opts) {
|
|
4184
|
+
return normalizeStringWithStatus(uri, opts).normalized;
|
|
4185
|
+
}
|
|
4186
|
+
function normalizeStringWithStatus(uri, opts) {
|
|
4187
|
+
const { parsed, malformedAuthorityOrPort, malformedPercentEncoding, malformedSchemeSpecific, malformedHost, malformedScheme } = parseWithStatus(uri, opts);
|
|
4188
|
+
return {
|
|
4189
|
+
normalized: malformedAuthorityOrPort || malformedPercentEncoding || malformedSchemeSpecific || malformedHost || malformedScheme ? uri : serialize(parsed, opts),
|
|
4190
|
+
malformedAuthorityOrPort,
|
|
4191
|
+
malformedPercentEncoding,
|
|
4192
|
+
malformedSchemeSpecific,
|
|
4193
|
+
malformedHost,
|
|
4194
|
+
malformedScheme
|
|
4195
|
+
};
|
|
4196
|
+
}
|
|
4197
|
+
function normalizeComparableURI(uri, opts) {
|
|
4198
|
+
if (typeof uri !== "string" && typeof uri !== "object") {
|
|
4199
|
+
return void 0;
|
|
4200
|
+
}
|
|
4201
|
+
let value;
|
|
4202
|
+
try {
|
|
4203
|
+
value = typeof uri === "string" ? uri : serialize(uri, opts);
|
|
4204
|
+
} catch {
|
|
4205
|
+
return void 0;
|
|
4206
|
+
}
|
|
4207
|
+
const { normalized, malformedAuthorityOrPort, malformedPercentEncoding, malformedSchemeSpecific, malformedHost, malformedScheme } = normalizeStringWithStatus(value, opts);
|
|
4208
|
+
return malformedAuthorityOrPort || malformedPercentEncoding || malformedSchemeSpecific || malformedHost || malformedScheme ? void 0 : normalized;
|
|
3813
4209
|
}
|
|
3814
4210
|
var fastUri = {
|
|
3815
4211
|
SCHEMES,
|
|
@@ -3828,40 +4224,40 @@ var require_fast_uri = __commonJS({
|
|
|
3828
4224
|
|
|
3829
4225
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/uri.js
|
|
3830
4226
|
var require_uri = __commonJS({
|
|
3831
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/uri.js"(exports
|
|
3832
|
-
Object.defineProperty(exports
|
|
4227
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/uri.js"(exports) {
|
|
4228
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3833
4229
|
var uri = require_fast_uri();
|
|
3834
4230
|
uri.code = 'require("ajv/dist/runtime/uri").default';
|
|
3835
|
-
exports
|
|
4231
|
+
exports.default = uri;
|
|
3836
4232
|
}
|
|
3837
4233
|
});
|
|
3838
4234
|
|
|
3839
4235
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/core.js
|
|
3840
4236
|
var require_core = __commonJS({
|
|
3841
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/core.js"(exports
|
|
3842
|
-
Object.defineProperty(exports
|
|
3843
|
-
exports
|
|
4237
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/core.js"(exports) {
|
|
4238
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4239
|
+
exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0;
|
|
3844
4240
|
var validate_1 = require_validate();
|
|
3845
|
-
Object.defineProperty(exports
|
|
4241
|
+
Object.defineProperty(exports, "KeywordCxt", { enumerable: true, get: function() {
|
|
3846
4242
|
return validate_1.KeywordCxt;
|
|
3847
4243
|
} });
|
|
3848
4244
|
var codegen_1 = require_codegen();
|
|
3849
|
-
Object.defineProperty(exports
|
|
4245
|
+
Object.defineProperty(exports, "_", { enumerable: true, get: function() {
|
|
3850
4246
|
return codegen_1._;
|
|
3851
4247
|
} });
|
|
3852
|
-
Object.defineProperty(exports
|
|
4248
|
+
Object.defineProperty(exports, "str", { enumerable: true, get: function() {
|
|
3853
4249
|
return codegen_1.str;
|
|
3854
4250
|
} });
|
|
3855
|
-
Object.defineProperty(exports
|
|
4251
|
+
Object.defineProperty(exports, "stringify", { enumerable: true, get: function() {
|
|
3856
4252
|
return codegen_1.stringify;
|
|
3857
4253
|
} });
|
|
3858
|
-
Object.defineProperty(exports
|
|
4254
|
+
Object.defineProperty(exports, "nil", { enumerable: true, get: function() {
|
|
3859
4255
|
return codegen_1.nil;
|
|
3860
4256
|
} });
|
|
3861
|
-
Object.defineProperty(exports
|
|
4257
|
+
Object.defineProperty(exports, "Name", { enumerable: true, get: function() {
|
|
3862
4258
|
return codegen_1.Name;
|
|
3863
4259
|
} });
|
|
3864
|
-
Object.defineProperty(exports
|
|
4260
|
+
Object.defineProperty(exports, "CodeGen", { enumerable: true, get: function() {
|
|
3865
4261
|
return codegen_1.CodeGen;
|
|
3866
4262
|
} });
|
|
3867
4263
|
var validation_error_1 = require_validation_error();
|
|
@@ -4315,7 +4711,7 @@ var require_core = __commonJS({
|
|
|
4315
4711
|
};
|
|
4316
4712
|
Ajv2.ValidationError = validation_error_1.default;
|
|
4317
4713
|
Ajv2.MissingRefError = ref_error_1.default;
|
|
4318
|
-
exports
|
|
4714
|
+
exports.default = Ajv2;
|
|
4319
4715
|
function checkOptions(checkOpts, options, msg, log = "error") {
|
|
4320
4716
|
for (const key in checkOpts) {
|
|
4321
4717
|
const opt = key;
|
|
@@ -4448,23 +4844,23 @@ var require_core = __commonJS({
|
|
|
4448
4844
|
|
|
4449
4845
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/id.js
|
|
4450
4846
|
var require_id = __commonJS({
|
|
4451
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/id.js"(exports
|
|
4452
|
-
Object.defineProperty(exports
|
|
4847
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/id.js"(exports) {
|
|
4848
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4453
4849
|
var def = {
|
|
4454
4850
|
keyword: "id",
|
|
4455
4851
|
code() {
|
|
4456
4852
|
throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID');
|
|
4457
4853
|
}
|
|
4458
4854
|
};
|
|
4459
|
-
exports
|
|
4855
|
+
exports.default = def;
|
|
4460
4856
|
}
|
|
4461
4857
|
});
|
|
4462
4858
|
|
|
4463
4859
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/ref.js
|
|
4464
4860
|
var require_ref = __commonJS({
|
|
4465
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/ref.js"(exports
|
|
4466
|
-
Object.defineProperty(exports
|
|
4467
|
-
exports
|
|
4861
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/ref.js"(exports) {
|
|
4862
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4863
|
+
exports.callRef = exports.getValidate = void 0;
|
|
4468
4864
|
var ref_error_1 = require_ref_error();
|
|
4469
4865
|
var code_1 = require_code2();
|
|
4470
4866
|
var codegen_1 = require_codegen();
|
|
@@ -4515,7 +4911,7 @@ var require_ref = __commonJS({
|
|
|
4515
4911
|
const { gen } = cxt;
|
|
4516
4912
|
return sch.validate ? gen.scopeValue("validate", { ref: sch.validate }) : (0, codegen_1._)`${gen.scopeValue("wrapper", { ref: sch })}.validate`;
|
|
4517
4913
|
}
|
|
4518
|
-
exports
|
|
4914
|
+
exports.getValidate = getValidate;
|
|
4519
4915
|
function callRef(cxt, v, sch, $async) {
|
|
4520
4916
|
const { gen, it } = cxt;
|
|
4521
4917
|
const { allErrors, schemaEnv: env, opts } = it;
|
|
@@ -4576,15 +4972,15 @@ var require_ref = __commonJS({
|
|
|
4576
4972
|
}
|
|
4577
4973
|
}
|
|
4578
4974
|
}
|
|
4579
|
-
exports
|
|
4580
|
-
exports
|
|
4975
|
+
exports.callRef = callRef;
|
|
4976
|
+
exports.default = def;
|
|
4581
4977
|
}
|
|
4582
4978
|
});
|
|
4583
4979
|
|
|
4584
4980
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/index.js
|
|
4585
4981
|
var require_core2 = __commonJS({
|
|
4586
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/index.js"(exports
|
|
4587
|
-
Object.defineProperty(exports
|
|
4982
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/core/index.js"(exports) {
|
|
4983
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4588
4984
|
var id_1 = require_id();
|
|
4589
4985
|
var ref_1 = require_ref();
|
|
4590
4986
|
var core = [
|
|
@@ -4597,14 +4993,14 @@ var require_core2 = __commonJS({
|
|
|
4597
4993
|
id_1.default,
|
|
4598
4994
|
ref_1.default
|
|
4599
4995
|
];
|
|
4600
|
-
exports
|
|
4996
|
+
exports.default = core;
|
|
4601
4997
|
}
|
|
4602
4998
|
});
|
|
4603
4999
|
|
|
4604
5000
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js
|
|
4605
5001
|
var require_limitNumber = __commonJS({
|
|
4606
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js"(exports
|
|
4607
|
-
Object.defineProperty(exports
|
|
5002
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js"(exports) {
|
|
5003
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4608
5004
|
var codegen_1 = require_codegen();
|
|
4609
5005
|
var ops = codegen_1.operators;
|
|
4610
5006
|
var KWDs = {
|
|
@@ -4628,14 +5024,14 @@ var require_limitNumber = __commonJS({
|
|
|
4628
5024
|
cxt.fail$data((0, codegen_1._)`${data} ${KWDs[keyword].fail} ${schemaCode} || isNaN(${data})`);
|
|
4629
5025
|
}
|
|
4630
5026
|
};
|
|
4631
|
-
exports
|
|
5027
|
+
exports.default = def;
|
|
4632
5028
|
}
|
|
4633
5029
|
});
|
|
4634
5030
|
|
|
4635
5031
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js
|
|
4636
5032
|
var require_multipleOf = __commonJS({
|
|
4637
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js"(exports
|
|
4638
|
-
Object.defineProperty(exports
|
|
5033
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js"(exports) {
|
|
5034
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4639
5035
|
var codegen_1 = require_codegen();
|
|
4640
5036
|
var error2 = {
|
|
4641
5037
|
message: ({ schemaCode }) => (0, codegen_1.str)`must be multiple of ${schemaCode}`,
|
|
@@ -4655,14 +5051,14 @@ var require_multipleOf = __commonJS({
|
|
|
4655
5051
|
cxt.fail$data((0, codegen_1._)`(${schemaCode} === 0 || (${res} = ${data}/${schemaCode}, ${invalid}))`);
|
|
4656
5052
|
}
|
|
4657
5053
|
};
|
|
4658
|
-
exports
|
|
5054
|
+
exports.default = def;
|
|
4659
5055
|
}
|
|
4660
5056
|
});
|
|
4661
5057
|
|
|
4662
5058
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js
|
|
4663
5059
|
var require_ucs2length = __commonJS({
|
|
4664
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js"(exports
|
|
4665
|
-
Object.defineProperty(exports
|
|
5060
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/ucs2length.js"(exports) {
|
|
5061
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4666
5062
|
function ucs2length(str) {
|
|
4667
5063
|
const len = str.length;
|
|
4668
5064
|
let length = 0;
|
|
@@ -4679,15 +5075,15 @@ var require_ucs2length = __commonJS({
|
|
|
4679
5075
|
}
|
|
4680
5076
|
return length;
|
|
4681
5077
|
}
|
|
4682
|
-
exports
|
|
5078
|
+
exports.default = ucs2length;
|
|
4683
5079
|
ucs2length.code = 'require("ajv/dist/runtime/ucs2length").default';
|
|
4684
5080
|
}
|
|
4685
5081
|
});
|
|
4686
5082
|
|
|
4687
5083
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js
|
|
4688
5084
|
var require_limitLength = __commonJS({
|
|
4689
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js"(exports
|
|
4690
|
-
Object.defineProperty(exports
|
|
5085
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js"(exports) {
|
|
5086
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4691
5087
|
var codegen_1 = require_codegen();
|
|
4692
5088
|
var util_1 = require_util();
|
|
4693
5089
|
var ucs2length_1 = require_ucs2length();
|
|
@@ -4711,14 +5107,14 @@ var require_limitLength = __commonJS({
|
|
|
4711
5107
|
cxt.fail$data((0, codegen_1._)`${len} ${op} ${schemaCode}`);
|
|
4712
5108
|
}
|
|
4713
5109
|
};
|
|
4714
|
-
exports
|
|
5110
|
+
exports.default = def;
|
|
4715
5111
|
}
|
|
4716
5112
|
});
|
|
4717
5113
|
|
|
4718
5114
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/pattern.js
|
|
4719
5115
|
var require_pattern = __commonJS({
|
|
4720
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/pattern.js"(exports
|
|
4721
|
-
Object.defineProperty(exports
|
|
5116
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/pattern.js"(exports) {
|
|
5117
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4722
5118
|
var code_1 = require_code2();
|
|
4723
5119
|
var util_1 = require_util();
|
|
4724
5120
|
var codegen_1 = require_codegen();
|
|
@@ -4747,14 +5143,14 @@ var require_pattern = __commonJS({
|
|
|
4747
5143
|
}
|
|
4748
5144
|
}
|
|
4749
5145
|
};
|
|
4750
|
-
exports
|
|
5146
|
+
exports.default = def;
|
|
4751
5147
|
}
|
|
4752
5148
|
});
|
|
4753
5149
|
|
|
4754
5150
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js
|
|
4755
5151
|
var require_limitProperties = __commonJS({
|
|
4756
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js"(exports
|
|
4757
|
-
Object.defineProperty(exports
|
|
5152
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js"(exports) {
|
|
5153
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4758
5154
|
var codegen_1 = require_codegen();
|
|
4759
5155
|
var error2 = {
|
|
4760
5156
|
message({ keyword, schemaCode }) {
|
|
@@ -4775,14 +5171,14 @@ var require_limitProperties = __commonJS({
|
|
|
4775
5171
|
cxt.fail$data((0, codegen_1._)`Object.keys(${data}).length ${op} ${schemaCode}`);
|
|
4776
5172
|
}
|
|
4777
5173
|
};
|
|
4778
|
-
exports
|
|
5174
|
+
exports.default = def;
|
|
4779
5175
|
}
|
|
4780
5176
|
});
|
|
4781
5177
|
|
|
4782
5178
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/required.js
|
|
4783
5179
|
var require_required = __commonJS({
|
|
4784
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/required.js"(exports
|
|
4785
|
-
Object.defineProperty(exports
|
|
5180
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/required.js"(exports) {
|
|
5181
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4786
5182
|
var code_1 = require_code2();
|
|
4787
5183
|
var codegen_1 = require_codegen();
|
|
4788
5184
|
var util_1 = require_util();
|
|
@@ -4856,14 +5252,14 @@ var require_required = __commonJS({
|
|
|
4856
5252
|
}
|
|
4857
5253
|
}
|
|
4858
5254
|
};
|
|
4859
|
-
exports
|
|
5255
|
+
exports.default = def;
|
|
4860
5256
|
}
|
|
4861
5257
|
});
|
|
4862
5258
|
|
|
4863
5259
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js
|
|
4864
5260
|
var require_limitItems = __commonJS({
|
|
4865
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js"(exports
|
|
4866
|
-
Object.defineProperty(exports
|
|
5261
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js"(exports) {
|
|
5262
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4867
5263
|
var codegen_1 = require_codegen();
|
|
4868
5264
|
var error2 = {
|
|
4869
5265
|
message({ keyword, schemaCode }) {
|
|
@@ -4884,24 +5280,24 @@ var require_limitItems = __commonJS({
|
|
|
4884
5280
|
cxt.fail$data((0, codegen_1._)`${data}.length ${op} ${schemaCode}`);
|
|
4885
5281
|
}
|
|
4886
5282
|
};
|
|
4887
|
-
exports
|
|
5283
|
+
exports.default = def;
|
|
4888
5284
|
}
|
|
4889
5285
|
});
|
|
4890
5286
|
|
|
4891
5287
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/equal.js
|
|
4892
5288
|
var require_equal = __commonJS({
|
|
4893
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/equal.js"(exports
|
|
4894
|
-
Object.defineProperty(exports
|
|
5289
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/runtime/equal.js"(exports) {
|
|
5290
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4895
5291
|
var equal = require_fast_deep_equal();
|
|
4896
5292
|
equal.code = 'require("ajv/dist/runtime/equal").default';
|
|
4897
|
-
exports
|
|
5293
|
+
exports.default = equal;
|
|
4898
5294
|
}
|
|
4899
5295
|
});
|
|
4900
5296
|
|
|
4901
5297
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
|
|
4902
5298
|
var require_uniqueItems = __commonJS({
|
|
4903
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js"(exports
|
|
4904
|
-
Object.defineProperty(exports
|
|
5299
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js"(exports) {
|
|
5300
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4905
5301
|
var dataType_1 = require_dataType();
|
|
4906
5302
|
var codegen_1 = require_codegen();
|
|
4907
5303
|
var util_1 = require_util();
|
|
@@ -4960,14 +5356,14 @@ var require_uniqueItems = __commonJS({
|
|
|
4960
5356
|
}
|
|
4961
5357
|
}
|
|
4962
5358
|
};
|
|
4963
|
-
exports
|
|
5359
|
+
exports.default = def;
|
|
4964
5360
|
}
|
|
4965
5361
|
});
|
|
4966
5362
|
|
|
4967
5363
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/const.js
|
|
4968
5364
|
var require_const = __commonJS({
|
|
4969
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/const.js"(exports
|
|
4970
|
-
Object.defineProperty(exports
|
|
5365
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/const.js"(exports) {
|
|
5366
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4971
5367
|
var codegen_1 = require_codegen();
|
|
4972
5368
|
var util_1 = require_util();
|
|
4973
5369
|
var equal_1 = require_equal();
|
|
@@ -4988,14 +5384,14 @@ var require_const = __commonJS({
|
|
|
4988
5384
|
}
|
|
4989
5385
|
}
|
|
4990
5386
|
};
|
|
4991
|
-
exports
|
|
5387
|
+
exports.default = def;
|
|
4992
5388
|
}
|
|
4993
5389
|
});
|
|
4994
5390
|
|
|
4995
5391
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/enum.js
|
|
4996
5392
|
var require_enum = __commonJS({
|
|
4997
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/enum.js"(exports
|
|
4998
|
-
Object.defineProperty(exports
|
|
5393
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/enum.js"(exports) {
|
|
5394
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4999
5395
|
var codegen_1 = require_codegen();
|
|
5000
5396
|
var util_1 = require_util();
|
|
5001
5397
|
var equal_1 = require_equal();
|
|
@@ -5036,14 +5432,14 @@ var require_enum = __commonJS({
|
|
|
5036
5432
|
}
|
|
5037
5433
|
}
|
|
5038
5434
|
};
|
|
5039
|
-
exports
|
|
5435
|
+
exports.default = def;
|
|
5040
5436
|
}
|
|
5041
5437
|
});
|
|
5042
5438
|
|
|
5043
5439
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/index.js
|
|
5044
5440
|
var require_validation = __commonJS({
|
|
5045
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/index.js"(exports
|
|
5046
|
-
Object.defineProperty(exports
|
|
5441
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/validation/index.js"(exports) {
|
|
5442
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5047
5443
|
var limitNumber_1 = require_limitNumber();
|
|
5048
5444
|
var multipleOf_1 = require_multipleOf();
|
|
5049
5445
|
var limitLength_1 = require_limitLength();
|
|
@@ -5073,15 +5469,15 @@ var require_validation = __commonJS({
|
|
|
5073
5469
|
const_1.default,
|
|
5074
5470
|
enum_1.default
|
|
5075
5471
|
];
|
|
5076
|
-
exports
|
|
5472
|
+
exports.default = validation;
|
|
5077
5473
|
}
|
|
5078
5474
|
});
|
|
5079
5475
|
|
|
5080
5476
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
|
|
5081
5477
|
var require_additionalItems = __commonJS({
|
|
5082
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js"(exports
|
|
5083
|
-
Object.defineProperty(exports
|
|
5084
|
-
exports
|
|
5478
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js"(exports) {
|
|
5479
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5480
|
+
exports.validateAdditionalItems = void 0;
|
|
5085
5481
|
var codegen_1 = require_codegen();
|
|
5086
5482
|
var util_1 = require_util();
|
|
5087
5483
|
var error2 = {
|
|
@@ -5124,16 +5520,16 @@ var require_additionalItems = __commonJS({
|
|
|
5124
5520
|
});
|
|
5125
5521
|
}
|
|
5126
5522
|
}
|
|
5127
|
-
exports
|
|
5128
|
-
exports
|
|
5523
|
+
exports.validateAdditionalItems = validateAdditionalItems;
|
|
5524
|
+
exports.default = def;
|
|
5129
5525
|
}
|
|
5130
5526
|
});
|
|
5131
5527
|
|
|
5132
5528
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items.js
|
|
5133
5529
|
var require_items = __commonJS({
|
|
5134
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items.js"(exports
|
|
5135
|
-
Object.defineProperty(exports
|
|
5136
|
-
exports
|
|
5530
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items.js"(exports) {
|
|
5531
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5532
|
+
exports.validateTuple = void 0;
|
|
5137
5533
|
var codegen_1 = require_codegen();
|
|
5138
5534
|
var util_1 = require_util();
|
|
5139
5535
|
var code_1 = require_code2();
|
|
@@ -5180,15 +5576,15 @@ var require_items = __commonJS({
|
|
|
5180
5576
|
}
|
|
5181
5577
|
}
|
|
5182
5578
|
}
|
|
5183
|
-
exports
|
|
5184
|
-
exports
|
|
5579
|
+
exports.validateTuple = validateTuple;
|
|
5580
|
+
exports.default = def;
|
|
5185
5581
|
}
|
|
5186
5582
|
});
|
|
5187
5583
|
|
|
5188
5584
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
|
|
5189
5585
|
var require_prefixItems = __commonJS({
|
|
5190
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"(exports
|
|
5191
|
-
Object.defineProperty(exports
|
|
5586
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"(exports) {
|
|
5587
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5192
5588
|
var items_1 = require_items();
|
|
5193
5589
|
var def = {
|
|
5194
5590
|
keyword: "prefixItems",
|
|
@@ -5197,14 +5593,14 @@ var require_prefixItems = __commonJS({
|
|
|
5197
5593
|
before: "uniqueItems",
|
|
5198
5594
|
code: (cxt) => (0, items_1.validateTuple)(cxt, "items")
|
|
5199
5595
|
};
|
|
5200
|
-
exports
|
|
5596
|
+
exports.default = def;
|
|
5201
5597
|
}
|
|
5202
5598
|
});
|
|
5203
5599
|
|
|
5204
5600
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js
|
|
5205
5601
|
var require_items2020 = __commonJS({
|
|
5206
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js"(exports
|
|
5207
|
-
Object.defineProperty(exports
|
|
5602
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js"(exports) {
|
|
5603
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5208
5604
|
var codegen_1 = require_codegen();
|
|
5209
5605
|
var util_1 = require_util();
|
|
5210
5606
|
var code_1 = require_code2();
|
|
@@ -5231,14 +5627,14 @@ var require_items2020 = __commonJS({
|
|
|
5231
5627
|
cxt.ok((0, code_1.validateArray)(cxt));
|
|
5232
5628
|
}
|
|
5233
5629
|
};
|
|
5234
|
-
exports
|
|
5630
|
+
exports.default = def;
|
|
5235
5631
|
}
|
|
5236
5632
|
});
|
|
5237
5633
|
|
|
5238
5634
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/contains.js
|
|
5239
5635
|
var require_contains = __commonJS({
|
|
5240
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/contains.js"(exports
|
|
5241
|
-
Object.defineProperty(exports
|
|
5636
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/contains.js"(exports) {
|
|
5637
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5242
5638
|
var codegen_1 = require_codegen();
|
|
5243
5639
|
var util_1 = require_util();
|
|
5244
5640
|
var error2 = {
|
|
@@ -5324,19 +5720,19 @@ var require_contains = __commonJS({
|
|
|
5324
5720
|
}
|
|
5325
5721
|
}
|
|
5326
5722
|
};
|
|
5327
|
-
exports
|
|
5723
|
+
exports.default = def;
|
|
5328
5724
|
}
|
|
5329
5725
|
});
|
|
5330
5726
|
|
|
5331
5727
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js
|
|
5332
5728
|
var require_dependencies = __commonJS({
|
|
5333
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js"(exports
|
|
5334
|
-
Object.defineProperty(exports
|
|
5335
|
-
exports
|
|
5729
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js"(exports) {
|
|
5730
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5731
|
+
exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = void 0;
|
|
5336
5732
|
var codegen_1 = require_codegen();
|
|
5337
5733
|
var util_1 = require_util();
|
|
5338
5734
|
var code_1 = require_code2();
|
|
5339
|
-
exports
|
|
5735
|
+
exports.error = {
|
|
5340
5736
|
message: ({ params: { property, depsCount, deps } }) => {
|
|
5341
5737
|
const property_ies = depsCount === 1 ? "property" : "properties";
|
|
5342
5738
|
return (0, codegen_1.str)`must have ${property_ies} ${deps} when property ${property} is present`;
|
|
@@ -5351,7 +5747,7 @@ var require_dependencies = __commonJS({
|
|
|
5351
5747
|
keyword: "dependencies",
|
|
5352
5748
|
type: "object",
|
|
5353
5749
|
schemaType: "object",
|
|
5354
|
-
error: exports
|
|
5750
|
+
error: exports.error,
|
|
5355
5751
|
code(cxt) {
|
|
5356
5752
|
const [propDeps, schDeps] = splitDependencies(cxt);
|
|
5357
5753
|
validatePropertyDeps(cxt, propDeps);
|
|
@@ -5397,7 +5793,7 @@ var require_dependencies = __commonJS({
|
|
|
5397
5793
|
}
|
|
5398
5794
|
}
|
|
5399
5795
|
}
|
|
5400
|
-
exports
|
|
5796
|
+
exports.validatePropertyDeps = validatePropertyDeps;
|
|
5401
5797
|
function validateSchemaDeps(cxt, schemaDeps = cxt.schema) {
|
|
5402
5798
|
const { gen, data, keyword, it } = cxt;
|
|
5403
5799
|
const valid = gen.name("valid");
|
|
@@ -5416,15 +5812,15 @@ var require_dependencies = __commonJS({
|
|
|
5416
5812
|
cxt.ok(valid);
|
|
5417
5813
|
}
|
|
5418
5814
|
}
|
|
5419
|
-
exports
|
|
5420
|
-
exports
|
|
5815
|
+
exports.validateSchemaDeps = validateSchemaDeps;
|
|
5816
|
+
exports.default = def;
|
|
5421
5817
|
}
|
|
5422
5818
|
});
|
|
5423
5819
|
|
|
5424
5820
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
|
|
5425
5821
|
var require_propertyNames = __commonJS({
|
|
5426
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js"(exports
|
|
5427
|
-
Object.defineProperty(exports
|
|
5822
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js"(exports) {
|
|
5823
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5428
5824
|
var codegen_1 = require_codegen();
|
|
5429
5825
|
var util_1 = require_util();
|
|
5430
5826
|
var error2 = {
|
|
@@ -5459,14 +5855,14 @@ var require_propertyNames = __commonJS({
|
|
|
5459
5855
|
cxt.ok(valid);
|
|
5460
5856
|
}
|
|
5461
5857
|
};
|
|
5462
|
-
exports
|
|
5858
|
+
exports.default = def;
|
|
5463
5859
|
}
|
|
5464
5860
|
});
|
|
5465
5861
|
|
|
5466
5862
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
|
|
5467
5863
|
var require_additionalProperties = __commonJS({
|
|
5468
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js"(exports
|
|
5469
|
-
Object.defineProperty(exports
|
|
5864
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js"(exports) {
|
|
5865
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5470
5866
|
var code_1 = require_code2();
|
|
5471
5867
|
var codegen_1 = require_codegen();
|
|
5472
5868
|
var names_1 = require_names();
|
|
@@ -5564,14 +5960,14 @@ var require_additionalProperties = __commonJS({
|
|
|
5564
5960
|
}
|
|
5565
5961
|
}
|
|
5566
5962
|
};
|
|
5567
|
-
exports
|
|
5963
|
+
exports.default = def;
|
|
5568
5964
|
}
|
|
5569
5965
|
});
|
|
5570
5966
|
|
|
5571
5967
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/properties.js
|
|
5572
5968
|
var require_properties = __commonJS({
|
|
5573
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/properties.js"(exports
|
|
5574
|
-
Object.defineProperty(exports
|
|
5969
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/properties.js"(exports) {
|
|
5970
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5575
5971
|
var validate_1 = require_validate();
|
|
5576
5972
|
var code_1 = require_code2();
|
|
5577
5973
|
var util_1 = require_util();
|
|
@@ -5621,14 +6017,14 @@ var require_properties = __commonJS({
|
|
|
5621
6017
|
}
|
|
5622
6018
|
}
|
|
5623
6019
|
};
|
|
5624
|
-
exports
|
|
6020
|
+
exports.default = def;
|
|
5625
6021
|
}
|
|
5626
6022
|
});
|
|
5627
6023
|
|
|
5628
6024
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
|
|
5629
6025
|
var require_patternProperties = __commonJS({
|
|
5630
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js"(exports
|
|
5631
|
-
Object.defineProperty(exports
|
|
6026
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js"(exports) {
|
|
6027
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5632
6028
|
var code_1 = require_code2();
|
|
5633
6029
|
var codegen_1 = require_codegen();
|
|
5634
6030
|
var util_1 = require_util();
|
|
@@ -5694,14 +6090,14 @@ var require_patternProperties = __commonJS({
|
|
|
5694
6090
|
}
|
|
5695
6091
|
}
|
|
5696
6092
|
};
|
|
5697
|
-
exports
|
|
6093
|
+
exports.default = def;
|
|
5698
6094
|
}
|
|
5699
6095
|
});
|
|
5700
6096
|
|
|
5701
6097
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/not.js
|
|
5702
6098
|
var require_not = __commonJS({
|
|
5703
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/not.js"(exports
|
|
5704
|
-
Object.defineProperty(exports
|
|
6099
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/not.js"(exports) {
|
|
6100
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5705
6101
|
var util_1 = require_util();
|
|
5706
6102
|
var def = {
|
|
5707
6103
|
keyword: "not",
|
|
@@ -5724,14 +6120,14 @@ var require_not = __commonJS({
|
|
|
5724
6120
|
},
|
|
5725
6121
|
error: { message: "must NOT be valid" }
|
|
5726
6122
|
};
|
|
5727
|
-
exports
|
|
6123
|
+
exports.default = def;
|
|
5728
6124
|
}
|
|
5729
6125
|
});
|
|
5730
6126
|
|
|
5731
6127
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js
|
|
5732
6128
|
var require_anyOf = __commonJS({
|
|
5733
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js"(exports
|
|
5734
|
-
Object.defineProperty(exports
|
|
6129
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js"(exports) {
|
|
6130
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5735
6131
|
var code_1 = require_code2();
|
|
5736
6132
|
var def = {
|
|
5737
6133
|
keyword: "anyOf",
|
|
@@ -5740,14 +6136,14 @@ var require_anyOf = __commonJS({
|
|
|
5740
6136
|
code: code_1.validateUnion,
|
|
5741
6137
|
error: { message: "must match a schema in anyOf" }
|
|
5742
6138
|
};
|
|
5743
|
-
exports
|
|
6139
|
+
exports.default = def;
|
|
5744
6140
|
}
|
|
5745
6141
|
});
|
|
5746
6142
|
|
|
5747
6143
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js
|
|
5748
6144
|
var require_oneOf = __commonJS({
|
|
5749
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js"(exports
|
|
5750
|
-
Object.defineProperty(exports
|
|
6145
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js"(exports) {
|
|
6146
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5751
6147
|
var codegen_1 = require_codegen();
|
|
5752
6148
|
var util_1 = require_util();
|
|
5753
6149
|
var error2 = {
|
|
@@ -5797,14 +6193,14 @@ var require_oneOf = __commonJS({
|
|
|
5797
6193
|
}
|
|
5798
6194
|
}
|
|
5799
6195
|
};
|
|
5800
|
-
exports
|
|
6196
|
+
exports.default = def;
|
|
5801
6197
|
}
|
|
5802
6198
|
});
|
|
5803
6199
|
|
|
5804
6200
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js
|
|
5805
6201
|
var require_allOf = __commonJS({
|
|
5806
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js"(exports
|
|
5807
|
-
Object.defineProperty(exports
|
|
6202
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js"(exports) {
|
|
6203
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5808
6204
|
var util_1 = require_util();
|
|
5809
6205
|
var def = {
|
|
5810
6206
|
keyword: "allOf",
|
|
@@ -5823,14 +6219,14 @@ var require_allOf = __commonJS({
|
|
|
5823
6219
|
});
|
|
5824
6220
|
}
|
|
5825
6221
|
};
|
|
5826
|
-
exports
|
|
6222
|
+
exports.default = def;
|
|
5827
6223
|
}
|
|
5828
6224
|
});
|
|
5829
6225
|
|
|
5830
6226
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/if.js
|
|
5831
6227
|
var require_if = __commonJS({
|
|
5832
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/if.js"(exports
|
|
5833
|
-
Object.defineProperty(exports
|
|
6228
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/if.js"(exports) {
|
|
6229
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5834
6230
|
var codegen_1 = require_codegen();
|
|
5835
6231
|
var util_1 = require_util();
|
|
5836
6232
|
var error2 = {
|
|
@@ -5891,14 +6287,14 @@ var require_if = __commonJS({
|
|
|
5891
6287
|
const schema = it.schema[keyword];
|
|
5892
6288
|
return schema !== void 0 && !(0, util_1.alwaysValidSchema)(it, schema);
|
|
5893
6289
|
}
|
|
5894
|
-
exports
|
|
6290
|
+
exports.default = def;
|
|
5895
6291
|
}
|
|
5896
6292
|
});
|
|
5897
6293
|
|
|
5898
6294
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js
|
|
5899
6295
|
var require_thenElse = __commonJS({
|
|
5900
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js"(exports
|
|
5901
|
-
Object.defineProperty(exports
|
|
6296
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js"(exports) {
|
|
6297
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5902
6298
|
var util_1 = require_util();
|
|
5903
6299
|
var def = {
|
|
5904
6300
|
keyword: ["then", "else"],
|
|
@@ -5908,14 +6304,14 @@ var require_thenElse = __commonJS({
|
|
|
5908
6304
|
(0, util_1.checkStrictMode)(it, `"${keyword}" without "if" is ignored`);
|
|
5909
6305
|
}
|
|
5910
6306
|
};
|
|
5911
|
-
exports
|
|
6307
|
+
exports.default = def;
|
|
5912
6308
|
}
|
|
5913
6309
|
});
|
|
5914
6310
|
|
|
5915
6311
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/index.js
|
|
5916
6312
|
var require_applicator = __commonJS({
|
|
5917
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/index.js"(exports
|
|
5918
|
-
Object.defineProperty(exports
|
|
6313
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/applicator/index.js"(exports) {
|
|
6314
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5919
6315
|
var additionalItems_1 = require_additionalItems();
|
|
5920
6316
|
var prefixItems_1 = require_prefixItems();
|
|
5921
6317
|
var items_1 = require_items();
|
|
@@ -5955,14 +6351,14 @@ var require_applicator = __commonJS({
|
|
|
5955
6351
|
applicator.push(contains_1.default);
|
|
5956
6352
|
return applicator;
|
|
5957
6353
|
}
|
|
5958
|
-
exports
|
|
6354
|
+
exports.default = getApplicator;
|
|
5959
6355
|
}
|
|
5960
6356
|
});
|
|
5961
6357
|
|
|
5962
6358
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/format.js
|
|
5963
6359
|
var require_format = __commonJS({
|
|
5964
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/format.js"(exports
|
|
5965
|
-
Object.defineProperty(exports
|
|
6360
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/format.js"(exports) {
|
|
6361
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5966
6362
|
var codegen_1 = require_codegen();
|
|
5967
6363
|
var error2 = {
|
|
5968
6364
|
message: ({ schemaCode }) => (0, codegen_1.str)`must match format "${schemaCode}"`,
|
|
@@ -6044,26 +6440,26 @@ var require_format = __commonJS({
|
|
|
6044
6440
|
}
|
|
6045
6441
|
}
|
|
6046
6442
|
};
|
|
6047
|
-
exports
|
|
6443
|
+
exports.default = def;
|
|
6048
6444
|
}
|
|
6049
6445
|
});
|
|
6050
6446
|
|
|
6051
6447
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/index.js
|
|
6052
6448
|
var require_format2 = __commonJS({
|
|
6053
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/index.js"(exports
|
|
6054
|
-
Object.defineProperty(exports
|
|
6449
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/format/index.js"(exports) {
|
|
6450
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6055
6451
|
var format_1 = require_format();
|
|
6056
6452
|
var format = [format_1.default];
|
|
6057
|
-
exports
|
|
6453
|
+
exports.default = format;
|
|
6058
6454
|
}
|
|
6059
6455
|
});
|
|
6060
6456
|
|
|
6061
6457
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/metadata.js
|
|
6062
6458
|
var require_metadata = __commonJS({
|
|
6063
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/metadata.js"(exports
|
|
6064
|
-
Object.defineProperty(exports
|
|
6065
|
-
exports
|
|
6066
|
-
exports
|
|
6459
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/metadata.js"(exports) {
|
|
6460
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6461
|
+
exports.contentVocabulary = exports.metadataVocabulary = void 0;
|
|
6462
|
+
exports.metadataVocabulary = [
|
|
6067
6463
|
"title",
|
|
6068
6464
|
"description",
|
|
6069
6465
|
"default",
|
|
@@ -6072,7 +6468,7 @@ var require_metadata = __commonJS({
|
|
|
6072
6468
|
"writeOnly",
|
|
6073
6469
|
"examples"
|
|
6074
6470
|
];
|
|
6075
|
-
exports
|
|
6471
|
+
exports.contentVocabulary = [
|
|
6076
6472
|
"contentMediaType",
|
|
6077
6473
|
"contentEncoding",
|
|
6078
6474
|
"contentSchema"
|
|
@@ -6082,8 +6478,8 @@ var require_metadata = __commonJS({
|
|
|
6082
6478
|
|
|
6083
6479
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/draft7.js
|
|
6084
6480
|
var require_draft7 = __commonJS({
|
|
6085
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/draft7.js"(exports
|
|
6086
|
-
Object.defineProperty(exports
|
|
6481
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/draft7.js"(exports) {
|
|
6482
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6087
6483
|
var core_1 = require_core2();
|
|
6088
6484
|
var validation_1 = require_validation();
|
|
6089
6485
|
var applicator_1 = require_applicator();
|
|
@@ -6097,27 +6493,27 @@ var require_draft7 = __commonJS({
|
|
|
6097
6493
|
metadata_1.metadataVocabulary,
|
|
6098
6494
|
metadata_1.contentVocabulary
|
|
6099
6495
|
];
|
|
6100
|
-
exports
|
|
6496
|
+
exports.default = draft7Vocabularies;
|
|
6101
6497
|
}
|
|
6102
6498
|
});
|
|
6103
6499
|
|
|
6104
6500
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/types.js
|
|
6105
6501
|
var require_types = __commonJS({
|
|
6106
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/types.js"(exports
|
|
6107
|
-
Object.defineProperty(exports
|
|
6108
|
-
exports
|
|
6502
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/types.js"(exports) {
|
|
6503
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6504
|
+
exports.DiscrError = void 0;
|
|
6109
6505
|
var DiscrError;
|
|
6110
6506
|
(function(DiscrError2) {
|
|
6111
6507
|
DiscrError2["Tag"] = "tag";
|
|
6112
6508
|
DiscrError2["Mapping"] = "mapping";
|
|
6113
|
-
})(DiscrError || (exports
|
|
6509
|
+
})(DiscrError || (exports.DiscrError = DiscrError = {}));
|
|
6114
6510
|
}
|
|
6115
6511
|
});
|
|
6116
6512
|
|
|
6117
6513
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/index.js
|
|
6118
6514
|
var require_discriminator = __commonJS({
|
|
6119
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/index.js"(exports
|
|
6120
|
-
Object.defineProperty(exports
|
|
6515
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/vocabularies/discriminator/index.js"(exports) {
|
|
6516
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6121
6517
|
var codegen_1 = require_codegen();
|
|
6122
6518
|
var types_1 = require_types();
|
|
6123
6519
|
var compile_1 = require_compile();
|
|
@@ -6214,13 +6610,13 @@ var require_discriminator = __commonJS({
|
|
|
6214
6610
|
}
|
|
6215
6611
|
}
|
|
6216
6612
|
};
|
|
6217
|
-
exports
|
|
6613
|
+
exports.default = def;
|
|
6218
6614
|
}
|
|
6219
6615
|
});
|
|
6220
6616
|
|
|
6221
6617
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-draft-07.json
|
|
6222
6618
|
var require_json_schema_draft_07 = __commonJS({
|
|
6223
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-draft-07.json"(exports
|
|
6619
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/refs/json-schema-draft-07.json"(exports, module) {
|
|
6224
6620
|
module.exports = {
|
|
6225
6621
|
$schema: "http://json-schema.org/draft-07/schema#",
|
|
6226
6622
|
$id: "http://json-schema.org/draft-07/schema#",
|
|
@@ -6377,9 +6773,9 @@ var require_json_schema_draft_07 = __commonJS({
|
|
|
6377
6773
|
|
|
6378
6774
|
// ../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/ajv.js
|
|
6379
6775
|
var require_ajv = __commonJS({
|
|
6380
|
-
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/ajv.js"(exports
|
|
6381
|
-
Object.defineProperty(exports
|
|
6382
|
-
exports
|
|
6776
|
+
"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/ajv.js"(exports, module) {
|
|
6777
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6778
|
+
exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv = void 0;
|
|
6383
6779
|
var core_1 = require_core();
|
|
6384
6780
|
var draft7_1 = require_draft7();
|
|
6385
6781
|
var discriminator_1 = require_discriminator();
|
|
@@ -6405,40 +6801,40 @@ var require_ajv = __commonJS({
|
|
|
6405
6801
|
return this.opts.defaultMeta = super.defaultMeta() || (this.getSchema(META_SCHEMA_ID) ? META_SCHEMA_ID : void 0);
|
|
6406
6802
|
}
|
|
6407
6803
|
};
|
|
6408
|
-
exports
|
|
6409
|
-
module.exports = exports
|
|
6804
|
+
exports.Ajv = Ajv2;
|
|
6805
|
+
module.exports = exports = Ajv2;
|
|
6410
6806
|
module.exports.Ajv = Ajv2;
|
|
6411
|
-
Object.defineProperty(exports
|
|
6412
|
-
exports
|
|
6807
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6808
|
+
exports.default = Ajv2;
|
|
6413
6809
|
var validate_1 = require_validate();
|
|
6414
|
-
Object.defineProperty(exports
|
|
6810
|
+
Object.defineProperty(exports, "KeywordCxt", { enumerable: true, get: function() {
|
|
6415
6811
|
return validate_1.KeywordCxt;
|
|
6416
6812
|
} });
|
|
6417
6813
|
var codegen_1 = require_codegen();
|
|
6418
|
-
Object.defineProperty(exports
|
|
6814
|
+
Object.defineProperty(exports, "_", { enumerable: true, get: function() {
|
|
6419
6815
|
return codegen_1._;
|
|
6420
6816
|
} });
|
|
6421
|
-
Object.defineProperty(exports
|
|
6817
|
+
Object.defineProperty(exports, "str", { enumerable: true, get: function() {
|
|
6422
6818
|
return codegen_1.str;
|
|
6423
6819
|
} });
|
|
6424
|
-
Object.defineProperty(exports
|
|
6820
|
+
Object.defineProperty(exports, "stringify", { enumerable: true, get: function() {
|
|
6425
6821
|
return codegen_1.stringify;
|
|
6426
6822
|
} });
|
|
6427
|
-
Object.defineProperty(exports
|
|
6823
|
+
Object.defineProperty(exports, "nil", { enumerable: true, get: function() {
|
|
6428
6824
|
return codegen_1.nil;
|
|
6429
6825
|
} });
|
|
6430
|
-
Object.defineProperty(exports
|
|
6826
|
+
Object.defineProperty(exports, "Name", { enumerable: true, get: function() {
|
|
6431
6827
|
return codegen_1.Name;
|
|
6432
6828
|
} });
|
|
6433
|
-
Object.defineProperty(exports
|
|
6829
|
+
Object.defineProperty(exports, "CodeGen", { enumerable: true, get: function() {
|
|
6434
6830
|
return codegen_1.CodeGen;
|
|
6435
6831
|
} });
|
|
6436
6832
|
var validation_error_1 = require_validation_error();
|
|
6437
|
-
Object.defineProperty(exports
|
|
6833
|
+
Object.defineProperty(exports, "ValidationError", { enumerable: true, get: function() {
|
|
6438
6834
|
return validation_error_1.default;
|
|
6439
6835
|
} });
|
|
6440
6836
|
var ref_error_1 = require_ref_error();
|
|
6441
|
-
Object.defineProperty(exports
|
|
6837
|
+
Object.defineProperty(exports, "MissingRefError", { enumerable: true, get: function() {
|
|
6442
6838
|
return ref_error_1.default;
|
|
6443
6839
|
} });
|
|
6444
6840
|
}
|
|
@@ -6446,13 +6842,13 @@ var require_ajv = __commonJS({
|
|
|
6446
6842
|
|
|
6447
6843
|
// ../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/formats.js
|
|
6448
6844
|
var require_formats = __commonJS({
|
|
6449
|
-
"../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/formats.js"(exports
|
|
6450
|
-
Object.defineProperty(exports
|
|
6451
|
-
exports
|
|
6845
|
+
"../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/formats.js"(exports) {
|
|
6846
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6847
|
+
exports.formatNames = exports.fastFormats = exports.fullFormats = void 0;
|
|
6452
6848
|
function fmtDef(validate2, compare) {
|
|
6453
6849
|
return { validate: validate2, compare };
|
|
6454
6850
|
}
|
|
6455
|
-
exports
|
|
6851
|
+
exports.fullFormats = {
|
|
6456
6852
|
// date: http://tools.ietf.org/html/rfc3339#section-5.6
|
|
6457
6853
|
date: fmtDef(date4, compareDate),
|
|
6458
6854
|
// date-time: http://tools.ietf.org/html/rfc3339#section-5.6
|
|
@@ -6499,8 +6895,8 @@ var require_formats = __commonJS({
|
|
|
6499
6895
|
// unchecked string payload
|
|
6500
6896
|
binary: true
|
|
6501
6897
|
};
|
|
6502
|
-
exports
|
|
6503
|
-
...exports
|
|
6898
|
+
exports.fastFormats = {
|
|
6899
|
+
...exports.fullFormats,
|
|
6504
6900
|
date: fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\d$/, compareDate),
|
|
6505
6901
|
time: fmtDef(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i, compareTime),
|
|
6506
6902
|
"date-time": fmtDef(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i, compareDateTime),
|
|
@@ -6514,7 +6910,7 @@ var require_formats = __commonJS({
|
|
|
6514
6910
|
// http://www.w3.org/TR/html5/forms.html#valid-e-mail-address (search for 'wilful violation')
|
|
6515
6911
|
email: /^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i
|
|
6516
6912
|
};
|
|
6517
|
-
exports
|
|
6913
|
+
exports.formatNames = Object.keys(exports.fullFormats);
|
|
6518
6914
|
function isLeapYear(year) {
|
|
6519
6915
|
return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0);
|
|
6520
6916
|
}
|
|
@@ -6648,9 +7044,9 @@ var require_formats = __commonJS({
|
|
|
6648
7044
|
|
|
6649
7045
|
// ../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/limit.js
|
|
6650
7046
|
var require_limit = __commonJS({
|
|
6651
|
-
"../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/limit.js"(exports
|
|
6652
|
-
Object.defineProperty(exports
|
|
6653
|
-
exports
|
|
7047
|
+
"../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/limit.js"(exports) {
|
|
7048
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7049
|
+
exports.formatLimitDefinition = void 0;
|
|
6654
7050
|
var ajv_1 = require_ajv();
|
|
6655
7051
|
var codegen_1 = require_codegen();
|
|
6656
7052
|
var ops = codegen_1.operators;
|
|
@@ -6664,7 +7060,7 @@ var require_limit = __commonJS({
|
|
|
6664
7060
|
message: ({ keyword, schemaCode }) => (0, codegen_1.str)`should be ${KWDs[keyword].okStr} ${schemaCode}`,
|
|
6665
7061
|
params: ({ keyword, schemaCode }) => (0, codegen_1._)`{comparison: ${KWDs[keyword].okStr}, limit: ${schemaCode}}`
|
|
6666
7062
|
};
|
|
6667
|
-
exports
|
|
7063
|
+
exports.formatLimitDefinition = {
|
|
6668
7064
|
keyword: Object.keys(KWDs),
|
|
6669
7065
|
type: "string",
|
|
6670
7066
|
schemaType: "string",
|
|
@@ -6710,17 +7106,17 @@ var require_limit = __commonJS({
|
|
|
6710
7106
|
dependencies: ["format"]
|
|
6711
7107
|
};
|
|
6712
7108
|
var formatLimitPlugin = (ajv) => {
|
|
6713
|
-
ajv.addKeyword(exports
|
|
7109
|
+
ajv.addKeyword(exports.formatLimitDefinition);
|
|
6714
7110
|
return ajv;
|
|
6715
7111
|
};
|
|
6716
|
-
exports
|
|
7112
|
+
exports.default = formatLimitPlugin;
|
|
6717
7113
|
}
|
|
6718
7114
|
});
|
|
6719
7115
|
|
|
6720
7116
|
// ../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/index.js
|
|
6721
7117
|
var require_dist = __commonJS({
|
|
6722
|
-
"../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/index.js"(exports
|
|
6723
|
-
Object.defineProperty(exports
|
|
7118
|
+
"../../node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.20.0/node_modules/ajv-formats/dist/index.js"(exports, module) {
|
|
7119
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6724
7120
|
var formats_1 = require_formats();
|
|
6725
7121
|
var limit_1 = require_limit();
|
|
6726
7122
|
var codegen_1 = require_codegen();
|
|
@@ -6752,15 +7148,15 @@ var require_dist = __commonJS({
|
|
|
6752
7148
|
for (const f of list)
|
|
6753
7149
|
ajv.addFormat(f, fs[f]);
|
|
6754
7150
|
}
|
|
6755
|
-
module.exports = exports
|
|
6756
|
-
Object.defineProperty(exports
|
|
6757
|
-
exports
|
|
7151
|
+
module.exports = exports = formatsPlugin;
|
|
7152
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7153
|
+
exports.default = formatsPlugin;
|
|
6758
7154
|
}
|
|
6759
7155
|
});
|
|
6760
7156
|
|
|
6761
7157
|
// ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js
|
|
6762
7158
|
var require_windows = __commonJS({
|
|
6763
|
-
"../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"(exports
|
|
7159
|
+
"../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/windows.js"(exports, module) {
|
|
6764
7160
|
module.exports = isexe;
|
|
6765
7161
|
isexe.sync = sync;
|
|
6766
7162
|
var fs = __require("fs");
|
|
@@ -6800,7 +7196,7 @@ var require_windows = __commonJS({
|
|
|
6800
7196
|
|
|
6801
7197
|
// ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js
|
|
6802
7198
|
var require_mode = __commonJS({
|
|
6803
|
-
"../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js"(exports
|
|
7199
|
+
"../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/mode.js"(exports, module) {
|
|
6804
7200
|
module.exports = isexe;
|
|
6805
7201
|
isexe.sync = sync;
|
|
6806
7202
|
var fs = __require("fs");
|
|
@@ -6833,7 +7229,7 @@ var require_mode = __commonJS({
|
|
|
6833
7229
|
|
|
6834
7230
|
// ../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js
|
|
6835
7231
|
var require_isexe = __commonJS({
|
|
6836
|
-
"../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(exports
|
|
7232
|
+
"../../node_modules/.pnpm/isexe@2.0.0/node_modules/isexe/index.js"(exports, module) {
|
|
6837
7233
|
__require("fs");
|
|
6838
7234
|
var core;
|
|
6839
7235
|
if (process.platform === "win32" || global.TESTING_WINDOWS) {
|
|
@@ -6888,7 +7284,7 @@ var require_isexe = __commonJS({
|
|
|
6888
7284
|
|
|
6889
7285
|
// ../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js
|
|
6890
7286
|
var require_which = __commonJS({
|
|
6891
|
-
"../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports
|
|
7287
|
+
"../../node_modules/.pnpm/which@2.0.2/node_modules/which/which.js"(exports, module) {
|
|
6892
7288
|
var isWindows = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys";
|
|
6893
7289
|
var path = __require("path");
|
|
6894
7290
|
var COLON = isWindows ? ";" : ":";
|
|
@@ -6984,7 +7380,7 @@ var require_which = __commonJS({
|
|
|
6984
7380
|
|
|
6985
7381
|
// ../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js
|
|
6986
7382
|
var require_path_key = __commonJS({
|
|
6987
|
-
"../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js"(exports
|
|
7383
|
+
"../../node_modules/.pnpm/path-key@3.1.1/node_modules/path-key/index.js"(exports, module) {
|
|
6988
7384
|
var pathKey = (options = {}) => {
|
|
6989
7385
|
const environment = options.env || process.env;
|
|
6990
7386
|
const platform = options.platform || process.platform;
|
|
@@ -7000,7 +7396,7 @@ var require_path_key = __commonJS({
|
|
|
7000
7396
|
|
|
7001
7397
|
// ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js
|
|
7002
7398
|
var require_resolveCommand = __commonJS({
|
|
7003
|
-
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports
|
|
7399
|
+
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/resolveCommand.js"(exports, module) {
|
|
7004
7400
|
var path = __require("path");
|
|
7005
7401
|
var which = require_which();
|
|
7006
7402
|
var getPathKey = require_path_key();
|
|
@@ -7041,7 +7437,7 @@ var require_resolveCommand = __commonJS({
|
|
|
7041
7437
|
|
|
7042
7438
|
// ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js
|
|
7043
7439
|
var require_escape = __commonJS({
|
|
7044
|
-
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js"(exports
|
|
7440
|
+
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/escape.js"(exports, module) {
|
|
7045
7441
|
var metaCharsRegExp = /([()\][%!^"`<>&|;, *?])/g;
|
|
7046
7442
|
function escapeCommand(arg) {
|
|
7047
7443
|
arg = arg.replace(metaCharsRegExp, "^$1");
|
|
@@ -7065,14 +7461,14 @@ var require_escape = __commonJS({
|
|
|
7065
7461
|
|
|
7066
7462
|
// ../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js
|
|
7067
7463
|
var require_shebang_regex = __commonJS({
|
|
7068
|
-
"../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js"(exports
|
|
7464
|
+
"../../node_modules/.pnpm/shebang-regex@3.0.0/node_modules/shebang-regex/index.js"(exports, module) {
|
|
7069
7465
|
module.exports = /^#!(.*)/;
|
|
7070
7466
|
}
|
|
7071
7467
|
});
|
|
7072
7468
|
|
|
7073
7469
|
// ../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js
|
|
7074
7470
|
var require_shebang_command = __commonJS({
|
|
7075
|
-
"../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js"(exports
|
|
7471
|
+
"../../node_modules/.pnpm/shebang-command@2.0.0/node_modules/shebang-command/index.js"(exports, module) {
|
|
7076
7472
|
var shebangRegex = require_shebang_regex();
|
|
7077
7473
|
module.exports = (string4 = "") => {
|
|
7078
7474
|
const match = string4.match(shebangRegex);
|
|
@@ -7091,7 +7487,7 @@ var require_shebang_command = __commonJS({
|
|
|
7091
7487
|
|
|
7092
7488
|
// ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js
|
|
7093
7489
|
var require_readShebang = __commonJS({
|
|
7094
|
-
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js"(exports
|
|
7490
|
+
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/util/readShebang.js"(exports, module) {
|
|
7095
7491
|
var fs = __require("fs");
|
|
7096
7492
|
var shebangCommand = require_shebang_command();
|
|
7097
7493
|
function readShebang(command) {
|
|
@@ -7112,7 +7508,7 @@ var require_readShebang = __commonJS({
|
|
|
7112
7508
|
|
|
7113
7509
|
// ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js
|
|
7114
7510
|
var require_parse = __commonJS({
|
|
7115
|
-
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"(exports
|
|
7511
|
+
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/parse.js"(exports, module) {
|
|
7116
7512
|
var path = __require("path");
|
|
7117
7513
|
var resolveCommand = require_resolveCommand();
|
|
7118
7514
|
var escape2 = require_escape();
|
|
@@ -7173,7 +7569,7 @@ var require_parse = __commonJS({
|
|
|
7173
7569
|
|
|
7174
7570
|
// ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js
|
|
7175
7571
|
var require_enoent = __commonJS({
|
|
7176
|
-
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js"(exports
|
|
7572
|
+
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/lib/enoent.js"(exports, module) {
|
|
7177
7573
|
var isWin = process.platform === "win32";
|
|
7178
7574
|
function notFoundError(original, syscall) {
|
|
7179
7575
|
return Object.assign(new Error(`${syscall} ${original.command} ENOENT`), {
|
|
@@ -7222,7 +7618,7 @@ var require_enoent = __commonJS({
|
|
|
7222
7618
|
|
|
7223
7619
|
// ../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js
|
|
7224
7620
|
var require_cross_spawn = __commonJS({
|
|
7225
|
-
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js"(exports
|
|
7621
|
+
"../../node_modules/.pnpm/cross-spawn@7.0.6/node_modules/cross-spawn/index.js"(exports, module) {
|
|
7226
7622
|
var cp = __require("child_process");
|
|
7227
7623
|
var parse3 = require_parse();
|
|
7228
7624
|
var enoent = require_enoent();
|
|
@@ -7248,15 +7644,15 @@ var require_cross_spawn = __commonJS({
|
|
|
7248
7644
|
|
|
7249
7645
|
// ../../node_modules/.pnpm/content-type@1.0.5/node_modules/content-type/index.js
|
|
7250
7646
|
var require_content_type = __commonJS({
|
|
7251
|
-
"../../node_modules/.pnpm/content-type@1.0.5/node_modules/content-type/index.js"(exports
|
|
7647
|
+
"../../node_modules/.pnpm/content-type@1.0.5/node_modules/content-type/index.js"(exports) {
|
|
7252
7648
|
var PARAM_REGEXP = /; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g;
|
|
7253
7649
|
var TEXT_REGEXP = /^[\u000b\u0020-\u007e\u0080-\u00ff]+$/;
|
|
7254
7650
|
var TOKEN_REGEXP = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
|
|
7255
7651
|
var QESC_REGEXP = /\\([\u000b\u0020-\u00ff])/g;
|
|
7256
7652
|
var QUOTE_REGEXP = /([\\"])/g;
|
|
7257
7653
|
var TYPE_REGEXP = /^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;
|
|
7258
|
-
exports
|
|
7259
|
-
exports
|
|
7654
|
+
exports.format = format;
|
|
7655
|
+
exports.parse = parse3;
|
|
7260
7656
|
function format(obj) {
|
|
7261
7657
|
if (!obj || typeof obj !== "object") {
|
|
7262
7658
|
throw new TypeError("argument obj is required");
|
|
@@ -18850,189 +19246,13 @@ function mediaTypeEssence(header) {
|
|
|
18850
19246
|
}
|
|
18851
19247
|
}
|
|
18852
19248
|
|
|
18853
|
-
// ../../node_modules/.pnpm/eventsource-parser@3.1.
|
|
18854
|
-
var ParseError2 = class extends Error {
|
|
18855
|
-
constructor(message, options) {
|
|
18856
|
-
super(message), this.name = "ParseError", this.type = options.type, this.field = options.field, this.value = options.value, this.line = options.line;
|
|
18857
|
-
}
|
|
18858
|
-
};
|
|
18859
|
-
var LF2 = 10;
|
|
18860
|
-
var CR2 = 13;
|
|
18861
|
-
var SPACE2 = 32;
|
|
18862
|
-
function noop2(_arg) {
|
|
18863
|
-
}
|
|
18864
|
-
function createParser2(config2) {
|
|
18865
|
-
if (typeof config2 == "function")
|
|
18866
|
-
throw new TypeError(
|
|
18867
|
-
"`config` must be an object, got a function instead. Did you mean `createParser({onEvent: fn})`?"
|
|
18868
|
-
);
|
|
18869
|
-
const { onEvent = noop2, onError = noop2, onRetry = noop2, onComment, maxBufferSize } = config2, pendingFragments = [];
|
|
18870
|
-
let pendingFragmentsLength = 0, isFirstChunk = true, id, data = "", dataLines = 0, eventType, terminated = false;
|
|
18871
|
-
function feed(chunk) {
|
|
18872
|
-
if (terminated)
|
|
18873
|
-
throw new Error(
|
|
18874
|
-
"Cannot feed parser: it was terminated after exceeding the configured max buffer size. Call `reset()` to resume parsing."
|
|
18875
|
-
);
|
|
18876
|
-
if (isFirstChunk && (isFirstChunk = false, chunk.charCodeAt(0) === 239 && chunk.charCodeAt(1) === 187 && chunk.charCodeAt(2) === 191 && (chunk = chunk.slice(3))), pendingFragments.length === 0) {
|
|
18877
|
-
const trailing2 = processLines(chunk);
|
|
18878
|
-
trailing2 !== "" && (pendingFragments.push(trailing2), pendingFragmentsLength = trailing2.length), checkBufferSize();
|
|
18879
|
-
return;
|
|
18880
|
-
}
|
|
18881
|
-
if (chunk.indexOf(`
|
|
18882
|
-
`) === -1 && chunk.indexOf("\r") === -1) {
|
|
18883
|
-
pendingFragments.push(chunk), pendingFragmentsLength += chunk.length, checkBufferSize();
|
|
18884
|
-
return;
|
|
18885
|
-
}
|
|
18886
|
-
pendingFragments.push(chunk);
|
|
18887
|
-
const input = pendingFragments.join("");
|
|
18888
|
-
pendingFragments.length = 0, pendingFragmentsLength = 0;
|
|
18889
|
-
const trailing = processLines(input);
|
|
18890
|
-
trailing !== "" && (pendingFragments.push(trailing), pendingFragmentsLength = trailing.length), checkBufferSize();
|
|
18891
|
-
}
|
|
18892
|
-
function checkBufferSize() {
|
|
18893
|
-
maxBufferSize !== void 0 && (pendingFragmentsLength + data.length <= maxBufferSize || (terminated = true, pendingFragments.length = 0, pendingFragmentsLength = 0, id = void 0, data = "", dataLines = 0, eventType = void 0, onError(
|
|
18894
|
-
new ParseError2(`Buffered data exceeded max buffer size of ${maxBufferSize} characters`, {
|
|
18895
|
-
type: "max-buffer-size-exceeded"
|
|
18896
|
-
})
|
|
18897
|
-
)));
|
|
18898
|
-
}
|
|
18899
|
-
function processLines(chunk) {
|
|
18900
|
-
let searchIndex = 0;
|
|
18901
|
-
if (chunk.indexOf("\r") === -1) {
|
|
18902
|
-
let lfIndex = chunk.indexOf(`
|
|
18903
|
-
`, searchIndex);
|
|
18904
|
-
for (; lfIndex !== -1; ) {
|
|
18905
|
-
if (searchIndex === lfIndex) {
|
|
18906
|
-
dataLines > 0 && onEvent({ id, event: eventType, data }), id = void 0, data = "", dataLines = 0, eventType = void 0, searchIndex = lfIndex + 1, lfIndex = chunk.indexOf(`
|
|
18907
|
-
`, searchIndex);
|
|
18908
|
-
continue;
|
|
18909
|
-
}
|
|
18910
|
-
const firstCharCode = chunk.charCodeAt(searchIndex);
|
|
18911
|
-
if (isDataPrefix2(chunk, searchIndex, firstCharCode)) {
|
|
18912
|
-
const valueStart = chunk.charCodeAt(searchIndex + 5) === SPACE2 ? searchIndex + 6 : searchIndex + 5, value = chunk.slice(valueStart, lfIndex);
|
|
18913
|
-
if (dataLines === 0 && chunk.charCodeAt(lfIndex + 1) === LF2) {
|
|
18914
|
-
onEvent({ id, event: eventType, data: value }), id = void 0, data = "", eventType = void 0, searchIndex = lfIndex + 2, lfIndex = chunk.indexOf(`
|
|
18915
|
-
`, searchIndex);
|
|
18916
|
-
continue;
|
|
18917
|
-
}
|
|
18918
|
-
data = dataLines === 0 ? value : `${data}
|
|
18919
|
-
${value}`, dataLines++;
|
|
18920
|
-
} else isEventPrefix2(chunk, searchIndex, firstCharCode) ? eventType = chunk.slice(
|
|
18921
|
-
chunk.charCodeAt(searchIndex + 6) === SPACE2 ? searchIndex + 7 : searchIndex + 6,
|
|
18922
|
-
lfIndex
|
|
18923
|
-
) || void 0 : parseLine(chunk, searchIndex, lfIndex);
|
|
18924
|
-
searchIndex = lfIndex + 1, lfIndex = chunk.indexOf(`
|
|
18925
|
-
`, searchIndex);
|
|
18926
|
-
}
|
|
18927
|
-
return chunk.slice(searchIndex);
|
|
18928
|
-
}
|
|
18929
|
-
for (; searchIndex < chunk.length; ) {
|
|
18930
|
-
const crIndex = chunk.indexOf("\r", searchIndex), lfIndex = chunk.indexOf(`
|
|
18931
|
-
`, searchIndex);
|
|
18932
|
-
let lineEnd = -1;
|
|
18933
|
-
if (crIndex !== -1 && lfIndex !== -1 ? lineEnd = crIndex < lfIndex ? crIndex : lfIndex : crIndex !== -1 ? crIndex === chunk.length - 1 ? lineEnd = -1 : lineEnd = crIndex : lfIndex !== -1 && (lineEnd = lfIndex), lineEnd === -1)
|
|
18934
|
-
break;
|
|
18935
|
-
parseLine(chunk, searchIndex, lineEnd), searchIndex = lineEnd + 1, chunk.charCodeAt(searchIndex - 1) === CR2 && chunk.charCodeAt(searchIndex) === LF2 && searchIndex++;
|
|
18936
|
-
}
|
|
18937
|
-
return chunk.slice(searchIndex);
|
|
18938
|
-
}
|
|
18939
|
-
function parseLine(chunk, start, end) {
|
|
18940
|
-
if (start === end) {
|
|
18941
|
-
dispatchEvent();
|
|
18942
|
-
return;
|
|
18943
|
-
}
|
|
18944
|
-
const firstCharCode = chunk.charCodeAt(start);
|
|
18945
|
-
if (isDataPrefix2(chunk, start, firstCharCode)) {
|
|
18946
|
-
const valueStart = chunk.charCodeAt(start + 5) === SPACE2 ? start + 6 : start + 5, value2 = chunk.slice(valueStart, end);
|
|
18947
|
-
data = dataLines === 0 ? value2 : `${data}
|
|
18948
|
-
${value2}`, dataLines++;
|
|
18949
|
-
return;
|
|
18950
|
-
}
|
|
18951
|
-
if (isEventPrefix2(chunk, start, firstCharCode)) {
|
|
18952
|
-
eventType = chunk.slice(chunk.charCodeAt(start + 6) === SPACE2 ? start + 7 : start + 6, end) || void 0;
|
|
18953
|
-
return;
|
|
18954
|
-
}
|
|
18955
|
-
if (firstCharCode === 105 && chunk.charCodeAt(start + 1) === 100 && chunk.charCodeAt(start + 2) === 58) {
|
|
18956
|
-
const value2 = chunk.slice(chunk.charCodeAt(start + 3) === SPACE2 ? start + 4 : start + 3, end);
|
|
18957
|
-
id = value2.includes("\0") ? void 0 : value2;
|
|
18958
|
-
return;
|
|
18959
|
-
}
|
|
18960
|
-
if (firstCharCode === 58) {
|
|
18961
|
-
if (onComment) {
|
|
18962
|
-
const line2 = chunk.slice(start, end);
|
|
18963
|
-
onComment(line2.slice(chunk.charCodeAt(start + 1) === SPACE2 ? 2 : 1));
|
|
18964
|
-
}
|
|
18965
|
-
return;
|
|
18966
|
-
}
|
|
18967
|
-
const line = chunk.slice(start, end), fieldSeparatorIndex = line.indexOf(":");
|
|
18968
|
-
if (fieldSeparatorIndex === -1) {
|
|
18969
|
-
processField(line, "", line);
|
|
18970
|
-
return;
|
|
18971
|
-
}
|
|
18972
|
-
const field = line.slice(0, fieldSeparatorIndex), offset = line.charCodeAt(fieldSeparatorIndex + 1) === SPACE2 ? 2 : 1, value = line.slice(fieldSeparatorIndex + offset);
|
|
18973
|
-
processField(field, value, line);
|
|
18974
|
-
}
|
|
18975
|
-
function processField(field, value, line) {
|
|
18976
|
-
switch (field) {
|
|
18977
|
-
case "event":
|
|
18978
|
-
eventType = value || void 0;
|
|
18979
|
-
break;
|
|
18980
|
-
case "data":
|
|
18981
|
-
data = dataLines === 0 ? value : `${data}
|
|
18982
|
-
${value}`, dataLines++;
|
|
18983
|
-
break;
|
|
18984
|
-
case "id":
|
|
18985
|
-
id = value.includes("\0") ? void 0 : value;
|
|
18986
|
-
break;
|
|
18987
|
-
case "retry":
|
|
18988
|
-
/^\d+$/.test(value) ? onRetry(parseInt(value, 10)) : onError(
|
|
18989
|
-
new ParseError2(`Invalid \`retry\` value: "${value}"`, {
|
|
18990
|
-
type: "invalid-retry",
|
|
18991
|
-
value,
|
|
18992
|
-
line
|
|
18993
|
-
})
|
|
18994
|
-
);
|
|
18995
|
-
break;
|
|
18996
|
-
default:
|
|
18997
|
-
onError(
|
|
18998
|
-
new ParseError2(
|
|
18999
|
-
`Unknown field "${field.length > 20 ? `${field.slice(0, 20)}\u2026` : field}"`,
|
|
19000
|
-
{ type: "unknown-field", field, value, line }
|
|
19001
|
-
)
|
|
19002
|
-
);
|
|
19003
|
-
break;
|
|
19004
|
-
}
|
|
19005
|
-
}
|
|
19006
|
-
function dispatchEvent() {
|
|
19007
|
-
dataLines > 0 && onEvent({
|
|
19008
|
-
id,
|
|
19009
|
-
event: eventType,
|
|
19010
|
-
data
|
|
19011
|
-
}), id = void 0, data = "", dataLines = 0, eventType = void 0;
|
|
19012
|
-
}
|
|
19013
|
-
function reset(options = {}) {
|
|
19014
|
-
if (options.consume && pendingFragments.length > 0) {
|
|
19015
|
-
const incompleteLine = pendingFragments.join("");
|
|
19016
|
-
parseLine(incompleteLine, 0, incompleteLine.length);
|
|
19017
|
-
}
|
|
19018
|
-
isFirstChunk = true, id = void 0, data = "", dataLines = 0, eventType = void 0, pendingFragments.length = 0, pendingFragmentsLength = 0, terminated = false;
|
|
19019
|
-
}
|
|
19020
|
-
return { feed, reset };
|
|
19021
|
-
}
|
|
19022
|
-
function isDataPrefix2(chunk, i, firstCharCode) {
|
|
19023
|
-
return firstCharCode === 100 && chunk.charCodeAt(i + 1) === 97 && chunk.charCodeAt(i + 2) === 116 && chunk.charCodeAt(i + 3) === 97 && chunk.charCodeAt(i + 4) === 58;
|
|
19024
|
-
}
|
|
19025
|
-
function isEventPrefix2(chunk, i, firstCharCode) {
|
|
19026
|
-
return firstCharCode === 101 && chunk.charCodeAt(i + 1) === 118 && chunk.charCodeAt(i + 2) === 101 && chunk.charCodeAt(i + 3) === 110 && chunk.charCodeAt(i + 4) === 116 && chunk.charCodeAt(i + 5) === 58;
|
|
19027
|
-
}
|
|
19028
|
-
|
|
19029
|
-
// ../../node_modules/.pnpm/eventsource-parser@3.1.0/node_modules/eventsource-parser/dist/stream.js
|
|
19249
|
+
// ../../node_modules/.pnpm/eventsource-parser@3.1.1/node_modules/eventsource-parser/dist/stream.js
|
|
19030
19250
|
var EventSourceParserStream = class extends TransformStream {
|
|
19031
19251
|
constructor({ onError, onRetry, onComment, maxBufferSize } = {}) {
|
|
19032
19252
|
let parser;
|
|
19033
19253
|
super({
|
|
19034
19254
|
start(controller) {
|
|
19035
|
-
parser =
|
|
19255
|
+
parser = createParser({
|
|
19036
19256
|
onEvent: (event) => {
|
|
19037
19257
|
controller.enqueue(event);
|
|
19038
19258
|
},
|