@umbraco-cms/mcp-dev 17.3.6 → 17.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -7,10 +7,11 @@
7
7
 
8
8
 
9
9
 
10
- var _chunk6IL4IQKWcjs = require('./chunk-6IL4IQKW.cjs');
10
+
11
+ var _chunkOBOSCZYRcjs = require('./chunk-OBOSCZYR.cjs');
11
12
 
12
13
  // node_modules/ajv/dist/compile/codegen/code.js
13
- var require_code = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
14
+ var require_code = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
14
15
  "node_modules/ajv/dist/compile/codegen/code.js"(exports) {
15
16
  "use strict";
16
17
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -164,7 +165,7 @@ var require_code = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
164
165
  });
165
166
 
166
167
  // node_modules/ajv/dist/compile/codegen/scope.js
167
- var require_scope = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
168
+ var require_scope = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
168
169
  "node_modules/ajv/dist/compile/codegen/scope.js"(exports) {
169
170
  "use strict";
170
171
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -309,7 +310,7 @@ var require_scope = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
309
310
  });
310
311
 
311
312
  // node_modules/ajv/dist/compile/codegen/index.js
312
- var require_codegen = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
313
+ var require_codegen = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
313
314
  "node_modules/ajv/dist/compile/codegen/index.js"(exports) {
314
315
  "use strict";
315
316
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1029,7 +1030,7 @@ var require_codegen = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
1029
1030
  });
1030
1031
 
1031
1032
  // node_modules/ajv/dist/compile/util.js
1032
- var require_util = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
1033
+ var require_util = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
1033
1034
  "node_modules/ajv/dist/compile/util.js"(exports) {
1034
1035
  "use strict";
1035
1036
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1196,7 +1197,7 @@ var require_util = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
1196
1197
  });
1197
1198
 
1198
1199
  // node_modules/ajv/dist/compile/names.js
1199
- var require_names = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
1200
+ var require_names = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
1200
1201
  "node_modules/ajv/dist/compile/names.js"(exports) {
1201
1202
  "use strict";
1202
1203
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1235,7 +1236,7 @@ var require_names = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
1235
1236
  });
1236
1237
 
1237
1238
  // node_modules/ajv/dist/compile/errors.js
1238
- var require_errors = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
1239
+ var require_errors = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
1239
1240
  "node_modules/ajv/dist/compile/errors.js"(exports) {
1240
1241
  "use strict";
1241
1242
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1357,7 +1358,7 @@ var require_errors = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
1357
1358
  });
1358
1359
 
1359
1360
  // node_modules/ajv/dist/compile/validate/boolSchema.js
1360
- var require_boolSchema = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
1361
+ var require_boolSchema = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
1361
1362
  "node_modules/ajv/dist/compile/validate/boolSchema.js"(exports) {
1362
1363
  "use strict";
1363
1364
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1408,7 +1409,7 @@ var require_boolSchema = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
1408
1409
  });
1409
1410
 
1410
1411
  // node_modules/ajv/dist/compile/rules.js
1411
- var require_rules = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
1412
+ var require_rules = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
1412
1413
  "node_modules/ajv/dist/compile/rules.js"(exports) {
1413
1414
  "use strict";
1414
1415
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1439,7 +1440,7 @@ var require_rules = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
1439
1440
  });
1440
1441
 
1441
1442
  // node_modules/ajv/dist/compile/validate/applicability.js
1442
- var require_applicability = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
1443
+ var require_applicability = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
1443
1444
  "node_modules/ajv/dist/compile/validate/applicability.js"(exports) {
1444
1445
  "use strict";
1445
1446
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1462,7 +1463,7 @@ var require_applicability = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
1462
1463
  });
1463
1464
 
1464
1465
  // node_modules/ajv/dist/compile/validate/dataType.js
1465
- var require_dataType = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
1466
+ var require_dataType = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
1466
1467
  "node_modules/ajv/dist/compile/validate/dataType.js"(exports) {
1467
1468
  "use strict";
1468
1469
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1646,7 +1647,7 @@ var require_dataType = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
1646
1647
  });
1647
1648
 
1648
1649
  // node_modules/ajv/dist/compile/validate/defaults.js
1649
- var require_defaults = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
1650
+ var require_defaults = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
1650
1651
  "node_modules/ajv/dist/compile/validate/defaults.js"(exports) {
1651
1652
  "use strict";
1652
1653
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1683,7 +1684,7 @@ var require_defaults = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
1683
1684
  });
1684
1685
 
1685
1686
  // node_modules/ajv/dist/vocabularies/code.js
1686
- var require_code2 = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
1687
+ var require_code2 = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
1687
1688
  "node_modules/ajv/dist/vocabularies/code.js"(exports) {
1688
1689
  "use strict";
1689
1690
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1816,7 +1817,7 @@ var require_code2 = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
1816
1817
  });
1817
1818
 
1818
1819
  // node_modules/ajv/dist/compile/validate/keyword.js
1819
- var require_keyword = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
1820
+ var require_keyword = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
1820
1821
  "node_modules/ajv/dist/compile/validate/keyword.js"(exports) {
1821
1822
  "use strict";
1822
1823
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1934,7 +1935,7 @@ var require_keyword = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
1934
1935
  });
1935
1936
 
1936
1937
  // node_modules/ajv/dist/compile/validate/subschema.js
1937
- var require_subschema = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
1938
+ var require_subschema = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
1938
1939
  "node_modules/ajv/dist/compile/validate/subschema.js"(exports) {
1939
1940
  "use strict";
1940
1941
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -2017,7 +2018,7 @@ var require_subschema = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
2017
2018
  });
2018
2019
 
2019
2020
  // node_modules/fast-deep-equal/index.js
2020
- var require_fast_deep_equal = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
2021
+ var require_fast_deep_equal = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
2021
2022
  "node_modules/fast-deep-equal/index.js"(exports, module) {
2022
2023
  "use strict";
2023
2024
  module.exports = function equal(a, b) {
@@ -2052,7 +2053,7 @@ var require_fast_deep_equal = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
2052
2053
  });
2053
2054
 
2054
2055
  // node_modules/json-schema-traverse/index.js
