@gravitee/graphene-core 3.11.2 → 3.12.0-docs-consumer-registry-main-branches.b1805ba

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.js CHANGED
@@ -32255,8 +32255,15 @@ var wY = /* @__PURE__ */ K(((e) => {
32255
32255
  additionalProperties: !1
32256
32256
  };
32257
32257
  })), $Y = /* @__PURE__ */ K(((e, t) => {
32258
- var n = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu), r = 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), i = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu), a = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu), o = RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);
32259
- function s(e) {
32258
+ var n = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu), r = 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), i = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu), a = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu), o = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u), s = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]$/u), c = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u), l = Array(256);
32259
+ {
32260
+ let e = "0123456789ABCDEF";
32261
+ for (let t = 0; t < 256; t++) l[t] = "%" + e[t >> 4] + e[t & 15];
32262
+ }
32263
+ function u(e) {
32264
+ return e < 2048 ? l[192 | e >> 6] + l[128 | e & 63] : e < 65536 ? l[224 | e >> 12] + l[128 | e >> 6 & 63] + l[128 | e & 63] : l[240 | e >> 18] + l[128 | e >> 12 & 63] + l[128 | e >> 6 & 63] + l[128 | e & 63];
32265
+ }
32266
+ function d(e) {
32260
32267
  let t = "", n = 0, r = 0;
32261
32268
  for (r = 0; r < e.length; r++) if (n = e[r].charCodeAt(0), n !== 48) {
32262
32269
  if (!(n >= 48 && n <= 57 || n >= 65 && n <= 70 || n >= 97 && n <= 102)) return "";
@@ -32269,70 +32276,95 @@ var wY = /* @__PURE__ */ K(((e) => {
32269
32276
  }
32270
32277
  return t;
32271
32278
  }
32272
- var c = RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);
32273
- function l(e) {
32274
- return e.length = 0, !0;
32275
- }
32276
- function u(e, t, n) {
32277
- if (e.length) {
32278
- let r = s(e);
32279
- if (r !== "") t.push(r);
32280
- else return n.error = !0, !1;
32281
- e.length = 0;
32279
+ var f = RegExp.prototype.test.bind(/^[\dA-Fa-f]{1,4}$/), p = RegExp.prototype.test.bind(/^[vV][\dA-Fa-f]+\.[A-Za-z\d\-._~!$&'()*+,;=:]+$/), m = RegExp.prototype.test.bind(/^[A-Za-z\d\-._~]$/), h = RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);
32280
+ function g(e) {
32281
+ if (e.length === 0) return !1;
32282
+ for (let t = 0; t < e.length; t++) if (!m(e[t])) {
32283
+ if (e[t] === "%" && t + 2 < e.length && i(e.slice(t + 1, t + 3))) {
32284
+ t += 2;
32285
+ continue;
32286
+ }
32287
+ return !1;
32282
32288
  }
32283
32289
  return !0;
32284
32290
  }
32285
- function d(e) {
32286
- let t = 0, n = {
32287
- error: !1,
32288
- address: "",
32289
- zone: ""
32290
- }, r = [], i = [], a = !1, o = !1, c = u;
32291
- for (let s = 0; s < e.length; s++) {
32292
- let u = e[s];
32293
- if (!(u === "[" || u === "]")) if (u === ":") {
32294
- if (a === !0 && (o = !0), !c(i, r, n)) break;
32295
- if (++t > 7) {
32296
- n.error = !0;
32297
- break;
32298
- }
32299
- s > 0 && e[s - 1] === ":" && (a = !0), r.push(":");
32300
- continue;
32301
- } else if (u === "%") {
32302
- if (!c(i, r, n)) break;
32303
- c = l;
32304
- } else {
32305
- i.push(u);
32291
+ function _(e) {
32292
+ let t = -1, n = 0, r = -1, i = 0;
32293
+ for (let a = 0; a < e.length; a++) e[a] === "0" ? (r === -1 && (r = a), i++, i > n && (n = i, t = r)) : (r = -1, i = 0);
32294
+ if (n < 2) return e.join(":");
32295
+ let a = e.slice(0, t).join(":"), o = e.slice(t + n).join(":");
32296
+ return a + "::" + o;
32297
+ }
32298
+ function v(e) {
32299
+ let t = e.indexOf("::");
32300
+ if (t !== -1 && e.indexOf("::", t + 1) !== -1) return;
32301
+ let n = t === -1 ? e.split(":") : e.slice(0, t).split(":"), i = t === -1 ? [] : e.slice(t + 2).split(":");
32302
+ t !== -1 && (n.length === 1 && n[0] === "" && (n.length = 0), i.length === 1 && i[0] === "" && (i.length = 0));
32303
+ let a = n.concat(i), o = 0;
32304
+ for (let e = 0; e < a.length; e++) {
32305
+ let n = a[e];
32306
+ if (n === "") return;
32307
+ if (n.indexOf(".") !== -1) {
32308
+ if (e !== a.length - 1 || t !== -1 && i.length === 0 || !r(n)) return;
32309
+ o += 2;
32306
32310
  continue;
32307
32311
  }
32312
+ if (!f(n)) return;
32313
+ a[e] = parseInt(n, 16).toString(16), o++;
32308
32314
  }
32309
- return i.length && (c === l ? n.zone = i.join("") : o ? r.push(i.join("")) : r.push(s(i))), n.address = r.join(""), n;
32315
+ if (t === -1) return o === 8 ? _(a) : void 0;
32316
+ if (o >= 8) return;
32317
+ let s = a.slice(0, n.length);
32318
+ for (let e = o; e < 8; e++) s.push("0");
32319
+ for (let e = n.length; e < a.length; e++) s.push(a[e]);
32320
+ return _(s);
32310
32321
  }
32311
- function f(e) {
32312
- if (p(e, ":") < 2) return {
32322
+ function y(e) {
32323
+ let t = e[0] === "[" && e[e.length - 1] === "]";
32324
+ if ((e[0] === "[" || e[e.length - 1] === "]") && !t) return {
32313
32325
  host: e,
32314
- isIPV6: !1
32326
+ isIPV6: !1,
32327
+ error: !0
32315
32328
  };
32316
- let t = d(e);
32317
- if (t.error) return {
32329
+ let n = t ? e.slice(1, -1) : e;
32330
+ if (t && p(n)) return n = n.toLowerCase(), {
32331
+ host: `[${n}]`,
32332
+ escapedHost: n,
32333
+ isIPV6: !1,
32334
+ isIPVFuture: !0
32335
+ };
32336
+ if (b(n, ":") < 2) return {
32318
32337
  host: e,
32319
- isIPV6: !1
32338
+ isIPV6: !1,
32339
+ error: t
32320
32340
  };
32321
- {
32322
- let e = t.address, n = t.address;
32323
- return t.zone && (e += "%" + t.zone, n += "%25" + t.zone), {
32341
+ let r = "", i = n.indexOf("%");
32342
+ if (i !== -1) {
32343
+ let t = n.slice(i, i + 3).toLowerCase() === "%25" ? 3 : 1;
32344
+ if (r = n.slice(i + t), !g(r)) return {
32324
32345
  host: e,
32325
- isIPV6: !0,
32326
- escapedHost: n
32346
+ isIPV6: !1,
32347
+ error: !0
32327
32348
  };
32349
+ n = n.slice(0, i);
32328
32350
  }
32351
+ let a = v(n);
32352
+ return a === void 0 ? {
32353
+ host: e,
32354
+ isIPV6: !1,
32355
+ error: !0
32356
+ } : {
32357
+ host: a + (r ? "%" + r : ""),
32358
+ escapedHost: a + (r ? "%25" + r : ""),
32359
+ isIPV6: !0
32360
+ };
32329
32361
  }
32330
- function p(e, t) {
32362
+ function b(e, t) {
32331
32363
  let n = 0;
32332
32364
  for (let r = 0; r < e.length; r++) e[r] === t && n++;
32333
32365
  return n;
32334
32366
  }
32335
- function m(e) {
32367
+ function x(e) {
32336
32368
  let t = e, n = [], r = -1, i = 0;
32337
32369
  for (; i = t.length;) {
32338
32370
  if (i === 1) {
@@ -32385,18 +32417,18 @@ var wY = /* @__PURE__ */ K(((e) => {
32385
32417
  }
32386
32418
  return n.join("");
32387
32419
  }
32388
- var h = {
32420
+ var S = {
32389
32421
  "@": "%40",
32390
32422
  "/": "%2F",
32391
32423
  "?": "%3F",
32392
32424
  "#": "%23",
32393
32425
  ":": "%3A"
32394
- }, g = /[@/?#:]/g, _ = /[@/?#]/g;
32395
- function v(e, t) {
32396
- let n = t ? _ : g;
32397
- return n.lastIndex = 0, e.replace(n, (e) => h[e]);
32426
+ }, C = /[@/?#:]/g, w = /[@/?#]/g;
32427
+ function T(e, t) {
32428
+ let n = t ? w : C;
32429
+ return n.lastIndex = 0, e.replace(n, (e) => S[e]);
32398
32430
  }
32399
- function y(e, t = !1) {
32431
+ function E(e, t = !1) {
32400
32432
  if (e.indexOf("%") === -1) return e;
32401
32433
  let n = "";
32402
32434
  for (let r = 0; r < e.length; r++) {
@@ -32412,10 +32444,11 @@ var wY = /* @__PURE__ */ K(((e) => {
32412
32444
  }
32413
32445
  return n;
32414
32446
  }
32415
- function b(e) {
32447
+ function D(e) {
32416
32448
  let t = "";
32417
32449
  for (let n = 0; n < e.length; n++) {
32418
- if (e[n] === "%" && n + 2 < e.length) {
32450
+ let r = e[n];
32451
+ if (r === "%" && n + 2 < e.length) {
32419
32452
  let r = e.slice(n + 1, n + 3);
32420
32453
  if (i(r)) {
32421
32454
  let e = r.toUpperCase(), i = String.fromCharCode(parseInt(e, 16));
@@ -32423,11 +32456,105 @@ var wY = /* @__PURE__ */ K(((e) => {
32423
32456
  continue;
32424
32457
  }
32425
32458
  }
32426
- o(e[n]) ? t += e[n] : t += escape(e[n]);
32459
+ if (o(r)) t += r;
32460
+ else {
32461
+ let i = e.charCodeAt(n);
32462
+ if (i < 128) t += N(i) ? r : l[i];
32463
+ else if (i < 55296 || i > 57343) t += u(i);
32464
+ else if (i <= 56319 && n + 1 < e.length) {
32465
+ let r = e.charCodeAt(n + 1);
32466
+ r >= 56320 && r <= 57343 ? (t += u(65536 + (i - 55296 << 10) + (r - 56320)), n++) : t += u(65533);
32467
+ } else t += u(65533);
32468
+ }
32427
32469
  }
32428
32470
  return t;
32429
32471
  }
32430
- function x(e) {
32472
+ function O(e, t = !1) {
32473
+ let n = "", r = t && e[0] !== "/";
32474
+ for (let t = 0; t < e.length; t++) {
32475
+ let a = e[t];
32476
+ if (a === "%" && t + 2 < e.length) {
32477
+ let r = e.slice(t + 1, t + 3);
32478
+ if (i(r)) {
32479
+ n += "%" + r.toUpperCase(), t += 2;
32480
+ continue;
32481
+ }
32482
+ }
32483
+ if (a === "/" && (r = !1), o(a) && (a !== ":" || !r)) n += a;
32484
+ else {
32485
+ let r = e.charCodeAt(t);
32486
+ if (r < 128) n += l[r];
32487
+ else if (r < 55296 || r > 57343) n += u(r);
32488
+ else if (r <= 56319 && t + 1 < e.length) {
32489
+ let i = e.charCodeAt(t + 1);
32490
+ i >= 56320 && i <= 57343 ? (n += u(65536 + (r - 55296 << 10) + (i - 56320)), t++) : n += u(65533);
32491
+ } else n += u(65533);
32492
+ }
32493
+ }
32494
+ return n;
32495
+ }
32496
+ function k(e, t) {
32497
+ let n = "";
32498
+ for (let r = 0; r < e.length; r++) {
32499
+ let a = e[r];
32500
+ if (a === "%" && r + 2 < e.length) {
32501
+ let t = e.slice(r + 1, r + 3);
32502
+ if (i(t)) {
32503
+ n += "%" + t.toUpperCase(), r += 2;
32504
+ continue;
32505
+ }
32506
+ }
32507
+ if (t(a)) n += a;
32508
+ else {
32509
+ let t = e.charCodeAt(r);
32510
+ if (t < 128) n += l[t];
32511
+ else if (t < 55296 || t > 57343) n += u(t);
32512
+ else if (t <= 56319 && r + 1 < e.length) {
32513
+ let i = e.charCodeAt(r + 1);
32514
+ i >= 56320 && i <= 57343 ? (n += u(65536 + (t - 55296 << 10) + (i - 56320)), r++) : n += u(65533);
32515
+ } else n += u(65533);
32516
+ }
32517
+ }
32518
+ return n;
32519
+ }
32520
+ function A(e) {
32521
+ return k(e, c);
32522
+ }
32523
+ function j(e) {
32524
+ return k(e, s);
32525
+ }
32526
+ function M(e) {
32527
+ return k(e, s);
32528
+ }
32529
+ function N(e) {
32530
+ return e >= 48 && e <= 57 || e >= 65 && e <= 90 || e >= 97 && e <= 122 || e === 42 || e === 43 || e === 45 || e === 46 || e === 47 || e === 64 || e === 95;
32531
+ }
32532
+ function P(e) {
32533
+ let t = "";
32534
+ for (let n = 0; n < e.length; n++) {
32535
+ let r = e[n];
32536
+ if (r === "%" && n + 2 < e.length) {
32537
+ let r = e.slice(n + 1, n + 3);
32538
+ if (i(r)) {
32539
+ let e = r.toUpperCase(), i = String.fromCharCode(parseInt(e, 16));
32540
+ a(i) ? t += i : t += "%" + e, n += 2;
32541
+ continue;
32542
+ }
32543
+ }
32544
+ if (s(r)) t += r;
32545
+ else {
32546
+ let i = e.charCodeAt(n);
32547
+ if (i < 128) t += N(i) ? r : l[i];
32548
+ else if (i < 55296 || i > 57343) t += u(i);
32549
+ else if (i <= 56319 && n + 1 < e.length) {
32550
+ let r = e.charCodeAt(n + 1);
32551
+ r >= 56320 && r <= 57343 ? (t += u(65536 + (i - 55296 << 10) + (r - 56320)), n++) : t += u(65533);
32552
+ } else t += u(65533);
32553
+ }
32554
+ }
32555
+ return t;
32556
+ }
32557
+ function F(e) {
32431
32558
  let t = "";
32432
32559
  for (let n = 0; n < e.length; n++) {
32433
32560
  if (e[n] === "%" && n + 2 < e.length) {
@@ -32441,33 +32568,38 @@ var wY = /* @__PURE__ */ K(((e) => {
32441
32568
  }
32442
32569
  return t;
32443
32570
  }
32444
- function S(e) {
32571
+ function I(e) {
32445
32572
  let t = [];
32446
- if (e.userinfo !== void 0 && (t.push(e.userinfo), t.push("@")), e.host !== void 0) {
32447
- let n = unescape(e.host);
32573
+ if (e.userinfo !== void 0 && (t.push(A(e.userinfo)), t.push("@")), e.host !== void 0) {
32574
+ let n = e.host;
32448
32575
  if (!r(n)) {
32449
- let e = f(n);
32450
- n = e.isIPV6 === !0 ? `[${e.escapedHost}]` : v(n, !1);
32576
+ let e = y(n);
32577
+ e.isIPV6 !== !0 && e.isIPVFuture !== !0 && (n = E(n, !0), e = y(n)), n = e.isIPV6 === !0 || e.isIPVFuture === !0 ? `[${e.escapedHost}]` : T(n, !1);
32451
32578
  }
32452
32579
  t.push(n);
32453
32580
  }
32454
32581
  return (typeof e.port == "number" || typeof e.port == "string") && (t.push(":"), t.push(String(e.port))), t.length ? t.join("") : void 0;
32455
32582
  }
32456
32583
  t.exports = {
32457
- nonSimpleDomain: c,
32458
- recomposeAuthority: S,
32459
- reescapeHostDelimiters: v,
32460
- normalizePercentEncoding: y,
32461
- normalizePathEncoding: b,
32462
- escapePreservingEscapes: x,
32463
- removeDotSegments: m,
32584
+ nonSimpleDomain: h,
32585
+ recomposeAuthority: I,
32586
+ reescapeHostDelimiters: T,
32587
+ normalizePercentEncoding: E,
32588
+ normalizePathEncoding: D,
32589
+ serializePathEncoding: O,
32590
+ normalizeQueryFragmentEncoding: P,
32591
+ encodeUserinfo: A,
32592
+ encodeQuery: j,
32593
+ encodeFragment: M,
32594
+ escapePreservingEscapes: F,
32595
+ removeDotSegments: x,
32464
32596
  isIPv4: r,
32465
32597
  isUUID: n,
32466
- normalizeIPv6: f,
32467
- stringArrayToHexStripped: s
32598
+ normalizeIPv6: y,
32599
+ stringArrayToHexStripped: d
32468
32600
  };
32469
32601
  })), eX = /* @__PURE__ */ K(((e, t) => {
32470
- var { isUUID: n } = $Y(), r = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu, i = [
32602
+ var { isUUID: n } = $Y(), r = /^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu, i = [
32471
32603
  "http",
32472
32604
  "https",
32473
32605
  "ws",
@@ -32493,15 +32625,15 @@ var wY = /* @__PURE__ */ K(((e) => {
32493
32625
  }
32494
32626
  function u(e) {
32495
32627
  if ((e.port === (o(e) ? 443 : 80) || e.port === "") && (e.port = void 0), typeof e.secure == "boolean" && (e.scheme = e.secure ? "wss" : "ws", e.secure = void 0), e.resourceName) {
32496
- let [t, n] = e.resourceName.split("?");
32497
- e.path = t && t !== "/" ? t : void 0, e.query = n, e.resourceName = void 0;
32628
+ let t = e.resourceName.indexOf("?"), n = t === -1 ? e.resourceName : e.resourceName.slice(0, t);
32629
+ e.path = n && n !== "/" ? n : void 0, e.query = t === -1 ? void 0 : e.resourceName.slice(t + 1), e.resourceName = void 0;
32498
32630
  }
32499
32631
  return e.fragment = void 0, e;
32500
32632
  }
32501
32633
  function d(e, t) {
32502
32634
  if (!e.path) return e.error = "URN can not be parsed", e;
32503
32635
  let n = e.path.match(r);
32504
- if (n) {
32636
+ if (n && n[0] === e.path) {
32505
32637
  let r = t.scheme || e.scheme || "urn";
32506
32638
  e.nid = n[1].toLowerCase(), e.nss = n[2];
32507
32639
  let i = y(`${r}:${t.nid || e.nid}`);
@@ -32573,25 +32705,33 @@ var wY = /* @__PURE__ */ K(((e) => {
32573
32705
  getSchemeHandler: y
32574
32706
  };
32575
32707
  })), tX = /* @__PURE__ */ K(((e, t) => {
32576
- var { normalizeIPv6: n, removeDotSegments: r, recomposeAuthority: i, normalizePercentEncoding: a, normalizePathEncoding: o, escapePreservingEscapes: s, reescapeHostDelimiters: c, isIPv4: l, nonSimpleDomain: u } = $Y(), { SCHEMES: d, getSchemeHandler: f } = eX();
32577
- function p(e, t) {
32578
- return typeof e == "string" ? e = w(e, t) : typeof e == "object" && (e = C(_(e, t), t)), e;
32579
- }
32580
- function m(e, t, n) {
32581
- let r = n ? Object.assign({ scheme: "null" }, n) : { scheme: "null" }, { parsed: i, malformedAuthorityOrPort: a } = S(e, r), { parsed: o, malformedAuthorityOrPort: s } = S(t, r);
32582
- if (a || s) throw Error(i.error || o.error || "URI is malformed.");
32583
- let c = h(i, o, r, !0);
32584
- return r.skipEscape = !0, _(c, r);
32708
+ var { normalizeIPv6: n, removeDotSegments: r, recomposeAuthority: i, normalizePercentEncoding: a, normalizePathEncoding: o, serializePathEncoding: s, normalizeQueryFragmentEncoding: c, encodeQuery: l, encodeFragment: u, reescapeHostDelimiters: d, isIPv4: f, nonSimpleDomain: p } = $Y(), { SCHEMES: m, getSchemeHandler: h } = eX(), g = /^[A-Za-z][A-Za-z0-9+.-]*$/u, _ = "URI scheme is malformed.";
32709
+ function v(e) {
32710
+ let t = unescape(String(e));
32711
+ if (!g.test(t)) throw TypeError(_);
32712
+ return t;
32585
32713
  }
32586
- function h(e, t, n, i) {
32714
+ function y(e, t) {
32715
+ return typeof e == "string" ? e = N(e, t) : typeof e == "object" && (e = M(C(e, t), t)), e;
32716
+ }
32717
+ function b(e, t, r) {
32718
+ let i = r ? Object.assign({ scheme: "null" }, r) : { scheme: "null" }, { parsed: a, malformedAuthorityOrPort: o, malformedPercentEncoding: s, malformedSchemeSpecific: c, malformedHost: l, malformedScheme: u } = j(e, i), { parsed: d, malformedAuthorityOrPort: p, malformedPercentEncoding: m, malformedSchemeSpecific: g, malformedHost: _, malformedScheme: v } = j(t, i);
32719
+ if (o || p || s || m || c || g || l || _ || u || v) throw Error(a.error || d.error || "URI is malformed.");
32720
+ let y = x(a, d, i, !0), b = h(r && r.scheme || y.scheme), S = y.host, w = S !== void 0 && S !== "" && (f(S) || n(S).isIPV6);
32721
+ A(y, r || {}, b, w);
32722
+ let T = S && S.indexOf("%") !== -1 && !/\P{ASCII}/u.test(S);
32723
+ if (y.error && !T) throw Error(y.error);
32724
+ return i.skipEscape = !0, C(y, i);
32725
+ }
32726
+ function x(e, t, n, i) {
32587
32727
  let a = {};
32588
- return i || (e = C(_(e, n), n), t = C(_(t, n), n)), n ||= {}, !n.tolerant && t.scheme ? (a.scheme = t.scheme, a.userinfo = t.userinfo, a.host = t.host, a.port = t.port, a.path = r(t.path || ""), a.query = t.query) : (t.userinfo !== void 0 || t.host !== void 0 || t.port !== void 0 ? (a.userinfo = t.userinfo, a.host = t.host, a.port = t.port, a.path = r(t.path || ""), a.query = t.query) : (t.path ? (t.path[0] === "/" ? a.path = r(t.path) : ((e.userinfo !== void 0 || e.host !== void 0 || e.port !== void 0) && !e.path ? a.path = "/" + t.path : e.path ? a.path = e.path.slice(0, e.path.lastIndexOf("/") + 1) + t.path : a.path = t.path, a.path = r(a.path)), a.query = t.query) : (a.path = e.path, t.query === void 0 ? a.query = e.query : a.query = t.query), a.userinfo = e.userinfo, a.host = e.host, a.port = e.port), a.scheme = e.scheme), a.fragment = t.fragment, a;
32728
+ return i || (e = M(C(e, n), n), t = M(C(t, n), n)), n ||= {}, !n.tolerant && t.scheme ? (a.scheme = t.scheme, a.userinfo = t.userinfo, a.host = t.host, a.port = t.port, a.path = r(t.path || ""), a.query = t.query) : (t.userinfo !== void 0 || t.host !== void 0 || t.port !== void 0 ? (a.userinfo = t.userinfo, a.host = t.host, a.port = t.port, a.path = r(t.path || ""), a.query = t.query) : (t.path ? (t.path[0] === "/" ? a.path = r(t.path) : ((e.userinfo !== void 0 || e.host !== void 0 || e.port !== void 0) && !e.path ? a.path = "/" + t.path : e.path ? a.path = e.path.slice(0, e.path.lastIndexOf("/") + 1) + t.path : a.path = t.path, a.path = r(a.path)), a.query = t.query) : (a.path = e.path, t.query === void 0 ? a.query = e.query : a.query = t.query), a.userinfo = e.userinfo, a.host = e.host, a.port = e.port), a.scheme = e.scheme), a.fragment = t.fragment, a;
32589
32729
  }
32590
- function g(e, t, n) {
32591
- let r = E(e, n), i = E(t, n);
32592
- return r !== void 0 && i !== void 0 && r.toLowerCase() === i.toLowerCase();
32730
+ function S(e, t, n) {
32731
+ let r = F(e, n), i = F(t, n);
32732
+ return r !== void 0 && i !== void 0 && r === i;
32593
32733
  }
32594
- function _(e, t) {
32734
+ function C(e, t) {
32595
32735
  let n = {
32596
32736
  host: e.host,
32597
32737
  scheme: e.scheme,
@@ -32607,21 +32747,46 @@ var wY = /* @__PURE__ */ K(((e) => {
32607
32747
  resourceName: e.resourceName,
32608
32748
  secure: e.secure,
32609
32749
  error: ""
32610
- }, o = Object.assign({}, t), c = [], l = f(o.scheme || n.scheme);
32611
- l && l.serialize && l.serialize(n, o), n.path !== void 0 && (o.skipEscape ? n.path = a(n.path) : (n.path = s(n.path), n.scheme !== void 0 && (n.path = n.path.split("%3A").join(":")))), o.reference !== "suffix" && n.scheme && c.push(n.scheme, ":");
32612
- let u = i(n);
32613
- if (u !== void 0 && (o.reference !== "suffix" && c.push("//"), c.push(u), n.path && n.path[0] !== "/" && c.push("/")), n.path !== void 0) {
32750
+ }, o = Object.assign({}, t), c = [];
32751
+ n.scheme &&= v(n.scheme);
32752
+ let d = h(o.scheme || n.scheme);
32753
+ d && d.serialize && d.serialize(n, o);
32754
+ let f = n.userinfo !== void 0 || n.host !== void 0 || n.port !== void 0, p = !o.skipEscape && n.scheme === void 0 && !f;
32755
+ n.path !== void 0 && (o.skipEscape ? n.path = a(n.path) : n.path = s(n.path, p)), o.reference !== "suffix" && n.scheme && (n.scheme = v(n.scheme), c.push(n.scheme, ":"));
32756
+ let m = i(n);
32757
+ if (m !== void 0 && (o.reference !== "suffix" && c.push("//"), c.push(m), n.path && n.path[0] !== "/" && c.push("/")), n.path !== void 0) {
32614
32758
  let e = n.path;
32615
- !o.absolutePath && (!l || !l.absolutePath) && (e = r(e)), u === void 0 && e[0] === "/" && e[1] === "/" && (e = "/%2F" + e.slice(2)), c.push(e);
32759
+ !o.absolutePath && (!d || !d.absolutePath) && (e = r(e)), p && (e = s(e, !0)), m === void 0 && e[0] === "/" && e[1] === "/" && (e = "/%2F" + e.slice(2)), c.push(e);
32616
32760
  }
32617
- return n.query !== void 0 && c.push("?", n.query), n.fragment !== void 0 && c.push("#", n.fragment), c.join("");
32761
+ return n.query !== void 0 && c.push("?", l(n.query)), n.fragment !== void 0 && c.push("#", u(n.fragment)), c.join("");
32618
32762
  }
32619
- var v = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u, y = /^(?:[^#/:?]+:)?\/\/([^/?#]*)/, b = /^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;
32620
- function x(e, t) {
32763
+ var w = /^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u, T = /^(?:[^#/:?]+:)?\/\/([^/?#]*)/, E = /^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;
32764
+ function D(e, t) {
32621
32765
  if (t[2] !== void 0 && e.path && e.path[0] !== "/") return "URI path must start with \"/\" when authority is present.";
32622
32766
  if (typeof e.port == "number" && (e.port < 0 || e.port > 65535)) return "URI port is malformed.";
32623
32767
  }
32624
- function S(e, t) {
32768
+ function O(e) {
32769
+ if (e === void 0) return !1;
32770
+ let t = e.indexOf("%");
32771
+ for (; t !== -1;) {
32772
+ if (t + 2 >= e.length || !/^[\da-f]{2}$/iu.test(e.slice(t + 1, t + 3))) return !0;
32773
+ t = e.indexOf("%", t + 3);
32774
+ }
32775
+ return !1;
32776
+ }
32777
+ function k(e) {
32778
+ let t = e[4];
32779
+ return O(e[3]) || t !== void 0 && !(t[0] === "[" && t[t.length - 1] === "]") && O(t) || O(e[6]) || O(e[7]) || O(e[8]);
32780
+ }
32781
+ function A(e, t, n, r) {
32782
+ if (!t.unicodeSupport && (!n || !n.unicodeSupport) && e.host && e.host[0] !== "[" && (t.domainHost || n && n.domainHost) && r === !1 && p(e.host)) try {
32783
+ e.host = new URL("http://" + e.host).hostname;
32784
+ } catch (t) {
32785
+ return e.error = e.error || "Host's domain name can not be converted to ASCII: " + t, !0;
32786
+ }
32787
+ return !1;
32788
+ }
32789
+ function j(e, t) {
32625
32790
  let r = Object.assign({}, t), i = {
32626
32791
  scheme: void 0,
32627
32792
  userinfo: void 0,
@@ -32630,72 +32795,78 @@ var wY = /* @__PURE__ */ K(((e) => {
32630
32795
  path: "",
32631
32796
  query: void 0,
32632
32797
  fragment: void 0
32633
- }, a = !1, s = !1;
32798
+ }, s = !1, l = !1, u = !1, p = !1, v = !1, y = !1, b = !1;
32634
32799
  r.reference === "suffix" && (e = r.scheme ? r.scheme + ":" + e : "//" + e);
32635
- let d = e.match(y);
32636
- d !== null && d[1].indexOf("\\") !== -1 && (i.error = "URI authority must not contain a literal backslash.", a = !0);
32637
- let p = e.match(b);
32638
- if (p !== null) {
32639
- let e = p[1], t = e.replace(/[\t\n\r]/g, "");
32640
- t.length >= 2 && (t.slice(0, 2) === "//" ? e.length !== t.length && (i.error = i.error || "URI authority introducer must not contain whitespace.", a = !0) : (i.error = i.error || "URI authority must not contain a literal backslash.", a = !0));
32641
- }
32642
- let m = e.match(v);
32643
- if (m) {
32644
- i.scheme = m[1], i.userinfo = m[3], i.host = m[4], i.port = parseInt(m[5], 10), i.path = m[6] || "", i.query = m[7], i.fragment = m[8], isNaN(i.port) && (i.port = m[5]);
32645
- let t = x(i, m);
32646
- if (t !== void 0 && (i.error = i.error || t, a = !0), i.host) if (l(i.host) === !1) {
32647
- let e = n(i.host);
32648
- i.host = e.host.toLowerCase(), s = e.isIPV6;
32649
- } else s = !0;
32650
- i.scheme === void 0 && i.userinfo === void 0 && i.host === void 0 && i.port === void 0 && i.query === void 0 && !i.path ? i.reference = "same-document" : i.scheme === void 0 ? i.reference = "relative" : i.fragment === void 0 ? i.reference = "absolute" : i.reference = "uri", r.reference && r.reference !== "suffix" && r.reference !== i.reference && (i.error = i.error || "URI is not a " + r.reference + " reference.");
32651
- let d = f(r.scheme || i.scheme);
32652
- if (!r.unicodeSupport && (!d || !d.unicodeSupport) && i.host && (r.domainHost || d && d.domainHost) && s === !1 && u(i.host)) try {
32653
- i.host = new URL("http://" + i.host).hostname;
32654
- } catch (e) {
32655
- i.error = i.error || "Host's domain name can not be converted to ASCII: " + e;
32800
+ let x = e.match(T);
32801
+ x !== null && x[1].indexOf("\\") !== -1 && (i.error = "URI authority must not contain a literal backslash.", s = !0);
32802
+ let S = e.match(E);
32803
+ if (S !== null) {
32804
+ let e = S[1], t = e.replace(/[\t\n\r]/g, "");
32805
+ t.length >= 2 && (t.slice(0, 2) === "//" ? e.length !== t.length && (i.error = i.error || "URI authority introducer must not contain whitespace.", s = !0) : (i.error = i.error || "URI authority must not contain a literal backslash.", s = !0));
32806
+ }
32807
+ let C = e.match(w);
32808
+ if (C) {
32809
+ if (i.scheme = C[1], i.userinfo = C[3], i.host = C[4], i.port = parseInt(C[5], 10), i.path = C[6] || "", i.query = C[7], i.fragment = C[8], i.scheme !== void 0) {
32810
+ let e = unescape(i.scheme);
32811
+ g.test(e) ? i.scheme = e.toLowerCase() : (i.error = i.error || _, y = !0);
32656
32812
  }
32657
- if ((!d || d && !d.skipNormalize) && (e.indexOf("%") !== -1 && (i.scheme !== void 0 && (i.scheme = unescape(i.scheme)), i.host !== void 0 && (i.host = c(unescape(i.host), s))), i.path &&= o(i.path), i.fragment)) try {
32658
- i.fragment = encodeURI(decodeURIComponent(i.fragment));
32659
- } catch {
32660
- i.error = i.error || "URI malformed";
32661
- }
32662
- d && d.parse && d.parse(i, r);
32813
+ l = k(C), l && (i.error = i.error || "URI contains malformed percent-encoding."), isNaN(i.port) && (i.port = C[5]);
32814
+ let t = D(i, C);
32815
+ if (t !== void 0 && (i.error = i.error || t, s = !0), i.host) if (f(i.host) === !1) {
32816
+ let e = i.host[0] === "[" && i.host[i.host.length - 1] === "]", t = n(i.host);
32817
+ b = t.isIPV6 || t.isIPVFuture === !0, v = e && t.error === !0, i.host = b ? t.host : t.host.toLowerCase(), v && (i.error = i.error || "URI host is malformed.", s = !0);
32818
+ } else b = !0;
32819
+ i.scheme === void 0 && i.userinfo === void 0 && i.host === void 0 && i.port === void 0 && i.query === void 0 && !i.path ? i.reference = "same-document" : i.scheme === void 0 ? i.reference = "relative" : i.fragment === void 0 ? i.reference = "absolute" : i.reference = "uri", r.reference && r.reference !== "suffix" && r.reference !== i.reference && (i.error = i.error || "URI is not a " + r.reference + " reference.");
32820
+ let x = h(r.scheme || i.scheme);
32821
+ p = A(i, r, x, b), (!x || x && !x.skipNormalize) && (e.indexOf("%") !== -1 && i.host !== void 0 && !v && (i.host = d(b ? i.host : a(i.host, !0), b)), i.path &&= o(i.path), i.query &&= c(i.query), i.fragment &&= c(i.fragment)), x && x.parse && (x.parse(i, r), x === m.urn && i.nid === void 0 && (u = !0));
32663
32822
  } else i.error = i.error || "URI can not be parsed.";
32664
32823
  return {
32665
32824
  parsed: i,
32666
- malformedAuthorityOrPort: a
32825
+ malformedAuthorityOrPort: s,
32826
+ malformedPercentEncoding: l,
32827
+ malformedSchemeSpecific: u,
32828
+ malformedHost: p,
32829
+ malformedScheme: y
32667
32830
  };
32668
32831
  }
32669
- function C(e, t) {
32670
- return S(e, t).parsed;
32832
+ function M(e, t) {
32833
+ return j(e, t).parsed;
32671
32834
  }
32672
- function w(e, t) {
32673
- return T(e, t).normalized;
32835
+ function N(e, t) {
32836
+ return P(e, t).normalized;
32674
32837
  }
32675
- function T(e, t) {
32676
- let { parsed: n, malformedAuthorityOrPort: r } = S(e, t);
32838
+ function P(e, t) {
32839
+ let { parsed: n, malformedAuthorityOrPort: r, malformedPercentEncoding: i, malformedSchemeSpecific: a, malformedHost: o, malformedScheme: s } = j(e, t);
32677
32840
  return {
32678
- normalized: r ? e : _(n, t),
32679
- malformedAuthorityOrPort: r
32841
+ normalized: r || i || a || o || s ? e : C(n, t),
32842
+ malformedAuthorityOrPort: r,
32843
+ malformedPercentEncoding: i,
32844
+ malformedSchemeSpecific: a,
32845
+ malformedHost: o,
32846
+ malformedScheme: s
32680
32847
  };
32681
32848
  }
32682
- function E(e, t) {
32683
- if (typeof e == "string") {
32684
- let { normalized: n, malformedAuthorityOrPort: r } = T(e, t);
32685
- return r ? void 0 : n;
32849
+ function F(e, t) {
32850
+ if (typeof e != "string" && typeof e != "object") return;
32851
+ let n;
32852
+ try {
32853
+ n = typeof e == "string" ? e : C(e, t);
32854
+ } catch {
32855
+ return;
32686
32856
  }
32687
- if (typeof e == "object") return _(e, t);
32857
+ let { normalized: r, malformedAuthorityOrPort: i, malformedPercentEncoding: a, malformedSchemeSpecific: o, malformedHost: s, malformedScheme: c } = P(n, t);
32858
+ return i || a || o || s || c ? void 0 : r;
32688
32859
  }
32689
- var D = {
32690
- SCHEMES: d,
32691
- normalize: p,
32692
- resolve: m,
32693
- resolveComponent: h,
32694
- equal: g,
32695
- serialize: _,
32696
- parse: C
32697
- };
32698
- t.exports = D, t.exports.default = D, t.exports.fastUri = D;
32860
+ var I = {
32861
+ SCHEMES: m,
32862
+ normalize: y,
32863
+ resolve: b,
32864
+ resolveComponent: x,
32865
+ equal: S,
32866
+ serialize: C,
32867
+ parse: M
32868
+ };
32869
+ t.exports = I, t.exports.default = I, t.exports.fastUri = I;
32699
32870
  })), nX = /* @__PURE__ */ K(((e) => {
32700
32871
  Object.defineProperty(e, "__esModule", { value: !0 });
32701
32872
  var t = tX();