@rushstack/package-extractor 0.12.5 → 0.12.7
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/CHANGELOG.json +45 -0
- package/CHANGELOG.md +11 -1
- package/dist/scripts/create-links.js +1349 -1811
- package/dist/scripts/create-links.js.map +1 -1
- package/dist/tsdoc-metadata.json +1 -1
- package/package.json +8 -8
|
@@ -2189,9 +2189,9 @@ module.exports = cmdShim;
|
|
|
2189
2189
|
|
|
2190
2190
|
/***/ },
|
|
2191
2191
|
|
|
2192
|
-
/***/
|
|
2192
|
+
/***/ 836214
|
|
2193
2193
|
/*!**************************************************************************************************************************!*\
|
|
2194
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv-draft-04@1.0.0_ajv@8.
|
|
2194
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv-draft-04@1.0.0_ajv@8.18.0/node_modules/ajv-draft-04/dist/index.js ***!
|
|
2195
2195
|
\**************************************************************************************************************************/
|
|
2196
2196
|
(module, exports, __webpack_require__) {
|
|
2197
2197
|
|
|
@@ -2199,10 +2199,10 @@ module.exports = cmdShim;
|
|
|
2199
2199
|
|
|
2200
2200
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2201
2201
|
exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0;
|
|
2202
|
-
const core_1 = __webpack_require__(/*! ajv/dist/core */
|
|
2203
|
-
const draft4_1 = __webpack_require__(/*! ./vocabulary/draft4 */
|
|
2204
|
-
const discriminator_1 = __webpack_require__(/*! ajv/dist/vocabularies/discriminator */
|
|
2205
|
-
const draft4MetaSchema = __webpack_require__(/*! ./refs/json-schema-draft-04.json */
|
|
2202
|
+
const core_1 = __webpack_require__(/*! ajv/dist/core */ 422332);
|
|
2203
|
+
const draft4_1 = __webpack_require__(/*! ./vocabulary/draft4 */ 967118);
|
|
2204
|
+
const discriminator_1 = __webpack_require__(/*! ajv/dist/vocabularies/discriminator */ 288375);
|
|
2205
|
+
const draft4MetaSchema = __webpack_require__(/*! ./refs/json-schema-draft-04.json */ 38849);
|
|
2206
2206
|
const META_SUPPORT_DATA = ["/properties"];
|
|
2207
2207
|
const META_SCHEMA_ID = "http://json-schema.org/draft-04/schema";
|
|
2208
2208
|
class Ajv extends core_1.default {
|
|
@@ -2236,9 +2236,9 @@ class Ajv extends core_1.default {
|
|
|
2236
2236
|
module.exports = exports = Ajv;
|
|
2237
2237
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2238
2238
|
exports["default"] = Ajv;
|
|
2239
|
-
var core_2 = __webpack_require__(/*! ajv/dist/core */
|
|
2239
|
+
var core_2 = __webpack_require__(/*! ajv/dist/core */ 422332);
|
|
2240
2240
|
Object.defineProperty(exports, "KeywordCxt", ({ enumerable: true, get: function () { return core_2.KeywordCxt; } }));
|
|
2241
|
-
var core_3 = __webpack_require__(/*! ajv/dist/core */
|
|
2241
|
+
var core_3 = __webpack_require__(/*! ajv/dist/core */ 422332);
|
|
2242
2242
|
Object.defineProperty(exports, "_", ({ enumerable: true, get: function () { return core_3._; } }));
|
|
2243
2243
|
Object.defineProperty(exports, "str", ({ enumerable: true, get: function () { return core_3.str; } }));
|
|
2244
2244
|
Object.defineProperty(exports, "stringify", ({ enumerable: true, get: function () { return core_3.stringify; } }));
|
|
@@ -2249,16 +2249,16 @@ Object.defineProperty(exports, "CodeGen", ({ enumerable: true, get: function ()
|
|
|
2249
2249
|
|
|
2250
2250
|
/***/ },
|
|
2251
2251
|
|
|
2252
|
-
/***/
|
|
2252
|
+
/***/ 300212
|
|
2253
2253
|
/*!************************************************************************************************************************************!*\
|
|
2254
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv-draft-04@1.0.0_ajv@8.
|
|
2254
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv-draft-04@1.0.0_ajv@8.18.0/node_modules/ajv-draft-04/dist/vocabulary/core.js ***!
|
|
2255
2255
|
\************************************************************************************************************************************/
|
|
2256
2256
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
2257
2257
|
|
|
2258
2258
|
"use strict";
|
|
2259
2259
|
|
|
2260
2260
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2261
|
-
const ref_1 = __webpack_require__(/*! ajv/dist/vocabularies/core/ref */
|
|
2261
|
+
const ref_1 = __webpack_require__(/*! ajv/dist/vocabularies/core/ref */ 939675);
|
|
2262
2262
|
const core = [
|
|
2263
2263
|
"$schema",
|
|
2264
2264
|
"id",
|
|
@@ -2272,19 +2272,19 @@ exports["default"] = core;
|
|
|
2272
2272
|
|
|
2273
2273
|
/***/ },
|
|
2274
2274
|
|
|
2275
|
-
/***/
|
|
2275
|
+
/***/ 967118
|
|
2276
2276
|
/*!**************************************************************************************************************************************!*\
|
|
2277
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv-draft-04@1.0.0_ajv@8.
|
|
2277
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv-draft-04@1.0.0_ajv@8.18.0/node_modules/ajv-draft-04/dist/vocabulary/draft4.js ***!
|
|
2278
2278
|
\**************************************************************************************************************************************/
|
|
2279
2279
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
2280
2280
|
|
|
2281
2281
|
"use strict";
|
|
2282
2282
|
|
|
2283
2283
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2284
|
-
const core_1 = __webpack_require__(/*! ./core */
|
|
2285
|
-
const validation_1 = __webpack_require__(/*! ./validation */
|
|
2286
|
-
const applicator_1 = __webpack_require__(/*! ajv/dist/vocabularies/applicator */
|
|
2287
|
-
const format_1 = __webpack_require__(/*! ajv/dist/vocabularies/format */
|
|
2284
|
+
const core_1 = __webpack_require__(/*! ./core */ 300212);
|
|
2285
|
+
const validation_1 = __webpack_require__(/*! ./validation */ 547271);
|
|
2286
|
+
const applicator_1 = __webpack_require__(/*! ajv/dist/vocabularies/applicator */ 248676);
|
|
2287
|
+
const format_1 = __webpack_require__(/*! ajv/dist/vocabularies/format */ 737630);
|
|
2288
2288
|
const metadataVocabulary = ["title", "description", "default"];
|
|
2289
2289
|
const draft4Vocabularies = [
|
|
2290
2290
|
core_1.default,
|
|
@@ -2298,26 +2298,26 @@ exports["default"] = draft4Vocabularies;
|
|
|
2298
2298
|
|
|
2299
2299
|
/***/ },
|
|
2300
2300
|
|
|
2301
|
-
/***/
|
|
2301
|
+
/***/ 547271
|
|
2302
2302
|
/*!************************************************************************************************************************************************!*\
|
|
2303
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv-draft-04@1.0.0_ajv@8.
|
|
2303
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv-draft-04@1.0.0_ajv@8.18.0/node_modules/ajv-draft-04/dist/vocabulary/validation/index.js ***!
|
|
2304
2304
|
\************************************************************************************************************************************************/
|
|
2305
2305
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
2306
2306
|
|
|
2307
2307
|
"use strict";
|
|
2308
2308
|
|
|
2309
2309
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2310
|
-
const limitNumber_1 = __webpack_require__(/*! ./limitNumber */
|
|
2311
|
-
const limitNumberExclusive_1 = __webpack_require__(/*! ./limitNumberExclusive */
|
|
2312
|
-
const multipleOf_1 = __webpack_require__(/*! ajv/dist/vocabularies/validation/multipleOf */
|
|
2313
|
-
const limitLength_1 = __webpack_require__(/*! ajv/dist/vocabularies/validation/limitLength */
|
|
2314
|
-
const pattern_1 = __webpack_require__(/*! ajv/dist/vocabularies/validation/pattern */
|
|
2315
|
-
const limitProperties_1 = __webpack_require__(/*! ajv/dist/vocabularies/validation/limitProperties */
|
|
2316
|
-
const required_1 = __webpack_require__(/*! ajv/dist/vocabularies/validation/required */
|
|
2317
|
-
const limitItems_1 = __webpack_require__(/*! ajv/dist/vocabularies/validation/limitItems */
|
|
2318
|
-
const uniqueItems_1 = __webpack_require__(/*! ajv/dist/vocabularies/validation/uniqueItems */
|
|
2319
|
-
const const_1 = __webpack_require__(/*! ajv/dist/vocabularies/validation/const */
|
|
2320
|
-
const enum_1 = __webpack_require__(/*! ajv/dist/vocabularies/validation/enum */
|
|
2310
|
+
const limitNumber_1 = __webpack_require__(/*! ./limitNumber */ 831321);
|
|
2311
|
+
const limitNumberExclusive_1 = __webpack_require__(/*! ./limitNumberExclusive */ 305737);
|
|
2312
|
+
const multipleOf_1 = __webpack_require__(/*! ajv/dist/vocabularies/validation/multipleOf */ 165737);
|
|
2313
|
+
const limitLength_1 = __webpack_require__(/*! ajv/dist/vocabularies/validation/limitLength */ 698017);
|
|
2314
|
+
const pattern_1 = __webpack_require__(/*! ajv/dist/vocabularies/validation/pattern */ 108804);
|
|
2315
|
+
const limitProperties_1 = __webpack_require__(/*! ajv/dist/vocabularies/validation/limitProperties */ 804660);
|
|
2316
|
+
const required_1 = __webpack_require__(/*! ajv/dist/vocabularies/validation/required */ 638045);
|
|
2317
|
+
const limitItems_1 = __webpack_require__(/*! ajv/dist/vocabularies/validation/limitItems */ 229105);
|
|
2318
|
+
const uniqueItems_1 = __webpack_require__(/*! ajv/dist/vocabularies/validation/uniqueItems */ 255791);
|
|
2319
|
+
const const_1 = __webpack_require__(/*! ajv/dist/vocabularies/validation/const */ 54157);
|
|
2320
|
+
const enum_1 = __webpack_require__(/*! ajv/dist/vocabularies/validation/enum */ 805089);
|
|
2321
2321
|
const validation = [
|
|
2322
2322
|
// number
|
|
2323
2323
|
limitNumber_1.default,
|
|
@@ -2343,17 +2343,17 @@ exports["default"] = validation;
|
|
|
2343
2343
|
|
|
2344
2344
|
/***/ },
|
|
2345
2345
|
|
|
2346
|
-
/***/
|
|
2346
|
+
/***/ 831321
|
|
2347
2347
|
/*!******************************************************************************************************************************************************!*\
|
|
2348
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv-draft-04@1.0.0_ajv@8.
|
|
2348
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv-draft-04@1.0.0_ajv@8.18.0/node_modules/ajv-draft-04/dist/vocabulary/validation/limitNumber.js ***!
|
|
2349
2349
|
\******************************************************************************************************************************************************/
|
|
2350
2350
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
2351
2351
|
|
|
2352
2352
|
"use strict";
|
|
2353
2353
|
|
|
2354
2354
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2355
|
-
const core_1 = __webpack_require__(/*! ajv/dist/core */
|
|
2356
|
-
const codegen_1 = __webpack_require__(/*! ajv/dist/compile/codegen */
|
|
2355
|
+
const core_1 = __webpack_require__(/*! ajv/dist/core */ 422332);
|
|
2356
|
+
const codegen_1 = __webpack_require__(/*! ajv/dist/compile/codegen */ 449315);
|
|
2357
2357
|
const ops = codegen_1.operators;
|
|
2358
2358
|
const KWDs = {
|
|
2359
2359
|
maximum: {
|
|
@@ -2397,9 +2397,9 @@ exports["default"] = def;
|
|
|
2397
2397
|
|
|
2398
2398
|
/***/ },
|
|
2399
2399
|
|
|
2400
|
-
/***/
|
|
2400
|
+
/***/ 305737
|
|
2401
2401
|
/*!***************************************************************************************************************************************************************!*\
|
|
2402
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv-draft-04@1.0.0_ajv@8.
|
|
2402
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv-draft-04@1.0.0_ajv@8.18.0/node_modules/ajv-draft-04/dist/vocabulary/validation/limitNumberExclusive.js ***!
|
|
2403
2403
|
\***************************************************************************************************************************************************************/
|
|
2404
2404
|
(__unused_webpack_module, exports) {
|
|
2405
2405
|
|
|
@@ -2426,9 +2426,9 @@ exports["default"] = def;
|
|
|
2426
2426
|
|
|
2427
2427
|
/***/ },
|
|
2428
2428
|
|
|
2429
|
-
/***/
|
|
2429
|
+
/***/ 902741
|
|
2430
2430
|
/*!**************************************************************************************************************************!*\
|
|
2431
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.
|
|
2431
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/formats.js ***!
|
|
2432
2432
|
\**************************************************************************************************************************/
|
|
2433
2433
|
(__unused_webpack_module, exports) {
|
|
2434
2434
|
|
|
@@ -2644,18 +2644,18 @@ function regex(str) {
|
|
|
2644
2644
|
|
|
2645
2645
|
/***/ },
|
|
2646
2646
|
|
|
2647
|
-
/***/
|
|
2647
|
+
/***/ 135077
|
|
2648
2648
|
/*!************************************************************************************************************************!*\
|
|
2649
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.
|
|
2649
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/index.js ***!
|
|
2650
2650
|
\************************************************************************************************************************/
|
|
2651
2651
|
(module, exports, __webpack_require__) {
|
|
2652
2652
|
|
|
2653
2653
|
"use strict";
|
|
2654
2654
|
|
|
2655
2655
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2656
|
-
const formats_1 = __webpack_require__(/*! ./formats */
|
|
2657
|
-
const limit_1 = __webpack_require__(/*! ./limit */
|
|
2658
|
-
const codegen_1 = __webpack_require__(/*! ajv/dist/compile/codegen */
|
|
2656
|
+
const formats_1 = __webpack_require__(/*! ./formats */ 902741);
|
|
2657
|
+
const limit_1 = __webpack_require__(/*! ./limit */ 157902);
|
|
2658
|
+
const codegen_1 = __webpack_require__(/*! ajv/dist/compile/codegen */ 449315);
|
|
2659
2659
|
const fullName = new codegen_1.Name("fullFormats");
|
|
2660
2660
|
const fastName = new codegen_1.Name("fastFormats");
|
|
2661
2661
|
const formatsPlugin = (ajv, opts = { keywords: true }) => {
|
|
@@ -2691,9 +2691,9 @@ exports["default"] = formatsPlugin;
|
|
|
2691
2691
|
|
|
2692
2692
|
/***/ },
|
|
2693
2693
|
|
|
2694
|
-
/***/
|
|
2694
|
+
/***/ 157902
|
|
2695
2695
|
/*!************************************************************************************************************************!*\
|
|
2696
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.
|
|
2696
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv-formats@3.0.1_ajv@8.18.0/node_modules/ajv-formats/dist/limit.js ***!
|
|
2697
2697
|
\************************************************************************************************************************/
|
|
2698
2698
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
2699
2699
|
|
|
@@ -2701,8 +2701,8 @@ exports["default"] = formatsPlugin;
|
|
|
2701
2701
|
|
|
2702
2702
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2703
2703
|
exports.formatLimitDefinition = void 0;
|
|
2704
|
-
const ajv_1 = __webpack_require__(/*! ajv */
|
|
2705
|
-
const codegen_1 = __webpack_require__(/*! ajv/dist/compile/codegen */
|
|
2704
|
+
const ajv_1 = __webpack_require__(/*! ajv */ 56660);
|
|
2705
|
+
const codegen_1 = __webpack_require__(/*! ajv/dist/compile/codegen */ 449315);
|
|
2706
2706
|
const ops = codegen_1.operators;
|
|
2707
2707
|
const KWDs = {
|
|
2708
2708
|
formatMaximum: { okStr: "<=", ok: ops.LTE, fail: ops.GT },
|
|
@@ -2770,9 +2770,9 @@ exports["default"] = formatLimitPlugin;
|
|
|
2770
2770
|
|
|
2771
2771
|
/***/ },
|
|
2772
2772
|
|
|
2773
|
-
/***/
|
|
2773
|
+
/***/ 56660
|
|
2774
2774
|
/*!********************************************************************************************!*\
|
|
2775
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
2775
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/ajv.js ***!
|
|
2776
2776
|
\********************************************************************************************/
|
|
2777
2777
|
(module, exports, __webpack_require__) {
|
|
2778
2778
|
|
|
@@ -2780,10 +2780,10 @@ exports["default"] = formatLimitPlugin;
|
|
|
2780
2780
|
|
|
2781
2781
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2782
2782
|
exports.MissingRefError = exports.ValidationError = exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = exports.Ajv = void 0;
|
|
2783
|
-
const core_1 = __webpack_require__(/*! ./core */
|
|
2784
|
-
const draft7_1 = __webpack_require__(/*! ./vocabularies/draft7 */
|
|
2785
|
-
const discriminator_1 = __webpack_require__(/*! ./vocabularies/discriminator */
|
|
2786
|
-
const draft7MetaSchema = __webpack_require__(/*! ./refs/json-schema-draft-07.json */
|
|
2783
|
+
const core_1 = __webpack_require__(/*! ./core */ 422332);
|
|
2784
|
+
const draft7_1 = __webpack_require__(/*! ./vocabularies/draft7 */ 996506);
|
|
2785
|
+
const discriminator_1 = __webpack_require__(/*! ./vocabularies/discriminator */ 288375);
|
|
2786
|
+
const draft7MetaSchema = __webpack_require__(/*! ./refs/json-schema-draft-07.json */ 547973);
|
|
2787
2787
|
const META_SUPPORT_DATA = ["/properties"];
|
|
2788
2788
|
const META_SCHEMA_ID = "http://json-schema.org/draft-07/schema";
|
|
2789
2789
|
class Ajv extends core_1.default {
|
|
@@ -2813,26 +2813,26 @@ module.exports = exports = Ajv;
|
|
|
2813
2813
|
module.exports.Ajv = Ajv;
|
|
2814
2814
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2815
2815
|
exports["default"] = Ajv;
|
|
2816
|
-
var validate_1 = __webpack_require__(/*! ./compile/validate */
|
|
2816
|
+
var validate_1 = __webpack_require__(/*! ./compile/validate */ 947528);
|
|
2817
2817
|
Object.defineProperty(exports, "KeywordCxt", ({ enumerable: true, get: function () { return validate_1.KeywordCxt; } }));
|
|
2818
|
-
var codegen_1 = __webpack_require__(/*! ./compile/codegen */
|
|
2818
|
+
var codegen_1 = __webpack_require__(/*! ./compile/codegen */ 449315);
|
|
2819
2819
|
Object.defineProperty(exports, "_", ({ enumerable: true, get: function () { return codegen_1._; } }));
|
|
2820
2820
|
Object.defineProperty(exports, "str", ({ enumerable: true, get: function () { return codegen_1.str; } }));
|
|
2821
2821
|
Object.defineProperty(exports, "stringify", ({ enumerable: true, get: function () { return codegen_1.stringify; } }));
|
|
2822
2822
|
Object.defineProperty(exports, "nil", ({ enumerable: true, get: function () { return codegen_1.nil; } }));
|
|
2823
2823
|
Object.defineProperty(exports, "Name", ({ enumerable: true, get: function () { return codegen_1.Name; } }));
|
|
2824
2824
|
Object.defineProperty(exports, "CodeGen", ({ enumerable: true, get: function () { return codegen_1.CodeGen; } }));
|
|
2825
|
-
var validation_error_1 = __webpack_require__(/*! ./runtime/validation_error */
|
|
2825
|
+
var validation_error_1 = __webpack_require__(/*! ./runtime/validation_error */ 798288);
|
|
2826
2826
|
Object.defineProperty(exports, "ValidationError", ({ enumerable: true, get: function () { return validation_error_1.default; } }));
|
|
2827
|
-
var ref_error_1 = __webpack_require__(/*! ./compile/ref_error */
|
|
2827
|
+
var ref_error_1 = __webpack_require__(/*! ./compile/ref_error */ 726969);
|
|
2828
2828
|
Object.defineProperty(exports, "MissingRefError", ({ enumerable: true, get: function () { return ref_error_1.default; } }));
|
|
2829
2829
|
//# sourceMappingURL=ajv.js.map
|
|
2830
2830
|
|
|
2831
2831
|
/***/ },
|
|
2832
2832
|
|
|
2833
|
-
/***/
|
|
2833
|
+
/***/ 586926
|
|
2834
2834
|
/*!*************************************************************************************************************!*\
|
|
2835
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
2835
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/code.js ***!
|
|
2836
2836
|
\*************************************************************************************************************/
|
|
2837
2837
|
(__unused_webpack_module, exports) {
|
|
2838
2838
|
|
|
@@ -2840,6 +2840,7 @@ Object.defineProperty(exports, "MissingRefError", ({ enumerable: true, get: func
|
|
|
2840
2840
|
|
|
2841
2841
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2842
2842
|
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;
|
|
2843
|
+
// eslint-disable-next-line @typescript-eslint/no-extraneous-class
|
|
2843
2844
|
class _CodeOrName {
|
|
2844
2845
|
}
|
|
2845
2846
|
exports._CodeOrName = _CodeOrName;
|
|
@@ -2995,9 +2996,9 @@ exports.regexpCode = regexpCode;
|
|
|
2995
2996
|
|
|
2996
2997
|
/***/ },
|
|
2997
2998
|
|
|
2998
|
-
/***/
|
|
2999
|
+
/***/ 449315
|
|
2999
3000
|
/*!**************************************************************************************************************!*\
|
|
3000
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
3001
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/index.js ***!
|
|
3001
3002
|
\**************************************************************************************************************/
|
|
3002
3003
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
3003
3004
|
|
|
@@ -3005,9 +3006,9 @@ exports.regexpCode = regexpCode;
|
|
|
3005
3006
|
|
|
3006
3007
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3007
3008
|
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;
|
|
3008
|
-
const code_1 = __webpack_require__(/*! ./code */
|
|
3009
|
-
const scope_1 = __webpack_require__(/*! ./scope */
|
|
3010
|
-
var code_2 = __webpack_require__(/*! ./code */
|
|
3009
|
+
const code_1 = __webpack_require__(/*! ./code */ 586926);
|
|
3010
|
+
const scope_1 = __webpack_require__(/*! ./scope */ 231523);
|
|
3011
|
+
var code_2 = __webpack_require__(/*! ./code */ 586926);
|
|
3011
3012
|
Object.defineProperty(exports, "_", ({ enumerable: true, get: function () { return code_2._; } }));
|
|
3012
3013
|
Object.defineProperty(exports, "str", ({ enumerable: true, get: function () { return code_2.str; } }));
|
|
3013
3014
|
Object.defineProperty(exports, "strConcat", ({ enumerable: true, get: function () { return code_2.strConcat; } }));
|
|
@@ -3016,7 +3017,7 @@ Object.defineProperty(exports, "getProperty", ({ enumerable: true, get: function
|
|
|
3016
3017
|
Object.defineProperty(exports, "stringify", ({ enumerable: true, get: function () { return code_2.stringify; } }));
|
|
3017
3018
|
Object.defineProperty(exports, "regexpCode", ({ enumerable: true, get: function () { return code_2.regexpCode; } }));
|
|
3018
3019
|
Object.defineProperty(exports, "Name", ({ enumerable: true, get: function () { return code_2.Name; } }));
|
|
3019
|
-
var scope_2 = __webpack_require__(/*! ./scope */
|
|
3020
|
+
var scope_2 = __webpack_require__(/*! ./scope */ 231523);
|
|
3020
3021
|
Object.defineProperty(exports, "Scope", ({ enumerable: true, get: function () { return scope_2.Scope; } }));
|
|
3021
3022
|
Object.defineProperty(exports, "ValueScope", ({ enumerable: true, get: function () { return scope_2.ValueScope; } }));
|
|
3022
3023
|
Object.defineProperty(exports, "ValueScopeName", ({ enumerable: true, get: function () { return scope_2.ValueScopeName; } }));
|
|
@@ -3702,9 +3703,9 @@ function par(x) {
|
|
|
3702
3703
|
|
|
3703
3704
|
/***/ },
|
|
3704
3705
|
|
|
3705
|
-
/***/
|
|
3706
|
+
/***/ 231523
|
|
3706
3707
|
/*!**************************************************************************************************************!*\
|
|
3707
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
3708
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/codegen/scope.js ***!
|
|
3708
3709
|
\**************************************************************************************************************/
|
|
3709
3710
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
3710
3711
|
|
|
@@ -3712,7 +3713,7 @@ function par(x) {
|
|
|
3712
3713
|
|
|
3713
3714
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3714
3715
|
exports.ValueScope = exports.ValueScopeName = exports.Scope = exports.varKinds = exports.UsedValueState = void 0;
|
|
3715
|
-
const code_1 = __webpack_require__(/*! ./code */
|
|
3716
|
+
const code_1 = __webpack_require__(/*! ./code */ 586926);
|
|
3716
3717
|
class ValueError extends Error {
|
|
3717
3718
|
constructor(name) {
|
|
3718
3719
|
super(`CodeGen: "code" for ${name} not defined`);
|
|
@@ -3855,9 +3856,9 @@ exports.ValueScope = ValueScope;
|
|
|
3855
3856
|
|
|
3856
3857
|
/***/ },
|
|
3857
3858
|
|
|
3858
|
-
/***/
|
|
3859
|
+
/***/ 351810
|
|
3859
3860
|
/*!*******************************************************************************************************!*\
|
|
3860
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
3861
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/errors.js ***!
|
|
3861
3862
|
\*******************************************************************************************************/
|
|
3862
3863
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
3863
3864
|
|
|
@@ -3865,9 +3866,9 @@ exports.ValueScope = ValueScope;
|
|
|
3865
3866
|
|
|
3866
3867
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3867
3868
|
exports.extendErrors = exports.resetErrorsCount = exports.reportExtraError = exports.reportError = exports.keyword$DataError = exports.keywordError = void 0;
|
|
3868
|
-
const codegen_1 = __webpack_require__(/*! ./codegen */
|
|
3869
|
-
const util_1 = __webpack_require__(/*! ./util */
|
|
3870
|
-
const names_1 = __webpack_require__(/*! ./names */
|
|
3869
|
+
const codegen_1 = __webpack_require__(/*! ./codegen */ 449315);
|
|
3870
|
+
const util_1 = __webpack_require__(/*! ./util */ 538365);
|
|
3871
|
+
const names_1 = __webpack_require__(/*! ./names */ 683845);
|
|
3871
3872
|
exports.keywordError = {
|
|
3872
3873
|
message: ({ keyword }) => (0, codegen_1.str) `must pass "${keyword}" keyword validation`,
|
|
3873
3874
|
};
|
|
@@ -3988,9 +3989,9 @@ function extraErrorProps(cxt, { params, message }, keyValues) {
|
|
|
3988
3989
|
|
|
3989
3990
|
/***/ },
|
|
3990
3991
|
|
|
3991
|
-
/***/
|
|
3992
|
+
/***/ 558317
|
|
3992
3993
|
/*!******************************************************************************************************!*\
|
|
3993
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
3994
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/index.js ***!
|
|
3994
3995
|
\******************************************************************************************************/
|
|
3995
3996
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
3996
3997
|
|
|
@@ -3998,12 +3999,12 @@ function extraErrorProps(cxt, { params, message }, keyValues) {
|
|
|
3998
3999
|
|
|
3999
4000
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4000
4001
|
exports.resolveSchema = exports.getCompilingSchema = exports.resolveRef = exports.compileSchema = exports.SchemaEnv = void 0;
|
|
4001
|
-
const codegen_1 = __webpack_require__(/*! ./codegen */
|
|
4002
|
-
const validation_error_1 = __webpack_require__(/*! ../runtime/validation_error */
|
|
4003
|
-
const names_1 = __webpack_require__(/*! ./names */
|
|
4004
|
-
const resolve_1 = __webpack_require__(/*! ./resolve */
|
|
4005
|
-
const util_1 = __webpack_require__(/*! ./util */
|
|
4006
|
-
const validate_1 = __webpack_require__(/*! ./validate */
|
|
4002
|
+
const codegen_1 = __webpack_require__(/*! ./codegen */ 449315);
|
|
4003
|
+
const validation_error_1 = __webpack_require__(/*! ../runtime/validation_error */ 798288);
|
|
4004
|
+
const names_1 = __webpack_require__(/*! ./names */ 683845);
|
|
4005
|
+
const resolve_1 = __webpack_require__(/*! ./resolve */ 147249);
|
|
4006
|
+
const util_1 = __webpack_require__(/*! ./util */ 538365);
|
|
4007
|
+
const validate_1 = __webpack_require__(/*! ./validate */ 947528);
|
|
4007
4008
|
class SchemaEnv {
|
|
4008
4009
|
constructor(env) {
|
|
4009
4010
|
var _a;
|
|
@@ -4240,16 +4241,16 @@ function getJsonPointer(parsedRef, { baseId, schema, root }) {
|
|
|
4240
4241
|
|
|
4241
4242
|
/***/ },
|
|
4242
4243
|
|
|
4243
|
-
/***/
|
|
4244
|
+
/***/ 683845
|
|
4244
4245
|
/*!******************************************************************************************************!*\
|
|
4245
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
4246
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/names.js ***!
|
|
4246
4247
|
\******************************************************************************************************/
|
|
4247
4248
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
4248
4249
|
|
|
4249
4250
|
"use strict";
|
|
4250
4251
|
|
|
4251
4252
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4252
|
-
const codegen_1 = __webpack_require__(/*! ./codegen */
|
|
4253
|
+
const codegen_1 = __webpack_require__(/*! ./codegen */ 449315);
|
|
4253
4254
|
const names = {
|
|
4254
4255
|
// validation function arguments
|
|
4255
4256
|
data: new codegen_1.Name("data"), // data passed to validation function
|
|
@@ -4278,16 +4279,16 @@ exports["default"] = names;
|
|
|
4278
4279
|
|
|
4279
4280
|
/***/ },
|
|
4280
4281
|
|
|
4281
|
-
/***/
|
|
4282
|
+
/***/ 726969
|
|
4282
4283
|
/*!**********************************************************************************************************!*\
|
|
4283
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
4284
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/ref_error.js ***!
|
|
4284
4285
|
\**********************************************************************************************************/
|
|
4285
4286
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
4286
4287
|
|
|
4287
4288
|
"use strict";
|
|
4288
4289
|
|
|
4289
4290
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4290
|
-
const resolve_1 = __webpack_require__(/*! ./resolve */
|
|
4291
|
+
const resolve_1 = __webpack_require__(/*! ./resolve */ 147249);
|
|
4291
4292
|
class MissingRefError extends Error {
|
|
4292
4293
|
constructor(resolver, baseId, ref, msg) {
|
|
4293
4294
|
super(msg || `can't resolve reference ${ref} from id ${baseId}`);
|
|
@@ -4300,9 +4301,9 @@ exports["default"] = MissingRefError;
|
|
|
4300
4301
|
|
|
4301
4302
|
/***/ },
|
|
4302
4303
|
|
|
4303
|
-
/***/
|
|
4304
|
+
/***/ 147249
|
|
4304
4305
|
/*!********************************************************************************************************!*\
|
|
4305
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
4306
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/resolve.js ***!
|
|
4306
4307
|
\********************************************************************************************************/
|
|
4307
4308
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
4308
4309
|
|
|
@@ -4310,7 +4311,7 @@ exports["default"] = MissingRefError;
|
|
|
4310
4311
|
|
|
4311
4312
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4312
4313
|
exports.getSchemaRefs = exports.resolveUrl = exports.normalizeId = exports._getFullPath = exports.getFullPath = exports.inlineRef = void 0;
|
|
4313
|
-
const util_1 = __webpack_require__(/*! ./util */
|
|
4314
|
+
const util_1 = __webpack_require__(/*! ./util */ 538365);
|
|
4314
4315
|
const equal = __webpack_require__(/*! fast-deep-equal */ 652854);
|
|
4315
4316
|
const traverse = __webpack_require__(/*! json-schema-traverse */ 824944);
|
|
4316
4317
|
// TODO refactor to use keyword definitions
|
|
@@ -4465,9 +4466,9 @@ exports.getSchemaRefs = getSchemaRefs;
|
|
|
4465
4466
|
|
|
4466
4467
|
/***/ },
|
|
4467
4468
|
|
|
4468
|
-
/***/
|
|
4469
|
+
/***/ 363106
|
|
4469
4470
|
/*!******************************************************************************************************!*\
|
|
4470
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
4471
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/rules.js ***!
|
|
4471
4472
|
\******************************************************************************************************/
|
|
4472
4473
|
(__unused_webpack_module, exports) {
|
|
4473
4474
|
|
|
@@ -4501,9 +4502,9 @@ exports.getRules = getRules;
|
|
|
4501
4502
|
|
|
4502
4503
|
/***/ },
|
|
4503
4504
|
|
|
4504
|
-
/***/
|
|
4505
|
+
/***/ 538365
|
|
4505
4506
|
/*!*****************************************************************************************************!*\
|
|
4506
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
4507
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/util.js ***!
|
|
4507
4508
|
\*****************************************************************************************************/
|
|
4508
4509
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
4509
4510
|
|
|
@@ -4511,8 +4512,8 @@ exports.getRules = getRules;
|
|
|
4511
4512
|
|
|
4512
4513
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4513
4514
|
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;
|
|
4514
|
-
const codegen_1 = __webpack_require__(/*! ./codegen */
|
|
4515
|
-
const code_1 = __webpack_require__(/*! ./codegen/code */
|
|
4515
|
+
const codegen_1 = __webpack_require__(/*! ./codegen */ 449315);
|
|
4516
|
+
const code_1 = __webpack_require__(/*! ./codegen/code */ 586926);
|
|
4516
4517
|
// TODO refactor to use Set
|
|
4517
4518
|
function toHash(arr) {
|
|
4518
4519
|
const hash = {};
|
|
@@ -4689,9 +4690,9 @@ exports.checkStrictMode = checkStrictMode;
|
|
|
4689
4690
|
|
|
4690
4691
|
/***/ },
|
|
4691
4692
|
|
|
4692
|
-
/***/
|
|
4693
|
+
/***/ 374129
|
|
4693
4694
|
/*!***********************************************************************************************************************!*\
|
|
4694
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
4695
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/applicability.js ***!
|
|
4695
4696
|
\***********************************************************************************************************************/
|
|
4696
4697
|
(__unused_webpack_module, exports) {
|
|
4697
4698
|
|
|
@@ -4718,9 +4719,9 @@ exports.shouldUseRule = shouldUseRule;
|
|
|
4718
4719
|
|
|
4719
4720
|
/***/ },
|
|
4720
4721
|
|
|
4721
|
-
/***/
|
|
4722
|
+
/***/ 187113
|
|
4722
4723
|
/*!********************************************************************************************************************!*\
|
|
4723
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
4724
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/boolSchema.js ***!
|
|
4724
4725
|
\********************************************************************************************************************/
|
|
4725
4726
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
4726
4727
|
|
|
@@ -4728,9 +4729,9 @@ exports.shouldUseRule = shouldUseRule;
|
|
|
4728
4729
|
|
|
4729
4730
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4730
4731
|
exports.boolOrEmptySchema = exports.topBoolOrEmptySchema = void 0;
|
|
4731
|
-
const errors_1 = __webpack_require__(/*! ../errors */
|
|
4732
|
-
const codegen_1 = __webpack_require__(/*! ../codegen */
|
|
4733
|
-
const names_1 = __webpack_require__(/*! ../names */
|
|
4732
|
+
const errors_1 = __webpack_require__(/*! ../errors */ 351810);
|
|
4733
|
+
const codegen_1 = __webpack_require__(/*! ../codegen */ 449315);
|
|
4734
|
+
const names_1 = __webpack_require__(/*! ../names */ 683845);
|
|
4734
4735
|
const boolError = {
|
|
4735
4736
|
message: "boolean schema is false",
|
|
4736
4737
|
};
|
|
@@ -4778,9 +4779,9 @@ function falseSchemaError(it, overrideAllErrors) {
|
|
|
4778
4779
|
|
|
4779
4780
|
/***/ },
|
|
4780
4781
|
|
|
4781
|
-
/***/
|
|
4782
|
+
/***/ 700438
|
|
4782
4783
|
/*!******************************************************************************************************************!*\
|
|
4783
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
4784
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/dataType.js ***!
|
|
4784
4785
|
\******************************************************************************************************************/
|
|
4785
4786
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
4786
4787
|
|
|
@@ -4788,11 +4789,11 @@ function falseSchemaError(it, overrideAllErrors) {
|
|
|
4788
4789
|
|
|
4789
4790
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4790
4791
|
exports.reportTypeError = exports.checkDataTypes = exports.checkDataType = exports.coerceAndCheckDataType = exports.getJSONTypes = exports.getSchemaTypes = exports.DataType = void 0;
|
|
4791
|
-
const rules_1 = __webpack_require__(/*! ../rules */
|
|
4792
|
-
const applicability_1 = __webpack_require__(/*! ./applicability */
|
|
4793
|
-
const errors_1 = __webpack_require__(/*! ../errors */
|
|
4794
|
-
const codegen_1 = __webpack_require__(/*! ../codegen */
|
|
4795
|
-
const util_1 = __webpack_require__(/*! ../util */
|
|
4792
|
+
const rules_1 = __webpack_require__(/*! ../rules */ 363106);
|
|
4793
|
+
const applicability_1 = __webpack_require__(/*! ./applicability */ 374129);
|
|
4794
|
+
const errors_1 = __webpack_require__(/*! ../errors */ 351810);
|
|
4795
|
+
const codegen_1 = __webpack_require__(/*! ../codegen */ 449315);
|
|
4796
|
+
const util_1 = __webpack_require__(/*! ../util */ 538365);
|
|
4796
4797
|
var DataType;
|
|
4797
4798
|
(function (DataType) {
|
|
4798
4799
|
DataType[DataType["Correct"] = 0] = "Correct";
|
|
@@ -4991,9 +4992,9 @@ function getTypeErrorContext(it) {
|
|
|
4991
4992
|
|
|
4992
4993
|
/***/ },
|
|
4993
4994
|
|
|
4994
|
-
/***/
|
|
4995
|
+
/***/ 922284
|
|
4995
4996
|
/*!******************************************************************************************************************!*\
|
|
4996
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
4997
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/defaults.js ***!
|
|
4997
4998
|
\******************************************************************************************************************/
|
|
4998
4999
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
4999
5000
|
|
|
@@ -5001,8 +5002,8 @@ function getTypeErrorContext(it) {
|
|
|
5001
5002
|
|
|
5002
5003
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5003
5004
|
exports.assignDefaults = void 0;
|
|
5004
|
-
const codegen_1 = __webpack_require__(/*! ../codegen */
|
|
5005
|
-
const util_1 = __webpack_require__(/*! ../util */
|
|
5005
|
+
const codegen_1 = __webpack_require__(/*! ../codegen */ 449315);
|
|
5006
|
+
const util_1 = __webpack_require__(/*! ../util */ 538365);
|
|
5006
5007
|
function assignDefaults(it, ty) {
|
|
5007
5008
|
const { properties, items } = it.schema;
|
|
5008
5009
|
if (ty === "object" && properties) {
|
|
@@ -5036,9 +5037,9 @@ function assignDefault(it, prop, defaultValue) {
|
|
|
5036
5037
|
|
|
5037
5038
|
/***/ },
|
|
5038
5039
|
|
|
5039
|
-
/***/
|
|
5040
|
+
/***/ 947528
|
|
5040
5041
|
/*!***************************************************************************************************************!*\
|
|
5041
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
5042
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/index.js ***!
|
|
5042
5043
|
\***************************************************************************************************************/
|
|
5043
5044
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
5044
5045
|
|
|
@@ -5046,18 +5047,18 @@ function assignDefault(it, prop, defaultValue) {
|
|
|
5046
5047
|
|
|
5047
5048
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5048
5049
|
exports.getData = exports.KeywordCxt = exports.validateFunctionCode = void 0;
|
|
5049
|
-
const boolSchema_1 = __webpack_require__(/*! ./boolSchema */
|
|
5050
|
-
const dataType_1 = __webpack_require__(/*! ./dataType */
|
|
5051
|
-
const applicability_1 = __webpack_require__(/*! ./applicability */
|
|
5052
|
-
const dataType_2 = __webpack_require__(/*! ./dataType */
|
|
5053
|
-
const defaults_1 = __webpack_require__(/*! ./defaults */
|
|
5054
|
-
const keyword_1 = __webpack_require__(/*! ./keyword */
|
|
5055
|
-
const subschema_1 = __webpack_require__(/*! ./subschema */
|
|
5056
|
-
const codegen_1 = __webpack_require__(/*! ../codegen */
|
|
5057
|
-
const names_1 = __webpack_require__(/*! ../names */
|
|
5058
|
-
const resolve_1 = __webpack_require__(/*! ../resolve */
|
|
5059
|
-
const util_1 = __webpack_require__(/*! ../util */
|
|
5060
|
-
const errors_1 = __webpack_require__(/*! ../errors */
|
|
5050
|
+
const boolSchema_1 = __webpack_require__(/*! ./boolSchema */ 187113);
|
|
5051
|
+
const dataType_1 = __webpack_require__(/*! ./dataType */ 700438);
|
|
5052
|
+
const applicability_1 = __webpack_require__(/*! ./applicability */ 374129);
|
|
5053
|
+
const dataType_2 = __webpack_require__(/*! ./dataType */ 700438);
|
|
5054
|
+
const defaults_1 = __webpack_require__(/*! ./defaults */ 922284);
|
|
5055
|
+
const keyword_1 = __webpack_require__(/*! ./keyword */ 623947);
|
|
5056
|
+
const subschema_1 = __webpack_require__(/*! ./subschema */ 975465);
|
|
5057
|
+
const codegen_1 = __webpack_require__(/*! ../codegen */ 449315);
|
|
5058
|
+
const names_1 = __webpack_require__(/*! ../names */ 683845);
|
|
5059
|
+
const resolve_1 = __webpack_require__(/*! ../resolve */ 147249);
|
|
5060
|
+
const util_1 = __webpack_require__(/*! ../util */ 538365);
|
|
5061
|
+
const errors_1 = __webpack_require__(/*! ../errors */ 351810);
|
|
5061
5062
|
// schema compilation - generates validation function, subschemaCode (below) is used for subschemas
|
|
5062
5063
|
function validateFunctionCode(it) {
|
|
5063
5064
|
if (isSchemaObj(it)) {
|
|
@@ -5566,9 +5567,9 @@ exports.getData = getData;
|
|
|
5566
5567
|
|
|
5567
5568
|
/***/ },
|
|
5568
5569
|
|
|
5569
|
-
/***/
|
|
5570
|
+
/***/ 623947
|
|
5570
5571
|
/*!*****************************************************************************************************************!*\
|
|
5571
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
5572
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/keyword.js ***!
|
|
5572
5573
|
\*****************************************************************************************************************/
|
|
5573
5574
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
5574
5575
|
|
|
@@ -5576,10 +5577,10 @@ exports.getData = getData;
|
|
|
5576
5577
|
|
|
5577
5578
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5578
5579
|
exports.validateKeywordUsage = exports.validSchemaType = exports.funcKeywordCode = exports.macroKeywordCode = void 0;
|
|
5579
|
-
const codegen_1 = __webpack_require__(/*! ../codegen */
|
|
5580
|
-
const names_1 = __webpack_require__(/*! ../names */
|
|
5581
|
-
const code_1 = __webpack_require__(/*! ../../vocabularies/code */
|
|
5582
|
-
const errors_1 = __webpack_require__(/*! ../errors */
|
|
5580
|
+
const codegen_1 = __webpack_require__(/*! ../codegen */ 449315);
|
|
5581
|
+
const names_1 = __webpack_require__(/*! ../names */ 683845);
|
|
5582
|
+
const code_1 = __webpack_require__(/*! ../../vocabularies/code */ 946851);
|
|
5583
|
+
const errors_1 = __webpack_require__(/*! ../errors */ 351810);
|
|
5583
5584
|
function macroKeywordCode(cxt, def) {
|
|
5584
5585
|
const { gen, keyword, schema, parentSchema, it } = cxt;
|
|
5585
5586
|
const macroSchema = def.macro.call(it.self, schema, parentSchema, it);
|
|
@@ -5700,9 +5701,9 @@ exports.validateKeywordUsage = validateKeywordUsage;
|
|
|
5700
5701
|
|
|
5701
5702
|
/***/ },
|
|
5702
5703
|
|
|
5703
|
-
/***/
|
|
5704
|
+
/***/ 975465
|
|
5704
5705
|
/*!*******************************************************************************************************************!*\
|
|
5705
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
5706
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/compile/validate/subschema.js ***!
|
|
5706
5707
|
\*******************************************************************************************************************/
|
|
5707
5708
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
5708
5709
|
|
|
@@ -5710,8 +5711,8 @@ exports.validateKeywordUsage = validateKeywordUsage;
|
|
|
5710
5711
|
|
|
5711
5712
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5712
5713
|
exports.extendSubschemaMode = exports.extendSubschemaData = exports.getSubschema = void 0;
|
|
5713
|
-
const codegen_1 = __webpack_require__(/*! ../codegen */
|
|
5714
|
-
const util_1 = __webpack_require__(/*! ../util */
|
|
5714
|
+
const codegen_1 = __webpack_require__(/*! ../codegen */ 449315);
|
|
5715
|
+
const util_1 = __webpack_require__(/*! ../util */ 538365);
|
|
5715
5716
|
function getSubschema(it, { keyword, schemaProp, schema, schemaPath, errSchemaPath, topSchemaRef }) {
|
|
5716
5717
|
if (keyword !== undefined && schema !== undefined) {
|
|
5717
5718
|
throw new Error('both "keyword" and "schema" passed, only one allowed');
|
|
@@ -5791,9 +5792,9 @@ exports.extendSubschemaMode = extendSubschemaMode;
|
|
|
5791
5792
|
|
|
5792
5793
|
/***/ },
|
|
5793
5794
|
|
|
5794
|
-
/***/
|
|
5795
|
+
/***/ 422332
|
|
5795
5796
|
/*!*********************************************************************************************!*\
|
|
5796
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
5797
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/core.js ***!
|
|
5797
5798
|
\*********************************************************************************************/
|
|
5798
5799
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
5799
5800
|
|
|
@@ -5801,25 +5802,25 @@ exports.extendSubschemaMode = extendSubschemaMode;
|
|
|
5801
5802
|
|
|
5802
5803
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5803
5804
|
exports.CodeGen = exports.Name = exports.nil = exports.stringify = exports.str = exports._ = exports.KeywordCxt = void 0;
|
|
5804
|
-
var validate_1 = __webpack_require__(/*! ./compile/validate */
|
|
5805
|
+
var validate_1 = __webpack_require__(/*! ./compile/validate */ 947528);
|
|
5805
5806
|
Object.defineProperty(exports, "KeywordCxt", ({ enumerable: true, get: function () { return validate_1.KeywordCxt; } }));
|
|
5806
|
-
var codegen_1 = __webpack_require__(/*! ./compile/codegen */
|
|
5807
|
+
var codegen_1 = __webpack_require__(/*! ./compile/codegen */ 449315);
|
|
5807
5808
|
Object.defineProperty(exports, "_", ({ enumerable: true, get: function () { return codegen_1._; } }));
|
|
5808
5809
|
Object.defineProperty(exports, "str", ({ enumerable: true, get: function () { return codegen_1.str; } }));
|
|
5809
5810
|
Object.defineProperty(exports, "stringify", ({ enumerable: true, get: function () { return codegen_1.stringify; } }));
|
|
5810
5811
|
Object.defineProperty(exports, "nil", ({ enumerable: true, get: function () { return codegen_1.nil; } }));
|
|
5811
5812
|
Object.defineProperty(exports, "Name", ({ enumerable: true, get: function () { return codegen_1.Name; } }));
|
|
5812
5813
|
Object.defineProperty(exports, "CodeGen", ({ enumerable: true, get: function () { return codegen_1.CodeGen; } }));
|
|
5813
|
-
const validation_error_1 = __webpack_require__(/*! ./runtime/validation_error */
|
|
5814
|
-
const ref_error_1 = __webpack_require__(/*! ./compile/ref_error */
|
|
5815
|
-
const rules_1 = __webpack_require__(/*! ./compile/rules */
|
|
5816
|
-
const compile_1 = __webpack_require__(/*! ./compile */
|
|
5817
|
-
const codegen_2 = __webpack_require__(/*! ./compile/codegen */
|
|
5818
|
-
const resolve_1 = __webpack_require__(/*! ./compile/resolve */
|
|
5819
|
-
const dataType_1 = __webpack_require__(/*! ./compile/validate/dataType */
|
|
5820
|
-
const util_1 = __webpack_require__(/*! ./compile/util */
|
|
5821
|
-
const $dataRefSchema = __webpack_require__(/*! ./refs/data.json */
|
|
5822
|
-
const uri_1 = __webpack_require__(/*! ./runtime/uri */
|
|
5814
|
+
const validation_error_1 = __webpack_require__(/*! ./runtime/validation_error */ 798288);
|
|
5815
|
+
const ref_error_1 = __webpack_require__(/*! ./compile/ref_error */ 726969);
|
|
5816
|
+
const rules_1 = __webpack_require__(/*! ./compile/rules */ 363106);
|
|
5817
|
+
const compile_1 = __webpack_require__(/*! ./compile */ 558317);
|
|
5818
|
+
const codegen_2 = __webpack_require__(/*! ./compile/codegen */ 449315);
|
|
5819
|
+
const resolve_1 = __webpack_require__(/*! ./compile/resolve */ 147249);
|
|
5820
|
+
const dataType_1 = __webpack_require__(/*! ./compile/validate/dataType */ 700438);
|
|
5821
|
+
const util_1 = __webpack_require__(/*! ./compile/util */ 538365);
|
|
5822
|
+
const $dataRefSchema = __webpack_require__(/*! ./refs/data.json */ 847031);
|
|
5823
|
+
const uri_1 = __webpack_require__(/*! ./runtime/uri */ 825138);
|
|
5823
5824
|
const defaultRegExp = (str, flags) => new RegExp(str, flags);
|
|
5824
5825
|
defaultRegExp.code = "new RegExp";
|
|
5825
5826
|
const META_IGNORE_OPTIONS = ["removeAdditional", "useDefaults", "coerceTypes"];
|
|
@@ -6419,9 +6420,9 @@ function schemaOrData(schema) {
|
|
|
6419
6420
|
|
|
6420
6421
|
/***/ },
|
|
6421
6422
|
|
|
6422
|
-
/***/
|
|
6423
|
+
/***/ 790688
|
|
6423
6424
|
/*!******************************************************************************************************!*\
|
|
6424
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
6425
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/equal.js ***!
|
|
6425
6426
|
\******************************************************************************************************/
|
|
6426
6427
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
6427
6428
|
|
|
@@ -6436,9 +6437,9 @@ exports["default"] = equal;
|
|
|
6436
6437
|
|
|
6437
6438
|
/***/ },
|
|
6438
6439
|
|
|
6439
|
-
/***/
|
|
6440
|
+
/***/ 966763
|
|
6440
6441
|
/*!***********************************************************************************************************!*\
|
|
6441
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
6442
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/ucs2length.js ***!
|
|
6442
6443
|
\***********************************************************************************************************/
|
|
6443
6444
|
(__unused_webpack_module, exports) {
|
|
6444
6445
|
|
|
@@ -6470,25 +6471,25 @@ ucs2length.code = 'require("ajv/dist/runtime/ucs2length").default';
|
|
|
6470
6471
|
|
|
6471
6472
|
/***/ },
|
|
6472
6473
|
|
|
6473
|
-
/***/
|
|
6474
|
+
/***/ 825138
|
|
6474
6475
|
/*!****************************************************************************************************!*\
|
|
6475
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
6476
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/uri.js ***!
|
|
6476
6477
|
\****************************************************************************************************/
|
|
6477
6478
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
6478
6479
|
|
|
6479
6480
|
"use strict";
|
|
6480
6481
|
|
|
6481
6482
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6482
|
-
const uri = __webpack_require__(/*! uri
|
|
6483
|
+
const uri = __webpack_require__(/*! fast-uri */ 995342);
|
|
6483
6484
|
uri.code = 'require("ajv/dist/runtime/uri").default';
|
|
6484
6485
|
exports["default"] = uri;
|
|
6485
6486
|
//# sourceMappingURL=uri.js.map
|
|
6486
6487
|
|
|
6487
6488
|
/***/ },
|
|
6488
6489
|
|
|
6489
|
-
/***/
|
|
6490
|
+
/***/ 798288
|
|
6490
6491
|
/*!*****************************************************************************************************************!*\
|
|
6491
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
6492
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/runtime/validation_error.js ***!
|
|
6492
6493
|
\*****************************************************************************************************************/
|
|
6493
6494
|
(__unused_webpack_module, exports) {
|
|
6494
6495
|
|
|
@@ -6507,9 +6508,9 @@ exports["default"] = ValidationError;
|
|
|
6507
6508
|
|
|
6508
6509
|
/***/ },
|
|
6509
6510
|
|
|
6510
|
-
/***/
|
|
6511
|
+
/***/ 599667
|
|
6511
6512
|
/*!********************************************************************************************************************************!*\
|
|
6512
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
6513
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js ***!
|
|
6513
6514
|
\********************************************************************************************************************************/
|
|
6514
6515
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
6515
6516
|
|
|
@@ -6517,8 +6518,8 @@ exports["default"] = ValidationError;
|
|
|
6517
6518
|
|
|
6518
6519
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6519
6520
|
exports.validateAdditionalItems = void 0;
|
|
6520
|
-
const codegen_1 = __webpack_require__(/*! ../../compile/codegen */
|
|
6521
|
-
const util_1 = __webpack_require__(/*! ../../compile/util */
|
|
6521
|
+
const codegen_1 = __webpack_require__(/*! ../../compile/codegen */ 449315);
|
|
6522
|
+
const util_1 = __webpack_require__(/*! ../../compile/util */ 538365);
|
|
6522
6523
|
const error = {
|
|
6523
6524
|
message: ({ params: { len } }) => (0, codegen_1.str) `must NOT have more than ${len} items`,
|
|
6524
6525
|
params: ({ params: { len } }) => (0, codegen_1._) `{limit: ${len}}`,
|
|
@@ -6566,19 +6567,19 @@ exports["default"] = def;
|
|
|
6566
6567
|
|
|
6567
6568
|
/***/ },
|
|
6568
6569
|
|
|
6569
|
-
/***/
|
|
6570
|
+
/***/ 359054
|
|
6570
6571
|
/*!*************************************************************************************************************************************!*\
|
|
6571
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
6572
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js ***!
|
|
6572
6573
|
\*************************************************************************************************************************************/
|
|
6573
6574
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
6574
6575
|
|
|
6575
6576
|
"use strict";
|
|
6576
6577
|
|
|
6577
6578
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6578
|
-
const code_1 = __webpack_require__(/*! ../code */
|
|
6579
|
-
const codegen_1 = __webpack_require__(/*! ../../compile/codegen */
|
|
6580
|
-
const names_1 = __webpack_require__(/*! ../../compile/names */
|
|
6581
|
-
const util_1 = __webpack_require__(/*! ../../compile/util */
|
|
6579
|
+
const code_1 = __webpack_require__(/*! ../code */ 946851);
|
|
6580
|
+
const codegen_1 = __webpack_require__(/*! ../../compile/codegen */ 449315);
|
|
6581
|
+
const names_1 = __webpack_require__(/*! ../../compile/names */ 683845);
|
|
6582
|
+
const util_1 = __webpack_require__(/*! ../../compile/util */ 538365);
|
|
6582
6583
|
const error = {
|
|
6583
6584
|
message: "must NOT have additional properties",
|
|
6584
6585
|
params: ({ params }) => (0, codegen_1._) `{additionalProperty: ${params.additionalProperty}}`,
|
|
@@ -6682,16 +6683,16 @@ exports["default"] = def;
|
|
|
6682
6683
|
|
|
6683
6684
|
/***/ },
|
|
6684
6685
|
|
|
6685
|
-
/***/
|
|
6686
|
+
/***/ 975226
|
|
6686
6687
|
/*!**********************************************************************************************************************!*\
|
|
6687
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
6688
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/allOf.js ***!
|
|
6688
6689
|
\**********************************************************************************************************************/
|
|
6689
6690
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
6690
6691
|
|
|
6691
6692
|
"use strict";
|
|
6692
6693
|
|
|
6693
6694
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6694
|
-
const util_1 = __webpack_require__(/*! ../../compile/util */
|
|
6695
|
+
const util_1 = __webpack_require__(/*! ../../compile/util */ 538365);
|
|
6695
6696
|
const def = {
|
|
6696
6697
|
keyword: "allOf",
|
|
6697
6698
|
schemaType: "array",
|
|
@@ -6715,16 +6716,16 @@ exports["default"] = def;
|
|
|
6715
6716
|
|
|
6716
6717
|
/***/ },
|
|
6717
6718
|
|
|
6718
|
-
/***/
|
|
6719
|
+
/***/ 284499
|
|
6719
6720
|
/*!**********************************************************************************************************************!*\
|
|
6720
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
6721
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/anyOf.js ***!
|
|
6721
6722
|
\**********************************************************************************************************************/
|
|
6722
6723
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
6723
6724
|
|
|
6724
6725
|
"use strict";
|
|
6725
6726
|
|
|
6726
6727
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6727
|
-
const code_1 = __webpack_require__(/*! ../code */
|
|
6728
|
+
const code_1 = __webpack_require__(/*! ../code */ 946851);
|
|
6728
6729
|
const def = {
|
|
6729
6730
|
keyword: "anyOf",
|
|
6730
6731
|
schemaType: "array",
|
|
@@ -6737,17 +6738,17 @@ exports["default"] = def;
|
|
|
6737
6738
|
|
|
6738
6739
|
/***/ },
|
|
6739
6740
|
|
|
6740
|
-
/***/
|
|
6741
|
+
/***/ 442699
|
|
6741
6742
|
/*!*************************************************************************************************************************!*\
|
|
6742
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
6743
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/contains.js ***!
|
|
6743
6744
|
\*************************************************************************************************************************/
|
|
6744
6745
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
6745
6746
|
|
|
6746
6747
|
"use strict";
|
|
6747
6748
|
|
|
6748
6749
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6749
|
-
const codegen_1 = __webpack_require__(/*! ../../compile/codegen */
|
|
6750
|
-
const util_1 = __webpack_require__(/*! ../../compile/util */
|
|
6750
|
+
const codegen_1 = __webpack_require__(/*! ../../compile/codegen */ 449315);
|
|
6751
|
+
const util_1 = __webpack_require__(/*! ../../compile/util */ 538365);
|
|
6751
6752
|
const error = {
|
|
6752
6753
|
message: ({ params: { min, max } }) => max === undefined
|
|
6753
6754
|
? (0, codegen_1.str) `must contain at least ${min} valid item(s)`
|
|
@@ -6842,9 +6843,9 @@ exports["default"] = def;
|
|
|
6842
6843
|
|
|
6843
6844
|
/***/ },
|
|
6844
6845
|
|
|
6845
|
-
/***/
|
|
6846
|
+
/***/ 948035
|
|
6846
6847
|
/*!*****************************************************************************************************************************!*\
|
|
6847
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
6848
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/dependencies.js ***!
|
|
6848
6849
|
\*****************************************************************************************************************************/
|
|
6849
6850
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
6850
6851
|
|
|
@@ -6852,9 +6853,9 @@ exports["default"] = def;
|
|
|
6852
6853
|
|
|
6853
6854
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6854
6855
|
exports.validateSchemaDeps = exports.validatePropertyDeps = exports.error = void 0;
|
|
6855
|
-
const codegen_1 = __webpack_require__(/*! ../../compile/codegen */
|
|
6856
|
-
const util_1 = __webpack_require__(/*! ../../compile/util */
|
|
6857
|
-
const code_1 = __webpack_require__(/*! ../code */
|
|
6856
|
+
const codegen_1 = __webpack_require__(/*! ../../compile/codegen */ 449315);
|
|
6857
|
+
const util_1 = __webpack_require__(/*! ../../compile/util */ 538365);
|
|
6858
|
+
const code_1 = __webpack_require__(/*! ../code */ 946851);
|
|
6858
6859
|
exports.error = {
|
|
6859
6860
|
message: ({ params: { property, depsCount, deps } }) => {
|
|
6860
6861
|
const property_ies = depsCount === 1 ? "property" : "properties";
|
|
@@ -6937,17 +6938,17 @@ exports["default"] = def;
|
|
|
6937
6938
|
|
|
6938
6939
|
/***/ },
|
|
6939
6940
|
|
|
6940
|
-
/***/
|
|
6941
|
+
/***/ 164741
|
|
6941
6942
|
/*!*******************************************************************************************************************!*\
|
|
6942
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
6943
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/if.js ***!
|
|
6943
6944
|
\*******************************************************************************************************************/
|
|
6944
6945
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
6945
6946
|
|
|
6946
6947
|
"use strict";
|
|
6947
6948
|
|
|
6948
6949
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6949
|
-
const codegen_1 = __webpack_require__(/*! ../../compile/codegen */
|
|
6950
|
-
const util_1 = __webpack_require__(/*! ../../compile/util */
|
|
6950
|
+
const codegen_1 = __webpack_require__(/*! ../../compile/codegen */ 449315);
|
|
6951
|
+
const util_1 = __webpack_require__(/*! ../../compile/util */ 538365);
|
|
6951
6952
|
const error = {
|
|
6952
6953
|
message: ({ params }) => (0, codegen_1.str) `must match "${params.ifClause}" schema`,
|
|
6953
6954
|
params: ({ params }) => (0, codegen_1._) `{failingKeyword: ${params.ifClause}}`,
|
|
@@ -7013,31 +7014,31 @@ exports["default"] = def;
|
|
|
7013
7014
|
|
|
7014
7015
|
/***/ },
|
|
7015
7016
|
|
|
7016
|
-
/***/
|
|
7017
|
+
/***/ 248676
|
|
7017
7018
|
/*!**********************************************************************************************************************!*\
|
|
7018
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
7019
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/index.js ***!
|
|
7019
7020
|
\**********************************************************************************************************************/
|
|
7020
7021
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
7021
7022
|
|
|
7022
7023
|
"use strict";
|
|
7023
7024
|
|
|
7024
7025
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7025
|
-
const additionalItems_1 = __webpack_require__(/*! ./additionalItems */
|
|
7026
|
-
const prefixItems_1 = __webpack_require__(/*! ./prefixItems */
|
|
7027
|
-
const items_1 = __webpack_require__(/*! ./items */
|
|
7028
|
-
const items2020_1 = __webpack_require__(/*! ./items2020 */
|
|
7029
|
-
const contains_1 = __webpack_require__(/*! ./contains */
|
|
7030
|
-
const dependencies_1 = __webpack_require__(/*! ./dependencies */
|
|
7031
|
-
const propertyNames_1 = __webpack_require__(/*! ./propertyNames */
|
|
7032
|
-
const additionalProperties_1 = __webpack_require__(/*! ./additionalProperties */
|
|
7033
|
-
const properties_1 = __webpack_require__(/*! ./properties */
|
|
7034
|
-
const patternProperties_1 = __webpack_require__(/*! ./patternProperties */
|
|
7035
|
-
const not_1 = __webpack_require__(/*! ./not */
|
|
7036
|
-
const anyOf_1 = __webpack_require__(/*! ./anyOf */
|
|
7037
|
-
const oneOf_1 = __webpack_require__(/*! ./oneOf */
|
|
7038
|
-
const allOf_1 = __webpack_require__(/*! ./allOf */
|
|
7039
|
-
const if_1 = __webpack_require__(/*! ./if */
|
|
7040
|
-
const thenElse_1 = __webpack_require__(/*! ./thenElse */
|
|
7026
|
+
const additionalItems_1 = __webpack_require__(/*! ./additionalItems */ 599667);
|
|
7027
|
+
const prefixItems_1 = __webpack_require__(/*! ./prefixItems */ 668140);
|
|
7028
|
+
const items_1 = __webpack_require__(/*! ./items */ 918080);
|
|
7029
|
+
const items2020_1 = __webpack_require__(/*! ./items2020 */ 638048);
|
|
7030
|
+
const contains_1 = __webpack_require__(/*! ./contains */ 442699);
|
|
7031
|
+
const dependencies_1 = __webpack_require__(/*! ./dependencies */ 948035);
|
|
7032
|
+
const propertyNames_1 = __webpack_require__(/*! ./propertyNames */ 361515);
|
|
7033
|
+
const additionalProperties_1 = __webpack_require__(/*! ./additionalProperties */ 359054);
|
|
7034
|
+
const properties_1 = __webpack_require__(/*! ./properties */ 935079);
|
|
7035
|
+
const patternProperties_1 = __webpack_require__(/*! ./patternProperties */ 467075);
|
|
7036
|
+
const not_1 = __webpack_require__(/*! ./not */ 43393);
|
|
7037
|
+
const anyOf_1 = __webpack_require__(/*! ./anyOf */ 284499);
|
|
7038
|
+
const oneOf_1 = __webpack_require__(/*! ./oneOf */ 844665);
|
|
7039
|
+
const allOf_1 = __webpack_require__(/*! ./allOf */ 975226);
|
|
7040
|
+
const if_1 = __webpack_require__(/*! ./if */ 164741);
|
|
7041
|
+
const thenElse_1 = __webpack_require__(/*! ./thenElse */ 338780);
|
|
7041
7042
|
function getApplicator(draft2020 = false) {
|
|
7042
7043
|
const applicator = [
|
|
7043
7044
|
// any
|
|
@@ -7067,9 +7068,9 @@ exports["default"] = getApplicator;
|
|
|
7067
7068
|
|
|
7068
7069
|
/***/ },
|
|
7069
7070
|
|
|
7070
|
-
/***/
|
|
7071
|
+
/***/ 918080
|
|
7071
7072
|
/*!**********************************************************************************************************************!*\
|
|
7072
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
7073
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items.js ***!
|
|
7073
7074
|
\**********************************************************************************************************************/
|
|
7074
7075
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
7075
7076
|
|
|
@@ -7077,9 +7078,9 @@ exports["default"] = getApplicator;
|
|
|
7077
7078
|
|
|
7078
7079
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7079
7080
|
exports.validateTuple = void 0;
|
|
7080
|
-
const codegen_1 = __webpack_require__(/*! ../../compile/codegen */
|
|
7081
|
-
const util_1 = __webpack_require__(/*! ../../compile/util */
|
|
7082
|
-
const code_1 = __webpack_require__(/*! ../code */
|
|
7081
|
+
const codegen_1 = __webpack_require__(/*! ../../compile/codegen */ 449315);
|
|
7082
|
+
const util_1 = __webpack_require__(/*! ../../compile/util */ 538365);
|
|
7083
|
+
const code_1 = __webpack_require__(/*! ../code */ 946851);
|
|
7083
7084
|
const def = {
|
|
7084
7085
|
keyword: "items",
|
|
7085
7086
|
type: "array",
|
|
@@ -7129,19 +7130,19 @@ exports["default"] = def;
|
|
|
7129
7130
|
|
|
7130
7131
|
/***/ },
|
|
7131
7132
|
|
|
7132
|
-
/***/
|
|
7133
|
+
/***/ 638048
|
|
7133
7134
|
/*!**************************************************************************************************************************!*\
|
|
7134
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
7135
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/items2020.js ***!
|
|
7135
7136
|
\**************************************************************************************************************************/
|
|
7136
7137
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
7137
7138
|
|
|
7138
7139
|
"use strict";
|
|
7139
7140
|
|
|
7140
7141
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7141
|
-
const codegen_1 = __webpack_require__(/*! ../../compile/codegen */
|
|
7142
|
-
const util_1 = __webpack_require__(/*! ../../compile/util */
|
|
7143
|
-
const code_1 = __webpack_require__(/*! ../code */
|
|
7144
|
-
const additionalItems_1 = __webpack_require__(/*! ./additionalItems */
|
|
7142
|
+
const codegen_1 = __webpack_require__(/*! ../../compile/codegen */ 449315);
|
|
7143
|
+
const util_1 = __webpack_require__(/*! ../../compile/util */ 538365);
|
|
7144
|
+
const code_1 = __webpack_require__(/*! ../code */ 946851);
|
|
7145
|
+
const additionalItems_1 = __webpack_require__(/*! ./additionalItems */ 599667);
|
|
7145
7146
|
const error = {
|
|
7146
7147
|
message: ({ params: { len } }) => (0, codegen_1.str) `must NOT have more than ${len} items`,
|
|
7147
7148
|
params: ({ params: { len } }) => (0, codegen_1._) `{limit: ${len}}`,
|
|
@@ -7169,16 +7170,16 @@ exports["default"] = def;
|
|
|
7169
7170
|
|
|
7170
7171
|
/***/ },
|
|
7171
7172
|
|
|
7172
|
-
/***/
|
|
7173
|
+
/***/ 43393
|
|
7173
7174
|
/*!********************************************************************************************************************!*\
|
|
7174
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
7175
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/not.js ***!
|
|
7175
7176
|
\********************************************************************************************************************/
|
|
7176
7177
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
7177
7178
|
|
|
7178
7179
|
"use strict";
|
|
7179
7180
|
|
|
7180
7181
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7181
|
-
const util_1 = __webpack_require__(/*! ../../compile/util */
|
|
7182
|
+
const util_1 = __webpack_require__(/*! ../../compile/util */ 538365);
|
|
7182
7183
|
const def = {
|
|
7183
7184
|
keyword: "not",
|
|
7184
7185
|
schemaType: ["object", "boolean"],
|
|
@@ -7205,17 +7206,17 @@ exports["default"] = def;
|
|
|
7205
7206
|
|
|
7206
7207
|
/***/ },
|
|
7207
7208
|
|
|
7208
|
-
/***/
|
|
7209
|
+
/***/ 844665
|
|
7209
7210
|
/*!**********************************************************************************************************************!*\
|
|
7210
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
7211
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/oneOf.js ***!
|
|
7211
7212
|
\**********************************************************************************************************************/
|
|
7212
7213
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
7213
7214
|
|
|
7214
7215
|
"use strict";
|
|
7215
7216
|
|
|
7216
7217
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7217
|
-
const codegen_1 = __webpack_require__(/*! ../../compile/codegen */
|
|
7218
|
-
const util_1 = __webpack_require__(/*! ../../compile/util */
|
|
7218
|
+
const codegen_1 = __webpack_require__(/*! ../../compile/codegen */ 449315);
|
|
7219
|
+
const util_1 = __webpack_require__(/*! ../../compile/util */ 538365);
|
|
7219
7220
|
const error = {
|
|
7220
7221
|
message: "must match exactly one schema in oneOf",
|
|
7221
7222
|
params: ({ params }) => (0, codegen_1._) `{passingSchemas: ${params.passing}}`,
|
|
@@ -7275,19 +7276,19 @@ exports["default"] = def;
|
|
|
7275
7276
|
|
|
7276
7277
|
/***/ },
|
|
7277
7278
|
|
|
7278
|
-
/***/
|
|
7279
|
+
/***/ 467075
|
|
7279
7280
|
/*!**********************************************************************************************************************************!*\
|
|
7280
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
7281
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js ***!
|
|
7281
7282
|
\**********************************************************************************************************************************/
|
|
7282
7283
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
7283
7284
|
|
|
7284
7285
|
"use strict";
|
|
7285
7286
|
|
|
7286
7287
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7287
|
-
const code_1 = __webpack_require__(/*! ../code */
|
|
7288
|
-
const codegen_1 = __webpack_require__(/*! ../../compile/codegen */
|
|
7289
|
-
const util_1 = __webpack_require__(/*! ../../compile/util */
|
|
7290
|
-
const util_2 = __webpack_require__(/*! ../../compile/util */
|
|
7288
|
+
const code_1 = __webpack_require__(/*! ../code */ 946851);
|
|
7289
|
+
const codegen_1 = __webpack_require__(/*! ../../compile/codegen */ 449315);
|
|
7290
|
+
const util_1 = __webpack_require__(/*! ../../compile/util */ 538365);
|
|
7291
|
+
const util_2 = __webpack_require__(/*! ../../compile/util */ 538365);
|
|
7291
7292
|
const def = {
|
|
7292
7293
|
keyword: "patternProperties",
|
|
7293
7294
|
type: "object",
|
|
@@ -7360,16 +7361,16 @@ exports["default"] = def;
|
|
|
7360
7361
|
|
|
7361
7362
|
/***/ },
|
|
7362
7363
|
|
|
7363
|
-
/***/
|
|
7364
|
+
/***/ 668140
|
|
7364
7365
|
/*!****************************************************************************************************************************!*\
|
|
7365
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
7366
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js ***!
|
|
7366
7367
|
\****************************************************************************************************************************/
|
|
7367
7368
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
7368
7369
|
|
|
7369
7370
|
"use strict";
|
|
7370
7371
|
|
|
7371
7372
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7372
|
-
const items_1 = __webpack_require__(/*! ./items */
|
|
7373
|
+
const items_1 = __webpack_require__(/*! ./items */ 918080);
|
|
7373
7374
|
const def = {
|
|
7374
7375
|
keyword: "prefixItems",
|
|
7375
7376
|
type: "array",
|
|
@@ -7382,19 +7383,19 @@ exports["default"] = def;
|
|
|
7382
7383
|
|
|
7383
7384
|
/***/ },
|
|
7384
7385
|
|
|
7385
|
-
/***/
|
|
7386
|
+
/***/ 935079
|
|
7386
7387
|
/*!***************************************************************************************************************************!*\
|
|
7387
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
7388
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/properties.js ***!
|
|
7388
7389
|
\***************************************************************************************************************************/
|
|
7389
7390
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
7390
7391
|
|
|
7391
7392
|
"use strict";
|
|
7392
7393
|
|
|
7393
7394
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7394
|
-
const validate_1 = __webpack_require__(/*! ../../compile/validate */
|
|
7395
|
-
const code_1 = __webpack_require__(/*! ../code */
|
|
7396
|
-
const util_1 = __webpack_require__(/*! ../../compile/util */
|
|
7397
|
-
const additionalProperties_1 = __webpack_require__(/*! ./additionalProperties */
|
|
7395
|
+
const validate_1 = __webpack_require__(/*! ../../compile/validate */ 947528);
|
|
7396
|
+
const code_1 = __webpack_require__(/*! ../code */ 946851);
|
|
7397
|
+
const util_1 = __webpack_require__(/*! ../../compile/util */ 538365);
|
|
7398
|
+
const additionalProperties_1 = __webpack_require__(/*! ./additionalProperties */ 359054);
|
|
7398
7399
|
const def = {
|
|
7399
7400
|
keyword: "properties",
|
|
7400
7401
|
type: "object",
|
|
@@ -7446,17 +7447,17 @@ exports["default"] = def;
|
|
|
7446
7447
|
|
|
7447
7448
|
/***/ },
|
|
7448
7449
|
|
|
7449
|
-
/***/
|
|
7450
|
+
/***/ 361515
|
|
7450
7451
|
/*!******************************************************************************************************************************!*\
|
|
7451
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
7452
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js ***!
|
|
7452
7453
|
\******************************************************************************************************************************/
|
|
7453
7454
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
7454
7455
|
|
|
7455
7456
|
"use strict";
|
|
7456
7457
|
|
|
7457
7458
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7458
|
-
const codegen_1 = __webpack_require__(/*! ../../compile/codegen */
|
|
7459
|
-
const util_1 = __webpack_require__(/*! ../../compile/util */
|
|
7459
|
+
const codegen_1 = __webpack_require__(/*! ../../compile/codegen */ 449315);
|
|
7460
|
+
const util_1 = __webpack_require__(/*! ../../compile/util */ 538365);
|
|
7460
7461
|
const error = {
|
|
7461
7462
|
message: "property name must be valid",
|
|
7462
7463
|
params: ({ params }) => (0, codegen_1._) `{propertyName: ${params.propertyName}}`,
|
|
@@ -7494,16 +7495,16 @@ exports["default"] = def;
|
|
|
7494
7495
|
|
|
7495
7496
|
/***/ },
|
|
7496
7497
|
|
|
7497
|
-
/***/
|
|
7498
|
+
/***/ 338780
|
|
7498
7499
|
/*!*************************************************************************************************************************!*\
|
|
7499
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
7500
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/applicator/thenElse.js ***!
|
|
7500
7501
|
\*************************************************************************************************************************/
|
|
7501
7502
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
7502
7503
|
|
|
7503
7504
|
"use strict";
|
|
7504
7505
|
|
|
7505
7506
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7506
|
-
const util_1 = __webpack_require__(/*! ../../compile/util */
|
|
7507
|
+
const util_1 = __webpack_require__(/*! ../../compile/util */ 538365);
|
|
7507
7508
|
const def = {
|
|
7508
7509
|
keyword: ["then", "else"],
|
|
7509
7510
|
schemaType: ["object", "boolean"],
|
|
@@ -7517,9 +7518,9 @@ exports["default"] = def;
|
|
|
7517
7518
|
|
|
7518
7519
|
/***/ },
|
|
7519
7520
|
|
|
7520
|
-
/***/
|
|
7521
|
+
/***/ 946851
|
|
7521
7522
|
/*!**********************************************************************************************************!*\
|
|
7522
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
7523
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/code.js ***!
|
|
7523
7524
|
\**********************************************************************************************************/
|
|
7524
7525
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
7525
7526
|
|
|
@@ -7527,10 +7528,10 @@ exports["default"] = def;
|
|
|
7527
7528
|
|
|
7528
7529
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7529
7530
|
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;
|
|
7530
|
-
const codegen_1 = __webpack_require__(/*! ../compile/codegen */
|
|
7531
|
-
const util_1 = __webpack_require__(/*! ../compile/util */
|
|
7532
|
-
const names_1 = __webpack_require__(/*! ../compile/names */
|
|
7533
|
-
const util_2 = __webpack_require__(/*! ../compile/util */
|
|
7531
|
+
const codegen_1 = __webpack_require__(/*! ../compile/codegen */ 449315);
|
|
7532
|
+
const util_1 = __webpack_require__(/*! ../compile/util */ 538365);
|
|
7533
|
+
const names_1 = __webpack_require__(/*! ../compile/names */ 683845);
|
|
7534
|
+
const util_2 = __webpack_require__(/*! ../compile/util */ 538365);
|
|
7534
7535
|
function checkReportMissingProp(cxt, prop) {
|
|
7535
7536
|
const { gen, data, it } = cxt;
|
|
7536
7537
|
gen.if(noPropertyInData(gen, data, prop, it.opts.ownProperties), () => {
|
|
@@ -7658,9 +7659,9 @@ exports.validateUnion = validateUnion;
|
|
|
7658
7659
|
|
|
7659
7660
|
/***/ },
|
|
7660
7661
|
|
|
7661
|
-
/***/
|
|
7662
|
+
/***/ 833201
|
|
7662
7663
|
/*!*************************************************************************************************************!*\
|
|
7663
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
7664
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/id.js ***!
|
|
7664
7665
|
\*************************************************************************************************************/
|
|
7665
7666
|
(__unused_webpack_module, exports) {
|
|
7666
7667
|
|
|
@@ -7678,17 +7679,17 @@ exports["default"] = def;
|
|
|
7678
7679
|
|
|
7679
7680
|
/***/ },
|
|
7680
7681
|
|
|
7681
|
-
/***/
|
|
7682
|
+
/***/ 253250
|
|
7682
7683
|
/*!****************************************************************************************************************!*\
|
|
7683
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
7684
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/index.js ***!
|
|
7684
7685
|
\****************************************************************************************************************/
|
|
7685
7686
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
7686
7687
|
|
|
7687
7688
|
"use strict";
|
|
7688
7689
|
|
|
7689
7690
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7690
|
-
const id_1 = __webpack_require__(/*! ./id */
|
|
7691
|
-
const ref_1 = __webpack_require__(/*! ./ref */
|
|
7691
|
+
const id_1 = __webpack_require__(/*! ./id */ 833201);
|
|
7692
|
+
const ref_1 = __webpack_require__(/*! ./ref */ 939675);
|
|
7692
7693
|
const core = [
|
|
7693
7694
|
"$schema",
|
|
7694
7695
|
"$id",
|
|
@@ -7704,9 +7705,9 @@ exports["default"] = core;
|
|
|
7704
7705
|
|
|
7705
7706
|
/***/ },
|
|
7706
7707
|
|
|
7707
|
-
/***/
|
|
7708
|
+
/***/ 939675
|
|
7708
7709
|
/*!**************************************************************************************************************!*\
|
|
7709
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
7710
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/core/ref.js ***!
|
|
7710
7711
|
\**************************************************************************************************************/
|
|
7711
7712
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
7712
7713
|
|
|
@@ -7714,12 +7715,12 @@ exports["default"] = core;
|
|
|
7714
7715
|
|
|
7715
7716
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7716
7717
|
exports.callRef = exports.getValidate = void 0;
|
|
7717
|
-
const ref_error_1 = __webpack_require__(/*! ../../compile/ref_error */
|
|
7718
|
-
const code_1 = __webpack_require__(/*! ../code */
|
|
7719
|
-
const codegen_1 = __webpack_require__(/*! ../../compile/codegen */
|
|
7720
|
-
const names_1 = __webpack_require__(/*! ../../compile/names */
|
|
7721
|
-
const compile_1 = __webpack_require__(/*! ../../compile */
|
|
7722
|
-
const util_1 = __webpack_require__(/*! ../../compile/util */
|
|
7718
|
+
const ref_error_1 = __webpack_require__(/*! ../../compile/ref_error */ 726969);
|
|
7719
|
+
const code_1 = __webpack_require__(/*! ../code */ 946851);
|
|
7720
|
+
const codegen_1 = __webpack_require__(/*! ../../compile/codegen */ 449315);
|
|
7721
|
+
const names_1 = __webpack_require__(/*! ../../compile/names */ 683845);
|
|
7722
|
+
const compile_1 = __webpack_require__(/*! ../../compile */ 558317);
|
|
7723
|
+
const util_1 = __webpack_require__(/*! ../../compile/util */ 538365);
|
|
7723
7724
|
const def = {
|
|
7724
7725
|
keyword: "$ref",
|
|
7725
7726
|
schemaType: "string",
|
|
@@ -7836,19 +7837,20 @@ exports["default"] = def;
|
|
|
7836
7837
|
|
|
7837
7838
|
/***/ },
|
|
7838
7839
|
|
|
7839
|
-
/***/
|
|
7840
|
+
/***/ 288375
|
|
7840
7841
|
/*!*************************************************************************************************************************!*\
|
|
7841
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
7842
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/index.js ***!
|
|
7842
7843
|
\*************************************************************************************************************************/
|
|
7843
7844
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
7844
7845
|
|
|
7845
7846
|
"use strict";
|
|
7846
7847
|
|
|
7847
7848
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7848
|
-
const codegen_1 = __webpack_require__(/*! ../../compile/codegen */
|
|
7849
|
-
const types_1 = __webpack_require__(/*! ../discriminator/types */
|
|
7850
|
-
const compile_1 = __webpack_require__(/*! ../../compile */
|
|
7851
|
-
const
|
|
7849
|
+
const codegen_1 = __webpack_require__(/*! ../../compile/codegen */ 449315);
|
|
7850
|
+
const types_1 = __webpack_require__(/*! ../discriminator/types */ 874766);
|
|
7851
|
+
const compile_1 = __webpack_require__(/*! ../../compile */ 558317);
|
|
7852
|
+
const ref_error_1 = __webpack_require__(/*! ../../compile/ref_error */ 726969);
|
|
7853
|
+
const util_1 = __webpack_require__(/*! ../../compile/util */ 538365);
|
|
7852
7854
|
const error = {
|
|
7853
7855
|
message: ({ params: { discrError, tagName } }) => discrError === types_1.DiscrError.Tag
|
|
7854
7856
|
? `tag "${tagName}" must be string`
|
|
@@ -7902,9 +7904,12 @@ const def = {
|
|
|
7902
7904
|
for (let i = 0; i < oneOf.length; i++) {
|
|
7903
7905
|
let sch = oneOf[i];
|
|
7904
7906
|
if ((sch === null || sch === void 0 ? void 0 : sch.$ref) && !(0, util_1.schemaHasRulesButRef)(sch, it.self.RULES)) {
|
|
7905
|
-
|
|
7907
|
+
const ref = sch.$ref;
|
|
7908
|
+
sch = compile_1.resolveRef.call(it.self, it.schemaEnv.root, it.baseId, ref);
|
|
7906
7909
|
if (sch instanceof compile_1.SchemaEnv)
|
|
7907
7910
|
sch = sch.schema;
|
|
7911
|
+
if (sch === undefined)
|
|
7912
|
+
throw new ref_error_1.default(it.opts.uriResolver, it.baseId, ref);
|
|
7908
7913
|
}
|
|
7909
7914
|
const propSch = (_a = sch === null || sch === void 0 ? void 0 : sch.properties) === null || _a === void 0 ? void 0 : _a[tagName];
|
|
7910
7915
|
if (typeof propSch != "object") {
|
|
@@ -7946,9 +7951,9 @@ exports["default"] = def;
|
|
|
7946
7951
|
|
|
7947
7952
|
/***/ },
|
|
7948
7953
|
|
|
7949
|
-
/***/
|
|
7954
|
+
/***/ 874766
|
|
7950
7955
|
/*!*************************************************************************************************************************!*\
|
|
7951
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
7956
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/discriminator/types.js ***!
|
|
7952
7957
|
\*************************************************************************************************************************/
|
|
7953
7958
|
(__unused_webpack_module, exports) {
|
|
7954
7959
|
|
|
@@ -7965,20 +7970,20 @@ var DiscrError;
|
|
|
7965
7970
|
|
|
7966
7971
|
/***/ },
|
|
7967
7972
|
|
|
7968
|
-
/***/
|
|
7973
|
+
/***/ 996506
|
|
7969
7974
|
/*!************************************************************************************************************!*\
|
|
7970
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
7975
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/draft7.js ***!
|
|
7971
7976
|
\************************************************************************************************************/
|
|
7972
7977
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
7973
7978
|
|
|
7974
7979
|
"use strict";
|
|
7975
7980
|
|
|
7976
7981
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7977
|
-
const core_1 = __webpack_require__(/*! ./core */
|
|
7978
|
-
const validation_1 = __webpack_require__(/*! ./validation */
|
|
7979
|
-
const applicator_1 = __webpack_require__(/*! ./applicator */
|
|
7980
|
-
const format_1 = __webpack_require__(/*! ./format */
|
|
7981
|
-
const metadata_1 = __webpack_require__(/*! ./metadata */
|
|
7982
|
+
const core_1 = __webpack_require__(/*! ./core */ 253250);
|
|
7983
|
+
const validation_1 = __webpack_require__(/*! ./validation */ 531350);
|
|
7984
|
+
const applicator_1 = __webpack_require__(/*! ./applicator */ 248676);
|
|
7985
|
+
const format_1 = __webpack_require__(/*! ./format */ 737630);
|
|
7986
|
+
const metadata_1 = __webpack_require__(/*! ./metadata */ 728551);
|
|
7982
7987
|
const draft7Vocabularies = [
|
|
7983
7988
|
core_1.default,
|
|
7984
7989
|
validation_1.default,
|
|
@@ -7992,16 +7997,16 @@ exports["default"] = draft7Vocabularies;
|
|
|
7992
7997
|
|
|
7993
7998
|
/***/ },
|
|
7994
7999
|
|
|
7995
|
-
/***/
|
|
8000
|
+
/***/ 307743
|
|
7996
8001
|
/*!*******************************************************************************************************************!*\
|
|
7997
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
8002
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/format.js ***!
|
|
7998
8003
|
\*******************************************************************************************************************/
|
|
7999
8004
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
8000
8005
|
|
|
8001
8006
|
"use strict";
|
|
8002
8007
|
|
|
8003
8008
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8004
|
-
const codegen_1 = __webpack_require__(/*! ../../compile/codegen */
|
|
8009
|
+
const codegen_1 = __webpack_require__(/*! ../../compile/codegen */ 449315);
|
|
8005
8010
|
const error = {
|
|
8006
8011
|
message: ({ schemaCode }) => (0, codegen_1.str) `must match format "${schemaCode}"`,
|
|
8007
8012
|
params: ({ schemaCode }) => (0, codegen_1._) `{format: ${schemaCode}}`,
|
|
@@ -8094,25 +8099,25 @@ exports["default"] = def;
|
|
|
8094
8099
|
|
|
8095
8100
|
/***/ },
|
|
8096
8101
|
|
|
8097
|
-
/***/
|
|
8102
|
+
/***/ 737630
|
|
8098
8103
|
/*!******************************************************************************************************************!*\
|
|
8099
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
8104
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/format/index.js ***!
|
|
8100
8105
|
\******************************************************************************************************************/
|
|
8101
8106
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
8102
8107
|
|
|
8103
8108
|
"use strict";
|
|
8104
8109
|
|
|
8105
8110
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8106
|
-
const format_1 = __webpack_require__(/*! ./format */
|
|
8111
|
+
const format_1 = __webpack_require__(/*! ./format */ 307743);
|
|
8107
8112
|
const format = [format_1.default];
|
|
8108
8113
|
exports["default"] = format;
|
|
8109
8114
|
//# sourceMappingURL=index.js.map
|
|
8110
8115
|
|
|
8111
8116
|
/***/ },
|
|
8112
8117
|
|
|
8113
|
-
/***/
|
|
8118
|
+
/***/ 728551
|
|
8114
8119
|
/*!**************************************************************************************************************!*\
|
|
8115
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
8120
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/metadata.js ***!
|
|
8116
8121
|
\**************************************************************************************************************/
|
|
8117
8122
|
(__unused_webpack_module, exports) {
|
|
8118
8123
|
|
|
@@ -8138,18 +8143,18 @@ exports.contentVocabulary = [
|
|
|
8138
8143
|
|
|
8139
8144
|
/***/ },
|
|
8140
8145
|
|
|
8141
|
-
/***/
|
|
8146
|
+
/***/ 54157
|
|
8142
8147
|
/*!**********************************************************************************************************************!*\
|
|
8143
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
8148
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/const.js ***!
|
|
8144
8149
|
\**********************************************************************************************************************/
|
|
8145
8150
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
8146
8151
|
|
|
8147
8152
|
"use strict";
|
|
8148
8153
|
|
|
8149
8154
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8150
|
-
const codegen_1 = __webpack_require__(/*! ../../compile/codegen */
|
|
8151
|
-
const util_1 = __webpack_require__(/*! ../../compile/util */
|
|
8152
|
-
const equal_1 = __webpack_require__(/*! ../../runtime/equal */
|
|
8155
|
+
const codegen_1 = __webpack_require__(/*! ../../compile/codegen */ 449315);
|
|
8156
|
+
const util_1 = __webpack_require__(/*! ../../compile/util */ 538365);
|
|
8157
|
+
const equal_1 = __webpack_require__(/*! ../../runtime/equal */ 790688);
|
|
8153
8158
|
const error = {
|
|
8154
8159
|
message: "must be equal to constant",
|
|
8155
8160
|
params: ({ schemaCode }) => (0, codegen_1._) `{allowedValue: ${schemaCode}}`,
|
|
@@ -8173,18 +8178,18 @@ exports["default"] = def;
|
|
|
8173
8178
|
|
|
8174
8179
|
/***/ },
|
|
8175
8180
|
|
|
8176
|
-
/***/
|
|
8181
|
+
/***/ 805089
|
|
8177
8182
|
/*!*********************************************************************************************************************!*\
|
|
8178
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
8183
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/enum.js ***!
|
|
8179
8184
|
\*********************************************************************************************************************/
|
|
8180
8185
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
8181
8186
|
|
|
8182
8187
|
"use strict";
|
|
8183
8188
|
|
|
8184
8189
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8185
|
-
const codegen_1 = __webpack_require__(/*! ../../compile/codegen */
|
|
8186
|
-
const util_1 = __webpack_require__(/*! ../../compile/util */
|
|
8187
|
-
const equal_1 = __webpack_require__(/*! ../../runtime/equal */
|
|
8190
|
+
const codegen_1 = __webpack_require__(/*! ../../compile/codegen */ 449315);
|
|
8191
|
+
const util_1 = __webpack_require__(/*! ../../compile/util */ 538365);
|
|
8192
|
+
const equal_1 = __webpack_require__(/*! ../../runtime/equal */ 790688);
|
|
8188
8193
|
const error = {
|
|
8189
8194
|
message: "must be equal to one of the allowed values",
|
|
8190
8195
|
params: ({ schemaCode }) => (0, codegen_1._) `{allowedValues: ${schemaCode}}`,
|
|
@@ -8231,25 +8236,25 @@ exports["default"] = def;
|
|
|
8231
8236
|
|
|
8232
8237
|
/***/ },
|
|
8233
8238
|
|
|
8234
|
-
/***/
|
|
8239
|
+
/***/ 531350
|
|
8235
8240
|
/*!**********************************************************************************************************************!*\
|
|
8236
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
8241
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/index.js ***!
|
|
8237
8242
|
\**********************************************************************************************************************/
|
|
8238
8243
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
8239
8244
|
|
|
8240
8245
|
"use strict";
|
|
8241
8246
|
|
|
8242
8247
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8243
|
-
const limitNumber_1 = __webpack_require__(/*! ./limitNumber */
|
|
8244
|
-
const multipleOf_1 = __webpack_require__(/*! ./multipleOf */
|
|
8245
|
-
const limitLength_1 = __webpack_require__(/*! ./limitLength */
|
|
8246
|
-
const pattern_1 = __webpack_require__(/*! ./pattern */
|
|
8247
|
-
const limitProperties_1 = __webpack_require__(/*! ./limitProperties */
|
|
8248
|
-
const required_1 = __webpack_require__(/*! ./required */
|
|
8249
|
-
const limitItems_1 = __webpack_require__(/*! ./limitItems */
|
|
8250
|
-
const uniqueItems_1 = __webpack_require__(/*! ./uniqueItems */
|
|
8251
|
-
const const_1 = __webpack_require__(/*! ./const */
|
|
8252
|
-
const enum_1 = __webpack_require__(/*! ./enum */
|
|
8248
|
+
const limitNumber_1 = __webpack_require__(/*! ./limitNumber */ 339092);
|
|
8249
|
+
const multipleOf_1 = __webpack_require__(/*! ./multipleOf */ 165737);
|
|
8250
|
+
const limitLength_1 = __webpack_require__(/*! ./limitLength */ 698017);
|
|
8251
|
+
const pattern_1 = __webpack_require__(/*! ./pattern */ 108804);
|
|
8252
|
+
const limitProperties_1 = __webpack_require__(/*! ./limitProperties */ 804660);
|
|
8253
|
+
const required_1 = __webpack_require__(/*! ./required */ 638045);
|
|
8254
|
+
const limitItems_1 = __webpack_require__(/*! ./limitItems */ 229105);
|
|
8255
|
+
const uniqueItems_1 = __webpack_require__(/*! ./uniqueItems */ 255791);
|
|
8256
|
+
const const_1 = __webpack_require__(/*! ./const */ 54157);
|
|
8257
|
+
const enum_1 = __webpack_require__(/*! ./enum */ 805089);
|
|
8253
8258
|
const validation = [
|
|
8254
8259
|
// number
|
|
8255
8260
|
limitNumber_1.default,
|
|
@@ -8274,16 +8279,16 @@ exports["default"] = validation;
|
|
|
8274
8279
|
|
|
8275
8280
|
/***/ },
|
|
8276
8281
|
|
|
8277
|
-
/***/
|
|
8282
|
+
/***/ 229105
|
|
8278
8283
|
/*!***************************************************************************************************************************!*\
|
|
8279
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
8284
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitItems.js ***!
|
|
8280
8285
|
\***************************************************************************************************************************/
|
|
8281
8286
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
8282
8287
|
|
|
8283
8288
|
"use strict";
|
|
8284
8289
|
|
|
8285
8290
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8286
|
-
const codegen_1 = __webpack_require__(/*! ../../compile/codegen */
|
|
8291
|
+
const codegen_1 = __webpack_require__(/*! ../../compile/codegen */ 449315);
|
|
8287
8292
|
const error = {
|
|
8288
8293
|
message({ keyword, schemaCode }) {
|
|
8289
8294
|
const comp = keyword === "maxItems" ? "more" : "fewer";
|
|
@@ -8308,18 +8313,18 @@ exports["default"] = def;
|
|
|
8308
8313
|
|
|
8309
8314
|
/***/ },
|
|
8310
8315
|
|
|
8311
|
-
/***/
|
|
8316
|
+
/***/ 698017
|
|
8312
8317
|
/*!****************************************************************************************************************************!*\
|
|
8313
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
8318
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitLength.js ***!
|
|
8314
8319
|
\****************************************************************************************************************************/
|
|
8315
8320
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
8316
8321
|
|
|
8317
8322
|
"use strict";
|
|
8318
8323
|
|
|
8319
8324
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8320
|
-
const codegen_1 = __webpack_require__(/*! ../../compile/codegen */
|
|
8321
|
-
const util_1 = __webpack_require__(/*! ../../compile/util */
|
|
8322
|
-
const ucs2length_1 = __webpack_require__(/*! ../../runtime/ucs2length */
|
|
8325
|
+
const codegen_1 = __webpack_require__(/*! ../../compile/codegen */ 449315);
|
|
8326
|
+
const util_1 = __webpack_require__(/*! ../../compile/util */ 538365);
|
|
8327
|
+
const ucs2length_1 = __webpack_require__(/*! ../../runtime/ucs2length */ 966763);
|
|
8323
8328
|
const error = {
|
|
8324
8329
|
message({ keyword, schemaCode }) {
|
|
8325
8330
|
const comp = keyword === "maxLength" ? "more" : "fewer";
|
|
@@ -8345,16 +8350,16 @@ exports["default"] = def;
|
|
|
8345
8350
|
|
|
8346
8351
|
/***/ },
|
|
8347
8352
|
|
|
8348
|
-
/***/
|
|
8353
|
+
/***/ 339092
|
|
8349
8354
|
/*!****************************************************************************************************************************!*\
|
|
8350
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
8355
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitNumber.js ***!
|
|
8351
8356
|
\****************************************************************************************************************************/
|
|
8352
8357
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
8353
8358
|
|
|
8354
8359
|
"use strict";
|
|
8355
8360
|
|
|
8356
8361
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8357
|
-
const codegen_1 = __webpack_require__(/*! ../../compile/codegen */
|
|
8362
|
+
const codegen_1 = __webpack_require__(/*! ../../compile/codegen */ 449315);
|
|
8358
8363
|
const ops = codegen_1.operators;
|
|
8359
8364
|
const KWDs = {
|
|
8360
8365
|
maximum: { okStr: "<=", ok: ops.LTE, fail: ops.GT },
|
|
@@ -8382,16 +8387,16 @@ exports["default"] = def;
|
|
|
8382
8387
|
|
|
8383
8388
|
/***/ },
|
|
8384
8389
|
|
|
8385
|
-
/***/
|
|
8390
|
+
/***/ 804660
|
|
8386
8391
|
/*!********************************************************************************************************************************!*\
|
|
8387
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
8392
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/limitProperties.js ***!
|
|
8388
8393
|
\********************************************************************************************************************************/
|
|
8389
8394
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
8390
8395
|
|
|
8391
8396
|
"use strict";
|
|
8392
8397
|
|
|
8393
8398
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8394
|
-
const codegen_1 = __webpack_require__(/*! ../../compile/codegen */
|
|
8399
|
+
const codegen_1 = __webpack_require__(/*! ../../compile/codegen */ 449315);
|
|
8395
8400
|
const error = {
|
|
8396
8401
|
message({ keyword, schemaCode }) {
|
|
8397
8402
|
const comp = keyword === "maxProperties" ? "more" : "fewer";
|
|
@@ -8416,16 +8421,16 @@ exports["default"] = def;
|
|
|
8416
8421
|
|
|
8417
8422
|
/***/ },
|
|
8418
8423
|
|
|
8419
|
-
/***/
|
|
8424
|
+
/***/ 165737
|
|
8420
8425
|
/*!***************************************************************************************************************************!*\
|
|
8421
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
8426
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/multipleOf.js ***!
|
|
8422
8427
|
\***************************************************************************************************************************/
|
|
8423
8428
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
8424
8429
|
|
|
8425
8430
|
"use strict";
|
|
8426
8431
|
|
|
8427
8432
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8428
|
-
const codegen_1 = __webpack_require__(/*! ../../compile/codegen */
|
|
8433
|
+
const codegen_1 = __webpack_require__(/*! ../../compile/codegen */ 449315);
|
|
8429
8434
|
const error = {
|
|
8430
8435
|
message: ({ schemaCode }) => (0, codegen_1.str) `must be multiple of ${schemaCode}`,
|
|
8431
8436
|
params: ({ schemaCode }) => (0, codegen_1._) `{multipleOf: ${schemaCode}}`,
|
|
@@ -8452,17 +8457,18 @@ exports["default"] = def;
|
|
|
8452
8457
|
|
|
8453
8458
|
/***/ },
|
|
8454
8459
|
|
|
8455
|
-
/***/
|
|
8460
|
+
/***/ 108804
|
|
8456
8461
|
/*!************************************************************************************************************************!*\
|
|
8457
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
8462
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/pattern.js ***!
|
|
8458
8463
|
\************************************************************************************************************************/
|
|
8459
8464
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
8460
8465
|
|
|
8461
8466
|
"use strict";
|
|
8462
8467
|
|
|
8463
8468
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8464
|
-
const code_1 = __webpack_require__(/*! ../code */
|
|
8465
|
-
const
|
|
8469
|
+
const code_1 = __webpack_require__(/*! ../code */ 946851);
|
|
8470
|
+
const util_1 = __webpack_require__(/*! ../../compile/util */ 538365);
|
|
8471
|
+
const codegen_1 = __webpack_require__(/*! ../../compile/codegen */ 449315);
|
|
8466
8472
|
const error = {
|
|
8467
8473
|
message: ({ schemaCode }) => (0, codegen_1.str) `must match pattern "${schemaCode}"`,
|
|
8468
8474
|
params: ({ schemaCode }) => (0, codegen_1._) `{pattern: ${schemaCode}}`,
|
|
@@ -8474,11 +8480,19 @@ const def = {
|
|
|
8474
8480
|
$data: true,
|
|
8475
8481
|
error,
|
|
8476
8482
|
code(cxt) {
|
|
8477
|
-
const { data, $data, schema, schemaCode, it } = cxt;
|
|
8478
|
-
// TODO regexp should be wrapped in try/catchs
|
|
8483
|
+
const { gen, data, $data, schema, schemaCode, it } = cxt;
|
|
8479
8484
|
const u = it.opts.unicodeRegExp ? "u" : "";
|
|
8480
|
-
|
|
8481
|
-
|
|
8485
|
+
if ($data) {
|
|
8486
|
+
const { regExp } = it.opts.code;
|
|
8487
|
+
const regExpCode = regExp.code === "new RegExp" ? (0, codegen_1._) `new RegExp` : (0, util_1.useFunc)(gen, regExp);
|
|
8488
|
+
const valid = gen.let("valid");
|
|
8489
|
+
gen.try(() => gen.assign(valid, (0, codegen_1._) `${regExpCode}(${schemaCode}, ${u}).test(${data})`), () => gen.assign(valid, false));
|
|
8490
|
+
cxt.fail$data((0, codegen_1._) `!${valid}`);
|
|
8491
|
+
}
|
|
8492
|
+
else {
|
|
8493
|
+
const regExp = (0, code_1.usePattern)(cxt, schema);
|
|
8494
|
+
cxt.fail$data((0, codegen_1._) `!${regExp}.test(${data})`);
|
|
8495
|
+
}
|
|
8482
8496
|
},
|
|
8483
8497
|
};
|
|
8484
8498
|
exports["default"] = def;
|
|
@@ -8486,18 +8500,18 @@ exports["default"] = def;
|
|
|
8486
8500
|
|
|
8487
8501
|
/***/ },
|
|
8488
8502
|
|
|
8489
|
-
/***/
|
|
8503
|
+
/***/ 638045
|
|
8490
8504
|
/*!*************************************************************************************************************************!*\
|
|
8491
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
8505
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/required.js ***!
|
|
8492
8506
|
\*************************************************************************************************************************/
|
|
8493
8507
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
8494
8508
|
|
|
8495
8509
|
"use strict";
|
|
8496
8510
|
|
|
8497
8511
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8498
|
-
const code_1 = __webpack_require__(/*! ../code */
|
|
8499
|
-
const codegen_1 = __webpack_require__(/*! ../../compile/codegen */
|
|
8500
|
-
const util_1 = __webpack_require__(/*! ../../compile/util */
|
|
8512
|
+
const code_1 = __webpack_require__(/*! ../code */ 946851);
|
|
8513
|
+
const codegen_1 = __webpack_require__(/*! ../../compile/codegen */ 449315);
|
|
8514
|
+
const util_1 = __webpack_require__(/*! ../../compile/util */ 538365);
|
|
8501
8515
|
const error = {
|
|
8502
8516
|
message: ({ params: { missingProperty } }) => (0, codegen_1.str) `must have required property '${missingProperty}'`,
|
|
8503
8517
|
params: ({ params: { missingProperty } }) => (0, codegen_1._) `{missingProperty: ${missingProperty}}`,
|
|
@@ -8575,19 +8589,19 @@ exports["default"] = def;
|
|
|
8575
8589
|
|
|
8576
8590
|
/***/ },
|
|
8577
8591
|
|
|
8578
|
-
/***/
|
|
8592
|
+
/***/ 255791
|
|
8579
8593
|
/*!****************************************************************************************************************************!*\
|
|
8580
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
8594
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js ***!
|
|
8581
8595
|
\****************************************************************************************************************************/
|
|
8582
8596
|
(__unused_webpack_module, exports, __webpack_require__) {
|
|
8583
8597
|
|
|
8584
8598
|
"use strict";
|
|
8585
8599
|
|
|
8586
8600
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
8587
|
-
const dataType_1 = __webpack_require__(/*! ../../compile/validate/dataType */
|
|
8588
|
-
const codegen_1 = __webpack_require__(/*! ../../compile/codegen */
|
|
8589
|
-
const util_1 = __webpack_require__(/*! ../../compile/util */
|
|
8590
|
-
const equal_1 = __webpack_require__(/*! ../../runtime/equal */
|
|
8601
|
+
const dataType_1 = __webpack_require__(/*! ../../compile/validate/dataType */ 700438);
|
|
8602
|
+
const codegen_1 = __webpack_require__(/*! ../../compile/codegen */ 449315);
|
|
8603
|
+
const util_1 = __webpack_require__(/*! ../../compile/util */ 538365);
|
|
8604
|
+
const equal_1 = __webpack_require__(/*! ../../runtime/equal */ 790688);
|
|
8591
8605
|
const error = {
|
|
8592
8606
|
message: ({ params: { i, j } }) => (0, codegen_1.str) `must NOT have duplicate items (items ## ${j} and ${i} are identical)`,
|
|
8593
8607
|
params: ({ params: { i, j } }) => (0, codegen_1._) `{i: ${i}, j: ${j}}`,
|
|
@@ -53172,1458 +53186,6 @@ exports.fromPromise = function (fn) {
|
|
|
53172
53186
|
}
|
|
53173
53187
|
|
|
53174
53188
|
|
|
53175
|
-
/***/ },
|
|
53176
|
-
|
|
53177
|
-
/***/ 775666
|
|
53178
|
-
/*!*********************************************************************************************************!*\
|
|
53179
|
-
!*** ../../common/temp/default/node_modules/.pnpm/uri-js@4.4.1/node_modules/uri-js/dist/es5/uri.all.js ***!
|
|
53180
|
-
\*********************************************************************************************************/
|
|
53181
|
-
(__unused_webpack_module, exports) {
|
|
53182
|
-
|
|
53183
|
-
/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
|
|
53184
|
-
(function (global, factory) {
|
|
53185
|
-
true ? factory(exports) :
|
|
53186
|
-
0;
|
|
53187
|
-
}(this, (function (exports) { 'use strict';
|
|
53188
|
-
|
|
53189
|
-
function merge() {
|
|
53190
|
-
for (var _len = arguments.length, sets = Array(_len), _key = 0; _key < _len; _key++) {
|
|
53191
|
-
sets[_key] = arguments[_key];
|
|
53192
|
-
}
|
|
53193
|
-
|
|
53194
|
-
if (sets.length > 1) {
|
|
53195
|
-
sets[0] = sets[0].slice(0, -1);
|
|
53196
|
-
var xl = sets.length - 1;
|
|
53197
|
-
for (var x = 1; x < xl; ++x) {
|
|
53198
|
-
sets[x] = sets[x].slice(1, -1);
|
|
53199
|
-
}
|
|
53200
|
-
sets[xl] = sets[xl].slice(1);
|
|
53201
|
-
return sets.join('');
|
|
53202
|
-
} else {
|
|
53203
|
-
return sets[0];
|
|
53204
|
-
}
|
|
53205
|
-
}
|
|
53206
|
-
function subexp(str) {
|
|
53207
|
-
return "(?:" + str + ")";
|
|
53208
|
-
}
|
|
53209
|
-
function typeOf(o) {
|
|
53210
|
-
return o === undefined ? "undefined" : o === null ? "null" : Object.prototype.toString.call(o).split(" ").pop().split("]").shift().toLowerCase();
|
|
53211
|
-
}
|
|
53212
|
-
function toUpperCase(str) {
|
|
53213
|
-
return str.toUpperCase();
|
|
53214
|
-
}
|
|
53215
|
-
function toArray(obj) {
|
|
53216
|
-
return obj !== undefined && obj !== null ? obj instanceof Array ? obj : typeof obj.length !== "number" || obj.split || obj.setInterval || obj.call ? [obj] : Array.prototype.slice.call(obj) : [];
|
|
53217
|
-
}
|
|
53218
|
-
function assign(target, source) {
|
|
53219
|
-
var obj = target;
|
|
53220
|
-
if (source) {
|
|
53221
|
-
for (var key in source) {
|
|
53222
|
-
obj[key] = source[key];
|
|
53223
|
-
}
|
|
53224
|
-
}
|
|
53225
|
-
return obj;
|
|
53226
|
-
}
|
|
53227
|
-
|
|
53228
|
-
function buildExps(isIRI) {
|
|
53229
|
-
var ALPHA$$ = "[A-Za-z]",
|
|
53230
|
-
CR$ = "[\\x0D]",
|
|
53231
|
-
DIGIT$$ = "[0-9]",
|
|
53232
|
-
DQUOTE$$ = "[\\x22]",
|
|
53233
|
-
HEXDIG$$ = merge(DIGIT$$, "[A-Fa-f]"),
|
|
53234
|
-
//case-insensitive
|
|
53235
|
-
LF$$ = "[\\x0A]",
|
|
53236
|
-
SP$$ = "[\\x20]",
|
|
53237
|
-
PCT_ENCODED$ = subexp(subexp("%[EFef]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%[89A-Fa-f]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%" + HEXDIG$$ + HEXDIG$$)),
|
|
53238
|
-
//expanded
|
|
53239
|
-
GEN_DELIMS$$ = "[\\:\\/\\?\\#\\[\\]\\@]",
|
|
53240
|
-
SUB_DELIMS$$ = "[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",
|
|
53241
|
-
RESERVED$$ = merge(GEN_DELIMS$$, SUB_DELIMS$$),
|
|
53242
|
-
UCSCHAR$$ = isIRI ? "[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]" : "[]",
|
|
53243
|
-
//subset, excludes bidi control characters
|
|
53244
|
-
IPRIVATE$$ = isIRI ? "[\\uE000-\\uF8FF]" : "[]",
|
|
53245
|
-
//subset
|
|
53246
|
-
UNRESERVED$$ = merge(ALPHA$$, DIGIT$$, "[\\-\\.\\_\\~]", UCSCHAR$$),
|
|
53247
|
-
SCHEME$ = subexp(ALPHA$$ + merge(ALPHA$$, DIGIT$$, "[\\+\\-\\.]") + "*"),
|
|
53248
|
-
USERINFO$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:]")) + "*"),
|
|
53249
|
-
DEC_OCTET$ = subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("[1-9]" + DIGIT$$) + "|" + DIGIT$$),
|
|
53250
|
-
DEC_OCTET_RELAXED$ = subexp(subexp("25[0-5]") + "|" + subexp("2[0-4]" + DIGIT$$) + "|" + subexp("1" + DIGIT$$ + DIGIT$$) + "|" + subexp("0?[1-9]" + DIGIT$$) + "|0?0?" + DIGIT$$),
|
|
53251
|
-
//relaxed parsing rules
|
|
53252
|
-
IPV4ADDRESS$ = subexp(DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$ + "\\." + DEC_OCTET_RELAXED$),
|
|
53253
|
-
H16$ = subexp(HEXDIG$$ + "{1,4}"),
|
|
53254
|
-
LS32$ = subexp(subexp(H16$ + "\\:" + H16$) + "|" + IPV4ADDRESS$),
|
|
53255
|
-
IPV6ADDRESS1$ = subexp(subexp(H16$ + "\\:") + "{6}" + LS32$),
|
|
53256
|
-
// 6( h16 ":" ) ls32
|
|
53257
|
-
IPV6ADDRESS2$ = subexp("\\:\\:" + subexp(H16$ + "\\:") + "{5}" + LS32$),
|
|
53258
|
-
// "::" 5( h16 ":" ) ls32
|
|
53259
|
-
IPV6ADDRESS3$ = subexp(subexp(H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{4}" + LS32$),
|
|
53260
|
-
//[ h16 ] "::" 4( h16 ":" ) ls32
|
|
53261
|
-
IPV6ADDRESS4$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,1}" + H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{3}" + LS32$),
|
|
53262
|
-
//[ *1( h16 ":" ) h16 ] "::" 3( h16 ":" ) ls32
|
|
53263
|
-
IPV6ADDRESS5$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,2}" + H16$) + "?\\:\\:" + subexp(H16$ + "\\:") + "{2}" + LS32$),
|
|
53264
|
-
//[ *2( h16 ":" ) h16 ] "::" 2( h16 ":" ) ls32
|
|
53265
|
-
IPV6ADDRESS6$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,3}" + H16$) + "?\\:\\:" + H16$ + "\\:" + LS32$),
|
|
53266
|
-
//[ *3( h16 ":" ) h16 ] "::" h16 ":" ls32
|
|
53267
|
-
IPV6ADDRESS7$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,4}" + H16$) + "?\\:\\:" + LS32$),
|
|
53268
|
-
//[ *4( h16 ":" ) h16 ] "::" ls32
|
|
53269
|
-
IPV6ADDRESS8$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,5}" + H16$) + "?\\:\\:" + H16$),
|
|
53270
|
-
//[ *5( h16 ":" ) h16 ] "::" h16
|
|
53271
|
-
IPV6ADDRESS9$ = subexp(subexp(subexp(H16$ + "\\:") + "{0,6}" + H16$) + "?\\:\\:"),
|
|
53272
|
-
//[ *6( h16 ":" ) h16 ] "::"
|
|
53273
|
-
IPV6ADDRESS$ = subexp([IPV6ADDRESS1$, IPV6ADDRESS2$, IPV6ADDRESS3$, IPV6ADDRESS4$, IPV6ADDRESS5$, IPV6ADDRESS6$, IPV6ADDRESS7$, IPV6ADDRESS8$, IPV6ADDRESS9$].join("|")),
|
|
53274
|
-
ZONEID$ = subexp(subexp(UNRESERVED$$ + "|" + PCT_ENCODED$) + "+"),
|
|
53275
|
-
//RFC 6874
|
|
53276
|
-
IPV6ADDRZ$ = subexp(IPV6ADDRESS$ + "\\%25" + ZONEID$),
|
|
53277
|
-
//RFC 6874
|
|
53278
|
-
IPV6ADDRZ_RELAXED$ = subexp(IPV6ADDRESS$ + subexp("\\%25|\\%(?!" + HEXDIG$$ + "{2})") + ZONEID$),
|
|
53279
|
-
//RFC 6874, with relaxed parsing rules
|
|
53280
|
-
IPVFUTURE$ = subexp("[vV]" + HEXDIG$$ + "+\\." + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:]") + "+"),
|
|
53281
|
-
IP_LITERAL$ = subexp("\\[" + subexp(IPV6ADDRZ_RELAXED$ + "|" + IPV6ADDRESS$ + "|" + IPVFUTURE$) + "\\]"),
|
|
53282
|
-
//RFC 6874
|
|
53283
|
-
REG_NAME$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$)) + "*"),
|
|
53284
|
-
HOST$ = subexp(IP_LITERAL$ + "|" + IPV4ADDRESS$ + "(?!" + REG_NAME$ + ")" + "|" + REG_NAME$),
|
|
53285
|
-
PORT$ = subexp(DIGIT$$ + "*"),
|
|
53286
|
-
AUTHORITY$ = subexp(subexp(USERINFO$ + "@") + "?" + HOST$ + subexp("\\:" + PORT$) + "?"),
|
|
53287
|
-
PCHAR$ = subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@]")),
|
|
53288
|
-
SEGMENT$ = subexp(PCHAR$ + "*"),
|
|
53289
|
-
SEGMENT_NZ$ = subexp(PCHAR$ + "+"),
|
|
53290
|
-
SEGMENT_NZ_NC$ = subexp(subexp(PCT_ENCODED$ + "|" + merge(UNRESERVED$$, SUB_DELIMS$$, "[\\@]")) + "+"),
|
|
53291
|
-
PATH_ABEMPTY$ = subexp(subexp("\\/" + SEGMENT$) + "*"),
|
|
53292
|
-
PATH_ABSOLUTE$ = subexp("\\/" + subexp(SEGMENT_NZ$ + PATH_ABEMPTY$) + "?"),
|
|
53293
|
-
//simplified
|
|
53294
|
-
PATH_NOSCHEME$ = subexp(SEGMENT_NZ_NC$ + PATH_ABEMPTY$),
|
|
53295
|
-
//simplified
|
|
53296
|
-
PATH_ROOTLESS$ = subexp(SEGMENT_NZ$ + PATH_ABEMPTY$),
|
|
53297
|
-
//simplified
|
|
53298
|
-
PATH_EMPTY$ = "(?!" + PCHAR$ + ")",
|
|
53299
|
-
PATH$ = subexp(PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$),
|
|
53300
|
-
QUERY$ = subexp(subexp(PCHAR$ + "|" + merge("[\\/\\?]", IPRIVATE$$)) + "*"),
|
|
53301
|
-
FRAGMENT$ = subexp(subexp(PCHAR$ + "|[\\/\\?]") + "*"),
|
|
53302
|
-
HIER_PART$ = subexp(subexp("\\/\\/" + AUTHORITY$ + PATH_ABEMPTY$) + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$),
|
|
53303
|
-
URI$ = subexp(SCHEME$ + "\\:" + HIER_PART$ + subexp("\\?" + QUERY$) + "?" + subexp("\\#" + FRAGMENT$) + "?"),
|
|
53304
|
-
RELATIVE_PART$ = subexp(subexp("\\/\\/" + AUTHORITY$ + PATH_ABEMPTY$) + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_EMPTY$),
|
|
53305
|
-
RELATIVE$ = subexp(RELATIVE_PART$ + subexp("\\?" + QUERY$) + "?" + subexp("\\#" + FRAGMENT$) + "?"),
|
|
53306
|
-
URI_REFERENCE$ = subexp(URI$ + "|" + RELATIVE$),
|
|
53307
|
-
ABSOLUTE_URI$ = subexp(SCHEME$ + "\\:" + HIER_PART$ + subexp("\\?" + QUERY$) + "?"),
|
|
53308
|
-
GENERIC_REF$ = "^(" + SCHEME$ + ")\\:" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?" + subexp("\\#(" + FRAGMENT$ + ")") + "?$",
|
|
53309
|
-
RELATIVE_REF$ = "^(){0}" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_NOSCHEME$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?" + subexp("\\#(" + FRAGMENT$ + ")") + "?$",
|
|
53310
|
-
ABSOLUTE_REF$ = "^(" + SCHEME$ + ")\\:" + subexp(subexp("\\/\\/(" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?)") + "?(" + PATH_ABEMPTY$ + "|" + PATH_ABSOLUTE$ + "|" + PATH_ROOTLESS$ + "|" + PATH_EMPTY$ + ")") + subexp("\\?(" + QUERY$ + ")") + "?$",
|
|
53311
|
-
SAMEDOC_REF$ = "^" + subexp("\\#(" + FRAGMENT$ + ")") + "?$",
|
|
53312
|
-
AUTHORITY_REF$ = "^" + subexp("(" + USERINFO$ + ")@") + "?(" + HOST$ + ")" + subexp("\\:(" + PORT$ + ")") + "?$";
|
|
53313
|
-
return {
|
|
53314
|
-
NOT_SCHEME: new RegExp(merge("[^]", ALPHA$$, DIGIT$$, "[\\+\\-\\.]"), "g"),
|
|
53315
|
-
NOT_USERINFO: new RegExp(merge("[^\\%\\:]", UNRESERVED$$, SUB_DELIMS$$), "g"),
|
|
53316
|
-
NOT_HOST: new RegExp(merge("[^\\%\\[\\]\\:]", UNRESERVED$$, SUB_DELIMS$$), "g"),
|
|
53317
|
-
NOT_PATH: new RegExp(merge("[^\\%\\/\\:\\@]", UNRESERVED$$, SUB_DELIMS$$), "g"),
|
|
53318
|
-
NOT_PATH_NOSCHEME: new RegExp(merge("[^\\%\\/\\@]", UNRESERVED$$, SUB_DELIMS$$), "g"),
|
|
53319
|
-
NOT_QUERY: new RegExp(merge("[^\\%]", UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@\\/\\?]", IPRIVATE$$), "g"),
|
|
53320
|
-
NOT_FRAGMENT: new RegExp(merge("[^\\%]", UNRESERVED$$, SUB_DELIMS$$, "[\\:\\@\\/\\?]"), "g"),
|
|
53321
|
-
ESCAPE: new RegExp(merge("[^]", UNRESERVED$$, SUB_DELIMS$$), "g"),
|
|
53322
|
-
UNRESERVED: new RegExp(UNRESERVED$$, "g"),
|
|
53323
|
-
OTHER_CHARS: new RegExp(merge("[^\\%]", UNRESERVED$$, RESERVED$$), "g"),
|
|
53324
|
-
PCT_ENCODED: new RegExp(PCT_ENCODED$, "g"),
|
|
53325
|
-
IPV4ADDRESS: new RegExp("^(" + IPV4ADDRESS$ + ")$"),
|
|
53326
|
-
IPV6ADDRESS: new RegExp("^\\[?(" + IPV6ADDRESS$ + ")" + subexp(subexp("\\%25|\\%(?!" + HEXDIG$$ + "{2})") + "(" + ZONEID$ + ")") + "?\\]?$") //RFC 6874, with relaxed parsing rules
|
|
53327
|
-
};
|
|
53328
|
-
}
|
|
53329
|
-
var URI_PROTOCOL = buildExps(false);
|
|
53330
|
-
|
|
53331
|
-
var IRI_PROTOCOL = buildExps(true);
|
|
53332
|
-
|
|
53333
|
-
var slicedToArray = function () {
|
|
53334
|
-
function sliceIterator(arr, i) {
|
|
53335
|
-
var _arr = [];
|
|
53336
|
-
var _n = true;
|
|
53337
|
-
var _d = false;
|
|
53338
|
-
var _e = undefined;
|
|
53339
|
-
|
|
53340
|
-
try {
|
|
53341
|
-
for (var _i = arr[Symbol.iterator](), _s; !(_n = (_s = _i.next()).done); _n = true) {
|
|
53342
|
-
_arr.push(_s.value);
|
|
53343
|
-
|
|
53344
|
-
if (i && _arr.length === i) break;
|
|
53345
|
-
}
|
|
53346
|
-
} catch (err) {
|
|
53347
|
-
_d = true;
|
|
53348
|
-
_e = err;
|
|
53349
|
-
} finally {
|
|
53350
|
-
try {
|
|
53351
|
-
if (!_n && _i["return"]) _i["return"]();
|
|
53352
|
-
} finally {
|
|
53353
|
-
if (_d) throw _e;
|
|
53354
|
-
}
|
|
53355
|
-
}
|
|
53356
|
-
|
|
53357
|
-
return _arr;
|
|
53358
|
-
}
|
|
53359
|
-
|
|
53360
|
-
return function (arr, i) {
|
|
53361
|
-
if (Array.isArray(arr)) {
|
|
53362
|
-
return arr;
|
|
53363
|
-
} else if (Symbol.iterator in Object(arr)) {
|
|
53364
|
-
return sliceIterator(arr, i);
|
|
53365
|
-
} else {
|
|
53366
|
-
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
|
53367
|
-
}
|
|
53368
|
-
};
|
|
53369
|
-
}();
|
|
53370
|
-
|
|
53371
|
-
|
|
53372
|
-
|
|
53373
|
-
|
|
53374
|
-
|
|
53375
|
-
|
|
53376
|
-
|
|
53377
|
-
|
|
53378
|
-
|
|
53379
|
-
|
|
53380
|
-
|
|
53381
|
-
|
|
53382
|
-
|
|
53383
|
-
var toConsumableArray = function (arr) {
|
|
53384
|
-
if (Array.isArray(arr)) {
|
|
53385
|
-
for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++) arr2[i] = arr[i];
|
|
53386
|
-
|
|
53387
|
-
return arr2;
|
|
53388
|
-
} else {
|
|
53389
|
-
return Array.from(arr);
|
|
53390
|
-
}
|
|
53391
|
-
};
|
|
53392
|
-
|
|
53393
|
-
/** Highest positive signed 32-bit float value */
|
|
53394
|
-
|
|
53395
|
-
var maxInt = 2147483647; // aka. 0x7FFFFFFF or 2^31-1
|
|
53396
|
-
|
|
53397
|
-
/** Bootstring parameters */
|
|
53398
|
-
var base = 36;
|
|
53399
|
-
var tMin = 1;
|
|
53400
|
-
var tMax = 26;
|
|
53401
|
-
var skew = 38;
|
|
53402
|
-
var damp = 700;
|
|
53403
|
-
var initialBias = 72;
|
|
53404
|
-
var initialN = 128; // 0x80
|
|
53405
|
-
var delimiter = '-'; // '\x2D'
|
|
53406
|
-
|
|
53407
|
-
/** Regular expressions */
|
|
53408
|
-
var regexPunycode = /^xn--/;
|
|
53409
|
-
var regexNonASCII = /[^\0-\x7E]/; // non-ASCII chars
|
|
53410
|
-
var regexSeparators = /[\x2E\u3002\uFF0E\uFF61]/g; // RFC 3490 separators
|
|
53411
|
-
|
|
53412
|
-
/** Error messages */
|
|
53413
|
-
var errors = {
|
|
53414
|
-
'overflow': 'Overflow: input needs wider integers to process',
|
|
53415
|
-
'not-basic': 'Illegal input >= 0x80 (not a basic code point)',
|
|
53416
|
-
'invalid-input': 'Invalid input'
|
|
53417
|
-
};
|
|
53418
|
-
|
|
53419
|
-
/** Convenience shortcuts */
|
|
53420
|
-
var baseMinusTMin = base - tMin;
|
|
53421
|
-
var floor = Math.floor;
|
|
53422
|
-
var stringFromCharCode = String.fromCharCode;
|
|
53423
|
-
|
|
53424
|
-
/*--------------------------------------------------------------------------*/
|
|
53425
|
-
|
|
53426
|
-
/**
|
|
53427
|
-
* A generic error utility function.
|
|
53428
|
-
* @private
|
|
53429
|
-
* @param {String} type The error type.
|
|
53430
|
-
* @returns {Error} Throws a `RangeError` with the applicable error message.
|
|
53431
|
-
*/
|
|
53432
|
-
function error$1(type) {
|
|
53433
|
-
throw new RangeError(errors[type]);
|
|
53434
|
-
}
|
|
53435
|
-
|
|
53436
|
-
/**
|
|
53437
|
-
* A generic `Array#map` utility function.
|
|
53438
|
-
* @private
|
|
53439
|
-
* @param {Array} array The array to iterate over.
|
|
53440
|
-
* @param {Function} callback The function that gets called for every array
|
|
53441
|
-
* item.
|
|
53442
|
-
* @returns {Array} A new array of values returned by the callback function.
|
|
53443
|
-
*/
|
|
53444
|
-
function map(array, fn) {
|
|
53445
|
-
var result = [];
|
|
53446
|
-
var length = array.length;
|
|
53447
|
-
while (length--) {
|
|
53448
|
-
result[length] = fn(array[length]);
|
|
53449
|
-
}
|
|
53450
|
-
return result;
|
|
53451
|
-
}
|
|
53452
|
-
|
|
53453
|
-
/**
|
|
53454
|
-
* A simple `Array#map`-like wrapper to work with domain name strings or email
|
|
53455
|
-
* addresses.
|
|
53456
|
-
* @private
|
|
53457
|
-
* @param {String} domain The domain name or email address.
|
|
53458
|
-
* @param {Function} callback The function that gets called for every
|
|
53459
|
-
* character.
|
|
53460
|
-
* @returns {Array} A new string of characters returned by the callback
|
|
53461
|
-
* function.
|
|
53462
|
-
*/
|
|
53463
|
-
function mapDomain(string, fn) {
|
|
53464
|
-
var parts = string.split('@');
|
|
53465
|
-
var result = '';
|
|
53466
|
-
if (parts.length > 1) {
|
|
53467
|
-
// In email addresses, only the domain name should be punycoded. Leave
|
|
53468
|
-
// the local part (i.e. everything up to `@`) intact.
|
|
53469
|
-
result = parts[0] + '@';
|
|
53470
|
-
string = parts[1];
|
|
53471
|
-
}
|
|
53472
|
-
// Avoid `split(regex)` for IE8 compatibility. See #17.
|
|
53473
|
-
string = string.replace(regexSeparators, '\x2E');
|
|
53474
|
-
var labels = string.split('.');
|
|
53475
|
-
var encoded = map(labels, fn).join('.');
|
|
53476
|
-
return result + encoded;
|
|
53477
|
-
}
|
|
53478
|
-
|
|
53479
|
-
/**
|
|
53480
|
-
* Creates an array containing the numeric code points of each Unicode
|
|
53481
|
-
* character in the string. While JavaScript uses UCS-2 internally,
|
|
53482
|
-
* this function will convert a pair of surrogate halves (each of which
|
|
53483
|
-
* UCS-2 exposes as separate characters) into a single code point,
|
|
53484
|
-
* matching UTF-16.
|
|
53485
|
-
* @see `punycode.ucs2.encode`
|
|
53486
|
-
* @see <https://mathiasbynens.be/notes/javascript-encoding>
|
|
53487
|
-
* @memberOf punycode.ucs2
|
|
53488
|
-
* @name decode
|
|
53489
|
-
* @param {String} string The Unicode input string (UCS-2).
|
|
53490
|
-
* @returns {Array} The new array of code points.
|
|
53491
|
-
*/
|
|
53492
|
-
function ucs2decode(string) {
|
|
53493
|
-
var output = [];
|
|
53494
|
-
var counter = 0;
|
|
53495
|
-
var length = string.length;
|
|
53496
|
-
while (counter < length) {
|
|
53497
|
-
var value = string.charCodeAt(counter++);
|
|
53498
|
-
if (value >= 0xD800 && value <= 0xDBFF && counter < length) {
|
|
53499
|
-
// It's a high surrogate, and there is a next character.
|
|
53500
|
-
var extra = string.charCodeAt(counter++);
|
|
53501
|
-
if ((extra & 0xFC00) == 0xDC00) {
|
|
53502
|
-
// Low surrogate.
|
|
53503
|
-
output.push(((value & 0x3FF) << 10) + (extra & 0x3FF) + 0x10000);
|
|
53504
|
-
} else {
|
|
53505
|
-
// It's an unmatched surrogate; only append this code unit, in case the
|
|
53506
|
-
// next code unit is the high surrogate of a surrogate pair.
|
|
53507
|
-
output.push(value);
|
|
53508
|
-
counter--;
|
|
53509
|
-
}
|
|
53510
|
-
} else {
|
|
53511
|
-
output.push(value);
|
|
53512
|
-
}
|
|
53513
|
-
}
|
|
53514
|
-
return output;
|
|
53515
|
-
}
|
|
53516
|
-
|
|
53517
|
-
/**
|
|
53518
|
-
* Creates a string based on an array of numeric code points.
|
|
53519
|
-
* @see `punycode.ucs2.decode`
|
|
53520
|
-
* @memberOf punycode.ucs2
|
|
53521
|
-
* @name encode
|
|
53522
|
-
* @param {Array} codePoints The array of numeric code points.
|
|
53523
|
-
* @returns {String} The new Unicode string (UCS-2).
|
|
53524
|
-
*/
|
|
53525
|
-
var ucs2encode = function ucs2encode(array) {
|
|
53526
|
-
return String.fromCodePoint.apply(String, toConsumableArray(array));
|
|
53527
|
-
};
|
|
53528
|
-
|
|
53529
|
-
/**
|
|
53530
|
-
* Converts a basic code point into a digit/integer.
|
|
53531
|
-
* @see `digitToBasic()`
|
|
53532
|
-
* @private
|
|
53533
|
-
* @param {Number} codePoint The basic numeric code point value.
|
|
53534
|
-
* @returns {Number} The numeric value of a basic code point (for use in
|
|
53535
|
-
* representing integers) in the range `0` to `base - 1`, or `base` if
|
|
53536
|
-
* the code point does not represent a value.
|
|
53537
|
-
*/
|
|
53538
|
-
var basicToDigit = function basicToDigit(codePoint) {
|
|
53539
|
-
if (codePoint - 0x30 < 0x0A) {
|
|
53540
|
-
return codePoint - 0x16;
|
|
53541
|
-
}
|
|
53542
|
-
if (codePoint - 0x41 < 0x1A) {
|
|
53543
|
-
return codePoint - 0x41;
|
|
53544
|
-
}
|
|
53545
|
-
if (codePoint - 0x61 < 0x1A) {
|
|
53546
|
-
return codePoint - 0x61;
|
|
53547
|
-
}
|
|
53548
|
-
return base;
|
|
53549
|
-
};
|
|
53550
|
-
|
|
53551
|
-
/**
|
|
53552
|
-
* Converts a digit/integer into a basic code point.
|
|
53553
|
-
* @see `basicToDigit()`
|
|
53554
|
-
* @private
|
|
53555
|
-
* @param {Number} digit The numeric value of a basic code point.
|
|
53556
|
-
* @returns {Number} The basic code point whose value (when used for
|
|
53557
|
-
* representing integers) is `digit`, which needs to be in the range
|
|
53558
|
-
* `0` to `base - 1`. If `flag` is non-zero, the uppercase form is
|
|
53559
|
-
* used; else, the lowercase form is used. The behavior is undefined
|
|
53560
|
-
* if `flag` is non-zero and `digit` has no uppercase form.
|
|
53561
|
-
*/
|
|
53562
|
-
var digitToBasic = function digitToBasic(digit, flag) {
|
|
53563
|
-
// 0..25 map to ASCII a..z or A..Z
|
|
53564
|
-
// 26..35 map to ASCII 0..9
|
|
53565
|
-
return digit + 22 + 75 * (digit < 26) - ((flag != 0) << 5);
|
|
53566
|
-
};
|
|
53567
|
-
|
|
53568
|
-
/**
|
|
53569
|
-
* Bias adaptation function as per section 3.4 of RFC 3492.
|
|
53570
|
-
* https://tools.ietf.org/html/rfc3492#section-3.4
|
|
53571
|
-
* @private
|
|
53572
|
-
*/
|
|
53573
|
-
var adapt = function adapt(delta, numPoints, firstTime) {
|
|
53574
|
-
var k = 0;
|
|
53575
|
-
delta = firstTime ? floor(delta / damp) : delta >> 1;
|
|
53576
|
-
delta += floor(delta / numPoints);
|
|
53577
|
-
for (; /* no initialization */delta > baseMinusTMin * tMax >> 1; k += base) {
|
|
53578
|
-
delta = floor(delta / baseMinusTMin);
|
|
53579
|
-
}
|
|
53580
|
-
return floor(k + (baseMinusTMin + 1) * delta / (delta + skew));
|
|
53581
|
-
};
|
|
53582
|
-
|
|
53583
|
-
/**
|
|
53584
|
-
* Converts a Punycode string of ASCII-only symbols to a string of Unicode
|
|
53585
|
-
* symbols.
|
|
53586
|
-
* @memberOf punycode
|
|
53587
|
-
* @param {String} input The Punycode string of ASCII-only symbols.
|
|
53588
|
-
* @returns {String} The resulting string of Unicode symbols.
|
|
53589
|
-
*/
|
|
53590
|
-
var decode = function decode(input) {
|
|
53591
|
-
// Don't use UCS-2.
|
|
53592
|
-
var output = [];
|
|
53593
|
-
var inputLength = input.length;
|
|
53594
|
-
var i = 0;
|
|
53595
|
-
var n = initialN;
|
|
53596
|
-
var bias = initialBias;
|
|
53597
|
-
|
|
53598
|
-
// Handle the basic code points: let `basic` be the number of input code
|
|
53599
|
-
// points before the last delimiter, or `0` if there is none, then copy
|
|
53600
|
-
// the first basic code points to the output.
|
|
53601
|
-
|
|
53602
|
-
var basic = input.lastIndexOf(delimiter);
|
|
53603
|
-
if (basic < 0) {
|
|
53604
|
-
basic = 0;
|
|
53605
|
-
}
|
|
53606
|
-
|
|
53607
|
-
for (var j = 0; j < basic; ++j) {
|
|
53608
|
-
// if it's not a basic code point
|
|
53609
|
-
if (input.charCodeAt(j) >= 0x80) {
|
|
53610
|
-
error$1('not-basic');
|
|
53611
|
-
}
|
|
53612
|
-
output.push(input.charCodeAt(j));
|
|
53613
|
-
}
|
|
53614
|
-
|
|
53615
|
-
// Main decoding loop: start just after the last delimiter if any basic code
|
|
53616
|
-
// points were copied; start at the beginning otherwise.
|
|
53617
|
-
|
|
53618
|
-
for (var index = basic > 0 ? basic + 1 : 0; index < inputLength;) /* no final expression */{
|
|
53619
|
-
|
|
53620
|
-
// `index` is the index of the next character to be consumed.
|
|
53621
|
-
// Decode a generalized variable-length integer into `delta`,
|
|
53622
|
-
// which gets added to `i`. The overflow checking is easier
|
|
53623
|
-
// if we increase `i` as we go, then subtract off its starting
|
|
53624
|
-
// value at the end to obtain `delta`.
|
|
53625
|
-
var oldi = i;
|
|
53626
|
-
for (var w = 1, k = base;; /* no condition */k += base) {
|
|
53627
|
-
|
|
53628
|
-
if (index >= inputLength) {
|
|
53629
|
-
error$1('invalid-input');
|
|
53630
|
-
}
|
|
53631
|
-
|
|
53632
|
-
var digit = basicToDigit(input.charCodeAt(index++));
|
|
53633
|
-
|
|
53634
|
-
if (digit >= base || digit > floor((maxInt - i) / w)) {
|
|
53635
|
-
error$1('overflow');
|
|
53636
|
-
}
|
|
53637
|
-
|
|
53638
|
-
i += digit * w;
|
|
53639
|
-
var t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;
|
|
53640
|
-
|
|
53641
|
-
if (digit < t) {
|
|
53642
|
-
break;
|
|
53643
|
-
}
|
|
53644
|
-
|
|
53645
|
-
var baseMinusT = base - t;
|
|
53646
|
-
if (w > floor(maxInt / baseMinusT)) {
|
|
53647
|
-
error$1('overflow');
|
|
53648
|
-
}
|
|
53649
|
-
|
|
53650
|
-
w *= baseMinusT;
|
|
53651
|
-
}
|
|
53652
|
-
|
|
53653
|
-
var out = output.length + 1;
|
|
53654
|
-
bias = adapt(i - oldi, out, oldi == 0);
|
|
53655
|
-
|
|
53656
|
-
// `i` was supposed to wrap around from `out` to `0`,
|
|
53657
|
-
// incrementing `n` each time, so we'll fix that now:
|
|
53658
|
-
if (floor(i / out) > maxInt - n) {
|
|
53659
|
-
error$1('overflow');
|
|
53660
|
-
}
|
|
53661
|
-
|
|
53662
|
-
n += floor(i / out);
|
|
53663
|
-
i %= out;
|
|
53664
|
-
|
|
53665
|
-
// Insert `n` at position `i` of the output.
|
|
53666
|
-
output.splice(i++, 0, n);
|
|
53667
|
-
}
|
|
53668
|
-
|
|
53669
|
-
return String.fromCodePoint.apply(String, output);
|
|
53670
|
-
};
|
|
53671
|
-
|
|
53672
|
-
/**
|
|
53673
|
-
* Converts a string of Unicode symbols (e.g. a domain name label) to a
|
|
53674
|
-
* Punycode string of ASCII-only symbols.
|
|
53675
|
-
* @memberOf punycode
|
|
53676
|
-
* @param {String} input The string of Unicode symbols.
|
|
53677
|
-
* @returns {String} The resulting Punycode string of ASCII-only symbols.
|
|
53678
|
-
*/
|
|
53679
|
-
var encode = function encode(input) {
|
|
53680
|
-
var output = [];
|
|
53681
|
-
|
|
53682
|
-
// Convert the input in UCS-2 to an array of Unicode code points.
|
|
53683
|
-
input = ucs2decode(input);
|
|
53684
|
-
|
|
53685
|
-
// Cache the length.
|
|
53686
|
-
var inputLength = input.length;
|
|
53687
|
-
|
|
53688
|
-
// Initialize the state.
|
|
53689
|
-
var n = initialN;
|
|
53690
|
-
var delta = 0;
|
|
53691
|
-
var bias = initialBias;
|
|
53692
|
-
|
|
53693
|
-
// Handle the basic code points.
|
|
53694
|
-
var _iteratorNormalCompletion = true;
|
|
53695
|
-
var _didIteratorError = false;
|
|
53696
|
-
var _iteratorError = undefined;
|
|
53697
|
-
|
|
53698
|
-
try {
|
|
53699
|
-
for (var _iterator = input[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
|
53700
|
-
var _currentValue2 = _step.value;
|
|
53701
|
-
|
|
53702
|
-
if (_currentValue2 < 0x80) {
|
|
53703
|
-
output.push(stringFromCharCode(_currentValue2));
|
|
53704
|
-
}
|
|
53705
|
-
}
|
|
53706
|
-
} catch (err) {
|
|
53707
|
-
_didIteratorError = true;
|
|
53708
|
-
_iteratorError = err;
|
|
53709
|
-
} finally {
|
|
53710
|
-
try {
|
|
53711
|
-
if (!_iteratorNormalCompletion && _iterator.return) {
|
|
53712
|
-
_iterator.return();
|
|
53713
|
-
}
|
|
53714
|
-
} finally {
|
|
53715
|
-
if (_didIteratorError) {
|
|
53716
|
-
throw _iteratorError;
|
|
53717
|
-
}
|
|
53718
|
-
}
|
|
53719
|
-
}
|
|
53720
|
-
|
|
53721
|
-
var basicLength = output.length;
|
|
53722
|
-
var handledCPCount = basicLength;
|
|
53723
|
-
|
|
53724
|
-
// `handledCPCount` is the number of code points that have been handled;
|
|
53725
|
-
// `basicLength` is the number of basic code points.
|
|
53726
|
-
|
|
53727
|
-
// Finish the basic string with a delimiter unless it's empty.
|
|
53728
|
-
if (basicLength) {
|
|
53729
|
-
output.push(delimiter);
|
|
53730
|
-
}
|
|
53731
|
-
|
|
53732
|
-
// Main encoding loop:
|
|
53733
|
-
while (handledCPCount < inputLength) {
|
|
53734
|
-
|
|
53735
|
-
// All non-basic code points < n have been handled already. Find the next
|
|
53736
|
-
// larger one:
|
|
53737
|
-
var m = maxInt;
|
|
53738
|
-
var _iteratorNormalCompletion2 = true;
|
|
53739
|
-
var _didIteratorError2 = false;
|
|
53740
|
-
var _iteratorError2 = undefined;
|
|
53741
|
-
|
|
53742
|
-
try {
|
|
53743
|
-
for (var _iterator2 = input[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
|
|
53744
|
-
var currentValue = _step2.value;
|
|
53745
|
-
|
|
53746
|
-
if (currentValue >= n && currentValue < m) {
|
|
53747
|
-
m = currentValue;
|
|
53748
|
-
}
|
|
53749
|
-
}
|
|
53750
|
-
|
|
53751
|
-
// Increase `delta` enough to advance the decoder's <n,i> state to <m,0>,
|
|
53752
|
-
// but guard against overflow.
|
|
53753
|
-
} catch (err) {
|
|
53754
|
-
_didIteratorError2 = true;
|
|
53755
|
-
_iteratorError2 = err;
|
|
53756
|
-
} finally {
|
|
53757
|
-
try {
|
|
53758
|
-
if (!_iteratorNormalCompletion2 && _iterator2.return) {
|
|
53759
|
-
_iterator2.return();
|
|
53760
|
-
}
|
|
53761
|
-
} finally {
|
|
53762
|
-
if (_didIteratorError2) {
|
|
53763
|
-
throw _iteratorError2;
|
|
53764
|
-
}
|
|
53765
|
-
}
|
|
53766
|
-
}
|
|
53767
|
-
|
|
53768
|
-
var handledCPCountPlusOne = handledCPCount + 1;
|
|
53769
|
-
if (m - n > floor((maxInt - delta) / handledCPCountPlusOne)) {
|
|
53770
|
-
error$1('overflow');
|
|
53771
|
-
}
|
|
53772
|
-
|
|
53773
|
-
delta += (m - n) * handledCPCountPlusOne;
|
|
53774
|
-
n = m;
|
|
53775
|
-
|
|
53776
|
-
var _iteratorNormalCompletion3 = true;
|
|
53777
|
-
var _didIteratorError3 = false;
|
|
53778
|
-
var _iteratorError3 = undefined;
|
|
53779
|
-
|
|
53780
|
-
try {
|
|
53781
|
-
for (var _iterator3 = input[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
|
|
53782
|
-
var _currentValue = _step3.value;
|
|
53783
|
-
|
|
53784
|
-
if (_currentValue < n && ++delta > maxInt) {
|
|
53785
|
-
error$1('overflow');
|
|
53786
|
-
}
|
|
53787
|
-
if (_currentValue == n) {
|
|
53788
|
-
// Represent delta as a generalized variable-length integer.
|
|
53789
|
-
var q = delta;
|
|
53790
|
-
for (var k = base;; /* no condition */k += base) {
|
|
53791
|
-
var t = k <= bias ? tMin : k >= bias + tMax ? tMax : k - bias;
|
|
53792
|
-
if (q < t) {
|
|
53793
|
-
break;
|
|
53794
|
-
}
|
|
53795
|
-
var qMinusT = q - t;
|
|
53796
|
-
var baseMinusT = base - t;
|
|
53797
|
-
output.push(stringFromCharCode(digitToBasic(t + qMinusT % baseMinusT, 0)));
|
|
53798
|
-
q = floor(qMinusT / baseMinusT);
|
|
53799
|
-
}
|
|
53800
|
-
|
|
53801
|
-
output.push(stringFromCharCode(digitToBasic(q, 0)));
|
|
53802
|
-
bias = adapt(delta, handledCPCountPlusOne, handledCPCount == basicLength);
|
|
53803
|
-
delta = 0;
|
|
53804
|
-
++handledCPCount;
|
|
53805
|
-
}
|
|
53806
|
-
}
|
|
53807
|
-
} catch (err) {
|
|
53808
|
-
_didIteratorError3 = true;
|
|
53809
|
-
_iteratorError3 = err;
|
|
53810
|
-
} finally {
|
|
53811
|
-
try {
|
|
53812
|
-
if (!_iteratorNormalCompletion3 && _iterator3.return) {
|
|
53813
|
-
_iterator3.return();
|
|
53814
|
-
}
|
|
53815
|
-
} finally {
|
|
53816
|
-
if (_didIteratorError3) {
|
|
53817
|
-
throw _iteratorError3;
|
|
53818
|
-
}
|
|
53819
|
-
}
|
|
53820
|
-
}
|
|
53821
|
-
|
|
53822
|
-
++delta;
|
|
53823
|
-
++n;
|
|
53824
|
-
}
|
|
53825
|
-
return output.join('');
|
|
53826
|
-
};
|
|
53827
|
-
|
|
53828
|
-
/**
|
|
53829
|
-
* Converts a Punycode string representing a domain name or an email address
|
|
53830
|
-
* to Unicode. Only the Punycoded parts of the input will be converted, i.e.
|
|
53831
|
-
* it doesn't matter if you call it on a string that has already been
|
|
53832
|
-
* converted to Unicode.
|
|
53833
|
-
* @memberOf punycode
|
|
53834
|
-
* @param {String} input The Punycoded domain name or email address to
|
|
53835
|
-
* convert to Unicode.
|
|
53836
|
-
* @returns {String} The Unicode representation of the given Punycode
|
|
53837
|
-
* string.
|
|
53838
|
-
*/
|
|
53839
|
-
var toUnicode = function toUnicode(input) {
|
|
53840
|
-
return mapDomain(input, function (string) {
|
|
53841
|
-
return regexPunycode.test(string) ? decode(string.slice(4).toLowerCase()) : string;
|
|
53842
|
-
});
|
|
53843
|
-
};
|
|
53844
|
-
|
|
53845
|
-
/**
|
|
53846
|
-
* Converts a Unicode string representing a domain name or an email address to
|
|
53847
|
-
* Punycode. Only the non-ASCII parts of the domain name will be converted,
|
|
53848
|
-
* i.e. it doesn't matter if you call it with a domain that's already in
|
|
53849
|
-
* ASCII.
|
|
53850
|
-
* @memberOf punycode
|
|
53851
|
-
* @param {String} input The domain name or email address to convert, as a
|
|
53852
|
-
* Unicode string.
|
|
53853
|
-
* @returns {String} The Punycode representation of the given domain name or
|
|
53854
|
-
* email address.
|
|
53855
|
-
*/
|
|
53856
|
-
var toASCII = function toASCII(input) {
|
|
53857
|
-
return mapDomain(input, function (string) {
|
|
53858
|
-
return regexNonASCII.test(string) ? 'xn--' + encode(string) : string;
|
|
53859
|
-
});
|
|
53860
|
-
};
|
|
53861
|
-
|
|
53862
|
-
/*--------------------------------------------------------------------------*/
|
|
53863
|
-
|
|
53864
|
-
/** Define the public API */
|
|
53865
|
-
var punycode = {
|
|
53866
|
-
/**
|
|
53867
|
-
* A string representing the current Punycode.js version number.
|
|
53868
|
-
* @memberOf punycode
|
|
53869
|
-
* @type String
|
|
53870
|
-
*/
|
|
53871
|
-
'version': '2.1.0',
|
|
53872
|
-
/**
|
|
53873
|
-
* An object of methods to convert from JavaScript's internal character
|
|
53874
|
-
* representation (UCS-2) to Unicode code points, and back.
|
|
53875
|
-
* @see <https://mathiasbynens.be/notes/javascript-encoding>
|
|
53876
|
-
* @memberOf punycode
|
|
53877
|
-
* @type Object
|
|
53878
|
-
*/
|
|
53879
|
-
'ucs2': {
|
|
53880
|
-
'decode': ucs2decode,
|
|
53881
|
-
'encode': ucs2encode
|
|
53882
|
-
},
|
|
53883
|
-
'decode': decode,
|
|
53884
|
-
'encode': encode,
|
|
53885
|
-
'toASCII': toASCII,
|
|
53886
|
-
'toUnicode': toUnicode
|
|
53887
|
-
};
|
|
53888
|
-
|
|
53889
|
-
/**
|
|
53890
|
-
* URI.js
|
|
53891
|
-
*
|
|
53892
|
-
* @fileoverview An RFC 3986 compliant, scheme extendable URI parsing/validating/resolving library for JavaScript.
|
|
53893
|
-
* @author <a href="mailto:gary.court@gmail.com">Gary Court</a>
|
|
53894
|
-
* @see http://github.com/garycourt/uri-js
|
|
53895
|
-
*/
|
|
53896
|
-
/**
|
|
53897
|
-
* Copyright 2011 Gary Court. All rights reserved.
|
|
53898
|
-
*
|
|
53899
|
-
* Redistribution and use in source and binary forms, with or without modification, are
|
|
53900
|
-
* permitted provided that the following conditions are met:
|
|
53901
|
-
*
|
|
53902
|
-
* 1. Redistributions of source code must retain the above copyright notice, this list of
|
|
53903
|
-
* conditions and the following disclaimer.
|
|
53904
|
-
*
|
|
53905
|
-
* 2. Redistributions in binary form must reproduce the above copyright notice, this list
|
|
53906
|
-
* of conditions and the following disclaimer in the documentation and/or other materials
|
|
53907
|
-
* provided with the distribution.
|
|
53908
|
-
*
|
|
53909
|
-
* THIS SOFTWARE IS PROVIDED BY GARY COURT ``AS IS'' AND ANY EXPRESS OR IMPLIED
|
|
53910
|
-
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
53911
|
-
* FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GARY COURT OR
|
|
53912
|
-
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
53913
|
-
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
53914
|
-
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
53915
|
-
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
53916
|
-
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
|
|
53917
|
-
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
53918
|
-
*
|
|
53919
|
-
* The views and conclusions contained in the software and documentation are those of the
|
|
53920
|
-
* authors and should not be interpreted as representing official policies, either expressed
|
|
53921
|
-
* or implied, of Gary Court.
|
|
53922
|
-
*/
|
|
53923
|
-
var SCHEMES = {};
|
|
53924
|
-
function pctEncChar(chr) {
|
|
53925
|
-
var c = chr.charCodeAt(0);
|
|
53926
|
-
var e = void 0;
|
|
53927
|
-
if (c < 16) e = "%0" + c.toString(16).toUpperCase();else if (c < 128) e = "%" + c.toString(16).toUpperCase();else if (c < 2048) e = "%" + (c >> 6 | 192).toString(16).toUpperCase() + "%" + (c & 63 | 128).toString(16).toUpperCase();else e = "%" + (c >> 12 | 224).toString(16).toUpperCase() + "%" + (c >> 6 & 63 | 128).toString(16).toUpperCase() + "%" + (c & 63 | 128).toString(16).toUpperCase();
|
|
53928
|
-
return e;
|
|
53929
|
-
}
|
|
53930
|
-
function pctDecChars(str) {
|
|
53931
|
-
var newStr = "";
|
|
53932
|
-
var i = 0;
|
|
53933
|
-
var il = str.length;
|
|
53934
|
-
while (i < il) {
|
|
53935
|
-
var c = parseInt(str.substr(i + 1, 2), 16);
|
|
53936
|
-
if (c < 128) {
|
|
53937
|
-
newStr += String.fromCharCode(c);
|
|
53938
|
-
i += 3;
|
|
53939
|
-
} else if (c >= 194 && c < 224) {
|
|
53940
|
-
if (il - i >= 6) {
|
|
53941
|
-
var c2 = parseInt(str.substr(i + 4, 2), 16);
|
|
53942
|
-
newStr += String.fromCharCode((c & 31) << 6 | c2 & 63);
|
|
53943
|
-
} else {
|
|
53944
|
-
newStr += str.substr(i, 6);
|
|
53945
|
-
}
|
|
53946
|
-
i += 6;
|
|
53947
|
-
} else if (c >= 224) {
|
|
53948
|
-
if (il - i >= 9) {
|
|
53949
|
-
var _c = parseInt(str.substr(i + 4, 2), 16);
|
|
53950
|
-
var c3 = parseInt(str.substr(i + 7, 2), 16);
|
|
53951
|
-
newStr += String.fromCharCode((c & 15) << 12 | (_c & 63) << 6 | c3 & 63);
|
|
53952
|
-
} else {
|
|
53953
|
-
newStr += str.substr(i, 9);
|
|
53954
|
-
}
|
|
53955
|
-
i += 9;
|
|
53956
|
-
} else {
|
|
53957
|
-
newStr += str.substr(i, 3);
|
|
53958
|
-
i += 3;
|
|
53959
|
-
}
|
|
53960
|
-
}
|
|
53961
|
-
return newStr;
|
|
53962
|
-
}
|
|
53963
|
-
function _normalizeComponentEncoding(components, protocol) {
|
|
53964
|
-
function decodeUnreserved(str) {
|
|
53965
|
-
var decStr = pctDecChars(str);
|
|
53966
|
-
return !decStr.match(protocol.UNRESERVED) ? str : decStr;
|
|
53967
|
-
}
|
|
53968
|
-
if (components.scheme) components.scheme = String(components.scheme).replace(protocol.PCT_ENCODED, decodeUnreserved).toLowerCase().replace(protocol.NOT_SCHEME, "");
|
|
53969
|
-
if (components.userinfo !== undefined) components.userinfo = String(components.userinfo).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_USERINFO, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
|
|
53970
|
-
if (components.host !== undefined) components.host = String(components.host).replace(protocol.PCT_ENCODED, decodeUnreserved).toLowerCase().replace(protocol.NOT_HOST, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
|
|
53971
|
-
if (components.path !== undefined) components.path = String(components.path).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(components.scheme ? protocol.NOT_PATH : protocol.NOT_PATH_NOSCHEME, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
|
|
53972
|
-
if (components.query !== undefined) components.query = String(components.query).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_QUERY, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
|
|
53973
|
-
if (components.fragment !== undefined) components.fragment = String(components.fragment).replace(protocol.PCT_ENCODED, decodeUnreserved).replace(protocol.NOT_FRAGMENT, pctEncChar).replace(protocol.PCT_ENCODED, toUpperCase);
|
|
53974
|
-
return components;
|
|
53975
|
-
}
|
|
53976
|
-
|
|
53977
|
-
function _stripLeadingZeros(str) {
|
|
53978
|
-
return str.replace(/^0*(.*)/, "$1") || "0";
|
|
53979
|
-
}
|
|
53980
|
-
function _normalizeIPv4(host, protocol) {
|
|
53981
|
-
var matches = host.match(protocol.IPV4ADDRESS) || [];
|
|
53982
|
-
|
|
53983
|
-
var _matches = slicedToArray(matches, 2),
|
|
53984
|
-
address = _matches[1];
|
|
53985
|
-
|
|
53986
|
-
if (address) {
|
|
53987
|
-
return address.split(".").map(_stripLeadingZeros).join(".");
|
|
53988
|
-
} else {
|
|
53989
|
-
return host;
|
|
53990
|
-
}
|
|
53991
|
-
}
|
|
53992
|
-
function _normalizeIPv6(host, protocol) {
|
|
53993
|
-
var matches = host.match(protocol.IPV6ADDRESS) || [];
|
|
53994
|
-
|
|
53995
|
-
var _matches2 = slicedToArray(matches, 3),
|
|
53996
|
-
address = _matches2[1],
|
|
53997
|
-
zone = _matches2[2];
|
|
53998
|
-
|
|
53999
|
-
if (address) {
|
|
54000
|
-
var _address$toLowerCase$ = address.toLowerCase().split('::').reverse(),
|
|
54001
|
-
_address$toLowerCase$2 = slicedToArray(_address$toLowerCase$, 2),
|
|
54002
|
-
last = _address$toLowerCase$2[0],
|
|
54003
|
-
first = _address$toLowerCase$2[1];
|
|
54004
|
-
|
|
54005
|
-
var firstFields = first ? first.split(":").map(_stripLeadingZeros) : [];
|
|
54006
|
-
var lastFields = last.split(":").map(_stripLeadingZeros);
|
|
54007
|
-
var isLastFieldIPv4Address = protocol.IPV4ADDRESS.test(lastFields[lastFields.length - 1]);
|
|
54008
|
-
var fieldCount = isLastFieldIPv4Address ? 7 : 8;
|
|
54009
|
-
var lastFieldsStart = lastFields.length - fieldCount;
|
|
54010
|
-
var fields = Array(fieldCount);
|
|
54011
|
-
for (var x = 0; x < fieldCount; ++x) {
|
|
54012
|
-
fields[x] = firstFields[x] || lastFields[lastFieldsStart + x] || '';
|
|
54013
|
-
}
|
|
54014
|
-
if (isLastFieldIPv4Address) {
|
|
54015
|
-
fields[fieldCount - 1] = _normalizeIPv4(fields[fieldCount - 1], protocol);
|
|
54016
|
-
}
|
|
54017
|
-
var allZeroFields = fields.reduce(function (acc, field, index) {
|
|
54018
|
-
if (!field || field === "0") {
|
|
54019
|
-
var lastLongest = acc[acc.length - 1];
|
|
54020
|
-
if (lastLongest && lastLongest.index + lastLongest.length === index) {
|
|
54021
|
-
lastLongest.length++;
|
|
54022
|
-
} else {
|
|
54023
|
-
acc.push({ index: index, length: 1 });
|
|
54024
|
-
}
|
|
54025
|
-
}
|
|
54026
|
-
return acc;
|
|
54027
|
-
}, []);
|
|
54028
|
-
var longestZeroFields = allZeroFields.sort(function (a, b) {
|
|
54029
|
-
return b.length - a.length;
|
|
54030
|
-
})[0];
|
|
54031
|
-
var newHost = void 0;
|
|
54032
|
-
if (longestZeroFields && longestZeroFields.length > 1) {
|
|
54033
|
-
var newFirst = fields.slice(0, longestZeroFields.index);
|
|
54034
|
-
var newLast = fields.slice(longestZeroFields.index + longestZeroFields.length);
|
|
54035
|
-
newHost = newFirst.join(":") + "::" + newLast.join(":");
|
|
54036
|
-
} else {
|
|
54037
|
-
newHost = fields.join(":");
|
|
54038
|
-
}
|
|
54039
|
-
if (zone) {
|
|
54040
|
-
newHost += "%" + zone;
|
|
54041
|
-
}
|
|
54042
|
-
return newHost;
|
|
54043
|
-
} else {
|
|
54044
|
-
return host;
|
|
54045
|
-
}
|
|
54046
|
-
}
|
|
54047
|
-
var URI_PARSE = /^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i;
|
|
54048
|
-
var NO_MATCH_IS_UNDEFINED = "".match(/(){0}/)[1] === undefined;
|
|
54049
|
-
function parse(uriString) {
|
|
54050
|
-
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
54051
|
-
|
|
54052
|
-
var components = {};
|
|
54053
|
-
var protocol = options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL;
|
|
54054
|
-
if (options.reference === "suffix") uriString = (options.scheme ? options.scheme + ":" : "") + "//" + uriString;
|
|
54055
|
-
var matches = uriString.match(URI_PARSE);
|
|
54056
|
-
if (matches) {
|
|
54057
|
-
if (NO_MATCH_IS_UNDEFINED) {
|
|
54058
|
-
//store each component
|
|
54059
|
-
components.scheme = matches[1];
|
|
54060
|
-
components.userinfo = matches[3];
|
|
54061
|
-
components.host = matches[4];
|
|
54062
|
-
components.port = parseInt(matches[5], 10);
|
|
54063
|
-
components.path = matches[6] || "";
|
|
54064
|
-
components.query = matches[7];
|
|
54065
|
-
components.fragment = matches[8];
|
|
54066
|
-
//fix port number
|
|
54067
|
-
if (isNaN(components.port)) {
|
|
54068
|
-
components.port = matches[5];
|
|
54069
|
-
}
|
|
54070
|
-
} else {
|
|
54071
|
-
//IE FIX for improper RegExp matching
|
|
54072
|
-
//store each component
|
|
54073
|
-
components.scheme = matches[1] || undefined;
|
|
54074
|
-
components.userinfo = uriString.indexOf("@") !== -1 ? matches[3] : undefined;
|
|
54075
|
-
components.host = uriString.indexOf("//") !== -1 ? matches[4] : undefined;
|
|
54076
|
-
components.port = parseInt(matches[5], 10);
|
|
54077
|
-
components.path = matches[6] || "";
|
|
54078
|
-
components.query = uriString.indexOf("?") !== -1 ? matches[7] : undefined;
|
|
54079
|
-
components.fragment = uriString.indexOf("#") !== -1 ? matches[8] : undefined;
|
|
54080
|
-
//fix port number
|
|
54081
|
-
if (isNaN(components.port)) {
|
|
54082
|
-
components.port = uriString.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/) ? matches[4] : undefined;
|
|
54083
|
-
}
|
|
54084
|
-
}
|
|
54085
|
-
if (components.host) {
|
|
54086
|
-
//normalize IP hosts
|
|
54087
|
-
components.host = _normalizeIPv6(_normalizeIPv4(components.host, protocol), protocol);
|
|
54088
|
-
}
|
|
54089
|
-
//determine reference type
|
|
54090
|
-
if (components.scheme === undefined && components.userinfo === undefined && components.host === undefined && components.port === undefined && !components.path && components.query === undefined) {
|
|
54091
|
-
components.reference = "same-document";
|
|
54092
|
-
} else if (components.scheme === undefined) {
|
|
54093
|
-
components.reference = "relative";
|
|
54094
|
-
} else if (components.fragment === undefined) {
|
|
54095
|
-
components.reference = "absolute";
|
|
54096
|
-
} else {
|
|
54097
|
-
components.reference = "uri";
|
|
54098
|
-
}
|
|
54099
|
-
//check for reference errors
|
|
54100
|
-
if (options.reference && options.reference !== "suffix" && options.reference !== components.reference) {
|
|
54101
|
-
components.error = components.error || "URI is not a " + options.reference + " reference.";
|
|
54102
|
-
}
|
|
54103
|
-
//find scheme handler
|
|
54104
|
-
var schemeHandler = SCHEMES[(options.scheme || components.scheme || "").toLowerCase()];
|
|
54105
|
-
//check if scheme can't handle IRIs
|
|
54106
|
-
if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {
|
|
54107
|
-
//if host component is a domain name
|
|
54108
|
-
if (components.host && (options.domainHost || schemeHandler && schemeHandler.domainHost)) {
|
|
54109
|
-
//convert Unicode IDN -> ASCII IDN
|
|
54110
|
-
try {
|
|
54111
|
-
components.host = punycode.toASCII(components.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase());
|
|
54112
|
-
} catch (e) {
|
|
54113
|
-
components.error = components.error || "Host's domain name can not be converted to ASCII via punycode: " + e;
|
|
54114
|
-
}
|
|
54115
|
-
}
|
|
54116
|
-
//convert IRI -> URI
|
|
54117
|
-
_normalizeComponentEncoding(components, URI_PROTOCOL);
|
|
54118
|
-
} else {
|
|
54119
|
-
//normalize encodings
|
|
54120
|
-
_normalizeComponentEncoding(components, protocol);
|
|
54121
|
-
}
|
|
54122
|
-
//perform scheme specific parsing
|
|
54123
|
-
if (schemeHandler && schemeHandler.parse) {
|
|
54124
|
-
schemeHandler.parse(components, options);
|
|
54125
|
-
}
|
|
54126
|
-
} else {
|
|
54127
|
-
components.error = components.error || "URI can not be parsed.";
|
|
54128
|
-
}
|
|
54129
|
-
return components;
|
|
54130
|
-
}
|
|
54131
|
-
|
|
54132
|
-
function _recomposeAuthority(components, options) {
|
|
54133
|
-
var protocol = options.iri !== false ? IRI_PROTOCOL : URI_PROTOCOL;
|
|
54134
|
-
var uriTokens = [];
|
|
54135
|
-
if (components.userinfo !== undefined) {
|
|
54136
|
-
uriTokens.push(components.userinfo);
|
|
54137
|
-
uriTokens.push("@");
|
|
54138
|
-
}
|
|
54139
|
-
if (components.host !== undefined) {
|
|
54140
|
-
//normalize IP hosts, add brackets and escape zone separator for IPv6
|
|
54141
|
-
uriTokens.push(_normalizeIPv6(_normalizeIPv4(String(components.host), protocol), protocol).replace(protocol.IPV6ADDRESS, function (_, $1, $2) {
|
|
54142
|
-
return "[" + $1 + ($2 ? "%25" + $2 : "") + "]";
|
|
54143
|
-
}));
|
|
54144
|
-
}
|
|
54145
|
-
if (typeof components.port === "number" || typeof components.port === "string") {
|
|
54146
|
-
uriTokens.push(":");
|
|
54147
|
-
uriTokens.push(String(components.port));
|
|
54148
|
-
}
|
|
54149
|
-
return uriTokens.length ? uriTokens.join("") : undefined;
|
|
54150
|
-
}
|
|
54151
|
-
|
|
54152
|
-
var RDS1 = /^\.\.?\//;
|
|
54153
|
-
var RDS2 = /^\/\.(\/|$)/;
|
|
54154
|
-
var RDS3 = /^\/\.\.(\/|$)/;
|
|
54155
|
-
var RDS5 = /^\/?(?:.|\n)*?(?=\/|$)/;
|
|
54156
|
-
function removeDotSegments(input) {
|
|
54157
|
-
var output = [];
|
|
54158
|
-
while (input.length) {
|
|
54159
|
-
if (input.match(RDS1)) {
|
|
54160
|
-
input = input.replace(RDS1, "");
|
|
54161
|
-
} else if (input.match(RDS2)) {
|
|
54162
|
-
input = input.replace(RDS2, "/");
|
|
54163
|
-
} else if (input.match(RDS3)) {
|
|
54164
|
-
input = input.replace(RDS3, "/");
|
|
54165
|
-
output.pop();
|
|
54166
|
-
} else if (input === "." || input === "..") {
|
|
54167
|
-
input = "";
|
|
54168
|
-
} else {
|
|
54169
|
-
var im = input.match(RDS5);
|
|
54170
|
-
if (im) {
|
|
54171
|
-
var s = im[0];
|
|
54172
|
-
input = input.slice(s.length);
|
|
54173
|
-
output.push(s);
|
|
54174
|
-
} else {
|
|
54175
|
-
throw new Error("Unexpected dot segment condition");
|
|
54176
|
-
}
|
|
54177
|
-
}
|
|
54178
|
-
}
|
|
54179
|
-
return output.join("");
|
|
54180
|
-
}
|
|
54181
|
-
|
|
54182
|
-
function serialize(components) {
|
|
54183
|
-
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
54184
|
-
|
|
54185
|
-
var protocol = options.iri ? IRI_PROTOCOL : URI_PROTOCOL;
|
|
54186
|
-
var uriTokens = [];
|
|
54187
|
-
//find scheme handler
|
|
54188
|
-
var schemeHandler = SCHEMES[(options.scheme || components.scheme || "").toLowerCase()];
|
|
54189
|
-
//perform scheme specific serialization
|
|
54190
|
-
if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(components, options);
|
|
54191
|
-
if (components.host) {
|
|
54192
|
-
//if host component is an IPv6 address
|
|
54193
|
-
if (protocol.IPV6ADDRESS.test(components.host)) {}
|
|
54194
|
-
//TODO: normalize IPv6 address as per RFC 5952
|
|
54195
|
-
|
|
54196
|
-
//if host component is a domain name
|
|
54197
|
-
else if (options.domainHost || schemeHandler && schemeHandler.domainHost) {
|
|
54198
|
-
//convert IDN via punycode
|
|
54199
|
-
try {
|
|
54200
|
-
components.host = !options.iri ? punycode.toASCII(components.host.replace(protocol.PCT_ENCODED, pctDecChars).toLowerCase()) : punycode.toUnicode(components.host);
|
|
54201
|
-
} catch (e) {
|
|
54202
|
-
components.error = components.error || "Host's domain name can not be converted to " + (!options.iri ? "ASCII" : "Unicode") + " via punycode: " + e;
|
|
54203
|
-
}
|
|
54204
|
-
}
|
|
54205
|
-
}
|
|
54206
|
-
//normalize encoding
|
|
54207
|
-
_normalizeComponentEncoding(components, protocol);
|
|
54208
|
-
if (options.reference !== "suffix" && components.scheme) {
|
|
54209
|
-
uriTokens.push(components.scheme);
|
|
54210
|
-
uriTokens.push(":");
|
|
54211
|
-
}
|
|
54212
|
-
var authority = _recomposeAuthority(components, options);
|
|
54213
|
-
if (authority !== undefined) {
|
|
54214
|
-
if (options.reference !== "suffix") {
|
|
54215
|
-
uriTokens.push("//");
|
|
54216
|
-
}
|
|
54217
|
-
uriTokens.push(authority);
|
|
54218
|
-
if (components.path && components.path.charAt(0) !== "/") {
|
|
54219
|
-
uriTokens.push("/");
|
|
54220
|
-
}
|
|
54221
|
-
}
|
|
54222
|
-
if (components.path !== undefined) {
|
|
54223
|
-
var s = components.path;
|
|
54224
|
-
if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {
|
|
54225
|
-
s = removeDotSegments(s);
|
|
54226
|
-
}
|
|
54227
|
-
if (authority === undefined) {
|
|
54228
|
-
s = s.replace(/^\/\//, "/%2F"); //don't allow the path to start with "//"
|
|
54229
|
-
}
|
|
54230
|
-
uriTokens.push(s);
|
|
54231
|
-
}
|
|
54232
|
-
if (components.query !== undefined) {
|
|
54233
|
-
uriTokens.push("?");
|
|
54234
|
-
uriTokens.push(components.query);
|
|
54235
|
-
}
|
|
54236
|
-
if (components.fragment !== undefined) {
|
|
54237
|
-
uriTokens.push("#");
|
|
54238
|
-
uriTokens.push(components.fragment);
|
|
54239
|
-
}
|
|
54240
|
-
return uriTokens.join(""); //merge tokens into a string
|
|
54241
|
-
}
|
|
54242
|
-
|
|
54243
|
-
function resolveComponents(base, relative) {
|
|
54244
|
-
var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
54245
|
-
var skipNormalization = arguments[3];
|
|
54246
|
-
|
|
54247
|
-
var target = {};
|
|
54248
|
-
if (!skipNormalization) {
|
|
54249
|
-
base = parse(serialize(base, options), options); //normalize base components
|
|
54250
|
-
relative = parse(serialize(relative, options), options); //normalize relative components
|
|
54251
|
-
}
|
|
54252
|
-
options = options || {};
|
|
54253
|
-
if (!options.tolerant && relative.scheme) {
|
|
54254
|
-
target.scheme = relative.scheme;
|
|
54255
|
-
//target.authority = relative.authority;
|
|
54256
|
-
target.userinfo = relative.userinfo;
|
|
54257
|
-
target.host = relative.host;
|
|
54258
|
-
target.port = relative.port;
|
|
54259
|
-
target.path = removeDotSegments(relative.path || "");
|
|
54260
|
-
target.query = relative.query;
|
|
54261
|
-
} else {
|
|
54262
|
-
if (relative.userinfo !== undefined || relative.host !== undefined || relative.port !== undefined) {
|
|
54263
|
-
//target.authority = relative.authority;
|
|
54264
|
-
target.userinfo = relative.userinfo;
|
|
54265
|
-
target.host = relative.host;
|
|
54266
|
-
target.port = relative.port;
|
|
54267
|
-
target.path = removeDotSegments(relative.path || "");
|
|
54268
|
-
target.query = relative.query;
|
|
54269
|
-
} else {
|
|
54270
|
-
if (!relative.path) {
|
|
54271
|
-
target.path = base.path;
|
|
54272
|
-
if (relative.query !== undefined) {
|
|
54273
|
-
target.query = relative.query;
|
|
54274
|
-
} else {
|
|
54275
|
-
target.query = base.query;
|
|
54276
|
-
}
|
|
54277
|
-
} else {
|
|
54278
|
-
if (relative.path.charAt(0) === "/") {
|
|
54279
|
-
target.path = removeDotSegments(relative.path);
|
|
54280
|
-
} else {
|
|
54281
|
-
if ((base.userinfo !== undefined || base.host !== undefined || base.port !== undefined) && !base.path) {
|
|
54282
|
-
target.path = "/" + relative.path;
|
|
54283
|
-
} else if (!base.path) {
|
|
54284
|
-
target.path = relative.path;
|
|
54285
|
-
} else {
|
|
54286
|
-
target.path = base.path.slice(0, base.path.lastIndexOf("/") + 1) + relative.path;
|
|
54287
|
-
}
|
|
54288
|
-
target.path = removeDotSegments(target.path);
|
|
54289
|
-
}
|
|
54290
|
-
target.query = relative.query;
|
|
54291
|
-
}
|
|
54292
|
-
//target.authority = base.authority;
|
|
54293
|
-
target.userinfo = base.userinfo;
|
|
54294
|
-
target.host = base.host;
|
|
54295
|
-
target.port = base.port;
|
|
54296
|
-
}
|
|
54297
|
-
target.scheme = base.scheme;
|
|
54298
|
-
}
|
|
54299
|
-
target.fragment = relative.fragment;
|
|
54300
|
-
return target;
|
|
54301
|
-
}
|
|
54302
|
-
|
|
54303
|
-
function resolve(baseURI, relativeURI, options) {
|
|
54304
|
-
var schemelessOptions = assign({ scheme: 'null' }, options);
|
|
54305
|
-
return serialize(resolveComponents(parse(baseURI, schemelessOptions), parse(relativeURI, schemelessOptions), schemelessOptions, true), schemelessOptions);
|
|
54306
|
-
}
|
|
54307
|
-
|
|
54308
|
-
function normalize(uri, options) {
|
|
54309
|
-
if (typeof uri === "string") {
|
|
54310
|
-
uri = serialize(parse(uri, options), options);
|
|
54311
|
-
} else if (typeOf(uri) === "object") {
|
|
54312
|
-
uri = parse(serialize(uri, options), options);
|
|
54313
|
-
}
|
|
54314
|
-
return uri;
|
|
54315
|
-
}
|
|
54316
|
-
|
|
54317
|
-
function equal(uriA, uriB, options) {
|
|
54318
|
-
if (typeof uriA === "string") {
|
|
54319
|
-
uriA = serialize(parse(uriA, options), options);
|
|
54320
|
-
} else if (typeOf(uriA) === "object") {
|
|
54321
|
-
uriA = serialize(uriA, options);
|
|
54322
|
-
}
|
|
54323
|
-
if (typeof uriB === "string") {
|
|
54324
|
-
uriB = serialize(parse(uriB, options), options);
|
|
54325
|
-
} else if (typeOf(uriB) === "object") {
|
|
54326
|
-
uriB = serialize(uriB, options);
|
|
54327
|
-
}
|
|
54328
|
-
return uriA === uriB;
|
|
54329
|
-
}
|
|
54330
|
-
|
|
54331
|
-
function escapeComponent(str, options) {
|
|
54332
|
-
return str && str.toString().replace(!options || !options.iri ? URI_PROTOCOL.ESCAPE : IRI_PROTOCOL.ESCAPE, pctEncChar);
|
|
54333
|
-
}
|
|
54334
|
-
|
|
54335
|
-
function unescapeComponent(str, options) {
|
|
54336
|
-
return str && str.toString().replace(!options || !options.iri ? URI_PROTOCOL.PCT_ENCODED : IRI_PROTOCOL.PCT_ENCODED, pctDecChars);
|
|
54337
|
-
}
|
|
54338
|
-
|
|
54339
|
-
var handler = {
|
|
54340
|
-
scheme: "http",
|
|
54341
|
-
domainHost: true,
|
|
54342
|
-
parse: function parse(components, options) {
|
|
54343
|
-
//report missing host
|
|
54344
|
-
if (!components.host) {
|
|
54345
|
-
components.error = components.error || "HTTP URIs must have a host.";
|
|
54346
|
-
}
|
|
54347
|
-
return components;
|
|
54348
|
-
},
|
|
54349
|
-
serialize: function serialize(components, options) {
|
|
54350
|
-
var secure = String(components.scheme).toLowerCase() === "https";
|
|
54351
|
-
//normalize the default port
|
|
54352
|
-
if (components.port === (secure ? 443 : 80) || components.port === "") {
|
|
54353
|
-
components.port = undefined;
|
|
54354
|
-
}
|
|
54355
|
-
//normalize the empty path
|
|
54356
|
-
if (!components.path) {
|
|
54357
|
-
components.path = "/";
|
|
54358
|
-
}
|
|
54359
|
-
//NOTE: We do not parse query strings for HTTP URIs
|
|
54360
|
-
//as WWW Form Url Encoded query strings are part of the HTML4+ spec,
|
|
54361
|
-
//and not the HTTP spec.
|
|
54362
|
-
return components;
|
|
54363
|
-
}
|
|
54364
|
-
};
|
|
54365
|
-
|
|
54366
|
-
var handler$1 = {
|
|
54367
|
-
scheme: "https",
|
|
54368
|
-
domainHost: handler.domainHost,
|
|
54369
|
-
parse: handler.parse,
|
|
54370
|
-
serialize: handler.serialize
|
|
54371
|
-
};
|
|
54372
|
-
|
|
54373
|
-
function isSecure(wsComponents) {
|
|
54374
|
-
return typeof wsComponents.secure === 'boolean' ? wsComponents.secure : String(wsComponents.scheme).toLowerCase() === "wss";
|
|
54375
|
-
}
|
|
54376
|
-
//RFC 6455
|
|
54377
|
-
var handler$2 = {
|
|
54378
|
-
scheme: "ws",
|
|
54379
|
-
domainHost: true,
|
|
54380
|
-
parse: function parse(components, options) {
|
|
54381
|
-
var wsComponents = components;
|
|
54382
|
-
//indicate if the secure flag is set
|
|
54383
|
-
wsComponents.secure = isSecure(wsComponents);
|
|
54384
|
-
//construct resouce name
|
|
54385
|
-
wsComponents.resourceName = (wsComponents.path || '/') + (wsComponents.query ? '?' + wsComponents.query : '');
|
|
54386
|
-
wsComponents.path = undefined;
|
|
54387
|
-
wsComponents.query = undefined;
|
|
54388
|
-
return wsComponents;
|
|
54389
|
-
},
|
|
54390
|
-
serialize: function serialize(wsComponents, options) {
|
|
54391
|
-
//normalize the default port
|
|
54392
|
-
if (wsComponents.port === (isSecure(wsComponents) ? 443 : 80) || wsComponents.port === "") {
|
|
54393
|
-
wsComponents.port = undefined;
|
|
54394
|
-
}
|
|
54395
|
-
//ensure scheme matches secure flag
|
|
54396
|
-
if (typeof wsComponents.secure === 'boolean') {
|
|
54397
|
-
wsComponents.scheme = wsComponents.secure ? 'wss' : 'ws';
|
|
54398
|
-
wsComponents.secure = undefined;
|
|
54399
|
-
}
|
|
54400
|
-
//reconstruct path from resource name
|
|
54401
|
-
if (wsComponents.resourceName) {
|
|
54402
|
-
var _wsComponents$resourc = wsComponents.resourceName.split('?'),
|
|
54403
|
-
_wsComponents$resourc2 = slicedToArray(_wsComponents$resourc, 2),
|
|
54404
|
-
path = _wsComponents$resourc2[0],
|
|
54405
|
-
query = _wsComponents$resourc2[1];
|
|
54406
|
-
|
|
54407
|
-
wsComponents.path = path && path !== '/' ? path : undefined;
|
|
54408
|
-
wsComponents.query = query;
|
|
54409
|
-
wsComponents.resourceName = undefined;
|
|
54410
|
-
}
|
|
54411
|
-
//forbid fragment component
|
|
54412
|
-
wsComponents.fragment = undefined;
|
|
54413
|
-
return wsComponents;
|
|
54414
|
-
}
|
|
54415
|
-
};
|
|
54416
|
-
|
|
54417
|
-
var handler$3 = {
|
|
54418
|
-
scheme: "wss",
|
|
54419
|
-
domainHost: handler$2.domainHost,
|
|
54420
|
-
parse: handler$2.parse,
|
|
54421
|
-
serialize: handler$2.serialize
|
|
54422
|
-
};
|
|
54423
|
-
|
|
54424
|
-
var O = {};
|
|
54425
|
-
var isIRI = true;
|
|
54426
|
-
//RFC 3986
|
|
54427
|
-
var UNRESERVED$$ = "[A-Za-z0-9\\-\\.\\_\\~" + (isIRI ? "\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF" : "") + "]";
|
|
54428
|
-
var HEXDIG$$ = "[0-9A-Fa-f]"; //case-insensitive
|
|
54429
|
-
var PCT_ENCODED$ = subexp(subexp("%[EFef]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%[89A-Fa-f]" + HEXDIG$$ + "%" + HEXDIG$$ + HEXDIG$$) + "|" + subexp("%" + HEXDIG$$ + HEXDIG$$)); //expanded
|
|
54430
|
-
//RFC 5322, except these symbols as per RFC 6068: @ : / ? # [ ] & ; =
|
|
54431
|
-
//const ATEXT$$ = "[A-Za-z0-9\\!\\#\\$\\%\\&\\'\\*\\+\\-\\/\\=\\?\\^\\_\\`\\{\\|\\}\\~]";
|
|
54432
|
-
//const WSP$$ = "[\\x20\\x09]";
|
|
54433
|
-
//const OBS_QTEXT$$ = "[\\x01-\\x08\\x0B\\x0C\\x0E-\\x1F\\x7F]"; //(%d1-8 / %d11-12 / %d14-31 / %d127)
|
|
54434
|
-
//const QTEXT$$ = merge("[\\x21\\x23-\\x5B\\x5D-\\x7E]", OBS_QTEXT$$); //%d33 / %d35-91 / %d93-126 / obs-qtext
|
|
54435
|
-
//const VCHAR$$ = "[\\x21-\\x7E]";
|
|
54436
|
-
//const WSP$$ = "[\\x20\\x09]";
|
|
54437
|
-
//const OBS_QP$ = subexp("\\\\" + merge("[\\x00\\x0D\\x0A]", OBS_QTEXT$$)); //%d0 / CR / LF / obs-qtext
|
|
54438
|
-
//const FWS$ = subexp(subexp(WSP$$ + "*" + "\\x0D\\x0A") + "?" + WSP$$ + "+");
|
|
54439
|
-
//const QUOTED_PAIR$ = subexp(subexp("\\\\" + subexp(VCHAR$$ + "|" + WSP$$)) + "|" + OBS_QP$);
|
|
54440
|
-
//const QUOTED_STRING$ = subexp('\\"' + subexp(FWS$ + "?" + QCONTENT$) + "*" + FWS$ + "?" + '\\"');
|
|
54441
|
-
var ATEXT$$ = "[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]";
|
|
54442
|
-
var QTEXT$$ = "[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]";
|
|
54443
|
-
var VCHAR$$ = merge(QTEXT$$, "[\\\"\\\\]");
|
|
54444
|
-
var SOME_DELIMS$$ = "[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]";
|
|
54445
|
-
var UNRESERVED = new RegExp(UNRESERVED$$, "g");
|
|
54446
|
-
var PCT_ENCODED = new RegExp(PCT_ENCODED$, "g");
|
|
54447
|
-
var NOT_LOCAL_PART = new RegExp(merge("[^]", ATEXT$$, "[\\.]", '[\\"]', VCHAR$$), "g");
|
|
54448
|
-
var NOT_HFNAME = new RegExp(merge("[^]", UNRESERVED$$, SOME_DELIMS$$), "g");
|
|
54449
|
-
var NOT_HFVALUE = NOT_HFNAME;
|
|
54450
|
-
function decodeUnreserved(str) {
|
|
54451
|
-
var decStr = pctDecChars(str);
|
|
54452
|
-
return !decStr.match(UNRESERVED) ? str : decStr;
|
|
54453
|
-
}
|
|
54454
|
-
var handler$4 = {
|
|
54455
|
-
scheme: "mailto",
|
|
54456
|
-
parse: function parse$$1(components, options) {
|
|
54457
|
-
var mailtoComponents = components;
|
|
54458
|
-
var to = mailtoComponents.to = mailtoComponents.path ? mailtoComponents.path.split(",") : [];
|
|
54459
|
-
mailtoComponents.path = undefined;
|
|
54460
|
-
if (mailtoComponents.query) {
|
|
54461
|
-
var unknownHeaders = false;
|
|
54462
|
-
var headers = {};
|
|
54463
|
-
var hfields = mailtoComponents.query.split("&");
|
|
54464
|
-
for (var x = 0, xl = hfields.length; x < xl; ++x) {
|
|
54465
|
-
var hfield = hfields[x].split("=");
|
|
54466
|
-
switch (hfield[0]) {
|
|
54467
|
-
case "to":
|
|
54468
|
-
var toAddrs = hfield[1].split(",");
|
|
54469
|
-
for (var _x = 0, _xl = toAddrs.length; _x < _xl; ++_x) {
|
|
54470
|
-
to.push(toAddrs[_x]);
|
|
54471
|
-
}
|
|
54472
|
-
break;
|
|
54473
|
-
case "subject":
|
|
54474
|
-
mailtoComponents.subject = unescapeComponent(hfield[1], options);
|
|
54475
|
-
break;
|
|
54476
|
-
case "body":
|
|
54477
|
-
mailtoComponents.body = unescapeComponent(hfield[1], options);
|
|
54478
|
-
break;
|
|
54479
|
-
default:
|
|
54480
|
-
unknownHeaders = true;
|
|
54481
|
-
headers[unescapeComponent(hfield[0], options)] = unescapeComponent(hfield[1], options);
|
|
54482
|
-
break;
|
|
54483
|
-
}
|
|
54484
|
-
}
|
|
54485
|
-
if (unknownHeaders) mailtoComponents.headers = headers;
|
|
54486
|
-
}
|
|
54487
|
-
mailtoComponents.query = undefined;
|
|
54488
|
-
for (var _x2 = 0, _xl2 = to.length; _x2 < _xl2; ++_x2) {
|
|
54489
|
-
var addr = to[_x2].split("@");
|
|
54490
|
-
addr[0] = unescapeComponent(addr[0]);
|
|
54491
|
-
if (!options.unicodeSupport) {
|
|
54492
|
-
//convert Unicode IDN -> ASCII IDN
|
|
54493
|
-
try {
|
|
54494
|
-
addr[1] = punycode.toASCII(unescapeComponent(addr[1], options).toLowerCase());
|
|
54495
|
-
} catch (e) {
|
|
54496
|
-
mailtoComponents.error = mailtoComponents.error || "Email address's domain name can not be converted to ASCII via punycode: " + e;
|
|
54497
|
-
}
|
|
54498
|
-
} else {
|
|
54499
|
-
addr[1] = unescapeComponent(addr[1], options).toLowerCase();
|
|
54500
|
-
}
|
|
54501
|
-
to[_x2] = addr.join("@");
|
|
54502
|
-
}
|
|
54503
|
-
return mailtoComponents;
|
|
54504
|
-
},
|
|
54505
|
-
serialize: function serialize$$1(mailtoComponents, options) {
|
|
54506
|
-
var components = mailtoComponents;
|
|
54507
|
-
var to = toArray(mailtoComponents.to);
|
|
54508
|
-
if (to) {
|
|
54509
|
-
for (var x = 0, xl = to.length; x < xl; ++x) {
|
|
54510
|
-
var toAddr = String(to[x]);
|
|
54511
|
-
var atIdx = toAddr.lastIndexOf("@");
|
|
54512
|
-
var localPart = toAddr.slice(0, atIdx).replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_LOCAL_PART, pctEncChar);
|
|
54513
|
-
var domain = toAddr.slice(atIdx + 1);
|
|
54514
|
-
//convert IDN via punycode
|
|
54515
|
-
try {
|
|
54516
|
-
domain = !options.iri ? punycode.toASCII(unescapeComponent(domain, options).toLowerCase()) : punycode.toUnicode(domain);
|
|
54517
|
-
} catch (e) {
|
|
54518
|
-
components.error = components.error || "Email address's domain name can not be converted to " + (!options.iri ? "ASCII" : "Unicode") + " via punycode: " + e;
|
|
54519
|
-
}
|
|
54520
|
-
to[x] = localPart + "@" + domain;
|
|
54521
|
-
}
|
|
54522
|
-
components.path = to.join(",");
|
|
54523
|
-
}
|
|
54524
|
-
var headers = mailtoComponents.headers = mailtoComponents.headers || {};
|
|
54525
|
-
if (mailtoComponents.subject) headers["subject"] = mailtoComponents.subject;
|
|
54526
|
-
if (mailtoComponents.body) headers["body"] = mailtoComponents.body;
|
|
54527
|
-
var fields = [];
|
|
54528
|
-
for (var name in headers) {
|
|
54529
|
-
if (headers[name] !== O[name]) {
|
|
54530
|
-
fields.push(name.replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFNAME, pctEncChar) + "=" + headers[name].replace(PCT_ENCODED, decodeUnreserved).replace(PCT_ENCODED, toUpperCase).replace(NOT_HFVALUE, pctEncChar));
|
|
54531
|
-
}
|
|
54532
|
-
}
|
|
54533
|
-
if (fields.length) {
|
|
54534
|
-
components.query = fields.join("&");
|
|
54535
|
-
}
|
|
54536
|
-
return components;
|
|
54537
|
-
}
|
|
54538
|
-
};
|
|
54539
|
-
|
|
54540
|
-
var URN_PARSE = /^([^\:]+)\:(.*)/;
|
|
54541
|
-
//RFC 2141
|
|
54542
|
-
var handler$5 = {
|
|
54543
|
-
scheme: "urn",
|
|
54544
|
-
parse: function parse$$1(components, options) {
|
|
54545
|
-
var matches = components.path && components.path.match(URN_PARSE);
|
|
54546
|
-
var urnComponents = components;
|
|
54547
|
-
if (matches) {
|
|
54548
|
-
var scheme = options.scheme || urnComponents.scheme || "urn";
|
|
54549
|
-
var nid = matches[1].toLowerCase();
|
|
54550
|
-
var nss = matches[2];
|
|
54551
|
-
var urnScheme = scheme + ":" + (options.nid || nid);
|
|
54552
|
-
var schemeHandler = SCHEMES[urnScheme];
|
|
54553
|
-
urnComponents.nid = nid;
|
|
54554
|
-
urnComponents.nss = nss;
|
|
54555
|
-
urnComponents.path = undefined;
|
|
54556
|
-
if (schemeHandler) {
|
|
54557
|
-
urnComponents = schemeHandler.parse(urnComponents, options);
|
|
54558
|
-
}
|
|
54559
|
-
} else {
|
|
54560
|
-
urnComponents.error = urnComponents.error || "URN can not be parsed.";
|
|
54561
|
-
}
|
|
54562
|
-
return urnComponents;
|
|
54563
|
-
},
|
|
54564
|
-
serialize: function serialize$$1(urnComponents, options) {
|
|
54565
|
-
var scheme = options.scheme || urnComponents.scheme || "urn";
|
|
54566
|
-
var nid = urnComponents.nid;
|
|
54567
|
-
var urnScheme = scheme + ":" + (options.nid || nid);
|
|
54568
|
-
var schemeHandler = SCHEMES[urnScheme];
|
|
54569
|
-
if (schemeHandler) {
|
|
54570
|
-
urnComponents = schemeHandler.serialize(urnComponents, options);
|
|
54571
|
-
}
|
|
54572
|
-
var uriComponents = urnComponents;
|
|
54573
|
-
var nss = urnComponents.nss;
|
|
54574
|
-
uriComponents.path = (nid || options.nid) + ":" + nss;
|
|
54575
|
-
return uriComponents;
|
|
54576
|
-
}
|
|
54577
|
-
};
|
|
54578
|
-
|
|
54579
|
-
var UUID = /^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/;
|
|
54580
|
-
//RFC 4122
|
|
54581
|
-
var handler$6 = {
|
|
54582
|
-
scheme: "urn:uuid",
|
|
54583
|
-
parse: function parse(urnComponents, options) {
|
|
54584
|
-
var uuidComponents = urnComponents;
|
|
54585
|
-
uuidComponents.uuid = uuidComponents.nss;
|
|
54586
|
-
uuidComponents.nss = undefined;
|
|
54587
|
-
if (!options.tolerant && (!uuidComponents.uuid || !uuidComponents.uuid.match(UUID))) {
|
|
54588
|
-
uuidComponents.error = uuidComponents.error || "UUID is not valid.";
|
|
54589
|
-
}
|
|
54590
|
-
return uuidComponents;
|
|
54591
|
-
},
|
|
54592
|
-
serialize: function serialize(uuidComponents, options) {
|
|
54593
|
-
var urnComponents = uuidComponents;
|
|
54594
|
-
//normalize UUID
|
|
54595
|
-
urnComponents.nss = (uuidComponents.uuid || "").toLowerCase();
|
|
54596
|
-
return urnComponents;
|
|
54597
|
-
}
|
|
54598
|
-
};
|
|
54599
|
-
|
|
54600
|
-
SCHEMES[handler.scheme] = handler;
|
|
54601
|
-
SCHEMES[handler$1.scheme] = handler$1;
|
|
54602
|
-
SCHEMES[handler$2.scheme] = handler$2;
|
|
54603
|
-
SCHEMES[handler$3.scheme] = handler$3;
|
|
54604
|
-
SCHEMES[handler$4.scheme] = handler$4;
|
|
54605
|
-
SCHEMES[handler$5.scheme] = handler$5;
|
|
54606
|
-
SCHEMES[handler$6.scheme] = handler$6;
|
|
54607
|
-
|
|
54608
|
-
exports.SCHEMES = SCHEMES;
|
|
54609
|
-
exports.pctEncChar = pctEncChar;
|
|
54610
|
-
exports.pctDecChars = pctDecChars;
|
|
54611
|
-
exports.parse = parse;
|
|
54612
|
-
exports.removeDotSegments = removeDotSegments;
|
|
54613
|
-
exports.serialize = serialize;
|
|
54614
|
-
exports.resolveComponents = resolveComponents;
|
|
54615
|
-
exports.resolve = resolve;
|
|
54616
|
-
exports.normalize = normalize;
|
|
54617
|
-
exports.equal = equal;
|
|
54618
|
-
exports.escapeComponent = escapeComponent;
|
|
54619
|
-
exports.unescapeComponent = unescapeComponent;
|
|
54620
|
-
|
|
54621
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
54622
|
-
|
|
54623
|
-
})));
|
|
54624
|
-
//# sourceMappingURL=uri.all.js.map
|
|
54625
|
-
|
|
54626
|
-
|
|
54627
53189
|
/***/ },
|
|
54628
53190
|
|
|
54629
53191
|
/***/ 189318
|
|
@@ -59407,9 +57969,9 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
59407
57969
|
exports.JsonSchema = void 0;
|
|
59408
57970
|
const os = __importStar(__webpack_require__(/*! node:os */ 848161));
|
|
59409
57971
|
const path = __importStar(__webpack_require__(/*! node:path */ 176760));
|
|
59410
|
-
const ajv_1 = __importDefault(__webpack_require__(/*! ajv */
|
|
59411
|
-
const ajv_draft_04_1 = __importDefault(__webpack_require__(/*! ajv-draft-04 */
|
|
59412
|
-
const ajv_formats_1 = __importDefault(__webpack_require__(/*! ajv-formats */
|
|
57972
|
+
const ajv_1 = __importDefault(__webpack_require__(/*! ajv */ 56660));
|
|
57973
|
+
const ajv_draft_04_1 = __importDefault(__webpack_require__(/*! ajv-draft-04 */ 836214));
|
|
57974
|
+
const ajv_formats_1 = __importDefault(__webpack_require__(/*! ajv-formats */ 135077));
|
|
59413
57975
|
const JsonFile_1 = __webpack_require__(/*! ./JsonFile */ 66109);
|
|
59414
57976
|
const FileSystem_1 = __webpack_require__(/*! ./FileSystem */ 614230);
|
|
59415
57977
|
/**
|
|
@@ -69586,6 +68148,982 @@ function isKeyword(word) {
|
|
|
69586
68148
|
//# sourceMappingURL=keyword.js.map
|
|
69587
68149
|
|
|
69588
68150
|
|
|
68151
|
+
/***/ },
|
|
68152
|
+
|
|
68153
|
+
/***/ 995342
|
|
68154
|
+
/*!**************************************************************************************************!*\
|
|
68155
|
+
!*** ../../common/temp/default/node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/index.js ***!
|
|
68156
|
+
\**************************************************************************************************/
|
|
68157
|
+
(module, __unused_webpack_exports, __webpack_require__) {
|
|
68158
|
+
|
|
68159
|
+
"use strict";
|
|
68160
|
+
|
|
68161
|
+
|
|
68162
|
+
const { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizeComponentEncoding, isIPv4, nonSimpleDomain } = __webpack_require__(/*! ./lib/utils */ 25427)
|
|
68163
|
+
const { SCHEMES, getSchemeHandler } = __webpack_require__(/*! ./lib/schemes */ 520922)
|
|
68164
|
+
|
|
68165
|
+
/**
|
|
68166
|
+
* @template {import('./types/index').URIComponent|string} T
|
|
68167
|
+
* @param {T} uri
|
|
68168
|
+
* @param {import('./types/index').Options} [options]
|
|
68169
|
+
* @returns {T}
|
|
68170
|
+
*/
|
|
68171
|
+
function normalize (uri, options) {
|
|
68172
|
+
if (typeof uri === 'string') {
|
|
68173
|
+
uri = /** @type {T} */ (serialize(parse(uri, options), options))
|
|
68174
|
+
} else if (typeof uri === 'object') {
|
|
68175
|
+
uri = /** @type {T} */ (parse(serialize(uri, options), options))
|
|
68176
|
+
}
|
|
68177
|
+
return uri
|
|
68178
|
+
}
|
|
68179
|
+
|
|
68180
|
+
/**
|
|
68181
|
+
* @param {string} baseURI
|
|
68182
|
+
* @param {string} relativeURI
|
|
68183
|
+
* @param {import('./types/index').Options} [options]
|
|
68184
|
+
* @returns {string}
|
|
68185
|
+
*/
|
|
68186
|
+
function resolve (baseURI, relativeURI, options) {
|
|
68187
|
+
const schemelessOptions = options ? Object.assign({ scheme: 'null' }, options) : { scheme: 'null' }
|
|
68188
|
+
const resolved = resolveComponent(parse(baseURI, schemelessOptions), parse(relativeURI, schemelessOptions), schemelessOptions, true)
|
|
68189
|
+
schemelessOptions.skipEscape = true
|
|
68190
|
+
return serialize(resolved, schemelessOptions)
|
|
68191
|
+
}
|
|
68192
|
+
|
|
68193
|
+
/**
|
|
68194
|
+
* @param {import ('./types/index').URIComponent} base
|
|
68195
|
+
* @param {import ('./types/index').URIComponent} relative
|
|
68196
|
+
* @param {import('./types/index').Options} [options]
|
|
68197
|
+
* @param {boolean} [skipNormalization=false]
|
|
68198
|
+
* @returns {import ('./types/index').URIComponent}
|
|
68199
|
+
*/
|
|
68200
|
+
function resolveComponent (base, relative, options, skipNormalization) {
|
|
68201
|
+
/** @type {import('./types/index').URIComponent} */
|
|
68202
|
+
const target = {}
|
|
68203
|
+
if (!skipNormalization) {
|
|
68204
|
+
base = parse(serialize(base, options), options) // normalize base component
|
|
68205
|
+
relative = parse(serialize(relative, options), options) // normalize relative component
|
|
68206
|
+
}
|
|
68207
|
+
options = options || {}
|
|
68208
|
+
|
|
68209
|
+
if (!options.tolerant && relative.scheme) {
|
|
68210
|
+
target.scheme = relative.scheme
|
|
68211
|
+
// target.authority = relative.authority;
|
|
68212
|
+
target.userinfo = relative.userinfo
|
|
68213
|
+
target.host = relative.host
|
|
68214
|
+
target.port = relative.port
|
|
68215
|
+
target.path = removeDotSegments(relative.path || '')
|
|
68216
|
+
target.query = relative.query
|
|
68217
|
+
} else {
|
|
68218
|
+
if (relative.userinfo !== undefined || relative.host !== undefined || relative.port !== undefined) {
|
|
68219
|
+
// target.authority = relative.authority;
|
|
68220
|
+
target.userinfo = relative.userinfo
|
|
68221
|
+
target.host = relative.host
|
|
68222
|
+
target.port = relative.port
|
|
68223
|
+
target.path = removeDotSegments(relative.path || '')
|
|
68224
|
+
target.query = relative.query
|
|
68225
|
+
} else {
|
|
68226
|
+
if (!relative.path) {
|
|
68227
|
+
target.path = base.path
|
|
68228
|
+
if (relative.query !== undefined) {
|
|
68229
|
+
target.query = relative.query
|
|
68230
|
+
} else {
|
|
68231
|
+
target.query = base.query
|
|
68232
|
+
}
|
|
68233
|
+
} else {
|
|
68234
|
+
if (relative.path[0] === '/') {
|
|
68235
|
+
target.path = removeDotSegments(relative.path)
|
|
68236
|
+
} else {
|
|
68237
|
+
if ((base.userinfo !== undefined || base.host !== undefined || base.port !== undefined) && !base.path) {
|
|
68238
|
+
target.path = '/' + relative.path
|
|
68239
|
+
} else if (!base.path) {
|
|
68240
|
+
target.path = relative.path
|
|
68241
|
+
} else {
|
|
68242
|
+
target.path = base.path.slice(0, base.path.lastIndexOf('/') + 1) + relative.path
|
|
68243
|
+
}
|
|
68244
|
+
target.path = removeDotSegments(target.path)
|
|
68245
|
+
}
|
|
68246
|
+
target.query = relative.query
|
|
68247
|
+
}
|
|
68248
|
+
// target.authority = base.authority;
|
|
68249
|
+
target.userinfo = base.userinfo
|
|
68250
|
+
target.host = base.host
|
|
68251
|
+
target.port = base.port
|
|
68252
|
+
}
|
|
68253
|
+
target.scheme = base.scheme
|
|
68254
|
+
}
|
|
68255
|
+
|
|
68256
|
+
target.fragment = relative.fragment
|
|
68257
|
+
|
|
68258
|
+
return target
|
|
68259
|
+
}
|
|
68260
|
+
|
|
68261
|
+
/**
|
|
68262
|
+
* @param {import ('./types/index').URIComponent|string} uriA
|
|
68263
|
+
* @param {import ('./types/index').URIComponent|string} uriB
|
|
68264
|
+
* @param {import ('./types/index').Options} options
|
|
68265
|
+
* @returns {boolean}
|
|
68266
|
+
*/
|
|
68267
|
+
function equal (uriA, uriB, options) {
|
|
68268
|
+
if (typeof uriA === 'string') {
|
|
68269
|
+
uriA = unescape(uriA)
|
|
68270
|
+
uriA = serialize(normalizeComponentEncoding(parse(uriA, options), true), { ...options, skipEscape: true })
|
|
68271
|
+
} else if (typeof uriA === 'object') {
|
|
68272
|
+
uriA = serialize(normalizeComponentEncoding(uriA, true), { ...options, skipEscape: true })
|
|
68273
|
+
}
|
|
68274
|
+
|
|
68275
|
+
if (typeof uriB === 'string') {
|
|
68276
|
+
uriB = unescape(uriB)
|
|
68277
|
+
uriB = serialize(normalizeComponentEncoding(parse(uriB, options), true), { ...options, skipEscape: true })
|
|
68278
|
+
} else if (typeof uriB === 'object') {
|
|
68279
|
+
uriB = serialize(normalizeComponentEncoding(uriB, true), { ...options, skipEscape: true })
|
|
68280
|
+
}
|
|
68281
|
+
|
|
68282
|
+
return uriA.toLowerCase() === uriB.toLowerCase()
|
|
68283
|
+
}
|
|
68284
|
+
|
|
68285
|
+
/**
|
|
68286
|
+
* @param {Readonly<import('./types/index').URIComponent>} cmpts
|
|
68287
|
+
* @param {import('./types/index').Options} [opts]
|
|
68288
|
+
* @returns {string}
|
|
68289
|
+
*/
|
|
68290
|
+
function serialize (cmpts, opts) {
|
|
68291
|
+
const component = {
|
|
68292
|
+
host: cmpts.host,
|
|
68293
|
+
scheme: cmpts.scheme,
|
|
68294
|
+
userinfo: cmpts.userinfo,
|
|
68295
|
+
port: cmpts.port,
|
|
68296
|
+
path: cmpts.path,
|
|
68297
|
+
query: cmpts.query,
|
|
68298
|
+
nid: cmpts.nid,
|
|
68299
|
+
nss: cmpts.nss,
|
|
68300
|
+
uuid: cmpts.uuid,
|
|
68301
|
+
fragment: cmpts.fragment,
|
|
68302
|
+
reference: cmpts.reference,
|
|
68303
|
+
resourceName: cmpts.resourceName,
|
|
68304
|
+
secure: cmpts.secure,
|
|
68305
|
+
error: ''
|
|
68306
|
+
}
|
|
68307
|
+
const options = Object.assign({}, opts)
|
|
68308
|
+
const uriTokens = []
|
|
68309
|
+
|
|
68310
|
+
// find scheme handler
|
|
68311
|
+
const schemeHandler = getSchemeHandler(options.scheme || component.scheme)
|
|
68312
|
+
|
|
68313
|
+
// perform scheme specific serialization
|
|
68314
|
+
if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(component, options)
|
|
68315
|
+
|
|
68316
|
+
if (component.path !== undefined) {
|
|
68317
|
+
if (!options.skipEscape) {
|
|
68318
|
+
component.path = escape(component.path)
|
|
68319
|
+
|
|
68320
|
+
if (component.scheme !== undefined) {
|
|
68321
|
+
component.path = component.path.split('%3A').join(':')
|
|
68322
|
+
}
|
|
68323
|
+
} else {
|
|
68324
|
+
component.path = unescape(component.path)
|
|
68325
|
+
}
|
|
68326
|
+
}
|
|
68327
|
+
|
|
68328
|
+
if (options.reference !== 'suffix' && component.scheme) {
|
|
68329
|
+
uriTokens.push(component.scheme, ':')
|
|
68330
|
+
}
|
|
68331
|
+
|
|
68332
|
+
const authority = recomposeAuthority(component)
|
|
68333
|
+
if (authority !== undefined) {
|
|
68334
|
+
if (options.reference !== 'suffix') {
|
|
68335
|
+
uriTokens.push('//')
|
|
68336
|
+
}
|
|
68337
|
+
|
|
68338
|
+
uriTokens.push(authority)
|
|
68339
|
+
|
|
68340
|
+
if (component.path && component.path[0] !== '/') {
|
|
68341
|
+
uriTokens.push('/')
|
|
68342
|
+
}
|
|
68343
|
+
}
|
|
68344
|
+
if (component.path !== undefined) {
|
|
68345
|
+
let s = component.path
|
|
68346
|
+
|
|
68347
|
+
if (!options.absolutePath && (!schemeHandler || !schemeHandler.absolutePath)) {
|
|
68348
|
+
s = removeDotSegments(s)
|
|
68349
|
+
}
|
|
68350
|
+
|
|
68351
|
+
if (
|
|
68352
|
+
authority === undefined &&
|
|
68353
|
+
s[0] === '/' &&
|
|
68354
|
+
s[1] === '/'
|
|
68355
|
+
) {
|
|
68356
|
+
// don't allow the path to start with "//"
|
|
68357
|
+
s = '/%2F' + s.slice(2)
|
|
68358
|
+
}
|
|
68359
|
+
|
|
68360
|
+
uriTokens.push(s)
|
|
68361
|
+
}
|
|
68362
|
+
|
|
68363
|
+
if (component.query !== undefined) {
|
|
68364
|
+
uriTokens.push('?', component.query)
|
|
68365
|
+
}
|
|
68366
|
+
|
|
68367
|
+
if (component.fragment !== undefined) {
|
|
68368
|
+
uriTokens.push('#', component.fragment)
|
|
68369
|
+
}
|
|
68370
|
+
return uriTokens.join('')
|
|
68371
|
+
}
|
|
68372
|
+
|
|
68373
|
+
const URI_PARSE = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u
|
|
68374
|
+
|
|
68375
|
+
/**
|
|
68376
|
+
* @param {string} uri
|
|
68377
|
+
* @param {import('./types/index').Options} [opts]
|
|
68378
|
+
* @returns
|
|
68379
|
+
*/
|
|
68380
|
+
function parse (uri, opts) {
|
|
68381
|
+
const options = Object.assign({}, opts)
|
|
68382
|
+
/** @type {import('./types/index').URIComponent} */
|
|
68383
|
+
const parsed = {
|
|
68384
|
+
scheme: undefined,
|
|
68385
|
+
userinfo: undefined,
|
|
68386
|
+
host: '',
|
|
68387
|
+
port: undefined,
|
|
68388
|
+
path: '',
|
|
68389
|
+
query: undefined,
|
|
68390
|
+
fragment: undefined
|
|
68391
|
+
}
|
|
68392
|
+
|
|
68393
|
+
let isIP = false
|
|
68394
|
+
if (options.reference === 'suffix') {
|
|
68395
|
+
if (options.scheme) {
|
|
68396
|
+
uri = options.scheme + ':' + uri
|
|
68397
|
+
} else {
|
|
68398
|
+
uri = '//' + uri
|
|
68399
|
+
}
|
|
68400
|
+
}
|
|
68401
|
+
|
|
68402
|
+
const matches = uri.match(URI_PARSE)
|
|
68403
|
+
|
|
68404
|
+
if (matches) {
|
|
68405
|
+
// store each component
|
|
68406
|
+
parsed.scheme = matches[1]
|
|
68407
|
+
parsed.userinfo = matches[3]
|
|
68408
|
+
parsed.host = matches[4]
|
|
68409
|
+
parsed.port = parseInt(matches[5], 10)
|
|
68410
|
+
parsed.path = matches[6] || ''
|
|
68411
|
+
parsed.query = matches[7]
|
|
68412
|
+
parsed.fragment = matches[8]
|
|
68413
|
+
|
|
68414
|
+
// fix port number
|
|
68415
|
+
if (isNaN(parsed.port)) {
|
|
68416
|
+
parsed.port = matches[5]
|
|
68417
|
+
}
|
|
68418
|
+
if (parsed.host) {
|
|
68419
|
+
const ipv4result = isIPv4(parsed.host)
|
|
68420
|
+
if (ipv4result === false) {
|
|
68421
|
+
const ipv6result = normalizeIPv6(parsed.host)
|
|
68422
|
+
parsed.host = ipv6result.host.toLowerCase()
|
|
68423
|
+
isIP = ipv6result.isIPV6
|
|
68424
|
+
} else {
|
|
68425
|
+
isIP = true
|
|
68426
|
+
}
|
|
68427
|
+
}
|
|
68428
|
+
if (parsed.scheme === undefined && parsed.userinfo === undefined && parsed.host === undefined && parsed.port === undefined && parsed.query === undefined && !parsed.path) {
|
|
68429
|
+
parsed.reference = 'same-document'
|
|
68430
|
+
} else if (parsed.scheme === undefined) {
|
|
68431
|
+
parsed.reference = 'relative'
|
|
68432
|
+
} else if (parsed.fragment === undefined) {
|
|
68433
|
+
parsed.reference = 'absolute'
|
|
68434
|
+
} else {
|
|
68435
|
+
parsed.reference = 'uri'
|
|
68436
|
+
}
|
|
68437
|
+
|
|
68438
|
+
// check for reference errors
|
|
68439
|
+
if (options.reference && options.reference !== 'suffix' && options.reference !== parsed.reference) {
|
|
68440
|
+
parsed.error = parsed.error || 'URI is not a ' + options.reference + ' reference.'
|
|
68441
|
+
}
|
|
68442
|
+
|
|
68443
|
+
// find scheme handler
|
|
68444
|
+
const schemeHandler = getSchemeHandler(options.scheme || parsed.scheme)
|
|
68445
|
+
|
|
68446
|
+
// check if scheme can't handle IRIs
|
|
68447
|
+
if (!options.unicodeSupport && (!schemeHandler || !schemeHandler.unicodeSupport)) {
|
|
68448
|
+
// if host component is a domain name
|
|
68449
|
+
if (parsed.host && (options.domainHost || (schemeHandler && schemeHandler.domainHost)) && isIP === false && nonSimpleDomain(parsed.host)) {
|
|
68450
|
+
// convert Unicode IDN -> ASCII IDN
|
|
68451
|
+
try {
|
|
68452
|
+
parsed.host = URL.domainToASCII(parsed.host.toLowerCase())
|
|
68453
|
+
} catch (e) {
|
|
68454
|
+
parsed.error = parsed.error || "Host's domain name can not be converted to ASCII: " + e
|
|
68455
|
+
}
|
|
68456
|
+
}
|
|
68457
|
+
// convert IRI -> URI
|
|
68458
|
+
}
|
|
68459
|
+
|
|
68460
|
+
if (!schemeHandler || (schemeHandler && !schemeHandler.skipNormalize)) {
|
|
68461
|
+
if (uri.indexOf('%') !== -1) {
|
|
68462
|
+
if (parsed.scheme !== undefined) {
|
|
68463
|
+
parsed.scheme = unescape(parsed.scheme)
|
|
68464
|
+
}
|
|
68465
|
+
if (parsed.host !== undefined) {
|
|
68466
|
+
parsed.host = unescape(parsed.host)
|
|
68467
|
+
}
|
|
68468
|
+
}
|
|
68469
|
+
if (parsed.path) {
|
|
68470
|
+
parsed.path = escape(unescape(parsed.path))
|
|
68471
|
+
}
|
|
68472
|
+
if (parsed.fragment) {
|
|
68473
|
+
parsed.fragment = encodeURI(decodeURIComponent(parsed.fragment))
|
|
68474
|
+
}
|
|
68475
|
+
}
|
|
68476
|
+
|
|
68477
|
+
// perform scheme specific parsing
|
|
68478
|
+
if (schemeHandler && schemeHandler.parse) {
|
|
68479
|
+
schemeHandler.parse(parsed, options)
|
|
68480
|
+
}
|
|
68481
|
+
} else {
|
|
68482
|
+
parsed.error = parsed.error || 'URI can not be parsed.'
|
|
68483
|
+
}
|
|
68484
|
+
return parsed
|
|
68485
|
+
}
|
|
68486
|
+
|
|
68487
|
+
const fastUri = {
|
|
68488
|
+
SCHEMES,
|
|
68489
|
+
normalize,
|
|
68490
|
+
resolve,
|
|
68491
|
+
resolveComponent,
|
|
68492
|
+
equal,
|
|
68493
|
+
serialize,
|
|
68494
|
+
parse
|
|
68495
|
+
}
|
|
68496
|
+
|
|
68497
|
+
module.exports = fastUri
|
|
68498
|
+
module.exports["default"] = fastUri
|
|
68499
|
+
module.exports.fastUri = fastUri
|
|
68500
|
+
|
|
68501
|
+
|
|
68502
|
+
/***/ },
|
|
68503
|
+
|
|
68504
|
+
/***/ 520922
|
|
68505
|
+
/*!********************************************************************************************************!*\
|
|
68506
|
+
!*** ../../common/temp/default/node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/schemes.js ***!
|
|
68507
|
+
\********************************************************************************************************/
|
|
68508
|
+
(module, __unused_webpack_exports, __webpack_require__) {
|
|
68509
|
+
|
|
68510
|
+
"use strict";
|
|
68511
|
+
|
|
68512
|
+
|
|
68513
|
+
const { isUUID } = __webpack_require__(/*! ./utils */ 25427)
|
|
68514
|
+
const URN_REG = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu
|
|
68515
|
+
|
|
68516
|
+
const supportedSchemeNames = /** @type {const} */ (['http', 'https', 'ws',
|
|
68517
|
+
'wss', 'urn', 'urn:uuid'])
|
|
68518
|
+
|
|
68519
|
+
/** @typedef {supportedSchemeNames[number]} SchemeName */
|
|
68520
|
+
|
|
68521
|
+
/**
|
|
68522
|
+
* @param {string} name
|
|
68523
|
+
* @returns {name is SchemeName}
|
|
68524
|
+
*/
|
|
68525
|
+
function isValidSchemeName (name) {
|
|
68526
|
+
return supportedSchemeNames.indexOf(/** @type {*} */ (name)) !== -1
|
|
68527
|
+
}
|
|
68528
|
+
|
|
68529
|
+
/**
|
|
68530
|
+
* @callback SchemeFn
|
|
68531
|
+
* @param {import('../types/index').URIComponent} component
|
|
68532
|
+
* @param {import('../types/index').Options} options
|
|
68533
|
+
* @returns {import('../types/index').URIComponent}
|
|
68534
|
+
*/
|
|
68535
|
+
|
|
68536
|
+
/**
|
|
68537
|
+
* @typedef {Object} SchemeHandler
|
|
68538
|
+
* @property {SchemeName} scheme - The scheme name.
|
|
68539
|
+
* @property {boolean} [domainHost] - Indicates if the scheme supports domain hosts.
|
|
68540
|
+
* @property {SchemeFn} parse - Function to parse the URI component for this scheme.
|
|
68541
|
+
* @property {SchemeFn} serialize - Function to serialize the URI component for this scheme.
|
|
68542
|
+
* @property {boolean} [skipNormalize] - Indicates if normalization should be skipped for this scheme.
|
|
68543
|
+
* @property {boolean} [absolutePath] - Indicates if the scheme uses absolute paths.
|
|
68544
|
+
* @property {boolean} [unicodeSupport] - Indicates if the scheme supports Unicode.
|
|
68545
|
+
*/
|
|
68546
|
+
|
|
68547
|
+
/**
|
|
68548
|
+
* @param {import('../types/index').URIComponent} wsComponent
|
|
68549
|
+
* @returns {boolean}
|
|
68550
|
+
*/
|
|
68551
|
+
function wsIsSecure (wsComponent) {
|
|
68552
|
+
if (wsComponent.secure === true) {
|
|
68553
|
+
return true
|
|
68554
|
+
} else if (wsComponent.secure === false) {
|
|
68555
|
+
return false
|
|
68556
|
+
} else if (wsComponent.scheme) {
|
|
68557
|
+
return (
|
|
68558
|
+
wsComponent.scheme.length === 3 &&
|
|
68559
|
+
(wsComponent.scheme[0] === 'w' || wsComponent.scheme[0] === 'W') &&
|
|
68560
|
+
(wsComponent.scheme[1] === 's' || wsComponent.scheme[1] === 'S') &&
|
|
68561
|
+
(wsComponent.scheme[2] === 's' || wsComponent.scheme[2] === 'S')
|
|
68562
|
+
)
|
|
68563
|
+
} else {
|
|
68564
|
+
return false
|
|
68565
|
+
}
|
|
68566
|
+
}
|
|
68567
|
+
|
|
68568
|
+
/** @type {SchemeFn} */
|
|
68569
|
+
function httpParse (component) {
|
|
68570
|
+
if (!component.host) {
|
|
68571
|
+
component.error = component.error || 'HTTP URIs must have a host.'
|
|
68572
|
+
}
|
|
68573
|
+
|
|
68574
|
+
return component
|
|
68575
|
+
}
|
|
68576
|
+
|
|
68577
|
+
/** @type {SchemeFn} */
|
|
68578
|
+
function httpSerialize (component) {
|
|
68579
|
+
const secure = String(component.scheme).toLowerCase() === 'https'
|
|
68580
|
+
|
|
68581
|
+
// normalize the default port
|
|
68582
|
+
if (component.port === (secure ? 443 : 80) || component.port === '') {
|
|
68583
|
+
component.port = undefined
|
|
68584
|
+
}
|
|
68585
|
+
|
|
68586
|
+
// normalize the empty path
|
|
68587
|
+
if (!component.path) {
|
|
68588
|
+
component.path = '/'
|
|
68589
|
+
}
|
|
68590
|
+
|
|
68591
|
+
// NOTE: We do not parse query strings for HTTP URIs
|
|
68592
|
+
// as WWW Form Url Encoded query strings are part of the HTML4+ spec,
|
|
68593
|
+
// and not the HTTP spec.
|
|
68594
|
+
|
|
68595
|
+
return component
|
|
68596
|
+
}
|
|
68597
|
+
|
|
68598
|
+
/** @type {SchemeFn} */
|
|
68599
|
+
function wsParse (wsComponent) {
|
|
68600
|
+
// indicate if the secure flag is set
|
|
68601
|
+
wsComponent.secure = wsIsSecure(wsComponent)
|
|
68602
|
+
|
|
68603
|
+
// construct resouce name
|
|
68604
|
+
wsComponent.resourceName = (wsComponent.path || '/') + (wsComponent.query ? '?' + wsComponent.query : '')
|
|
68605
|
+
wsComponent.path = undefined
|
|
68606
|
+
wsComponent.query = undefined
|
|
68607
|
+
|
|
68608
|
+
return wsComponent
|
|
68609
|
+
}
|
|
68610
|
+
|
|
68611
|
+
/** @type {SchemeFn} */
|
|
68612
|
+
function wsSerialize (wsComponent) {
|
|
68613
|
+
// normalize the default port
|
|
68614
|
+
if (wsComponent.port === (wsIsSecure(wsComponent) ? 443 : 80) || wsComponent.port === '') {
|
|
68615
|
+
wsComponent.port = undefined
|
|
68616
|
+
}
|
|
68617
|
+
|
|
68618
|
+
// ensure scheme matches secure flag
|
|
68619
|
+
if (typeof wsComponent.secure === 'boolean') {
|
|
68620
|
+
wsComponent.scheme = (wsComponent.secure ? 'wss' : 'ws')
|
|
68621
|
+
wsComponent.secure = undefined
|
|
68622
|
+
}
|
|
68623
|
+
|
|
68624
|
+
// reconstruct path from resource name
|
|
68625
|
+
if (wsComponent.resourceName) {
|
|
68626
|
+
const [path, query] = wsComponent.resourceName.split('?')
|
|
68627
|
+
wsComponent.path = (path && path !== '/' ? path : undefined)
|
|
68628
|
+
wsComponent.query = query
|
|
68629
|
+
wsComponent.resourceName = undefined
|
|
68630
|
+
}
|
|
68631
|
+
|
|
68632
|
+
// forbid fragment component
|
|
68633
|
+
wsComponent.fragment = undefined
|
|
68634
|
+
|
|
68635
|
+
return wsComponent
|
|
68636
|
+
}
|
|
68637
|
+
|
|
68638
|
+
/** @type {SchemeFn} */
|
|
68639
|
+
function urnParse (urnComponent, options) {
|
|
68640
|
+
if (!urnComponent.path) {
|
|
68641
|
+
urnComponent.error = 'URN can not be parsed'
|
|
68642
|
+
return urnComponent
|
|
68643
|
+
}
|
|
68644
|
+
const matches = urnComponent.path.match(URN_REG)
|
|
68645
|
+
if (matches) {
|
|
68646
|
+
const scheme = options.scheme || urnComponent.scheme || 'urn'
|
|
68647
|
+
urnComponent.nid = matches[1].toLowerCase()
|
|
68648
|
+
urnComponent.nss = matches[2]
|
|
68649
|
+
const urnScheme = `${scheme}:${options.nid || urnComponent.nid}`
|
|
68650
|
+
const schemeHandler = getSchemeHandler(urnScheme)
|
|
68651
|
+
urnComponent.path = undefined
|
|
68652
|
+
|
|
68653
|
+
if (schemeHandler) {
|
|
68654
|
+
urnComponent = schemeHandler.parse(urnComponent, options)
|
|
68655
|
+
}
|
|
68656
|
+
} else {
|
|
68657
|
+
urnComponent.error = urnComponent.error || 'URN can not be parsed.'
|
|
68658
|
+
}
|
|
68659
|
+
|
|
68660
|
+
return urnComponent
|
|
68661
|
+
}
|
|
68662
|
+
|
|
68663
|
+
/** @type {SchemeFn} */
|
|
68664
|
+
function urnSerialize (urnComponent, options) {
|
|
68665
|
+
if (urnComponent.nid === undefined) {
|
|
68666
|
+
throw new Error('URN without nid cannot be serialized')
|
|
68667
|
+
}
|
|
68668
|
+
const scheme = options.scheme || urnComponent.scheme || 'urn'
|
|
68669
|
+
const nid = urnComponent.nid.toLowerCase()
|
|
68670
|
+
const urnScheme = `${scheme}:${options.nid || nid}`
|
|
68671
|
+
const schemeHandler = getSchemeHandler(urnScheme)
|
|
68672
|
+
|
|
68673
|
+
if (schemeHandler) {
|
|
68674
|
+
urnComponent = schemeHandler.serialize(urnComponent, options)
|
|
68675
|
+
}
|
|
68676
|
+
|
|
68677
|
+
const uriComponent = urnComponent
|
|
68678
|
+
const nss = urnComponent.nss
|
|
68679
|
+
uriComponent.path = `${nid || options.nid}:${nss}`
|
|
68680
|
+
|
|
68681
|
+
options.skipEscape = true
|
|
68682
|
+
return uriComponent
|
|
68683
|
+
}
|
|
68684
|
+
|
|
68685
|
+
/** @type {SchemeFn} */
|
|
68686
|
+
function urnuuidParse (urnComponent, options) {
|
|
68687
|
+
const uuidComponent = urnComponent
|
|
68688
|
+
uuidComponent.uuid = uuidComponent.nss
|
|
68689
|
+
uuidComponent.nss = undefined
|
|
68690
|
+
|
|
68691
|
+
if (!options.tolerant && (!uuidComponent.uuid || !isUUID(uuidComponent.uuid))) {
|
|
68692
|
+
uuidComponent.error = uuidComponent.error || 'UUID is not valid.'
|
|
68693
|
+
}
|
|
68694
|
+
|
|
68695
|
+
return uuidComponent
|
|
68696
|
+
}
|
|
68697
|
+
|
|
68698
|
+
/** @type {SchemeFn} */
|
|
68699
|
+
function urnuuidSerialize (uuidComponent) {
|
|
68700
|
+
const urnComponent = uuidComponent
|
|
68701
|
+
// normalize UUID
|
|
68702
|
+
urnComponent.nss = (uuidComponent.uuid || '').toLowerCase()
|
|
68703
|
+
return urnComponent
|
|
68704
|
+
}
|
|
68705
|
+
|
|
68706
|
+
const http = /** @type {SchemeHandler} */ ({
|
|
68707
|
+
scheme: 'http',
|
|
68708
|
+
domainHost: true,
|
|
68709
|
+
parse: httpParse,
|
|
68710
|
+
serialize: httpSerialize
|
|
68711
|
+
})
|
|
68712
|
+
|
|
68713
|
+
const https = /** @type {SchemeHandler} */ ({
|
|
68714
|
+
scheme: 'https',
|
|
68715
|
+
domainHost: http.domainHost,
|
|
68716
|
+
parse: httpParse,
|
|
68717
|
+
serialize: httpSerialize
|
|
68718
|
+
})
|
|
68719
|
+
|
|
68720
|
+
const ws = /** @type {SchemeHandler} */ ({
|
|
68721
|
+
scheme: 'ws',
|
|
68722
|
+
domainHost: true,
|
|
68723
|
+
parse: wsParse,
|
|
68724
|
+
serialize: wsSerialize
|
|
68725
|
+
})
|
|
68726
|
+
|
|
68727
|
+
const wss = /** @type {SchemeHandler} */ ({
|
|
68728
|
+
scheme: 'wss',
|
|
68729
|
+
domainHost: ws.domainHost,
|
|
68730
|
+
parse: ws.parse,
|
|
68731
|
+
serialize: ws.serialize
|
|
68732
|
+
})
|
|
68733
|
+
|
|
68734
|
+
const urn = /** @type {SchemeHandler} */ ({
|
|
68735
|
+
scheme: 'urn',
|
|
68736
|
+
parse: urnParse,
|
|
68737
|
+
serialize: urnSerialize,
|
|
68738
|
+
skipNormalize: true
|
|
68739
|
+
})
|
|
68740
|
+
|
|
68741
|
+
const urnuuid = /** @type {SchemeHandler} */ ({
|
|
68742
|
+
scheme: 'urn:uuid',
|
|
68743
|
+
parse: urnuuidParse,
|
|
68744
|
+
serialize: urnuuidSerialize,
|
|
68745
|
+
skipNormalize: true
|
|
68746
|
+
})
|
|
68747
|
+
|
|
68748
|
+
const SCHEMES = /** @type {Record<SchemeName, SchemeHandler>} */ ({
|
|
68749
|
+
http,
|
|
68750
|
+
https,
|
|
68751
|
+
ws,
|
|
68752
|
+
wss,
|
|
68753
|
+
urn,
|
|
68754
|
+
'urn:uuid': urnuuid
|
|
68755
|
+
})
|
|
68756
|
+
|
|
68757
|
+
Object.setPrototypeOf(SCHEMES, null)
|
|
68758
|
+
|
|
68759
|
+
/**
|
|
68760
|
+
* @param {string|undefined} scheme
|
|
68761
|
+
* @returns {SchemeHandler|undefined}
|
|
68762
|
+
*/
|
|
68763
|
+
function getSchemeHandler (scheme) {
|
|
68764
|
+
return (
|
|
68765
|
+
scheme && (
|
|
68766
|
+
SCHEMES[/** @type {SchemeName} */ (scheme)] ||
|
|
68767
|
+
SCHEMES[/** @type {SchemeName} */(scheme.toLowerCase())])
|
|
68768
|
+
) ||
|
|
68769
|
+
undefined
|
|
68770
|
+
}
|
|
68771
|
+
|
|
68772
|
+
module.exports = {
|
|
68773
|
+
wsIsSecure,
|
|
68774
|
+
SCHEMES,
|
|
68775
|
+
isValidSchemeName,
|
|
68776
|
+
getSchemeHandler,
|
|
68777
|
+
}
|
|
68778
|
+
|
|
68779
|
+
|
|
68780
|
+
/***/ },
|
|
68781
|
+
|
|
68782
|
+
/***/ 25427
|
|
68783
|
+
/*!******************************************************************************************************!*\
|
|
68784
|
+
!*** ../../common/temp/default/node_modules/.pnpm/fast-uri@3.1.0/node_modules/fast-uri/lib/utils.js ***!
|
|
68785
|
+
\******************************************************************************************************/
|
|
68786
|
+
(module) {
|
|
68787
|
+
|
|
68788
|
+
"use strict";
|
|
68789
|
+
|
|
68790
|
+
|
|
68791
|
+
/** @type {(value: string) => boolean} */
|
|
68792
|
+
const isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu)
|
|
68793
|
+
|
|
68794
|
+
/** @type {(value: string) => boolean} */
|
|
68795
|
+
const 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)
|
|
68796
|
+
|
|
68797
|
+
/**
|
|
68798
|
+
* @param {Array<string>} input
|
|
68799
|
+
* @returns {string}
|
|
68800
|
+
*/
|
|
68801
|
+
function stringArrayToHexStripped (input) {
|
|
68802
|
+
let acc = ''
|
|
68803
|
+
let code = 0
|
|
68804
|
+
let i = 0
|
|
68805
|
+
|
|
68806
|
+
for (i = 0; i < input.length; i++) {
|
|
68807
|
+
code = input[i].charCodeAt(0)
|
|
68808
|
+
if (code === 48) {
|
|
68809
|
+
continue
|
|
68810
|
+
}
|
|
68811
|
+
if (!((code >= 48 && code <= 57) || (code >= 65 && code <= 70) || (code >= 97 && code <= 102))) {
|
|
68812
|
+
return ''
|
|
68813
|
+
}
|
|
68814
|
+
acc += input[i]
|
|
68815
|
+
break
|
|
68816
|
+
}
|
|
68817
|
+
|
|
68818
|
+
for (i += 1; i < input.length; i++) {
|
|
68819
|
+
code = input[i].charCodeAt(0)
|
|
68820
|
+
if (!((code >= 48 && code <= 57) || (code >= 65 && code <= 70) || (code >= 97 && code <= 102))) {
|
|
68821
|
+
return ''
|
|
68822
|
+
}
|
|
68823
|
+
acc += input[i]
|
|
68824
|
+
}
|
|
68825
|
+
return acc
|
|
68826
|
+
}
|
|
68827
|
+
|
|
68828
|
+
/**
|
|
68829
|
+
* @typedef {Object} GetIPV6Result
|
|
68830
|
+
* @property {boolean} error - Indicates if there was an error parsing the IPv6 address.
|
|
68831
|
+
* @property {string} address - The parsed IPv6 address.
|
|
68832
|
+
* @property {string} [zone] - The zone identifier, if present.
|
|
68833
|
+
*/
|
|
68834
|
+
|
|
68835
|
+
/**
|
|
68836
|
+
* @param {string} value
|
|
68837
|
+
* @returns {boolean}
|
|
68838
|
+
*/
|
|
68839
|
+
const nonSimpleDomain = RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u)
|
|
68840
|
+
|
|
68841
|
+
/**
|
|
68842
|
+
* @param {Array<string>} buffer
|
|
68843
|
+
* @returns {boolean}
|
|
68844
|
+
*/
|
|
68845
|
+
function consumeIsZone (buffer) {
|
|
68846
|
+
buffer.length = 0
|
|
68847
|
+
return true
|
|
68848
|
+
}
|
|
68849
|
+
|
|
68850
|
+
/**
|
|
68851
|
+
* @param {Array<string>} buffer
|
|
68852
|
+
* @param {Array<string>} address
|
|
68853
|
+
* @param {GetIPV6Result} output
|
|
68854
|
+
* @returns {boolean}
|
|
68855
|
+
*/
|
|
68856
|
+
function consumeHextets (buffer, address, output) {
|
|
68857
|
+
if (buffer.length) {
|
|
68858
|
+
const hex = stringArrayToHexStripped(buffer)
|
|
68859
|
+
if (hex !== '') {
|
|
68860
|
+
address.push(hex)
|
|
68861
|
+
} else {
|
|
68862
|
+
output.error = true
|
|
68863
|
+
return false
|
|
68864
|
+
}
|
|
68865
|
+
buffer.length = 0
|
|
68866
|
+
}
|
|
68867
|
+
return true
|
|
68868
|
+
}
|
|
68869
|
+
|
|
68870
|
+
/**
|
|
68871
|
+
* @param {string} input
|
|
68872
|
+
* @returns {GetIPV6Result}
|
|
68873
|
+
*/
|
|
68874
|
+
function getIPV6 (input) {
|
|
68875
|
+
let tokenCount = 0
|
|
68876
|
+
const output = { error: false, address: '', zone: '' }
|
|
68877
|
+
/** @type {Array<string>} */
|
|
68878
|
+
const address = []
|
|
68879
|
+
/** @type {Array<string>} */
|
|
68880
|
+
const buffer = []
|
|
68881
|
+
let endipv6Encountered = false
|
|
68882
|
+
let endIpv6 = false
|
|
68883
|
+
|
|
68884
|
+
let consume = consumeHextets
|
|
68885
|
+
|
|
68886
|
+
for (let i = 0; i < input.length; i++) {
|
|
68887
|
+
const cursor = input[i]
|
|
68888
|
+
if (cursor === '[' || cursor === ']') { continue }
|
|
68889
|
+
if (cursor === ':') {
|
|
68890
|
+
if (endipv6Encountered === true) {
|
|
68891
|
+
endIpv6 = true
|
|
68892
|
+
}
|
|
68893
|
+
if (!consume(buffer, address, output)) { break }
|
|
68894
|
+
if (++tokenCount > 7) {
|
|
68895
|
+
// not valid
|
|
68896
|
+
output.error = true
|
|
68897
|
+
break
|
|
68898
|
+
}
|
|
68899
|
+
if (i > 0 && input[i - 1] === ':') {
|
|
68900
|
+
endipv6Encountered = true
|
|
68901
|
+
}
|
|
68902
|
+
address.push(':')
|
|
68903
|
+
continue
|
|
68904
|
+
} else if (cursor === '%') {
|
|
68905
|
+
if (!consume(buffer, address, output)) { break }
|
|
68906
|
+
// switch to zone detection
|
|
68907
|
+
consume = consumeIsZone
|
|
68908
|
+
} else {
|
|
68909
|
+
buffer.push(cursor)
|
|
68910
|
+
continue
|
|
68911
|
+
}
|
|
68912
|
+
}
|
|
68913
|
+
if (buffer.length) {
|
|
68914
|
+
if (consume === consumeIsZone) {
|
|
68915
|
+
output.zone = buffer.join('')
|
|
68916
|
+
} else if (endIpv6) {
|
|
68917
|
+
address.push(buffer.join(''))
|
|
68918
|
+
} else {
|
|
68919
|
+
address.push(stringArrayToHexStripped(buffer))
|
|
68920
|
+
}
|
|
68921
|
+
}
|
|
68922
|
+
output.address = address.join('')
|
|
68923
|
+
return output
|
|
68924
|
+
}
|
|
68925
|
+
|
|
68926
|
+
/**
|
|
68927
|
+
* @typedef {Object} NormalizeIPv6Result
|
|
68928
|
+
* @property {string} host - The normalized host.
|
|
68929
|
+
* @property {string} [escapedHost] - The escaped host.
|
|
68930
|
+
* @property {boolean} isIPV6 - Indicates if the host is an IPv6 address.
|
|
68931
|
+
*/
|
|
68932
|
+
|
|
68933
|
+
/**
|
|
68934
|
+
* @param {string} host
|
|
68935
|
+
* @returns {NormalizeIPv6Result}
|
|
68936
|
+
*/
|
|
68937
|
+
function normalizeIPv6 (host) {
|
|
68938
|
+
if (findToken(host, ':') < 2) { return { host, isIPV6: false } }
|
|
68939
|
+
const ipv6 = getIPV6(host)
|
|
68940
|
+
|
|
68941
|
+
if (!ipv6.error) {
|
|
68942
|
+
let newHost = ipv6.address
|
|
68943
|
+
let escapedHost = ipv6.address
|
|
68944
|
+
if (ipv6.zone) {
|
|
68945
|
+
newHost += '%' + ipv6.zone
|
|
68946
|
+
escapedHost += '%25' + ipv6.zone
|
|
68947
|
+
}
|
|
68948
|
+
return { host: newHost, isIPV6: true, escapedHost }
|
|
68949
|
+
} else {
|
|
68950
|
+
return { host, isIPV6: false }
|
|
68951
|
+
}
|
|
68952
|
+
}
|
|
68953
|
+
|
|
68954
|
+
/**
|
|
68955
|
+
* @param {string} str
|
|
68956
|
+
* @param {string} token
|
|
68957
|
+
* @returns {number}
|
|
68958
|
+
*/
|
|
68959
|
+
function findToken (str, token) {
|
|
68960
|
+
let ind = 0
|
|
68961
|
+
for (let i = 0; i < str.length; i++) {
|
|
68962
|
+
if (str[i] === token) ind++
|
|
68963
|
+
}
|
|
68964
|
+
return ind
|
|
68965
|
+
}
|
|
68966
|
+
|
|
68967
|
+
/**
|
|
68968
|
+
* @param {string} path
|
|
68969
|
+
* @returns {string}
|
|
68970
|
+
*
|
|
68971
|
+
* @see https://datatracker.ietf.org/doc/html/rfc3986#section-5.2.4
|
|
68972
|
+
*/
|
|
68973
|
+
function removeDotSegments (path) {
|
|
68974
|
+
let input = path
|
|
68975
|
+
const output = []
|
|
68976
|
+
let nextSlash = -1
|
|
68977
|
+
let len = 0
|
|
68978
|
+
|
|
68979
|
+
// eslint-disable-next-line no-cond-assign
|
|
68980
|
+
while (len = input.length) {
|
|
68981
|
+
if (len === 1) {
|
|
68982
|
+
if (input === '.') {
|
|
68983
|
+
break
|
|
68984
|
+
} else if (input === '/') {
|
|
68985
|
+
output.push('/')
|
|
68986
|
+
break
|
|
68987
|
+
} else {
|
|
68988
|
+
output.push(input)
|
|
68989
|
+
break
|
|
68990
|
+
}
|
|
68991
|
+
} else if (len === 2) {
|
|
68992
|
+
if (input[0] === '.') {
|
|
68993
|
+
if (input[1] === '.') {
|
|
68994
|
+
break
|
|
68995
|
+
} else if (input[1] === '/') {
|
|
68996
|
+
input = input.slice(2)
|
|
68997
|
+
continue
|
|
68998
|
+
}
|
|
68999
|
+
} else if (input[0] === '/') {
|
|
69000
|
+
if (input[1] === '.' || input[1] === '/') {
|
|
69001
|
+
output.push('/')
|
|
69002
|
+
break
|
|
69003
|
+
}
|
|
69004
|
+
}
|
|
69005
|
+
} else if (len === 3) {
|
|
69006
|
+
if (input === '/..') {
|
|
69007
|
+
if (output.length !== 0) {
|
|
69008
|
+
output.pop()
|
|
69009
|
+
}
|
|
69010
|
+
output.push('/')
|
|
69011
|
+
break
|
|
69012
|
+
}
|
|
69013
|
+
}
|
|
69014
|
+
if (input[0] === '.') {
|
|
69015
|
+
if (input[1] === '.') {
|
|
69016
|
+
if (input[2] === '/') {
|
|
69017
|
+
input = input.slice(3)
|
|
69018
|
+
continue
|
|
69019
|
+
}
|
|
69020
|
+
} else if (input[1] === '/') {
|
|
69021
|
+
input = input.slice(2)
|
|
69022
|
+
continue
|
|
69023
|
+
}
|
|
69024
|
+
} else if (input[0] === '/') {
|
|
69025
|
+
if (input[1] === '.') {
|
|
69026
|
+
if (input[2] === '/') {
|
|
69027
|
+
input = input.slice(2)
|
|
69028
|
+
continue
|
|
69029
|
+
} else if (input[2] === '.') {
|
|
69030
|
+
if (input[3] === '/') {
|
|
69031
|
+
input = input.slice(3)
|
|
69032
|
+
if (output.length !== 0) {
|
|
69033
|
+
output.pop()
|
|
69034
|
+
}
|
|
69035
|
+
continue
|
|
69036
|
+
}
|
|
69037
|
+
}
|
|
69038
|
+
}
|
|
69039
|
+
}
|
|
69040
|
+
|
|
69041
|
+
// Rule 2E: Move normal path segment to output
|
|
69042
|
+
if ((nextSlash = input.indexOf('/', 1)) === -1) {
|
|
69043
|
+
output.push(input)
|
|
69044
|
+
break
|
|
69045
|
+
} else {
|
|
69046
|
+
output.push(input.slice(0, nextSlash))
|
|
69047
|
+
input = input.slice(nextSlash)
|
|
69048
|
+
}
|
|
69049
|
+
}
|
|
69050
|
+
|
|
69051
|
+
return output.join('')
|
|
69052
|
+
}
|
|
69053
|
+
|
|
69054
|
+
/**
|
|
69055
|
+
* @param {import('../types/index').URIComponent} component
|
|
69056
|
+
* @param {boolean} esc
|
|
69057
|
+
* @returns {import('../types/index').URIComponent}
|
|
69058
|
+
*/
|
|
69059
|
+
function normalizeComponentEncoding (component, esc) {
|
|
69060
|
+
const func = esc !== true ? escape : unescape
|
|
69061
|
+
if (component.scheme !== undefined) {
|
|
69062
|
+
component.scheme = func(component.scheme)
|
|
69063
|
+
}
|
|
69064
|
+
if (component.userinfo !== undefined) {
|
|
69065
|
+
component.userinfo = func(component.userinfo)
|
|
69066
|
+
}
|
|
69067
|
+
if (component.host !== undefined) {
|
|
69068
|
+
component.host = func(component.host)
|
|
69069
|
+
}
|
|
69070
|
+
if (component.path !== undefined) {
|
|
69071
|
+
component.path = func(component.path)
|
|
69072
|
+
}
|
|
69073
|
+
if (component.query !== undefined) {
|
|
69074
|
+
component.query = func(component.query)
|
|
69075
|
+
}
|
|
69076
|
+
if (component.fragment !== undefined) {
|
|
69077
|
+
component.fragment = func(component.fragment)
|
|
69078
|
+
}
|
|
69079
|
+
return component
|
|
69080
|
+
}
|
|
69081
|
+
|
|
69082
|
+
/**
|
|
69083
|
+
* @param {import('../types/index').URIComponent} component
|
|
69084
|
+
* @returns {string|undefined}
|
|
69085
|
+
*/
|
|
69086
|
+
function recomposeAuthority (component) {
|
|
69087
|
+
const uriTokens = []
|
|
69088
|
+
|
|
69089
|
+
if (component.userinfo !== undefined) {
|
|
69090
|
+
uriTokens.push(component.userinfo)
|
|
69091
|
+
uriTokens.push('@')
|
|
69092
|
+
}
|
|
69093
|
+
|
|
69094
|
+
if (component.host !== undefined) {
|
|
69095
|
+
let host = unescape(component.host)
|
|
69096
|
+
if (!isIPv4(host)) {
|
|
69097
|
+
const ipV6res = normalizeIPv6(host)
|
|
69098
|
+
if (ipV6res.isIPV6 === true) {
|
|
69099
|
+
host = `[${ipV6res.escapedHost}]`
|
|
69100
|
+
} else {
|
|
69101
|
+
host = component.host
|
|
69102
|
+
}
|
|
69103
|
+
}
|
|
69104
|
+
uriTokens.push(host)
|
|
69105
|
+
}
|
|
69106
|
+
|
|
69107
|
+
if (typeof component.port === 'number' || typeof component.port === 'string') {
|
|
69108
|
+
uriTokens.push(':')
|
|
69109
|
+
uriTokens.push(String(component.port))
|
|
69110
|
+
}
|
|
69111
|
+
|
|
69112
|
+
return uriTokens.length ? uriTokens.join('') : undefined
|
|
69113
|
+
};
|
|
69114
|
+
|
|
69115
|
+
module.exports = {
|
|
69116
|
+
nonSimpleDomain,
|
|
69117
|
+
recomposeAuthority,
|
|
69118
|
+
normalizeComponentEncoding,
|
|
69119
|
+
removeDotSegments,
|
|
69120
|
+
isIPv4,
|
|
69121
|
+
isUUID,
|
|
69122
|
+
normalizeIPv6,
|
|
69123
|
+
stringArrayToHexStripped
|
|
69124
|
+
}
|
|
69125
|
+
|
|
69126
|
+
|
|
69589
69127
|
/***/ },
|
|
69590
69128
|
|
|
69591
69129
|
/***/ 738863
|
|
@@ -71442,9 +70980,9 @@ var lib = JSON5;
|
|
|
71442
70980
|
|
|
71443
70981
|
/***/ },
|
|
71444
70982
|
|
|
71445
|
-
/***/
|
|
70983
|
+
/***/ 38849
|
|
71446
70984
|
/*!************************************************************************************************************************************************!*\
|
|
71447
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv-draft-04@1.0.0_ajv@8.
|
|
70985
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv-draft-04@1.0.0_ajv@8.18.0/node_modules/ajv-draft-04/dist/refs/json-schema-draft-04.json ***!
|
|
71448
70986
|
\************************************************************************************************************************************************/
|
|
71449
70987
|
(module) {
|
|
71450
70988
|
|
|
@@ -71453,9 +70991,9 @@ module.exports = /*#__PURE__*/JSON.parse('{"id":"http://json-schema.org/draft-04
|
|
|
71453
70991
|
|
|
71454
70992
|
/***/ },
|
|
71455
70993
|
|
|
71456
|
-
/***/
|
|
70994
|
+
/***/ 847031
|
|
71457
70995
|
/*!****************************************************************************************************!*\
|
|
71458
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
70996
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/data.json ***!
|
|
71459
70997
|
\****************************************************************************************************/
|
|
71460
70998
|
(module) {
|
|
71461
70999
|
|
|
@@ -71464,9 +71002,9 @@ module.exports = /*#__PURE__*/JSON.parse('{"$id":"https://raw.githubusercontent.
|
|
|
71464
71002
|
|
|
71465
71003
|
/***/ },
|
|
71466
71004
|
|
|
71467
|
-
/***/
|
|
71005
|
+
/***/ 547973
|
|
71468
71006
|
/*!********************************************************************************************************************!*\
|
|
71469
|
-
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.
|
|
71007
|
+
!*** ../../common/temp/default/node_modules/.pnpm/ajv@8.18.0/node_modules/ajv/dist/refs/json-schema-draft-07.json ***!
|
|
71470
71008
|
\********************************************************************************************************************/
|
|
71471
71009
|
(module) {
|
|
71472
71010
|
|