2055
- var require_json_schema_traverse = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
2056
+ var require_json_schema_traverse = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
2056
2057
  "node_modules/json-schema-traverse/index.js"(exports, module) {
2057
2058
  "use strict";
2058
2059
  var traverse = module.exports = function(schema, opts, cb) {
@@ -2140,7 +2141,7 @@ var require_json_schema_traverse = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
2140
2141
  });
2141
2142
 
2142
2143
  // node_modules/ajv/dist/compile/resolve.js
2143
- var require_resolve = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
2144
+ var require_resolve = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
2144
2145
  "node_modules/ajv/dist/compile/resolve.js"(exports) {
2145
2146
  "use strict";
2146
2147
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -2296,7 +2297,7 @@ var require_resolve = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
2296
2297
  });
2297
2298
 
2298
2299
  // node_modules/ajv/dist/compile/validate/index.js
2299
- var require_validate = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
2300
+ var require_validate = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
2300
2301
  "node_modules/ajv/dist/compile/validate/index.js"(exports) {
2301
2302
  "use strict";
2302
2303
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -2804,7 +2805,7 @@ var require_validate = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
2804
2805
  });
2805
2806
 
2806
2807
  // node_modules/ajv/dist/runtime/validation_error.js
2807
- var require_validation_error = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
2808
+ var require_validation_error = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
2808
2809
  "node_modules/ajv/dist/runtime/validation_error.js"(exports) {
2809
2810
  "use strict";
2810
2811
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -2820,7 +2821,7 @@ var require_validation_error = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
2820
2821
  });
2821
2822
 
2822
2823
  // node_modules/ajv/dist/compile/ref_error.js
2823
- var require_ref_error = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
2824
+ var require_ref_error = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
2824
2825
  "node_modules/ajv/dist/compile/ref_error.js"(exports) {
2825
2826
  "use strict";
2826
2827
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -2837,7 +2838,7 @@ var require_ref_error = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
2837
2838
  });
2838
2839
 
2839
2840
  // node_modules/ajv/dist/compile/index.js
2840
- var require_compile = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
2841
+ var require_compile = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
2841
2842
  "node_modules/ajv/dist/compile/index.js"(exports) {
2842
2843
  "use strict";
2843
2844
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -3061,7 +3062,7 @@ var require_compile = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
3061
3062
  });
3062
3063
 
3063
3064
  // node_modules/ajv/dist/refs/data.json
3064
- var require_data = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
3065
+ var require_data = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
3065
3066
  "node_modules/ajv/dist/refs/data.json"(exports, module) {
3066
3067
  module.exports = {
3067
3068
  $id: "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",
@@ -3080,11 +3081,14 @@ var require_data = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
3080
3081
  });
3081
3082
 
3082
3083
  // node_modules/fast-uri/lib/utils.js
3083
- var require_utils = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
3084
+ var require_utils = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
3084
3085
  "node_modules/fast-uri/lib/utils.js"(exports, module) {
3085
3086
  "use strict";
3086
3087
  var isUUID = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu);
3087
3088
  var isIPv4 = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u);
3089
+ var isHexPair = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu);
3090
+ var isUnreserved = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu);
3091
+ var isPathCharacter = RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);
3088
3092
  function stringArrayToHexStripped(input) {
3089
3093
  let acc = "";
3090
3094
  let code = 0;
@@ -3277,27 +3281,77 @@ var require_utils = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
3277
3281
  }
3278
3282
  return output.join("");
3279
3283
  }
3280
- function normalizeComponentEncoding(component, esc) {
3281
- const func = esc !== true ? escape : unescape;
3282
- if (component.scheme !== void 0) {
3283
- component.scheme = func(component.scheme);
3284
- }
3285
- if (component.userinfo !== void 0) {
3286
- component.userinfo = func(component.userinfo);
3287
- }
3288
- if (component.host !== void 0) {
3289
- component.host = func(component.host);
3284
+ var HOST_DELIMS = { "@": "%40", "/": "%2F", "?": "%3F", "#": "%23", ":": "%3A" };
3285
+ var HOST_DELIM_RE = /[@/?#:]/g;
3286
+ var HOST_DELIM_NO_COLON_RE = /[@/?#]/g;
3287
+ function reescapeHostDelimiters(host, isIP) {
3288
+ const re = isIP ? HOST_DELIM_NO_COLON_RE : HOST_DELIM_RE;
3289
+ re.lastIndex = 0;
3290
+ return host.replace(re, (ch) => HOST_DELIMS[ch]);
3291
+ }
3292
+ function normalizePercentEncoding(input, decodeUnreserved = false) {
3293
+ if (input.indexOf("%") === -1) {
3294
+ return input;
3290
3295
  }
3291
- if (component.path !== void 0) {
3292
- component.path = func(component.path);
3296
+ let output = "";
3297
+ for (let i = 0; i < input.length; i++) {
3298
+ if (input[i] === "%" && i + 2 < input.length) {
3299
+ const hex = input.slice(i + 1, i + 3);
3300
+ if (isHexPair(hex)) {
3301
+ const normalizedHex = hex.toUpperCase();
3302
+ const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
3303
+ if (decodeUnreserved && isUnreserved(decoded)) {
3304
+ output += decoded;
3305
+ } else {
3306
+ output += "%" + normalizedHex;
3307
+ }
3308
+ i += 2;
3309
+ continue;
3310
+ }
3311
+ }
3312
+ output += input[i];
3293
3313
  }
3294
- if (component.query !== void 0) {
3295
- component.query = func(component.query);
3314
+ return output;
3315
+ }
3316
+ function normalizePathEncoding(input) {
3317
+ let output = "";
3318
+ for (let i = 0; i < input.length; i++) {
3319
+ if (input[i] === "%" && i + 2 < input.length) {
3320
+ const hex = input.slice(i + 1, i + 3);
3321
+ if (isHexPair(hex)) {
3322
+ const normalizedHex = hex.toUpperCase();
3323
+ const decoded = String.fromCharCode(parseInt(normalizedHex, 16));
3324
+ if (decoded !== "." && isUnreserved(decoded)) {
3325
+ output += decoded;
3326
+ } else {
3327
+ output += "%" + normalizedHex;
3328
+ }
3329
+ i += 2;
3330
+ continue;
3331
+ }
3332
+ }
3333
+ if (isPathCharacter(input[i])) {
3334
+ output += input[i];
3335
+ } else {
3336
+ output += escape(input[i]);
3337
+ }
3296
3338
  }
3297
- if (component.fragment !== void 0) {
3298
- component.fragment = func(component.fragment);
3339
+ return output;
3340
+ }
3341
+ function escapePreservingEscapes(input) {
3342
+ let output = "";
3343
+ for (let i = 0; i < input.length; i++) {
3344
+ if (input[i] === "%" && i + 2 < input.length) {
3345
+ const hex = input.slice(i + 1, i + 3);
3346
+ if (isHexPair(hex)) {
3347
+ output += "%" + hex.toUpperCase();
3348
+ i += 2;
3349
+ continue;
3350
+ }
3351
+ }
3352
+ output += escape(input[i]);
3299
3353
  }
3300
- return component;
3354
+ return output;
3301
3355
  }
3302
3356
  function recomposeAuthority(component) {
3303
3357
  const uriTokens = [];
@@ -3312,7 +3366,7 @@ var require_utils = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
3312
3366
  if (ipV6res.isIPV6 === true) {
3313
3367
  host = `[${ipV6res.escapedHost}]`;
3314
3368
  } else {
3315
- host = component.host;
3369
+ host = reescapeHostDelimiters(host, false);
3316
3370
  }
3317
3371
  }
3318
3372
  uriTokens.push(host);
@@ -3326,7 +3380,10 @@ var require_utils = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
3326
3380
  module.exports = {
3327
3381
  nonSimpleDomain,
3328
3382
  recomposeAuthority,
3329
- normalizeComponentEncoding,
3383
+ reescapeHostDelimiters,
3384
+ normalizePercentEncoding,
3385
+ normalizePathEncoding,
3386
+ escapePreservingEscapes,
3330
3387
  removeDotSegments,
3331
3388
  isIPv4,
3332
3389
  isUUID,
@@ -3337,7 +3394,7 @@ var require_utils = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
3337
3394
  });
3338
3395
 
3339
3396
  // node_modules/fast-uri/lib/schemes.js
3340
- var require_schemes = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
3397
+ var require_schemes = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
3341
3398
  "node_modules/fast-uri/lib/schemes.js"(exports, module) {
3342
3399
  "use strict";
3343
3400
  var { isUUID } = require_utils();
@@ -3547,15 +3604,15 @@ var require_schemes = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
3547
3604
  });
3548
3605
 
3549
3606
  // node_modules/fast-uri/index.js
3550
- var require_fast_uri = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
3607
+ var require_fast_uri = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
3551
3608
  "node_modules/fast-uri/index.js"(exports, module) {
3552
3609
  "use strict";
3553
- var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizeComponentEncoding, isIPv4, nonSimpleDomain } = require_utils();
3610
+ var { normalizeIPv6, removeDotSegments, recomposeAuthority, normalizePercentEncoding, normalizePathEncoding, escapePreservingEscapes, reescapeHostDelimiters, isIPv4, nonSimpleDomain } = require_utils();
3554
3611
  var { SCHEMES, getSchemeHandler } = require_schemes();
3555
3612
  function normalize(uri, options) {
3556
3613
  if (typeof uri === "string") {
3557
3614
  uri = /** @type {T} */
3558
- serialize(parse(uri, options), options);
3615
+ normalizeString(uri, options);
3559
3616
  } else if (typeof uri === "object") {
3560
3617
  uri = /** @type {T} */
3561
3618
  parse(serialize(uri, options), options);
@@ -3622,19 +3679,9 @@ var require_fast_uri = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
3622
3679
  return target;
3623
3680
  }
3624
3681
  function equal(uriA, uriB, options) {
3625
- if (typeof uriA === "string") {
3626
- uriA = unescape(uriA);
3627
- uriA = serialize(normalizeComponentEncoding(parse(uriA, options), true), { ...options, skipEscape: true });
3628
- } else if (typeof uriA === "object") {
3629
- uriA = serialize(normalizeComponentEncoding(uriA, true), { ...options, skipEscape: true });
3630
- }
3631
- if (typeof uriB === "string") {
3632
- uriB = unescape(uriB);
3633
- uriB = serialize(normalizeComponentEncoding(parse(uriB, options), true), { ...options, skipEscape: true });
3634
- } else if (typeof uriB === "object") {
3635
- uriB = serialize(normalizeComponentEncoding(uriB, true), { ...options, skipEscape: true });
3636
- }
3637
- return uriA.toLowerCase() === uriB.toLowerCase();
3682
+ const normalizedA = normalizeComparableURI(uriA, options);
3683
+ const normalizedB = normalizeComparableURI(uriB, options);
3684
+ return normalizedA !== void 0 && normalizedB !== void 0 && normalizedA.toLowerCase() === normalizedB.toLowerCase();
3638
3685
  }
3639
3686
  function serialize(cmpts, opts) {
3640
3687
  const component = {
@@ -3659,12 +3706,12 @@ var require_fast_uri = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
3659
3706
  if (schemeHandler && schemeHandler.serialize) schemeHandler.serialize(component, options);
3660
3707
  if (component.path !== void 0) {
3661
3708
  if (!options.skipEscape) {
3662
- component.path = escape(component.path);
3709
+ component.path = escapePreservingEscapes(component.path);
3663
3710
  if (component.scheme !== void 0) {
3664
3711
  component.path = component.path.split("%3A").join(":");
3665
3712
  }
3666
3713
  } else {
3667
- component.path = unescape(component.path);
3714
+ component.path = normalizePercentEncoding(component.path);
3668
3715
  }
3669
3716
  }
3670
3717
  if (options.reference !== "suffix" && component.scheme) {
@@ -3699,7 +3746,16 @@ var require_fast_uri = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
3699
3746
  return uriTokens.join("");
3700
3747
  }
3701
3748
  var URI_PARSE = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;
3702
- function parse(uri, opts) {
3749
+ function getParseError(parsed, matches) {
3750
+ if (matches[2] !== void 0 && parsed.path && parsed.path[0] !== "/") {
3751
+ return 'URI path must start with "/" when authority is present.';
3752
+ }
3753
+ if (typeof parsed.port === "number" && (parsed.port < 0 || parsed.port > 65535)) {
3754
+ return "URI port is malformed.";
3755
+ }
3756
+ return void 0;
3757
+ }
3758
+ function parseWithStatus(uri, opts) {
3703
3759
  const options = Object.assign({}, opts);
3704
3760
  const parsed = {
3705
3761
  scheme: void 0,
@@ -3710,6 +3766,7 @@ var require_fast_uri = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
3710
3766
  query: void 0,
3711
3767
  fragment: void 0
3712
3768
  };
3769
+ let malformedAuthorityOrPort = false;
3713
3770
  let isIP = false;
3714
3771
  if (options.reference === "suffix") {
3715
3772
  if (options.scheme) {
@@ -3730,6 +3787,11 @@ var require_fast_uri = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
3730
3787
  if (isNaN(parsed.port)) {
3731
3788
  parsed.port = matches[5];
3732
3789
  }
3790
+ const parseError = getParseError(parsed, matches);
3791
+ if (parseError !== void 0) {
3792
+ parsed.error = parsed.error || parseError;
3793
+ malformedAuthorityOrPort = true;
3794
+ }
3733
3795
  if (parsed.host) {
3734
3796
  const ipv4result = isIPv4(parsed.host);
3735
3797
  if (ipv4result === false) {
@@ -3768,14 +3830,18 @@ var require_fast_uri = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
3768
3830
  parsed.scheme = unescape(parsed.scheme);
3769
3831
  }
3770
3832
  if (parsed.host !== void 0) {
3771
- parsed.host = unescape(parsed.host);
3833
+ parsed.host = reescapeHostDelimiters(unescape(parsed.host), isIP);
3772
3834
  }
3773
3835
  }
3774
3836
  if (parsed.path) {
3775
- parsed.path = escape(unescape(parsed.path));
3837
+ parsed.path = normalizePathEncoding(parsed.path);
3776
3838
  }
3777
3839
  if (parsed.fragment) {
3778
- parsed.fragment = encodeURI(decodeURIComponent(parsed.fragment));
3840
+ try {
3841
+ parsed.fragment = encodeURI(decodeURIComponent(parsed.fragment));
3842
+ } catch (e2) {
3843
+ parsed.error = parsed.error || "URI malformed";
3844
+ }
3779
3845
  }
3780
3846
  }
3781
3847
  if (schemeHandler && schemeHandler.parse) {
@@ -3784,7 +3850,29 @@ var require_fast_uri = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
3784
3850
  } else {
3785
3851
  parsed.error = parsed.error || "URI can not be parsed.";
3786
3852
  }
3787
- return parsed;
3853
+ return { parsed, malformedAuthorityOrPort };
3854
+ }
3855
+ function parse(uri, opts) {
3856
+ return parseWithStatus(uri, opts).parsed;
3857
+ }
3858
+ function normalizeString(uri, opts) {
3859
+ return normalizeStringWithStatus(uri, opts).normalized;
3860
+ }
3861
+ function normalizeStringWithStatus(uri, opts) {
3862
+ const { parsed, malformedAuthorityOrPort } = parseWithStatus(uri, opts);
3863
+ return {
3864
+ normalized: malformedAuthorityOrPort ? uri : serialize(parsed, opts),
3865
+ malformedAuthorityOrPort
3866
+ };
3867
+ }
3868
+ function normalizeComparableURI(uri, opts) {
3869
+ if (typeof uri === "string") {
3870
+ const { normalized, malformedAuthorityOrPort } = normalizeStringWithStatus(uri, opts);
3871
+ return malformedAuthorityOrPort ? void 0 : normalized;
3872
+ }
3873
+ if (typeof uri === "object") {
3874
+ return serialize(uri, opts);
3875
+ }
3788
3876
  }
3789
3877
  var fastUri = {
3790
3878
  SCHEMES,
@@ -3802,7 +3890,7 @@ var require_fast_uri = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
3802
3890
  });
3803
3891
 
3804
3892
  // node_modules/ajv/dist/runtime/uri.js
3805
- var require_uri = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
3893
+ var require_uri = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
3806
3894
  "node_modules/ajv/dist/runtime/uri.js"(exports) {
3807
3895
  "use strict";
3808
3896
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -3813,7 +3901,7 @@ var require_uri = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
3813
3901
  });
3814
3902
 
3815
3903
  // node_modules/ajv/dist/core.js
3816
- var require_core = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
3904
+ var require_core = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
3817
3905
  "node_modules/ajv/dist/core.js"(exports) {
3818
3906
  "use strict";
3819
3907
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -4424,7 +4512,7 @@ var require_core = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
4424
4512
  });
4425
4513
 
4426
4514
  // node_modules/ajv/dist/vocabularies/core/id.js
4427
- var require_id = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
4515
+ var require_id = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
4428
4516
  "node_modules/ajv/dist/vocabularies/core/id.js"(exports) {
4429
4517
  "use strict";
4430
4518
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -4439,7 +4527,7 @@ var require_id = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
4439
4527
  });
4440
4528
 
4441
4529
  // node_modules/ajv/dist/vocabularies/core/ref.js
4442
- var require_ref = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
4530
+ var require_ref = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
4443
4531
  "node_modules/ajv/dist/vocabularies/core/ref.js"(exports) {
4444
4532
  "use strict";
4445
4533
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -4561,7 +4649,7 @@ var require_ref = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
4561
4649
  });
4562
4650
 
4563
4651
  // node_modules/ajv/dist/vocabularies/core/index.js
4564
- var require_core2 = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
4652
+ var require_core2 = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
4565
4653
  "node_modules/ajv/dist/vocabularies/core/index.js"(exports) {
4566
4654
  "use strict";
4567
4655
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -4582,7 +4670,7 @@ var require_core2 = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
4582
4670
  });
4583
4671
 
4584
4672
  // node_modules/ajv/dist/vocabularies/validation/limitNumber.js
4585
- var require_limitNumber = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
4673
+ var require_limitNumber = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
4586
4674
  "node_modules/ajv/dist/vocabularies/validation/limitNumber.js"(exports) {
4587
4675
  "use strict";
4588
4676
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -4614,7 +4702,7 @@ var require_limitNumber = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
4614
4702
  });
4615
4703
 
4616
4704
  // node_modules/ajv/dist/vocabularies/validation/multipleOf.js
4617
- var require_multipleOf = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
4705
+ var require_multipleOf = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
4618
4706
  "node_modules/ajv/dist/vocabularies/validation/multipleOf.js"(exports) {
4619
4707
  "use strict";
4620
4708
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -4642,7 +4730,7 @@ var require_multipleOf = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
4642
4730
  });
4643
4731
 
4644
4732
  // node_modules/ajv/dist/runtime/ucs2length.js
4645
- var require_ucs2length = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
4733
+ var require_ucs2length = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
4646
4734
  "node_modules/ajv/dist/runtime/ucs2length.js"(exports) {
4647
4735
  "use strict";
4648
4736
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -4668,7 +4756,7 @@ var require_ucs2length = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
4668
4756
  });
4669
4757
 
4670
4758
  // node_modules/ajv/dist/vocabularies/validation/limitLength.js
4671
- var require_limitLength = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
4759
+ var require_limitLength = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
4672
4760
  "node_modules/ajv/dist/vocabularies/validation/limitLength.js"(exports) {
4673
4761
  "use strict";
4674
4762
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -4700,7 +4788,7 @@ var require_limitLength = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
4700
4788
  });
4701
4789
 
4702
4790
  // node_modules/ajv/dist/vocabularies/validation/pattern.js
4703
- var require_pattern = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
4791
+ var require_pattern = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
4704
4792
  "node_modules/ajv/dist/vocabularies/validation/pattern.js"(exports) {
4705
4793
  "use strict";
4706
4794
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -4737,7 +4825,7 @@ var require_pattern = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
4737
4825
  });
4738
4826
 
4739
4827
  // node_modules/ajv/dist/vocabularies/validation/limitProperties.js
4740
- var require_limitProperties = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
4828
+ var require_limitProperties = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
4741
4829
  "node_modules/ajv/dist/vocabularies/validation/limitProperties.js"(exports) {
4742
4830
  "use strict";
4743
4831
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -4766,7 +4854,7 @@ var require_limitProperties = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
4766
4854
  });
4767
4855
 
4768
4856
  // node_modules/ajv/dist/vocabularies/validation/required.js
4769
- var require_required = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
4857
+ var require_required = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
4770
4858
  "node_modules/ajv/dist/vocabularies/validation/required.js"(exports) {
4771
4859
  "use strict";
4772
4860
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -4848,7 +4936,7 @@ var require_required = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
4848
4936
  });
4849
4937
 
4850
4938
  // node_modules/ajv/dist/vocabularies/validation/limitItems.js
4851
- var require_limitItems = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
4939
+ var require_limitItems = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
4852
4940
  "node_modules/ajv/dist/vocabularies/validation/limitItems.js"(exports) {
4853
4941
  "use strict";
4854
4942
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -4877,7 +4965,7 @@ var require_limitItems = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
4877
4965
  });
4878
4966
 
4879
4967
  // node_modules/ajv/dist/runtime/equal.js
4880
- var require_equal = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
4968
+ var require_equal = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
4881
4969
  "node_modules/ajv/dist/runtime/equal.js"(exports) {
4882
4970
  "use strict";
4883
4971
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -4888,7 +4976,7 @@ var require_equal = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
4888
4976
  });
4889
4977
 
4890
4978
  // node_modules/ajv/dist/vocabularies/validation/uniqueItems.js
4891
- var require_uniqueItems = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
4979
+ var require_uniqueItems = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
4892
4980
  "node_modules/ajv/dist/vocabularies/validation/uniqueItems.js"(exports) {
4893
4981
  "use strict";
4894
4982
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -4955,7 +5043,7 @@ var require_uniqueItems = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
4955
5043
  });
4956
5044
 
4957
5045
  // node_modules/ajv/dist/vocabularies/validation/const.js
4958
- var require_const = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
5046
+ var require_const = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
4959
5047
  "node_modules/ajv/dist/vocabularies/validation/const.js"(exports) {
4960
5048
  "use strict";
4961
5049
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -4984,7 +5072,7 @@ var require_const = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
4984
5072
  });
4985
5073
 
4986
5074
  // node_modules/ajv/dist/vocabularies/validation/enum.js
4987
- var require_enum = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
5075
+ var require_enum = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
4988
5076
  "node_modules/ajv/dist/vocabularies/validation/enum.js"(exports) {
4989
5077
  "use strict";
4990
5078
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -5033,7 +5121,7 @@ var require_enum = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
5033
5121
  });
5034
5122
 
5035
5123
  // node_modules/ajv/dist/vocabularies/validation/index.js
5036
- var require_validation = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
5124
+ var require_validation = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
5037
5125
  "node_modules/ajv/dist/vocabularies/validation/index.js"(exports) {
5038
5126
  "use strict";
5039
5127
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -5071,7 +5159,7 @@ var require_validation = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
5071
5159
  });
5072
5160
 
5073
5161
  // node_modules/ajv/dist/vocabularies/applicator/additionalItems.js
5074
- var require_additionalItems = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
5162
+ var require_additionalItems = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
5075
5163
  "node_modules/ajv/dist/vocabularies/applicator/additionalItems.js"(exports) {
5076
5164
  "use strict";
5077
5165
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -5124,7 +5212,7 @@ var require_additionalItems = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
5124
5212
  });
5125
5213
 
5126
5214
  // node_modules/ajv/dist/vocabularies/applicator/items.js
5127
- var require_items = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
5215
+ var require_items = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
5128
5216
  "node_modules/ajv/dist/vocabularies/applicator/items.js"(exports) {
5129
5217
  "use strict";
5130
5218
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -5181,7 +5269,7 @@ var require_items = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
5181
5269
  });
5182
5270
 
5183
5271
  // node_modules/ajv/dist/vocabularies/applicator/prefixItems.js
5184
- var require_prefixItems = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
5272
+ var require_prefixItems = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
5185
5273
  "node_modules/ajv/dist/vocabularies/applicator/prefixItems.js"(exports) {
5186
5274
  "use strict";
5187
5275
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -5198,7 +5286,7 @@ var require_prefixItems = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
5198
5286
  });
5199
5287
 
5200
5288
  // node_modules/ajv/dist/vocabularies/applicator/items2020.js
5201
- var require_items2020 = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
5289
+ var require_items2020 = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
5202
5290
  "node_modules/ajv/dist/vocabularies/applicator/items2020.js"(exports) {
5203
5291
  "use strict";
5204
5292
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -5233,7 +5321,7 @@ var require_items2020 = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
5233
5321
  });
5234
5322
 
5235
5323
  // node_modules/ajv/dist/vocabularies/applicator/contains.js
5236
- var require_contains = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
5324
+ var require_contains = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
5237
5325
  "node_modules/ajv/dist/vocabularies/applicator/contains.js"(exports) {
5238
5326
  "use strict";
5239
5327
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -5327,7 +5415,7 @@ var require_contains = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
5327
5415
  });
5328
5416
 
5329
5417
  // node_modules/ajv/dist/vocabularies/applicator/dependencies.js
5330
- var require_dependencies = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
5418
+ var require_dependencies = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
5331
5419
  "node_modules/ajv/dist/vocabularies/applicator/dependencies.js"(exports) {
5332
5420
  "use strict";
5333
5421
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -5421,7 +5509,7 @@ var require_dependencies = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
5421
5509
  });
5422
5510
 
5423
5511
  // node_modules/ajv/dist/vocabularies/applicator/propertyNames.js
5424
- var require_propertyNames = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
5512
+ var require_propertyNames = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
5425
5513
  "node_modules/ajv/dist/vocabularies/applicator/propertyNames.js"(exports) {
5426
5514
  "use strict";
5427
5515
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -5464,7 +5552,7 @@ var require_propertyNames = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
5464
5552
  });
5465
5553
 
5466
5554
  // node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js
5467
- var require_additionalProperties = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
5555
+ var require_additionalProperties = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
5468
5556
  "node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js"(exports) {
5469
5557
  "use strict";
5470
5558
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -5570,7 +5658,7 @@ var require_additionalProperties = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
5570
5658
  });
5571
5659
 
5572
5660
  // node_modules/ajv/dist/vocabularies/applicator/properties.js
5573
- var require_properties = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
5661
+ var require_properties = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
5574
5662
  "node_modules/ajv/dist/vocabularies/applicator/properties.js"(exports) {
5575
5663
  "use strict";
5576
5664
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -5628,7 +5716,7 @@ var require_properties = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
5628
5716
  });
5629
5717
 
5630
5718
  // node_modules/ajv/dist/vocabularies/applicator/patternProperties.js
5631
- var require_patternProperties = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
5719
+ var require_patternProperties = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
5632
5720
  "node_modules/ajv/dist/vocabularies/applicator/patternProperties.js"(exports) {
5633
5721
  "use strict";
5634
5722
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -5702,7 +5790,7 @@ var require_patternProperties = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
5702
5790
  });
5703
5791
 
5704
5792
  // node_modules/ajv/dist/vocabularies/applicator/not.js
5705
- var require_not = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
5793
+ var require_not = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
5706
5794
  "node_modules/ajv/dist/vocabularies/applicator/not.js"(exports) {
5707
5795
  "use strict";
5708
5796
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -5733,7 +5821,7 @@ var require_not = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
5733
5821
  });
5734
5822
 
5735
5823
  // node_modules/ajv/dist/vocabularies/applicator/anyOf.js
5736
- var require_anyOf = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
5824
+ var require_anyOf = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
5737
5825
  "node_modules/ajv/dist/vocabularies/applicator/anyOf.js"(exports) {
5738
5826
  "use strict";
5739
5827
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -5750,7 +5838,7 @@ var require_anyOf = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
5750
5838
  });
5751
5839
 
5752
5840
  // node_modules/ajv/dist/vocabularies/applicator/oneOf.js
5753
- var require_oneOf = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
5841
+ var require_oneOf = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
5754
5842
  "node_modules/ajv/dist/vocabularies/applicator/oneOf.js"(exports) {
5755
5843
  "use strict";
5756
5844
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -5808,7 +5896,7 @@ var require_oneOf = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
5808
5896
  });
5809
5897
 
5810
5898
  // node_modules/ajv/dist/vocabularies/applicator/allOf.js
5811
- var require_allOf = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
5899
+ var require_allOf = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
5812
5900
  "node_modules/ajv/dist/vocabularies/applicator/allOf.js"(exports) {
5813
5901
  "use strict";
5814
5902
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -5835,7 +5923,7 @@ var require_allOf = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
5835
5923
  });
5836
5924
 
5837
5925
  // node_modules/ajv/dist/vocabularies/applicator/if.js
5838
- var require_if = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
5926
+ var require_if = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
5839
5927
  "node_modules/ajv/dist/vocabularies/applicator/if.js"(exports) {
5840
5928
  "use strict";
5841
5929
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -5904,7 +5992,7 @@ var require_if = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
5904
5992
  });
5905
5993
 
5906
5994
  // node_modules/ajv/dist/vocabularies/applicator/thenElse.js
5907
- var require_thenElse = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
5995
+ var require_thenElse = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
5908
5996
  "node_modules/ajv/dist/vocabularies/applicator/thenElse.js"(exports) {
5909
5997
  "use strict";
5910
5998
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -5922,7 +6010,7 @@ var require_thenElse = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
5922
6010
  });
5923
6011
 
5924
6012
  // node_modules/ajv/dist/vocabularies/applicator/index.js
5925
- var require_applicator = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
6013
+ var require_applicator = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
5926
6014
  "node_modules/ajv/dist/vocabularies/applicator/index.js"(exports) {
5927
6015
  "use strict";
5928
6016
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -5970,7 +6058,7 @@ var require_applicator = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
5970
6058
  });
5971
6059
 
5972
6060
  // node_modules/ajv/dist/vocabularies/format/format.js
5973
- var require_format = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
6061
+ var require_format = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
5974
6062
  "node_modules/ajv/dist/vocabularies/format/format.js"(exports) {
5975
6063
  "use strict";
5976
6064
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -6060,7 +6148,7 @@ var require_format = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
6060
6148
  });
6061
6149
 
6062
6150
  // node_modules/ajv/dist/vocabularies/format/index.js
6063
- var require_format2 = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
6151
+ var require_format2 = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
6064
6152
  "node_modules/ajv/dist/vocabularies/format/index.js"(exports) {
6065
6153
  "use strict";
6066
6154
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -6071,7 +6159,7 @@ var require_format2 = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
6071
6159
  });
6072
6160
 
6073
6161
  // node_modules/ajv/dist/vocabularies/metadata.js
6074
- var require_metadata = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
6162
+ var require_metadata = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
6075
6163
  "node_modules/ajv/dist/vocabularies/metadata.js"(exports) {
6076
6164
  "use strict";
6077
6165
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -6094,7 +6182,7 @@ var require_metadata = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
6094
6182
  });
6095
6183
 
6096
6184
  // node_modules/ajv/dist/vocabularies/draft7.js
6097
- var require_draft7 = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
6185
+ var require_draft7 = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
6098
6186
  "node_modules/ajv/dist/vocabularies/draft7.js"(exports) {
6099
6187
  "use strict";
6100
6188
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -6116,7 +6204,7 @@ var require_draft7 = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
6116
6204
  });
6117
6205
 
6118
6206
  // node_modules/ajv/dist/vocabularies/discriminator/types.js
6119
- var require_types = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
6207
+ var require_types = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
6120
6208
  "node_modules/ajv/dist/vocabularies/discriminator/types.js"(exports) {
6121
6209
  "use strict";
6122
6210
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -6130,7 +6218,7 @@ var require_types = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
6130
6218
  });
6131
6219
 
6132
6220
  // node_modules/ajv/dist/vocabularies/discriminator/index.js
6133
- var require_discriminator = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
6221
+ var require_discriminator = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
6134
6222
  "node_modules/ajv/dist/vocabularies/discriminator/index.js"(exports) {
6135
6223
  "use strict";
6136
6224
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -6235,7 +6323,7 @@ var require_discriminator = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
6235
6323
  });
6236
6324
 
6237
6325
  // node_modules/ajv/dist/refs/json-schema-draft-07.json
6238
- var require_json_schema_draft_07 = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
6326
+ var require_json_schema_draft_07 = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
6239
6327
  "node_modules/ajv/dist/refs/json-schema-draft-07.json"(exports, module) {
6240
6328
  module.exports = {
6241
6329
  $schema: "http://json-schema.org/draft-07/schema#",
@@ -6392,7 +6480,7 @@ var require_json_schema_draft_07 = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
6392
6480
  });
6393
6481
 
6394
6482
  // node_modules/ajv/dist/ajv.js
6395
- var require_ajv = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
6483
+ var require_ajv = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
6396
6484
  "node_modules/ajv/dist/ajv.js"(exports, module) {
6397
6485
  "use strict";
6398
6486
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -6462,7 +6550,7 @@ var require_ajv = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
6462
6550
  });
6463
6551
 
6464
6552
  // node_modules/ajv-formats/dist/formats.js
6465
- var require_formats = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
6553
+ var require_formats = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
6466
6554
  "node_modules/ajv-formats/dist/formats.js"(exports) {
6467
6555
  "use strict";
6468
6556
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -6665,7 +6753,7 @@ var require_formats = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
6665
6753
  });
6666
6754
 
6667
6755
  // node_modules/ajv-formats/dist/limit.js
6668
- var require_limit = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
6756
+ var require_limit = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
6669
6757
  "node_modules/ajv-formats/dist/limit.js"(exports) {
6670
6758
  "use strict";
6671
6759
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -6737,7 +6825,7 @@ var require_limit = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
6737
6825
  });
6738
6826
 
6739
6827
  // node_modules/ajv-formats/dist/index.js
6740
- var require_dist = _chunk6IL4IQKWcjs.__commonJS.call(void 0, {
6828
+ var require_dist = _chunkOBOSCZYRcjs.__commonJS.call(void 0, {
6741
6829
  "node_modules/ajv-formats/dist/index.js"(exports, module) {
6742
6830
  "use strict";
6743
6831
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -6831,7 +6919,7 @@ function getObjectShape(schema) {
6831
6919
  if (typeof rawShape === "function") {
6832
6920
  try {
6833
6921
  return rawShape();
6834
- } catch (e2) {
6922
+ } catch (e3) {
6835
6923
  return void 0;
6836
6924
  }
6837
6925
  }
@@ -6877,7 +6965,7 @@ function getParseErrorMessage(error) {
6877
6965
  }
6878
6966
  try {
6879
6967
  return JSON.stringify(error);
6880
- } catch (e3) {
6968
+ } catch (e4) {
6881
6969
  return String(error);
6882
6970
  }
6883
6971
  }
@@ -7456,7 +7544,7 @@ var Base64Schema = z.string().refine((val) => {
7456
7544
  try {
7457
7545
  atob(val);
7458
7546
  return true;
7459
- } catch (e4) {
7547
+ } catch (e5) {
7460
7548
  return false;
7461
7549
  }
7462
7550
  }, { message: "Invalid Base64 string" });
@@ -9115,7 +9203,7 @@ function stringifyRegExpWithFlags(regex, refs) {
9115
9203
  }
9116
9204
  try {
9117
9205
  new RegExp(pattern);
9118
- } catch (e5) {
9206
+ } catch (e6) {
9119
9207
  console.warn(`Could not convert regex pattern at ${refs.currentPath.join("/")} to a flag-independent form! Falling back to the flag-ignorant source`);
9120
9208
  return regex.source;
9121
9209
  }
@@ -9447,7 +9535,7 @@ function decideAdditionalProperties(def, refs) {
9447
9535
  function safeIsOptional(schema) {
9448
9536
  try {
9449
9537
  return schema.isOptional();
9450
- } catch (e6) {
9538
+ } catch (e7) {
9451
9539
  return true;
9452
9540
  }
9453
9541
  }
@@ -10651,7 +10739,7 @@ var Protocol = class {
10651
10739
  if (_optionalChain([task, 'optionalAccess', _173 => _173.pollInterval])) {
10652
10740
  interval = task.pollInterval;
10653
10741
  }
10654
- } catch (e7) {
10742
+ } catch (e8) {
10655
10743
  }
10656
10744
  return new Promise((resolve, reject) => {
10657
10745
  if (signal.aborted) {
@@ -10752,8 +10840,8 @@ function mergeCapabilities(base, additional) {
10752
10840
  }
10753
10841
 
10754
10842
  // node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js
10755
- var import_ajv = _chunk6IL4IQKWcjs.__toESM.call(void 0, require_ajv(), 1);
10756
- var import_ajv_formats = _chunk6IL4IQKWcjs.__toESM.call(void 0, require_dist(), 1);
10843
+ var import_ajv = _chunkOBOSCZYRcjs.__toESM.call(void 0, require_ajv(), 1);
10844
+ var import_ajv_formats = _chunkOBOSCZYRcjs.__toESM.call(void 0, require_dist(), 1);
10757
10845
  function createDefaultAjvInstance() {
10758
10846
  const ajv = new import_ajv.default({
10759
10847
  strict: false,
@@ -12422,7 +12510,7 @@ var StdioServerTransport = class {
12422
12510
  // package.json
12423
12511
  var package_default = {
12424
12512
  name: "@umbraco-cms/mcp-dev",
12425
- version: "17.3.6",
12513
+ version: "17.4.0",
12426
12514
  type: "module",
12427
12515
  description: "A model context protocol (MCP) server for Umbraco CMS",
12428
12516
  main: "dist/index.js",
@@ -12490,8 +12578,8 @@ var package_default = {
12490
12578
  "@modelcontextprotocol/sdk": "^1.28.0",
12491
12579
  "@types/uuid": "^10.0.0",
12492
12580
  "@types/yargs": "^17.0.33",
12493
- "@umbraco-cms/mcp-hosted": "^17.0.0-beta.20",
12494
- "@umbraco-cms/mcp-server-sdk": "^17.0.0-beta.20",
12581
+ "@umbraco-cms/mcp-hosted": "^17.0.0-beta.24",
12582
+ "@umbraco-cms/mcp-server-sdk": "^17.0.0-beta.24",
12495
12583
  axios: "^1.8.4",
12496
12584
  dotenv: "^16.5.0",
12497
12585
  "form-data": "^4.0.4",
@@ -12669,16 +12757,16 @@ var ToolRegistrar = {
12669
12757
 
12670
12758
  // src/umb-management-api/tools/tool-factory.ts
12671
12759
  var configLoader = _mcpserversdk.createCollectionConfigLoader.call(void 0, {
12672
- modeRegistry: _chunk6IL4IQKWcjs.allModes,
12673
- allModeNames: _chunk6IL4IQKWcjs.allModeNames,
12674
- allSliceNames: _chunk6IL4IQKWcjs.allSliceNames
12760
+ modeRegistry: _chunkOBOSCZYRcjs.allModes,
12761
+ allModeNames: _chunkOBOSCZYRcjs.allModeNames,
12762
+ allSliceNames: _chunkOBOSCZYRcjs.allSliceNames
12675
12763
  });
12676
12764
  function UmbracoToolFactory(server, user, serverConfig) {
12677
12765
  const config = configLoader.loadFromConfig(serverConfig);
12678
12766
  const readonlyMode = _nullishCoalesce(serverConfig.readonly, () => ( false));
12679
12767
  const filteredTools = [];
12680
- CollectionResolver.validateConfiguration(config, _chunk6IL4IQKWcjs.availableCollections);
12681
- const enabledCollections = CollectionResolver.getEnabledCollections(config, _chunk6IL4IQKWcjs.availableCollections);
12768
+ CollectionResolver.validateConfiguration(config, _chunkOBOSCZYRcjs.availableCollections);
12769
+ const enabledCollections = CollectionResolver.getEnabledCollections(config, _chunkOBOSCZYRcjs.availableCollections);
12682
12770
  enabledCollections.forEach((collection) => {
12683
12771
  const tools = collection.tools(user);
12684
12772
  ToolRegistrar.registerTools(server, user, tools, config, readonlyMode, filteredTools);
@@ -12697,21 +12785,21 @@ var main = async () => {
12697
12785
  const serverConfig = await loadServerConfig(true);
12698
12786
  const config = serverConfig.umbraco;
12699
12787
  _mcpserversdk.initializeUmbracoFetch.call(void 0, config.auth);
12700
- _mcpserversdk.configureApiClient.call(void 0, () => _chunk6IL4IQKWcjs.UmbracoManagementClient.getClient());
12788
+ _mcpserversdk.configureApiClient.call(void 0, () => _chunkOBOSCZYRcjs.UmbracoManagementClient.getClient());
12701
12789
  const server = new McpServer({
12702
12790
  name: "Umbraco CMS Developer MCP Server",
12703
12791
  version: package_default.version
12704
12792
  });
12705
- const client = _chunk6IL4IQKWcjs.UmbracoManagementClient.getClient();
12793
+ const client = _chunkOBOSCZYRcjs.UmbracoManagementClient.getClient();
12706
12794
  const user = await client.getUserCurrent();
12707
12795
  const rawConfig = await _mcpserversdk.getServerConfig.call(void 0, true);
12708
12796
  const configLoader2 = _mcpserversdk.createCollectionConfigLoader.call(void 0, {
12709
- modeRegistry: _chunk6IL4IQKWcjs.allModes,
12710
- allModeNames: _chunk6IL4IQKWcjs.allModeNames,
12711
- allSliceNames: _chunk6IL4IQKWcjs.allSliceNames
12797
+ modeRegistry: _chunkOBOSCZYRcjs.allModes,
12798
+ allModeNames: _chunkOBOSCZYRcjs.allModeNames,
12799
+ allSliceNames: _chunkOBOSCZYRcjs.allSliceNames
12712
12800
  });
12713
12801
  const filterConfig = configLoader2.loadFromConfig(config);
12714
- _mcpserversdk.handleCliCommands.call(void 0, _chunk6IL4IQKWcjs.availableCollections, {
12802
+ _mcpserversdk.handleCliCommands.call(void 0, _chunkOBOSCZYRcjs.availableCollections, {
12715
12803
  cliFlags: rawConfig.cliFlags,
12716
12804
  serverName: "Umbraco CMS Developer MCP Server",
12717
12805
  serverVersion: package_default.version,
@@ -12719,9 +12807,11 @@ var main = async () => {
12719
12807
  filterConfig,
12720
12808
  serverConfig: config
12721
12809
  });
12810
+ const serverInfo = await client.getServerInformation();
12811
+ _chunkOBOSCZYRcjs.setUmbracoVersion.call(void 0, serverInfo.version);
12722
12812
  await _mcpserversdk.checkUmbracoVersion.call(void 0, {
12723
12813
  mcpVersion: package_default.version,
12724
- client: { getServerInformation: () => client.getServerInformation() }
12814
+ client: { getServerInformation: async () => serverInfo }
12725
12815
  });
12726
12816
  UmbracoToolFactory(server, user, config);
12727
12817
  const transport = new StdioServerTransport();