sap-ux-sap-systems-ext 0.5.0 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/extension.js CHANGED
@@ -54977,7 +54977,7 @@ var require_package6 = __commonJS({
54977
54977
  "../telemetry/package.json"(exports2, module2) {
54978
54978
  module2.exports = {
54979
54979
  name: "@sap-ux/telemetry",
54980
- version: "0.6.102",
54980
+ version: "0.6.104",
54981
54981
  description: "Library for sending usage telemetry data",
54982
54982
  repository: {
54983
54983
  type: "git",
@@ -55011,7 +55011,7 @@ var require_package6 = __commonJS({
55011
55011
  "@sap-ux/logger": "workspace:*",
55012
55012
  "@sap-ux/nodejs-utils": "workspace:*",
55013
55013
  applicationinsights: "2.9.8",
55014
- axios: "1.15.0",
55014
+ axios: "1.16.0",
55015
55015
  "performance-now": "2.1.0",
55016
55016
  yaml: "2.8.3"
55017
55017
  },
@@ -71730,9 +71730,9 @@ var require_form_data = __commonJS({
71730
71730
  }
71731
71731
  });
71732
71732
 
71733
- // ../../node_modules/.pnpm/follow-redirects@1.15.11_debug@4.4.3/node_modules/follow-redirects/debug.js
71733
+ // ../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3/node_modules/follow-redirects/debug.js
71734
71734
  var require_debug3 = __commonJS({
71735
- "../../node_modules/.pnpm/follow-redirects@1.15.11_debug@4.4.3/node_modules/follow-redirects/debug.js"(exports2, module2) {
71735
+ "../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3/node_modules/follow-redirects/debug.js"(exports2, module2) {
71736
71736
  var debug;
71737
71737
  module2.exports = function() {
71738
71738
  if (!debug) {
@@ -71750,9 +71750,9 @@ var require_debug3 = __commonJS({
71750
71750
  }
71751
71751
  });
71752
71752
 
71753
- // ../../node_modules/.pnpm/follow-redirects@1.15.11_debug@4.4.3/node_modules/follow-redirects/index.js
71753
+ // ../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3/node_modules/follow-redirects/index.js
71754
71754
  var require_follow_redirects = __commonJS({
71755
- "../../node_modules/.pnpm/follow-redirects@1.15.11_debug@4.4.3/node_modules/follow-redirects/index.js"(exports2, module2) {
71755
+ "../../node_modules/.pnpm/follow-redirects@1.16.0_debug@4.4.3/node_modules/follow-redirects/index.js"(exports2, module2) {
71756
71756
  var url = require("url");
71757
71757
  var URL2 = url.URL;
71758
71758
  var http = require("http");
@@ -71774,6 +71774,11 @@ var require_follow_redirects = __commonJS({
71774
71774
  } catch (error) {
71775
71775
  useNativeURL = error.code === "ERR_INVALID_URL";
71776
71776
  }
71777
+ var sensitiveHeaders = [
71778
+ "Authorization",
71779
+ "Proxy-Authorization",
71780
+ "Cookie"
71781
+ ];
71777
71782
  var preservedUrlFields = [
71778
71783
  "auth",
71779
71784
  "host",
@@ -71838,6 +71843,7 @@ var require_follow_redirects = __commonJS({
71838
71843
  self2.emit("error", cause instanceof RedirectionError ? cause : new RedirectionError({ cause }));
71839
71844
  }
71840
71845
  };
71846
+ this._headerFilter = new RegExp("^(?:" + sensitiveHeaders.concat(options.sensitiveHeaders).map(escapeRegex).join("|") + ")$", "i");
71841
71847
  this._performRequest();
71842
71848
  }
71843
71849
  RedirectableRequest.prototype = Object.create(Writable.prototype);
@@ -71975,6 +71981,9 @@ var require_follow_redirects = __commonJS({
71975
71981
  if (!options.headers) {
71976
71982
  options.headers = {};
71977
71983
  }
71984
+ if (!isArray3(options.sensitiveHeaders)) {
71985
+ options.sensitiveHeaders = [];
71986
+ }
71978
71987
  if (options.host) {
71979
71988
  if (!options.hostname) {
71980
71989
  options.hostname = options.host;
@@ -72080,7 +72089,7 @@ var require_follow_redirects = __commonJS({
72080
72089
  this._isRedirect = true;
72081
72090
  spreadUrlObject(redirectUrl, this._options);
72082
72091
  if (redirectUrl.protocol !== currentUrlParts.protocol && redirectUrl.protocol !== "https:" || redirectUrl.host !== currentHost && !isSubdomain(redirectUrl.host, currentHost)) {
72083
- removeMatchingHeaders(/^(?:(?:proxy-)?authorization|cookie)$/i, this._options.headers);
72092
+ removeMatchingHeaders(this._headerFilter, this._options.headers);
72084
72093
  }
72085
72094
  if (isFunction3(beforeRedirect)) {
72086
72095
  var responseDetails = {
@@ -72229,6 +72238,9 @@ var require_follow_redirects = __commonJS({
72229
72238
  var dot = subdomain.length - domain.length - 1;
72230
72239
  return dot > 0 && subdomain[dot] === "." && subdomain.endsWith(domain);
72231
72240
  }
72241
+ function isArray3(value) {
72242
+ return value instanceof Array;
72243
+ }
72232
72244
  function isString2(value) {
72233
72245
  return typeof value === "string" || value instanceof String;
72234
72246
  }
@@ -72241,14 +72253,17 @@ var require_follow_redirects = __commonJS({
72241
72253
  function isURL(value) {
72242
72254
  return URL2 && value instanceof URL2;
72243
72255
  }
72256
+ function escapeRegex(regex) {
72257
+ return regex.replace(/[\]\\/()*+?.$]/g, "\\$&");
72258
+ }
72244
72259
  module2.exports = wrap3({ http, https });
72245
72260
  module2.exports.wrap = wrap3;
72246
72261
  }
72247
72262
  });
72248
72263
 
72249
- // ../../node_modules/.pnpm/axios@1.15.0_debug@4.4.3/node_modules/axios/dist/node/axios.cjs
72264
+ // ../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/dist/node/axios.cjs
72250
72265
  var require_axios = __commonJS({
72251
- "../../node_modules/.pnpm/axios@1.15.0_debug@4.4.3/node_modules/axios/dist/node/axios.cjs"(exports2, module2) {
72266
+ "../../node_modules/.pnpm/axios@1.16.0_debug@4.4.3/node_modules/axios/dist/node/axios.cjs"(exports2, module2) {
72252
72267
  "use strict";
72253
72268
  var FormData$1 = require_form_data();
72254
72269
  var crypto2 = require("crypto");
@@ -72257,6 +72272,7 @@ var require_axios = __commonJS({
72257
72272
  var https = require("https");
72258
72273
  var http2 = require("http2");
72259
72274
  var util = require("util");
72275
+ var path3 = require("path");
72260
72276
  var followRedirects = require_follow_redirects();
72261
72277
  var zlib = require("zlib");
72262
72278
  var stream = require("stream");
@@ -72343,9 +72359,14 @@ var require_axios = __commonJS({
72343
72359
  var G = getGlobal2();
72344
72360
  var FormDataCtor = typeof G.FormData !== "undefined" ? G.FormData : void 0;
72345
72361
  var isFormData = (thing) => {
72346
- let kind;
72347
- return thing && (FormDataCtor && thing instanceof FormDataCtor || isFunction$1(thing.append) && ((kind = kindOf(thing)) === "formdata" || // detect form-data instance
72348
- kind === "object" && isFunction$1(thing.toString) && thing.toString() === "[object FormData]"));
72362
+ if (!thing) return false;
72363
+ if (FormDataCtor && thing instanceof FormDataCtor) return true;
72364
+ const proto = getPrototypeOf2(thing);
72365
+ if (!proto || proto === Object.prototype) return false;
72366
+ if (!isFunction$1(thing.append)) return false;
72367
+ const kind = kindOf(thing);
72368
+ return kind === "formdata" || // detect form-data instance
72369
+ kind === "object" && isFunction$1(thing.toString) && thing.toString() === "[object FormData]";
72349
72370
  };
72350
72371
  var isURLSearchParams = kindOfTest("URLSearchParams");
72351
72372
  var [isReadableStream, isRequest, isResponse, isHeaders] = ["ReadableStream", "Request", "Response", "Headers"].map(kindOfTest);
@@ -72401,7 +72422,7 @@ var require_axios = __commonJS({
72401
72422
  return typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : global;
72402
72423
  })();
72403
72424
  var isContextDefined = (context2) => !isUndefined(context2) && context2 !== _global3;
72404
- function merge3() {
72425
+ function merge3(...objs) {
72405
72426
  const {
72406
72427
  caseless,
72407
72428
  skipUndefined
@@ -72412,8 +72433,9 @@ var require_axios = __commonJS({
72412
72433
  return;
72413
72434
  }
72414
72435
  const targetKey = caseless && findKey(result, key) || key;
72415
- if (isPlainObject3(result[targetKey]) && isPlainObject3(val)) {
72416
- result[targetKey] = merge3(result[targetKey], val);
72436
+ const existing = hasOwnProperty3(result, targetKey) ? result[targetKey] : void 0;
72437
+ if (isPlainObject3(existing) && isPlainObject3(val)) {
72438
+ result[targetKey] = merge3(existing, val);
72417
72439
  } else if (isPlainObject3(val)) {
72418
72440
  result[targetKey] = merge3({}, val);
72419
72441
  } else if (isArray3(val)) {
@@ -72422,8 +72444,8 @@ var require_axios = __commonJS({
72422
72444
  result[targetKey] = val;
72423
72445
  }
72424
72446
  };
72425
- for (let i = 0, l = arguments.length; i < l; i++) {
72426
- arguments[i] && forEach(arguments[i], assignValue);
72447
+ for (let i = 0, l = objs.length; i < l; i++) {
72448
+ objs[i] && forEach(objs[i], assignValue);
72427
72449
  }
72428
72450
  return result;
72429
72451
  }
@@ -72433,6 +72455,9 @@ var require_axios = __commonJS({
72433
72455
  forEach(b, (val, key) => {
72434
72456
  if (thisArg && isFunction$1(val)) {
72435
72457
  Object.defineProperty(a, key, {
72458
+ // Null-proto descriptor so a polluted Object.prototype.get cannot
72459
+ // hijack defineProperty's accessor-vs-data resolution.
72460
+ __proto__: null,
72436
72461
  value: bind(val, thisArg),
72437
72462
  writable: true,
72438
72463
  enumerable: true,
@@ -72440,6 +72465,7 @@ var require_axios = __commonJS({
72440
72465
  });
72441
72466
  } else {
72442
72467
  Object.defineProperty(a, key, {
72468
+ __proto__: null,
72443
72469
  value: val,
72444
72470
  writable: true,
72445
72471
  enumerable: true,
@@ -72460,12 +72486,14 @@ var require_axios = __commonJS({
72460
72486
  var inherits = (constructor, superConstructor, props, descriptors) => {
72461
72487
  constructor.prototype = Object.create(superConstructor.prototype, descriptors);
72462
72488
  Object.defineProperty(constructor.prototype, "constructor", {
72489
+ __proto__: null,
72463
72490
  value: constructor,
72464
72491
  writable: true,
72465
72492
  enumerable: false,
72466
72493
  configurable: true
72467
72494
  });
72468
72495
  Object.defineProperty(constructor, "super", {
72496
+ __proto__: null,
72469
72497
  value: superConstructor.prototype
72470
72498
  });
72471
72499
  props && Object.assign(constructor.prototype, props);
@@ -72556,7 +72584,7 @@ var require_axios = __commonJS({
72556
72584
  };
72557
72585
  var freezeMethods = (obj) => {
72558
72586
  reduceDescriptors(obj, (descriptor, name2) => {
72559
- if (isFunction$1(obj) && ["arguments", "caller", "callee"].indexOf(name2) !== -1) {
72587
+ if (isFunction$1(obj) && ["arguments", "caller", "callee"].includes(name2)) {
72560
72588
  return false;
72561
72589
  }
72562
72590
  const value = obj[name2];
@@ -72701,6 +72729,337 @@ var require_axios = __commonJS({
72701
72729
  asap,
72702
72730
  isIterable
72703
72731
  };
72732
+ var ignoreDuplicateOf = utils$1.toObjectSet(["age", "authorization", "content-length", "content-type", "etag", "expires", "from", "host", "if-modified-since", "if-unmodified-since", "last-modified", "location", "max-forwards", "proxy-authorization", "referer", "retry-after", "user-agent"]);
72733
+ var parseHeaders = (rawHeaders) => {
72734
+ const parsed = {};
72735
+ let key;
72736
+ let val;
72737
+ let i;
72738
+ rawHeaders && rawHeaders.split("\n").forEach(function parser(line) {
72739
+ i = line.indexOf(":");
72740
+ key = line.substring(0, i).trim().toLowerCase();
72741
+ val = line.substring(i + 1).trim();
72742
+ if (!key || parsed[key] && ignoreDuplicateOf[key]) {
72743
+ return;
72744
+ }
72745
+ if (key === "set-cookie") {
72746
+ if (parsed[key]) {
72747
+ parsed[key].push(val);
72748
+ } else {
72749
+ parsed[key] = [val];
72750
+ }
72751
+ } else {
72752
+ parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
72753
+ }
72754
+ });
72755
+ return parsed;
72756
+ };
72757
+ var $internals = /* @__PURE__ */ Symbol("internals");
72758
+ var INVALID_HEADER_VALUE_CHARS_RE = /[^\x09\x20-\x7E\x80-\xFF]/g;
72759
+ function trimSPorHTAB(str) {
72760
+ let start = 0;
72761
+ let end = str.length;
72762
+ while (start < end) {
72763
+ const code = str.charCodeAt(start);
72764
+ if (code !== 9 && code !== 32) {
72765
+ break;
72766
+ }
72767
+ start += 1;
72768
+ }
72769
+ while (end > start) {
72770
+ const code = str.charCodeAt(end - 1);
72771
+ if (code !== 9 && code !== 32) {
72772
+ break;
72773
+ }
72774
+ end -= 1;
72775
+ }
72776
+ return start === 0 && end === str.length ? str : str.slice(start, end);
72777
+ }
72778
+ function normalizeHeader(header) {
72779
+ return header && String(header).trim().toLowerCase();
72780
+ }
72781
+ function sanitizeHeaderValue(str) {
72782
+ return trimSPorHTAB(str.replace(INVALID_HEADER_VALUE_CHARS_RE, ""));
72783
+ }
72784
+ function normalizeValue(value) {
72785
+ if (value === false || value == null) {
72786
+ return value;
72787
+ }
72788
+ return utils$1.isArray(value) ? value.map(normalizeValue) : sanitizeHeaderValue(String(value));
72789
+ }
72790
+ function parseTokens(str) {
72791
+ const tokens = /* @__PURE__ */ Object.create(null);
72792
+ const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
72793
+ let match;
72794
+ while (match = tokensRE.exec(str)) {
72795
+ tokens[match[1]] = match[2];
72796
+ }
72797
+ return tokens;
72798
+ }
72799
+ var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
72800
+ function matchHeaderValue(context2, value, header, filter, isHeaderNameFilter) {
72801
+ if (utils$1.isFunction(filter)) {
72802
+ return filter.call(this, value, header);
72803
+ }
72804
+ if (isHeaderNameFilter) {
72805
+ value = header;
72806
+ }
72807
+ if (!utils$1.isString(value)) return;
72808
+ if (utils$1.isString(filter)) {
72809
+ return value.indexOf(filter) !== -1;
72810
+ }
72811
+ if (utils$1.isRegExp(filter)) {
72812
+ return filter.test(value);
72813
+ }
72814
+ }
72815
+ function formatHeader(header) {
72816
+ return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
72817
+ return char.toUpperCase() + str;
72818
+ });
72819
+ }
72820
+ function buildAccessors(obj, header) {
72821
+ const accessorName = utils$1.toCamelCase(" " + header);
72822
+ ["get", "set", "has"].forEach((methodName) => {
72823
+ Object.defineProperty(obj, methodName + accessorName, {
72824
+ // Null-proto descriptor so a polluted Object.prototype.get cannot turn
72825
+ // this data descriptor into an accessor descriptor on the way in.
72826
+ __proto__: null,
72827
+ value: function(arg1, arg2, arg3) {
72828
+ return this[methodName].call(this, header, arg1, arg2, arg3);
72829
+ },
72830
+ configurable: true
72831
+ });
72832
+ });
72833
+ }
72834
+ var AxiosHeaders = class {
72835
+ constructor(headers) {
72836
+ headers && this.set(headers);
72837
+ }
72838
+ set(header, valueOrRewrite, rewrite) {
72839
+ const self2 = this;
72840
+ function setHeader(_value, _header, _rewrite) {
72841
+ const lHeader = normalizeHeader(_header);
72842
+ if (!lHeader) {
72843
+ throw new Error("header name must be a non-empty string");
72844
+ }
72845
+ const key = utils$1.findKey(self2, lHeader);
72846
+ if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
72847
+ self2[key || _header] = normalizeValue(_value);
72848
+ }
72849
+ }
72850
+ const setHeaders = (headers, _rewrite) => utils$1.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
72851
+ if (utils$1.isPlainObject(header) || header instanceof this.constructor) {
72852
+ setHeaders(header, valueOrRewrite);
72853
+ } else if (utils$1.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
72854
+ setHeaders(parseHeaders(header), valueOrRewrite);
72855
+ } else if (utils$1.isObject(header) && utils$1.isIterable(header)) {
72856
+ let obj = {}, dest, key;
72857
+ for (const entry of header) {
72858
+ if (!utils$1.isArray(entry)) {
72859
+ throw TypeError("Object iterator must return a key-value pair");
72860
+ }
72861
+ obj[key = entry[0]] = (dest = obj[key]) ? utils$1.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
72862
+ }
72863
+ setHeaders(obj, valueOrRewrite);
72864
+ } else {
72865
+ header != null && setHeader(valueOrRewrite, header, rewrite);
72866
+ }
72867
+ return this;
72868
+ }
72869
+ get(header, parser) {
72870
+ header = normalizeHeader(header);
72871
+ if (header) {
72872
+ const key = utils$1.findKey(this, header);
72873
+ if (key) {
72874
+ const value = this[key];
72875
+ if (!parser) {
72876
+ return value;
72877
+ }
72878
+ if (parser === true) {
72879
+ return parseTokens(value);
72880
+ }
72881
+ if (utils$1.isFunction(parser)) {
72882
+ return parser.call(this, value, key);
72883
+ }
72884
+ if (utils$1.isRegExp(parser)) {
72885
+ return parser.exec(value);
72886
+ }
72887
+ throw new TypeError("parser must be boolean|regexp|function");
72888
+ }
72889
+ }
72890
+ }
72891
+ has(header, matcher) {
72892
+ header = normalizeHeader(header);
72893
+ if (header) {
72894
+ const key = utils$1.findKey(this, header);
72895
+ return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
72896
+ }
72897
+ return false;
72898
+ }
72899
+ delete(header, matcher) {
72900
+ const self2 = this;
72901
+ let deleted = false;
72902
+ function deleteHeader(_header) {
72903
+ _header = normalizeHeader(_header);
72904
+ if (_header) {
72905
+ const key = utils$1.findKey(self2, _header);
72906
+ if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) {
72907
+ delete self2[key];
72908
+ deleted = true;
72909
+ }
72910
+ }
72911
+ }
72912
+ if (utils$1.isArray(header)) {
72913
+ header.forEach(deleteHeader);
72914
+ } else {
72915
+ deleteHeader(header);
72916
+ }
72917
+ return deleted;
72918
+ }
72919
+ clear(matcher) {
72920
+ const keys = Object.keys(this);
72921
+ let i = keys.length;
72922
+ let deleted = false;
72923
+ while (i--) {
72924
+ const key = keys[i];
72925
+ if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
72926
+ delete this[key];
72927
+ deleted = true;
72928
+ }
72929
+ }
72930
+ return deleted;
72931
+ }
72932
+ normalize(format4) {
72933
+ const self2 = this;
72934
+ const headers = {};
72935
+ utils$1.forEach(this, (value, header) => {
72936
+ const key = utils$1.findKey(headers, header);
72937
+ if (key) {
72938
+ self2[key] = normalizeValue(value);
72939
+ delete self2[header];
72940
+ return;
72941
+ }
72942
+ const normalized = format4 ? formatHeader(header) : String(header).trim();
72943
+ if (normalized !== header) {
72944
+ delete self2[header];
72945
+ }
72946
+ self2[normalized] = normalizeValue(value);
72947
+ headers[normalized] = true;
72948
+ });
72949
+ return this;
72950
+ }
72951
+ concat(...targets) {
72952
+ return this.constructor.concat(this, ...targets);
72953
+ }
72954
+ toJSON(asStrings) {
72955
+ const obj = /* @__PURE__ */ Object.create(null);
72956
+ utils$1.forEach(this, (value, header) => {
72957
+ value != null && value !== false && (obj[header] = asStrings && utils$1.isArray(value) ? value.join(", ") : value);
72958
+ });
72959
+ return obj;
72960
+ }
72961
+ [Symbol.iterator]() {
72962
+ return Object.entries(this.toJSON())[Symbol.iterator]();
72963
+ }
72964
+ toString() {
72965
+ return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
72966
+ }
72967
+ getSetCookie() {
72968
+ return this.get("set-cookie") || [];
72969
+ }
72970
+ get [Symbol.toStringTag]() {
72971
+ return "AxiosHeaders";
72972
+ }
72973
+ static from(thing) {
72974
+ return thing instanceof this ? thing : new this(thing);
72975
+ }
72976
+ static concat(first, ...targets) {
72977
+ const computed = new this(first);
72978
+ targets.forEach((target) => computed.set(target));
72979
+ return computed;
72980
+ }
72981
+ static accessor(header) {
72982
+ const internals = this[$internals] = this[$internals] = {
72983
+ accessors: {}
72984
+ };
72985
+ const accessors = internals.accessors;
72986
+ const prototype2 = this.prototype;
72987
+ function defineAccessor(_header) {
72988
+ const lHeader = normalizeHeader(_header);
72989
+ if (!accessors[lHeader]) {
72990
+ buildAccessors(prototype2, _header);
72991
+ accessors[lHeader] = true;
72992
+ }
72993
+ }
72994
+ utils$1.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
72995
+ return this;
72996
+ }
72997
+ };
72998
+ AxiosHeaders.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
72999
+ utils$1.reduceDescriptors(AxiosHeaders.prototype, ({
73000
+ value
73001
+ }, key) => {
73002
+ let mapped = key[0].toUpperCase() + key.slice(1);
73003
+ return {
73004
+ get: () => value,
73005
+ set(headerValue) {
73006
+ this[mapped] = headerValue;
73007
+ }
73008
+ };
73009
+ });
73010
+ utils$1.freezeMethods(AxiosHeaders);
73011
+ var REDACTED = "[REDACTED ****]";
73012
+ function hasOwnOrPrototypeToJSON(source) {
73013
+ if (utils$1.hasOwnProp(source, "toJSON")) {
73014
+ return true;
73015
+ }
73016
+ let prototype2 = Object.getPrototypeOf(source);
73017
+ while (prototype2 && prototype2 !== Object.prototype) {
73018
+ if (utils$1.hasOwnProp(prototype2, "toJSON")) {
73019
+ return true;
73020
+ }
73021
+ prototype2 = Object.getPrototypeOf(prototype2);
73022
+ }
73023
+ return false;
73024
+ }
73025
+ function redactConfig(config, redactKeys) {
73026
+ const lowerKeys = new Set(redactKeys.map((k) => String(k).toLowerCase()));
73027
+ const seen = [];
73028
+ const visit3 = (source) => {
73029
+ if (source === null || typeof source !== "object") return source;
73030
+ if (utils$1.isBuffer(source)) return source;
73031
+ if (seen.indexOf(source) !== -1) return void 0;
73032
+ if (source instanceof AxiosHeaders) {
73033
+ source = source.toJSON();
73034
+ }
73035
+ seen.push(source);
73036
+ let result;
73037
+ if (utils$1.isArray(source)) {
73038
+ result = [];
73039
+ source.forEach((v, i) => {
73040
+ const reducedValue = visit3(v);
73041
+ if (!utils$1.isUndefined(reducedValue)) {
73042
+ result[i] = reducedValue;
73043
+ }
73044
+ });
73045
+ } else {
73046
+ if (!utils$1.isPlainObject(source) && hasOwnOrPrototypeToJSON(source)) {
73047
+ seen.pop();
73048
+ return source;
73049
+ }
73050
+ result = /* @__PURE__ */ Object.create(null);
73051
+ for (const [key, value] of Object.entries(source)) {
73052
+ const reducedValue = lowerKeys.has(key.toLowerCase()) ? REDACTED : visit3(value);
73053
+ if (!utils$1.isUndefined(reducedValue)) {
73054
+ result[key] = reducedValue;
73055
+ }
73056
+ }
73057
+ }
73058
+ seen.pop();
73059
+ return result;
73060
+ };
73061
+ return visit3(config);
73062
+ }
72704
73063
  var AxiosError = class _AxiosError extends Error {
72705
73064
  static from(error, code, config, request, response, customProps) {
72706
73065
  const axiosError = new _AxiosError(error.message, code || error.code, config, request, response);
@@ -72726,6 +73085,9 @@ var require_axios = __commonJS({
72726
73085
  constructor(message, code, config, request, response) {
72727
73086
  super(message);
72728
73087
  Object.defineProperty(this, "message", {
73088
+ // Null-proto descriptor so a polluted Object.prototype.get cannot turn
73089
+ // this data descriptor into an accessor descriptor on the way in.
73090
+ __proto__: null,
72729
73091
  value: message,
72730
73092
  enumerable: true,
72731
73093
  writable: true,
@@ -72742,6 +73104,9 @@ var require_axios = __commonJS({
72742
73104
  }
72743
73105
  }
72744
73106
  toJSON() {
73107
+ const config = this.config;
73108
+ const redactKeys = config && utils$1.hasOwnProp(config, "redact") ? config.redact : void 0;
73109
+ const serializedConfig = utils$1.isArray(redactKeys) && redactKeys.length > 0 ? redactConfig(config, redactKeys) : utils$1.toJSONObject(config);
72745
73110
  return {
72746
73111
  // Standard
72747
73112
  message: this.message,
@@ -72755,7 +73120,7 @@ var require_axios = __commonJS({
72755
73120
  columnNumber: this.columnNumber,
72756
73121
  stack: this.stack,
72757
73122
  // Axios
72758
- config: utils$1.toJSONObject(this.config),
73123
+ config: serializedConfig,
72759
73124
  code: this.code,
72760
73125
  status: this.status
72761
73126
  };
@@ -72765,6 +73130,7 @@ var require_axios = __commonJS({
72765
73130
  AxiosError.ERR_BAD_OPTION = "ERR_BAD_OPTION";
72766
73131
  AxiosError.ECONNABORTED = "ECONNABORTED";
72767
73132
  AxiosError.ETIMEDOUT = "ETIMEDOUT";
73133
+ AxiosError.ECONNREFUSED = "ECONNREFUSED";
72768
73134
  AxiosError.ERR_NETWORK = "ERR_NETWORK";
72769
73135
  AxiosError.ERR_FR_TOO_MANY_REDIRECTS = "ERR_FR_TOO_MANY_REDIRECTS";
72770
73136
  AxiosError.ERR_DEPRECATED = "ERR_DEPRECATED";
@@ -72773,15 +73139,16 @@ var require_axios = __commonJS({
72773
73139
  AxiosError.ERR_CANCELED = "ERR_CANCELED";
72774
73140
  AxiosError.ERR_NOT_SUPPORT = "ERR_NOT_SUPPORT";
72775
73141
  AxiosError.ERR_INVALID_URL = "ERR_INVALID_URL";
73142
+ AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED = "ERR_FORM_DATA_DEPTH_EXCEEDED";
72776
73143
  function isVisitable(thing) {
72777
73144
  return utils$1.isPlainObject(thing) || utils$1.isArray(thing);
72778
73145
  }
72779
73146
  function removeBrackets(key) {
72780
73147
  return utils$1.endsWith(key, "[]") ? key.slice(0, -2) : key;
72781
73148
  }
72782
- function renderKey(path3, key, dots) {
72783
- if (!path3) return key;
72784
- return path3.concat(key).map(function each(token2, i) {
73149
+ function renderKey(path4, key, dots) {
73150
+ if (!path4) return key;
73151
+ return path4.concat(key).map(function each(token2, i) {
72785
73152
  token2 = removeBrackets(token2);
72786
73153
  return !dots && i ? "[" + token2 + "]" : token2;
72787
73154
  }).join(dots ? "." : "");
@@ -72809,6 +73176,7 @@ var require_axios = __commonJS({
72809
73176
  const dots = options.dots;
72810
73177
  const indexes = options.indexes;
72811
73178
  const _Blob = options.Blob || typeof Blob !== "undefined" && Blob;
73179
+ const maxDepth = options.maxDepth === void 0 ? 100 : options.maxDepth;
72812
73180
  const useBlob = _Blob && utils$1.isSpecCompliantForm(formData);
72813
73181
  if (!utils$1.isFunction(visitor)) {
72814
73182
  throw new TypeError("visitor must be a function");
@@ -72829,13 +73197,13 @@ var require_axios = __commonJS({
72829
73197
  }
72830
73198
  return value;
72831
73199
  }
72832
- function defaultVisitor(value, key, path3) {
73200
+ function defaultVisitor(value, key, path4) {
72833
73201
  let arr = value;
72834
73202
  if (utils$1.isReactNative(formData) && utils$1.isReactNativeBlob(value)) {
72835
- formData.append(renderKey(path3, key, dots), convertValue(value));
73203
+ formData.append(renderKey(path4, key, dots), convertValue(value));
72836
73204
  return false;
72837
73205
  }
72838
- if (value && !path3 && typeof value === "object") {
73206
+ if (value && !path4 && typeof value === "object") {
72839
73207
  if (utils$1.endsWith(key, "{}")) {
72840
73208
  key = metaTokens ? key : key.slice(0, -2);
72841
73209
  value = JSON.stringify(value);
@@ -72854,7 +73222,7 @@ var require_axios = __commonJS({
72854
73222
  if (isVisitable(value)) {
72855
73223
  return true;
72856
73224
  }
72857
- formData.append(renderKey(path3, key, dots), convertValue(value));
73225
+ formData.append(renderKey(path4, key, dots), convertValue(value));
72858
73226
  return false;
72859
73227
  }
72860
73228
  const stack = [];
@@ -72863,16 +73231,19 @@ var require_axios = __commonJS({
72863
73231
  convertValue,
72864
73232
  isVisitable
72865
73233
  });
72866
- function build(value, path3) {
73234
+ function build(value, path4, depth = 0) {
72867
73235
  if (utils$1.isUndefined(value)) return;
73236
+ if (depth > maxDepth) {
73237
+ throw new AxiosError("Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth, AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED);
73238
+ }
72868
73239
  if (stack.indexOf(value) !== -1) {
72869
- throw Error("Circular reference detected in " + path3.join("."));
73240
+ throw Error("Circular reference detected in " + path4.join("."));
72870
73241
  }
72871
73242
  stack.push(value);
72872
73243
  utils$1.forEach(value, function each(el, key) {
72873
- const result = !(utils$1.isUndefined(el) || el === null) && visitor.call(formData, el, utils$1.isString(key) ? key.trim() : key, path3, exposedHelpers);
73244
+ const result = !(utils$1.isUndefined(el) || el === null) && visitor.call(formData, el, utils$1.isString(key) ? key.trim() : key, path4, exposedHelpers);
72874
73245
  if (result === true) {
72875
- build(el, path3 ? path3.concat(key) : [key]);
73246
+ build(el, path4 ? path4.concat(key) : [key], depth + 1);
72876
73247
  }
72877
73248
  });
72878
73249
  stack.pop();
@@ -72890,10 +73261,9 @@ var require_axios = __commonJS({
72890
73261
  "(": "%28",
72891
73262
  ")": "%29",
72892
73263
  "~": "%7E",
72893
- "%20": "+",
72894
- "%00": "\0"
73264
+ "%20": "+"
72895
73265
  };
72896
- return encodeURIComponent(str).replace(/[!'()~]|%20|%00/g, function replacer(match) {
73266
+ return encodeURIComponent(str).replace(/[!'()~]|%20/g, function replacer(match) {
72897
73267
  return charMap[match];
72898
73268
  });
72899
73269
  }
@@ -73061,7 +73431,7 @@ var require_axios = __commonJS({
73061
73431
  };
73062
73432
  function toURLEncodedForm(data, options) {
73063
73433
  return toFormData(data, new platform2.classes.URLSearchParams(), {
73064
- visitor: function(value, key, path3, helpers) {
73434
+ visitor: function(value, key, path4, helpers) {
73065
73435
  if (platform2.isNode && utils$1.isBuffer(value)) {
73066
73436
  this.append(key, value.toString("base64"));
73067
73437
  return false;
@@ -73089,15 +73459,15 @@ var require_axios = __commonJS({
73089
73459
  return obj;
73090
73460
  }
73091
73461
  function formDataToJSON(formData) {
73092
- function buildPath(path3, value, target, index) {
73093
- let name2 = path3[index++];
73462
+ function buildPath(path4, value, target, index) {
73463
+ let name2 = path4[index++];
73094
73464
  if (name2 === "__proto__") return true;
73095
73465
  const isNumericKey = Number.isFinite(+name2);
73096
- const isLast = index >= path3.length;
73466
+ const isLast = index >= path4.length;
73097
73467
  name2 = !name2 && utils$1.isArray(target) ? target.length : name2;
73098
73468
  if (isLast) {
73099
73469
  if (utils$1.hasOwnProp(target, name2)) {
73100
- target[name2] = [target[name2], value];
73470
+ target[name2] = utils$1.isArray(target[name2]) ? target[name2].concat(value) : [target[name2], value];
73101
73471
  } else {
73102
73472
  target[name2] = value;
73103
73473
  }
@@ -73106,7 +73476,7 @@ var require_axios = __commonJS({
73106
73476
  if (!target[name2] || !utils$1.isObject(target[name2])) {
73107
73477
  target[name2] = [];
73108
73478
  }
73109
- const result = buildPath(path3, value, target[name2], index);
73479
+ const result = buildPath(path4, value, target[name2], index);
73110
73480
  if (result && utils$1.isArray(target[name2])) {
73111
73481
  target[name2] = arrayToObject(target[name2]);
73112
73482
  }
@@ -73121,6 +73491,7 @@ var require_axios = __commonJS({
73121
73491
  }
73122
73492
  return null;
73123
73493
  }
73494
+ var own = (obj, key) => obj != null && utils$1.hasOwnProp(obj, key) ? obj[key] : void 0;
73124
73495
  function stringifySafely(rawValue, parser, encoder) {
73125
73496
  if (utils$1.isString(rawValue)) {
73126
73497
  try {
@@ -73160,14 +73531,16 @@ var require_axios = __commonJS({
73160
73531
  }
73161
73532
  let isFileList2;
73162
73533
  if (isObjectPayload) {
73534
+ const formSerializer = own(this, "formSerializer");
73163
73535
  if (contentType.indexOf("application/x-www-form-urlencoded") > -1) {
73164
- return toURLEncodedForm(data, this.formSerializer).toString();
73536
+ return toURLEncodedForm(data, formSerializer).toString();
73165
73537
  }
73166
73538
  if ((isFileList2 = utils$1.isFileList(data)) || contentType.indexOf("multipart/form-data") > -1) {
73167
- const _FormData = this.env && this.env.FormData;
73539
+ const env = own(this, "env");
73540
+ const _FormData = env && env.FormData;
73168
73541
  return toFormData(isFileList2 ? {
73169
73542
  "files[]": data
73170
- } : data, _FormData && new _FormData(), this.formSerializer);
73543
+ } : data, _FormData && new _FormData(), formSerializer);
73171
73544
  }
73172
73545
  }
73173
73546
  if (isObjectPayload || hasJSONContentType) {
@@ -73177,21 +73550,22 @@ var require_axios = __commonJS({
73177
73550
  return data;
73178
73551
  }],
73179
73552
  transformResponse: [function transformResponse(data) {
73180
- const transitional = this.transitional || defaults.transitional;
73553
+ const transitional = own(this, "transitional") || defaults.transitional;
73181
73554
  const forcedJSONParsing = transitional && transitional.forcedJSONParsing;
73182
- const JSONRequested = this.responseType === "json";
73555
+ const responseType = own(this, "responseType");
73556
+ const JSONRequested = responseType === "json";
73183
73557
  if (utils$1.isResponse(data) || utils$1.isReadableStream(data)) {
73184
73558
  return data;
73185
73559
  }
73186
- if (data && utils$1.isString(data) && (forcedJSONParsing && !this.responseType || JSONRequested)) {
73560
+ if (data && utils$1.isString(data) && (forcedJSONParsing && !responseType || JSONRequested)) {
73187
73561
  const silentJSONParsing = transitional && transitional.silentJSONParsing;
73188
73562
  const strictJSONParsing = !silentJSONParsing && JSONRequested;
73189
73563
  try {
73190
- return JSON.parse(data, this.parseReviver);
73564
+ return JSON.parse(data, own(this, "parseReviver"));
73191
73565
  } catch (e) {
73192
73566
  if (strictJSONParsing) {
73193
73567
  if (e.name === "SyntaxError") {
73194
- throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, this.response);
73568
+ throw AxiosError.from(e, AxiosError.ERR_BAD_RESPONSE, this, null, own(this, "response"));
73195
73569
  }
73196
73570
  throw e;
73197
73571
  }
@@ -73222,287 +73596,9 @@ var require_axios = __commonJS({
73222
73596
  }
73223
73597
  }
73224
73598
  };
73225
- utils$1.forEach(["delete", "get", "head", "post", "put", "patch"], (method) => {
73599
+ utils$1.forEach(["delete", "get", "head", "post", "put", "patch", "query"], (method) => {
73226
73600
  defaults.headers[method] = {};
73227
73601
  });
73228
- var ignoreDuplicateOf = utils$1.toObjectSet(["age", "authorization", "content-length", "content-type", "etag", "expires", "from", "host", "if-modified-since", "if-unmodified-since", "last-modified", "location", "max-forwards", "proxy-authorization", "referer", "retry-after", "user-agent"]);
73229
- var parseHeaders = (rawHeaders) => {
73230
- const parsed = {};
73231
- let key;
73232
- let val;
73233
- let i;
73234
- rawHeaders && rawHeaders.split("\n").forEach(function parser(line) {
73235
- i = line.indexOf(":");
73236
- key = line.substring(0, i).trim().toLowerCase();
73237
- val = line.substring(i + 1).trim();
73238
- if (!key || parsed[key] && ignoreDuplicateOf[key]) {
73239
- return;
73240
- }
73241
- if (key === "set-cookie") {
73242
- if (parsed[key]) {
73243
- parsed[key].push(val);
73244
- } else {
73245
- parsed[key] = [val];
73246
- }
73247
- } else {
73248
- parsed[key] = parsed[key] ? parsed[key] + ", " + val : val;
73249
- }
73250
- });
73251
- return parsed;
73252
- };
73253
- var $internals = /* @__PURE__ */ Symbol("internals");
73254
- var isValidHeaderValue = (value) => !/[\r\n]/.test(value);
73255
- function assertValidHeaderValue(value, header) {
73256
- if (value === false || value == null) {
73257
- return;
73258
- }
73259
- if (utils$1.isArray(value)) {
73260
- value.forEach((v) => assertValidHeaderValue(v, header));
73261
- return;
73262
- }
73263
- if (!isValidHeaderValue(String(value))) {
73264
- throw new Error(`Invalid character in header content ["${header}"]`);
73265
- }
73266
- }
73267
- function normalizeHeader(header) {
73268
- return header && String(header).trim().toLowerCase();
73269
- }
73270
- function stripTrailingCRLF(str) {
73271
- let end = str.length;
73272
- while (end > 0) {
73273
- const charCode = str.charCodeAt(end - 1);
73274
- if (charCode !== 10 && charCode !== 13) {
73275
- break;
73276
- }
73277
- end -= 1;
73278
- }
73279
- return end === str.length ? str : str.slice(0, end);
73280
- }
73281
- function normalizeValue(value) {
73282
- if (value === false || value == null) {
73283
- return value;
73284
- }
73285
- return utils$1.isArray(value) ? value.map(normalizeValue) : stripTrailingCRLF(String(value));
73286
- }
73287
- function parseTokens(str) {
73288
- const tokens = /* @__PURE__ */ Object.create(null);
73289
- const tokensRE = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
73290
- let match;
73291
- while (match = tokensRE.exec(str)) {
73292
- tokens[match[1]] = match[2];
73293
- }
73294
- return tokens;
73295
- }
73296
- var isValidHeaderName = (str) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(str.trim());
73297
- function matchHeaderValue(context2, value, header, filter, isHeaderNameFilter) {
73298
- if (utils$1.isFunction(filter)) {
73299
- return filter.call(this, value, header);
73300
- }
73301
- if (isHeaderNameFilter) {
73302
- value = header;
73303
- }
73304
- if (!utils$1.isString(value)) return;
73305
- if (utils$1.isString(filter)) {
73306
- return value.indexOf(filter) !== -1;
73307
- }
73308
- if (utils$1.isRegExp(filter)) {
73309
- return filter.test(value);
73310
- }
73311
- }
73312
- function formatHeader(header) {
73313
- return header.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (w, char, str) => {
73314
- return char.toUpperCase() + str;
73315
- });
73316
- }
73317
- function buildAccessors(obj, header) {
73318
- const accessorName = utils$1.toCamelCase(" " + header);
73319
- ["get", "set", "has"].forEach((methodName) => {
73320
- Object.defineProperty(obj, methodName + accessorName, {
73321
- value: function(arg1, arg2, arg3) {
73322
- return this[methodName].call(this, header, arg1, arg2, arg3);
73323
- },
73324
- configurable: true
73325
- });
73326
- });
73327
- }
73328
- var AxiosHeaders = class {
73329
- constructor(headers) {
73330
- headers && this.set(headers);
73331
- }
73332
- set(header, valueOrRewrite, rewrite) {
73333
- const self2 = this;
73334
- function setHeader(_value, _header, _rewrite) {
73335
- const lHeader = normalizeHeader(_header);
73336
- if (!lHeader) {
73337
- throw new Error("header name must be a non-empty string");
73338
- }
73339
- const key = utils$1.findKey(self2, lHeader);
73340
- if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
73341
- assertValidHeaderValue(_value, _header);
73342
- self2[key || _header] = normalizeValue(_value);
73343
- }
73344
- }
73345
- const setHeaders = (headers, _rewrite) => utils$1.forEach(headers, (_value, _header) => setHeader(_value, _header, _rewrite));
73346
- if (utils$1.isPlainObject(header) || header instanceof this.constructor) {
73347
- setHeaders(header, valueOrRewrite);
73348
- } else if (utils$1.isString(header) && (header = header.trim()) && !isValidHeaderName(header)) {
73349
- setHeaders(parseHeaders(header), valueOrRewrite);
73350
- } else if (utils$1.isObject(header) && utils$1.isIterable(header)) {
73351
- let obj = {}, dest, key;
73352
- for (const entry of header) {
73353
- if (!utils$1.isArray(entry)) {
73354
- throw TypeError("Object iterator must return a key-value pair");
73355
- }
73356
- obj[key = entry[0]] = (dest = obj[key]) ? utils$1.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
73357
- }
73358
- setHeaders(obj, valueOrRewrite);
73359
- } else {
73360
- header != null && setHeader(valueOrRewrite, header, rewrite);
73361
- }
73362
- return this;
73363
- }
73364
- get(header, parser) {
73365
- header = normalizeHeader(header);
73366
- if (header) {
73367
- const key = utils$1.findKey(this, header);
73368
- if (key) {
73369
- const value = this[key];
73370
- if (!parser) {
73371
- return value;
73372
- }
73373
- if (parser === true) {
73374
- return parseTokens(value);
73375
- }
73376
- if (utils$1.isFunction(parser)) {
73377
- return parser.call(this, value, key);
73378
- }
73379
- if (utils$1.isRegExp(parser)) {
73380
- return parser.exec(value);
73381
- }
73382
- throw new TypeError("parser must be boolean|regexp|function");
73383
- }
73384
- }
73385
- }
73386
- has(header, matcher) {
73387
- header = normalizeHeader(header);
73388
- if (header) {
73389
- const key = utils$1.findKey(this, header);
73390
- return !!(key && this[key] !== void 0 && (!matcher || matchHeaderValue(this, this[key], key, matcher)));
73391
- }
73392
- return false;
73393
- }
73394
- delete(header, matcher) {
73395
- const self2 = this;
73396
- let deleted = false;
73397
- function deleteHeader(_header) {
73398
- _header = normalizeHeader(_header);
73399
- if (_header) {
73400
- const key = utils$1.findKey(self2, _header);
73401
- if (key && (!matcher || matchHeaderValue(self2, self2[key], key, matcher))) {
73402
- delete self2[key];
73403
- deleted = true;
73404
- }
73405
- }
73406
- }
73407
- if (utils$1.isArray(header)) {
73408
- header.forEach(deleteHeader);
73409
- } else {
73410
- deleteHeader(header);
73411
- }
73412
- return deleted;
73413
- }
73414
- clear(matcher) {
73415
- const keys = Object.keys(this);
73416
- let i = keys.length;
73417
- let deleted = false;
73418
- while (i--) {
73419
- const key = keys[i];
73420
- if (!matcher || matchHeaderValue(this, this[key], key, matcher, true)) {
73421
- delete this[key];
73422
- deleted = true;
73423
- }
73424
- }
73425
- return deleted;
73426
- }
73427
- normalize(format4) {
73428
- const self2 = this;
73429
- const headers = {};
73430
- utils$1.forEach(this, (value, header) => {
73431
- const key = utils$1.findKey(headers, header);
73432
- if (key) {
73433
- self2[key] = normalizeValue(value);
73434
- delete self2[header];
73435
- return;
73436
- }
73437
- const normalized = format4 ? formatHeader(header) : String(header).trim();
73438
- if (normalized !== header) {
73439
- delete self2[header];
73440
- }
73441
- self2[normalized] = normalizeValue(value);
73442
- headers[normalized] = true;
73443
- });
73444
- return this;
73445
- }
73446
- concat(...targets) {
73447
- return this.constructor.concat(this, ...targets);
73448
- }
73449
- toJSON(asStrings) {
73450
- const obj = /* @__PURE__ */ Object.create(null);
73451
- utils$1.forEach(this, (value, header) => {
73452
- value != null && value !== false && (obj[header] = asStrings && utils$1.isArray(value) ? value.join(", ") : value);
73453
- });
73454
- return obj;
73455
- }
73456
- [Symbol.iterator]() {
73457
- return Object.entries(this.toJSON())[Symbol.iterator]();
73458
- }
73459
- toString() {
73460
- return Object.entries(this.toJSON()).map(([header, value]) => header + ": " + value).join("\n");
73461
- }
73462
- getSetCookie() {
73463
- return this.get("set-cookie") || [];
73464
- }
73465
- get [Symbol.toStringTag]() {
73466
- return "AxiosHeaders";
73467
- }
73468
- static from(thing) {
73469
- return thing instanceof this ? thing : new this(thing);
73470
- }
73471
- static concat(first, ...targets) {
73472
- const computed = new this(first);
73473
- targets.forEach((target) => computed.set(target));
73474
- return computed;
73475
- }
73476
- static accessor(header) {
73477
- const internals = this[$internals] = this[$internals] = {
73478
- accessors: {}
73479
- };
73480
- const accessors = internals.accessors;
73481
- const prototype2 = this.prototype;
73482
- function defineAccessor(_header) {
73483
- const lHeader = normalizeHeader(_header);
73484
- if (!accessors[lHeader]) {
73485
- buildAccessors(prototype2, _header);
73486
- accessors[lHeader] = true;
73487
- }
73488
- }
73489
- utils$1.isArray(header) ? header.forEach(defineAccessor) : defineAccessor(header);
73490
- return this;
73491
- }
73492
- };
73493
- AxiosHeaders.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
73494
- utils$1.reduceDescriptors(AxiosHeaders.prototype, ({
73495
- value
73496
- }, key) => {
73497
- let mapped = key[0].toUpperCase() + key.slice(1);
73498
- return {
73499
- get: () => value,
73500
- set(headerValue) {
73501
- this[mapped] = headerValue;
73502
- }
73503
- };
73504
- });
73505
- utils$1.freezeMethods(AxiosHeaders);
73506
73602
  function transformData(fns, response) {
73507
73603
  const config = this || defaults;
73508
73604
  const context2 = response || config;
@@ -73538,7 +73634,7 @@ var require_axios = __commonJS({
73538
73634
  if (!response.status || !validateStatus || validateStatus(response.status)) {
73539
73635
  resolve2(response);
73540
73636
  } else {
73541
- reject(new AxiosError("Request failed with status code " + response.status, [AxiosError.ERR_BAD_REQUEST, AxiosError.ERR_BAD_RESPONSE][Math.floor(response.status / 100) - 4], response.config, response.request, response));
73637
+ reject(new AxiosError("Request failed with status code " + response.status, response.status >= 400 && response.status < 500 ? AxiosError.ERR_BAD_REQUEST : AxiosError.ERR_BAD_RESPONSE, response.config, response.request, response));
73542
73638
  }
73543
73639
  }
73544
73640
  function isAbsoluteURL(url2) {
@@ -73552,7 +73648,7 @@ var require_axios = __commonJS({
73552
73648
  }
73553
73649
  function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
73554
73650
  let isRelativeUrl = !isAbsoluteURL(requestedURL);
73555
- if (baseURL && (isRelativeUrl || allowAbsoluteUrls == false)) {
73651
+ if (baseURL && (isRelativeUrl || allowAbsoluteUrls === false)) {
73556
73652
  return combineURLs(baseURL, requestedURL);
73557
73653
  }
73558
73654
  return requestedURL;
@@ -73622,9 +73718,9 @@ var require_axios = __commonJS({
73622
73718
  function getEnv2(key) {
73623
73719
  return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
73624
73720
  }
73625
- var VERSION6 = "1.15.0";
73721
+ var VERSION6 = "1.16.0";
73626
73722
  function parseProtocol(url2) {
73627
- const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url2);
73723
+ const match = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url2);
73628
73724
  return match && match[1] || "";
73629
73725
  }
73630
73726
  var DATA_URL_PATTERN = /^(?:([^;]+);)?(?:[^;]+;)?(base64|),([\s\S]*)$/;
@@ -73796,7 +73892,8 @@ var require_axios = __commonJS({
73796
73892
  if (isStringValue) {
73797
73893
  value = textEncoder.encode(String(value).replace(/\r?\n|\r\n?/g, CRLF));
73798
73894
  } else {
73799
- headers += `Content-Type: ${value.type || "application/octet-stream"}${CRLF}`;
73895
+ const safeType = String(value.type || "application/octet-stream").replace(/[\r\n]/g, "");
73896
+ headers += `Content-Type: ${safeType}${CRLF}`;
73800
73897
  }
73801
73898
  this.headers = textEncoder.encode(headers + CRLF);
73802
73899
  this.contentLength = isStringValue ? value.byteLength : value.size;
@@ -73834,7 +73931,7 @@ var require_axios = __commonJS({
73834
73931
  throw TypeError("FormData instance required");
73835
73932
  }
73836
73933
  if (boundary.length < 1 || boundary.length > 70) {
73837
- throw Error("boundary must be 10-70 characters long");
73934
+ throw Error("boundary must be 1-70 characters long");
73838
73935
  }
73839
73936
  const boundaryBytes = textEncoder.encode("--" + boundary + CRLF);
73840
73937
  const footerBytes = textEncoder.encode("--" + boundary + "--" + CRLF);
@@ -73891,6 +73988,37 @@ var require_axios = __commonJS({
73891
73988
  }, cb);
73892
73989
  } : fn2;
73893
73990
  };
73991
+ var LOOPBACK_HOSTNAMES = /* @__PURE__ */ new Set(["localhost"]);
73992
+ var isIPv4Loopback = (host) => {
73993
+ const parts = host.split(".");
73994
+ if (parts.length !== 4) return false;
73995
+ if (parts[0] !== "127") return false;
73996
+ return parts.every((p) => /^\d+$/.test(p) && Number(p) >= 0 && Number(p) <= 255);
73997
+ };
73998
+ var isIPv6Loopback = (host) => {
73999
+ if (host === "::1") return true;
74000
+ const v4MappedDotted = host.match(/^::ffff:(\d+\.\d+\.\d+\.\d+)$/i);
74001
+ if (v4MappedDotted) return isIPv4Loopback(v4MappedDotted[1]);
74002
+ const v4MappedHex = host.match(/^::ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i);
74003
+ if (v4MappedHex) {
74004
+ const high = parseInt(v4MappedHex[1], 16);
74005
+ return high >= 32512 && high <= 32767;
74006
+ }
74007
+ const groups = host.split(":");
74008
+ if (groups.length === 8) {
74009
+ for (let i = 0; i < 7; i++) {
74010
+ if (!/^0+$/.test(groups[i])) return false;
74011
+ }
74012
+ return /^0*1$/.test(groups[7]);
74013
+ }
74014
+ return false;
74015
+ };
74016
+ var isLoopback = (host) => {
74017
+ if (!host) return false;
74018
+ if (LOOPBACK_HOSTNAMES.has(host)) return true;
74019
+ if (isIPv4Loopback(host)) return true;
74020
+ return isIPv6Loopback(host);
74021
+ };
73894
74022
  var DEFAULT_PORTS = {
73895
74023
  http: 80,
73896
74024
  https: 443,
@@ -73920,6 +74048,20 @@ var require_axios = __commonJS({
73920
74048
  }
73921
74049
  return [entryHost, entryPort];
73922
74050
  };
74051
+ var IPV4_MAPPED_DOTTED_RE = /^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:(\d+\.\d+\.\d+\.\d+)$/i;
74052
+ var IPV4_MAPPED_HEX_RE = /^(?:::|(?:0{1,4}:){1,4}:|(?:0{1,4}:){5})ffff:([0-9a-f]{1,4}):([0-9a-f]{1,4})$/i;
74053
+ var unmapIPv4MappedIPv6 = (host) => {
74054
+ if (typeof host !== "string" || host.indexOf(":") === -1) return host;
74055
+ const dotted = host.match(IPV4_MAPPED_DOTTED_RE);
74056
+ if (dotted) return dotted[1];
74057
+ const hex = host.match(IPV4_MAPPED_HEX_RE);
74058
+ if (hex) {
74059
+ const high = parseInt(hex[1], 16);
74060
+ const low = parseInt(hex[2], 16);
74061
+ return `${high >> 8}.${high & 255}.${low >> 8}.${low & 255}`;
74062
+ }
74063
+ return host;
74064
+ };
73923
74065
  var normalizeNoProxyHost = (hostname) => {
73924
74066
  if (!hostname) {
73925
74067
  return hostname;
@@ -73927,7 +74069,7 @@ var require_axios = __commonJS({
73927
74069
  if (hostname.charAt(0) === "[" && hostname.charAt(hostname.length - 1) === "]") {
73928
74070
  hostname = hostname.slice(1, -1);
73929
74071
  }
73930
- return hostname.replace(/\.+$/, "");
74072
+ return unmapIPv4MappedIPv6(hostname.replace(/\.+$/, ""));
73931
74073
  };
73932
74074
  function shouldBypassProxy(location) {
73933
74075
  let parsed;
@@ -73963,7 +74105,7 @@ var require_axios = __commonJS({
73963
74105
  if (entryHost.charAt(0) === ".") {
73964
74106
  return hostname.endsWith(entryHost);
73965
74107
  }
73966
- return hostname === entryHost;
74108
+ return hostname === entryHost || isLoopback(hostname) && isLoopback(entryHost);
73967
74109
  });
73968
74110
  }
73969
74111
  function speedometer(samplesCount, min) {
@@ -74035,19 +74177,19 @@ var require_axios = __commonJS({
74035
74177
  let bytesNotified = 0;
74036
74178
  const _speedometer = speedometer(50, 250);
74037
74179
  return throttle((e) => {
74038
- const loaded = e.loaded;
74180
+ const rawLoaded = e.loaded;
74039
74181
  const total = e.lengthComputable ? e.total : void 0;
74040
- const progressBytes = loaded - bytesNotified;
74182
+ const loaded = total != null ? Math.min(rawLoaded, total) : rawLoaded;
74183
+ const progressBytes = Math.max(0, loaded - bytesNotified);
74041
74184
  const rate = _speedometer(progressBytes);
74042
- const inRange = loaded <= total;
74043
- bytesNotified = loaded;
74185
+ bytesNotified = Math.max(bytesNotified, loaded);
74044
74186
  const data = {
74045
74187
  loaded,
74046
74188
  total,
74047
74189
  progress: total ? loaded / total : void 0,
74048
74190
  bytes: progressBytes,
74049
74191
  rate: rate ? rate : void 0,
74050
- estimated: rate && total && inRange ? (total - loaded) / rate : void 0,
74192
+ estimated: rate && total ? (total - loaded) / rate : void 0,
74051
74193
  event: e,
74052
74194
  lengthComputable: total != null,
74053
74195
  [isDownloadStream ? "download" : "upload"]: true
@@ -74108,10 +74250,32 @@ var require_axios = __commonJS({
74108
74250
  }
74109
74251
  }
74110
74252
  const groups = Math.floor(effectiveLen / 4);
74111
- const bytes = groups * 3 - (pad2 || 0);
74112
- return bytes > 0 ? bytes : 0;
74253
+ const bytes2 = groups * 3 - (pad2 || 0);
74254
+ return bytes2 > 0 ? bytes2 : 0;
74255
+ }
74256
+ if (typeof Buffer !== "undefined" && typeof Buffer.byteLength === "function") {
74257
+ return Buffer.byteLength(body, "utf8");
74258
+ }
74259
+ let bytes = 0;
74260
+ for (let i = 0, len = body.length; i < len; i++) {
74261
+ const c = body.charCodeAt(i);
74262
+ if (c < 128) {
74263
+ bytes += 1;
74264
+ } else if (c < 2048) {
74265
+ bytes += 2;
74266
+ } else if (c >= 55296 && c <= 56319 && i + 1 < len) {
74267
+ const next = body.charCodeAt(i + 1);
74268
+ if (next >= 56320 && next <= 57343) {
74269
+ bytes += 4;
74270
+ i++;
74271
+ } else {
74272
+ bytes += 3;
74273
+ }
74274
+ } else {
74275
+ bytes += 3;
74276
+ }
74113
74277
  }
74114
- return Buffer.byteLength(body, "utf8");
74278
+ return bytes;
74115
74279
  }
74116
74280
  var zlibOptions = {
74117
74281
  flush: zlib.constants.Z_SYNC_FLUSH,
@@ -74127,9 +74291,33 @@ var require_axios = __commonJS({
74127
74291
  https: httpsFollow
74128
74292
  } = followRedirects;
74129
74293
  var isHttps = /https:?/;
74294
+ var FORM_DATA_CONTENT_HEADERS$1 = ["content-type", "content-length"];
74295
+ function setFormDataHeaders$1(headers, formHeaders, policy) {
74296
+ if (policy !== "content-only") {
74297
+ headers.set(formHeaders);
74298
+ return;
74299
+ }
74300
+ Object.entries(formHeaders).forEach(([key, val]) => {
74301
+ if (FORM_DATA_CONTENT_HEADERS$1.includes(key.toLowerCase())) {
74302
+ headers.set(key, val);
74303
+ }
74304
+ });
74305
+ }
74306
+ var kAxiosSocketListener = /* @__PURE__ */ Symbol("axios.http.socketListener");
74307
+ var kAxiosCurrentReq = /* @__PURE__ */ Symbol("axios.http.currentReq");
74130
74308
  var supportedProtocols = platform2.protocols.map((protocol) => {
74131
74309
  return protocol + ":";
74132
74310
  });
74311
+ var decodeURIComponentSafe = (value) => {
74312
+ if (!utils$1.isString(value)) {
74313
+ return value;
74314
+ }
74315
+ try {
74316
+ return decodeURIComponent(value);
74317
+ } catch (error) {
74318
+ return value;
74319
+ }
74320
+ };
74133
74321
  var flushOnFinish = (stream2, [throttled, flush]) => {
74134
74322
  stream2.on("end", flush).on("error", flush);
74135
74323
  return throttled;
@@ -74206,15 +74394,15 @@ var require_axios = __commonJS({
74206
74394
  }
74207
74395
  };
74208
74396
  var http2Sessions = new Http2Sessions();
74209
- function dispatchBeforeRedirect(options, responseDetails) {
74397
+ function dispatchBeforeRedirect(options, responseDetails, requestDetails) {
74210
74398
  if (options.beforeRedirects.proxy) {
74211
74399
  options.beforeRedirects.proxy(options);
74212
74400
  }
74213
74401
  if (options.beforeRedirects.config) {
74214
- options.beforeRedirects.config(options, responseDetails);
74402
+ options.beforeRedirects.config(options, responseDetails, requestDetails);
74215
74403
  }
74216
74404
  }
74217
- function setProxy(options, configProxy, location) {
74405
+ function setProxy(options, configProxy, location, isRedirect) {
74218
74406
  let proxy = configProxy;
74219
74407
  if (!proxy && proxy !== false) {
74220
74408
  const proxyUrl = getProxyForUrl(location);
@@ -74224,34 +74412,59 @@ var require_axios = __commonJS({
74224
74412
  }
74225
74413
  }
74226
74414
  }
74227
- if (proxy) {
74228
- if (proxy.username) {
74229
- proxy.auth = (proxy.username || "") + ":" + (proxy.password || "");
74415
+ if (isRedirect && options.headers) {
74416
+ for (const name2 of Object.keys(options.headers)) {
74417
+ if (name2.toLowerCase() === "proxy-authorization") {
74418
+ delete options.headers[name2];
74419
+ }
74230
74420
  }
74231
- if (proxy.auth) {
74232
- const validProxyAuth = Boolean(proxy.auth.username || proxy.auth.password);
74421
+ }
74422
+ if (proxy) {
74423
+ const isProxyURL = proxy instanceof URL;
74424
+ const readProxyField = (key) => isProxyURL || utils$1.hasOwnProp(proxy, key) ? proxy[key] : void 0;
74425
+ const proxyUsername = readProxyField("username");
74426
+ const proxyPassword = readProxyField("password");
74427
+ let proxyAuth = utils$1.hasOwnProp(proxy, "auth") ? proxy.auth : void 0;
74428
+ if (proxyUsername) {
74429
+ proxyAuth = (proxyUsername || "") + ":" + (proxyPassword || "");
74430
+ }
74431
+ if (proxyAuth) {
74432
+ const authIsObject = typeof proxyAuth === "object";
74433
+ const authUsername = authIsObject && utils$1.hasOwnProp(proxyAuth, "username") ? proxyAuth.username : void 0;
74434
+ const authPassword = authIsObject && utils$1.hasOwnProp(proxyAuth, "password") ? proxyAuth.password : void 0;
74435
+ const validProxyAuth = Boolean(authUsername || authPassword);
74233
74436
  if (validProxyAuth) {
74234
- proxy.auth = (proxy.auth.username || "") + ":" + (proxy.auth.password || "");
74235
- } else if (typeof proxy.auth === "object") {
74437
+ proxyAuth = (authUsername || "") + ":" + (authPassword || "");
74438
+ } else if (authIsObject) {
74236
74439
  throw new AxiosError("Invalid proxy authorization", AxiosError.ERR_BAD_OPTION, {
74237
74440
  proxy
74238
74441
  });
74239
74442
  }
74240
- const base64 = Buffer.from(proxy.auth, "utf8").toString("base64");
74443
+ const base64 = Buffer.from(proxyAuth, "utf8").toString("base64");
74241
74444
  options.headers["Proxy-Authorization"] = "Basic " + base64;
74242
74445
  }
74243
- options.headers.host = options.hostname + (options.port ? ":" + options.port : "");
74244
- const proxyHost = proxy.hostname || proxy.host;
74446
+ let hasUserHostHeader = false;
74447
+ for (const name2 of Object.keys(options.headers)) {
74448
+ if (name2.toLowerCase() === "host") {
74449
+ hasUserHostHeader = true;
74450
+ break;
74451
+ }
74452
+ }
74453
+ if (!hasUserHostHeader) {
74454
+ options.headers.host = options.hostname + (options.port ? ":" + options.port : "");
74455
+ }
74456
+ const proxyHost = readProxyField("hostname") || readProxyField("host");
74245
74457
  options.hostname = proxyHost;
74246
74458
  options.host = proxyHost;
74247
- options.port = proxy.port;
74459
+ options.port = readProxyField("port");
74248
74460
  options.path = location;
74249
- if (proxy.protocol) {
74250
- options.protocol = proxy.protocol.includes(":") ? proxy.protocol : `${proxy.protocol}:`;
74461
+ const proxyProtocol = readProxyField("protocol");
74462
+ if (proxyProtocol) {
74463
+ options.protocol = proxyProtocol.includes(":") ? proxyProtocol : `${proxyProtocol}:`;
74251
74464
  }
74252
74465
  }
74253
74466
  options.beforeRedirects.proxy = function beforeRedirect(redirectOptions) {
74254
- setProxy(redirectOptions, configProxy, redirectOptions.href);
74467
+ setProxy(redirectOptions, configProxy, redirectOptions.href, true);
74255
74468
  };
74256
74469
  }
74257
74470
  var isHttpAdapterSupported = typeof process !== "undefined" && utils$1.kindOf(process) === "process";
@@ -74328,21 +74541,20 @@ var require_axios = __commonJS({
74328
74541
  };
74329
74542
  var httpAdapter = isHttpAdapterSupported && function httpAdapter2(config) {
74330
74543
  return wrapAsync(async function dispatchHttpRequest(resolve2, reject, onDone) {
74331
- let {
74332
- data,
74333
- lookup,
74334
- family,
74335
- httpVersion = 1,
74336
- http2Options
74337
- } = config;
74338
- const {
74339
- responseType,
74340
- responseEncoding
74341
- } = config;
74544
+ const own2 = (key) => utils$1.hasOwnProp(config, key) ? config[key] : void 0;
74545
+ let data = own2("data");
74546
+ let lookup = own2("lookup");
74547
+ let family = own2("family");
74548
+ let httpVersion = own2("httpVersion");
74549
+ if (httpVersion === void 0) httpVersion = 1;
74550
+ let http2Options = own2("http2Options");
74551
+ const responseType = own2("responseType");
74552
+ const responseEncoding = own2("responseEncoding");
74342
74553
  const method = config.method.toUpperCase();
74343
74554
  let isDone;
74344
74555
  let rejected = false;
74345
74556
  let req;
74557
+ let connectPhaseTimer;
74346
74558
  httpVersion = +httpVersion;
74347
74559
  if (Number.isNaN(httpVersion)) {
74348
74560
  throw TypeError(`Invalid protocol version: '${config.httpVersion}' is not a number`);
@@ -74371,8 +74583,23 @@ var require_axios = __commonJS({
74371
74583
  console.warn("emit error", err);
74372
74584
  }
74373
74585
  }
74586
+ function clearConnectPhaseTimer() {
74587
+ if (connectPhaseTimer) {
74588
+ clearTimeout(connectPhaseTimer);
74589
+ connectPhaseTimer = null;
74590
+ }
74591
+ }
74592
+ function createTimeoutError() {
74593
+ let timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
74594
+ const transitional = config.transitional || transitionalDefaults;
74595
+ if (config.timeoutErrorMessage) {
74596
+ timeoutErrorMessage = config.timeoutErrorMessage;
74597
+ }
74598
+ return new AxiosError(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED, config, req);
74599
+ }
74374
74600
  abortEmitter.once("abort", reject);
74375
74601
  const onFinished = () => {
74602
+ clearConnectPhaseTimer();
74376
74603
  if (config.cancelToken) {
74377
74604
  config.cancelToken.unsubscribe(abort);
74378
74605
  }
@@ -74389,6 +74616,7 @@ var require_axios = __commonJS({
74389
74616
  }
74390
74617
  onDone((response, isRejected) => {
74391
74618
  isDone = true;
74619
+ clearConnectPhaseTimer();
74392
74620
  if (isRejected) {
74393
74621
  rejected = true;
74394
74622
  onFinished();
@@ -74469,8 +74697,8 @@ var require_axios = __commonJS({
74469
74697
  tag: `axios-${VERSION6}-boundary`,
74470
74698
  boundary: userBoundary && userBoundary[1] || void 0
74471
74699
  });
74472
- } else if (utils$1.isFormData(data) && utils$1.isFunction(data.getHeaders)) {
74473
- headers.set(data.getHeaders());
74700
+ } else if (utils$1.isFormData(data) && utils$1.isFunction(data.getHeaders) && data.getHeaders !== Object.prototype.getHeaders) {
74701
+ setFormDataHeaders$1(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
74474
74702
  if (!headers.hasContentLength()) {
74475
74703
  try {
74476
74704
  const knownLength = await util.promisify(data.getLength).call(data);
@@ -74515,20 +74743,21 @@ var require_axios = __commonJS({
74515
74743
  onUploadProgress && data.on("progress", flushOnFinish(data, progressEventDecorator(contentLength, progressEventReducer(asyncDecorator(onUploadProgress), false, 3))));
74516
74744
  }
74517
74745
  let auth = void 0;
74518
- if (config.auth) {
74519
- const username = config.auth.username || "";
74520
- const password = config.auth.password || "";
74746
+ const configAuth = own2("auth");
74747
+ if (configAuth) {
74748
+ const username = configAuth.username || "";
74749
+ const password = configAuth.password || "";
74521
74750
  auth = username + ":" + password;
74522
74751
  }
74523
74752
  if (!auth && parsed.username) {
74524
- const urlUsername = parsed.username;
74525
- const urlPassword = parsed.password;
74753
+ const urlUsername = decodeURIComponentSafe(parsed.username);
74754
+ const urlPassword = decodeURIComponentSafe(parsed.password);
74526
74755
  auth = urlUsername + ":" + urlPassword;
74527
74756
  }
74528
74757
  auth && headers.delete("authorization");
74529
- let path3;
74758
+ let path$1;
74530
74759
  try {
74531
- path3 = buildURL(parsed.pathname + parsed.search, config.params, config.paramsSerializer).replace(/^\?/, "");
74760
+ path$1 = buildURL(parsed.pathname + parsed.search, config.params, config.paramsSerializer).replace(/^\?/, "");
74532
74761
  } catch (err) {
74533
74762
  const customErr = new Error(err.message);
74534
74763
  customErr.config = config;
@@ -74537,8 +74766,8 @@ var require_axios = __commonJS({
74537
74766
  return reject(customErr);
74538
74767
  }
74539
74768
  headers.set("Accept-Encoding", "gzip, compress, deflate" + (isBrotliSupported ? ", br" : ""), false);
74540
- const options = {
74541
- path: path3,
74769
+ const options = Object.assign(/* @__PURE__ */ Object.create(null), {
74770
+ path: path$1,
74542
74771
  method,
74543
74772
  headers: headers.toJSON(),
74544
74773
  agents: {
@@ -74549,11 +74778,22 @@ var require_axios = __commonJS({
74549
74778
  protocol,
74550
74779
  family,
74551
74780
  beforeRedirect: dispatchBeforeRedirect,
74552
- beforeRedirects: {},
74781
+ beforeRedirects: /* @__PURE__ */ Object.create(null),
74553
74782
  http2Options
74554
- };
74783
+ });
74555
74784
  !utils$1.isUndefined(lookup) && (options.lookup = lookup);
74556
74785
  if (config.socketPath) {
74786
+ if (typeof config.socketPath !== "string") {
74787
+ return reject(new AxiosError("socketPath must be a string", AxiosError.ERR_BAD_OPTION_VALUE, config));
74788
+ }
74789
+ if (config.allowedSocketPaths != null) {
74790
+ const allowed = Array.isArray(config.allowedSocketPaths) ? config.allowedSocketPaths : [config.allowedSocketPaths];
74791
+ const resolvedSocket = path3.resolve(config.socketPath);
74792
+ const isAllowed = allowed.some((entry) => typeof entry === "string" && path3.resolve(entry) === resolvedSocket);
74793
+ if (!isAllowed) {
74794
+ return reject(new AxiosError(`socketPath "${config.socketPath}" is not permitted by allowedSocketPaths`, AxiosError.ERR_BAD_OPTION_VALUE, config));
74795
+ }
74796
+ }
74557
74797
  options.socketPath = config.socketPath;
74558
74798
  } else {
74559
74799
  options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
@@ -74561,21 +74801,25 @@ var require_axios = __commonJS({
74561
74801
  setProxy(options, config.proxy, protocol + "//" + parsed.hostname + (parsed.port ? ":" + parsed.port : "") + options.path);
74562
74802
  }
74563
74803
  let transport;
74804
+ let isNativeTransport = false;
74564
74805
  const isHttpsRequest = isHttps.test(options.protocol);
74565
74806
  options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;
74566
74807
  if (isHttp2) {
74567
74808
  transport = http2Transport;
74568
74809
  } else {
74569
- if (config.transport) {
74570
- transport = config.transport;
74810
+ const configTransport = own2("transport");
74811
+ if (configTransport) {
74812
+ transport = configTransport;
74571
74813
  } else if (config.maxRedirects === 0) {
74572
74814
  transport = isHttpsRequest ? https : http;
74815
+ isNativeTransport = true;
74573
74816
  } else {
74574
74817
  if (config.maxRedirects) {
74575
74818
  options.maxRedirects = config.maxRedirects;
74576
74819
  }
74577
- if (config.beforeRedirect) {
74578
- options.beforeRedirects.config = config.beforeRedirect;
74820
+ const configBeforeRedirect = own2("beforeRedirect");
74821
+ if (configBeforeRedirect) {
74822
+ options.beforeRedirects.config = configBeforeRedirect;
74579
74823
  }
74580
74824
  transport = isHttpsRequest ? httpsFollow : httpFollow;
74581
74825
  }
@@ -74585,10 +74829,9 @@ var require_axios = __commonJS({
74585
74829
  } else {
74586
74830
  options.maxBodyLength = Infinity;
74587
74831
  }
74588
- if (config.insecureHTTPParser) {
74589
- options.insecureHTTPParser = config.insecureHTTPParser;
74590
- }
74832
+ options.insecureHTTPParser = Boolean(own2("insecureHTTPParser"));
74591
74833
  req = transport.request(options, function handleResponse(res) {
74834
+ clearConnectPhaseTimer();
74592
74835
  if (req.destroyed) return;
74593
74836
  const streams = [res];
74594
74837
  const responseLength = utils$1.toFiniteNumber(res.headers["content-length"]);
@@ -74635,6 +74878,23 @@ var require_axios = __commonJS({
74635
74878
  request: lastRequest
74636
74879
  };
74637
74880
  if (responseType === "stream") {
74881
+ if (config.maxContentLength > -1) {
74882
+ const limit = config.maxContentLength;
74883
+ const source = responseStream;
74884
+ async function* enforceMaxContentLength() {
74885
+ let totalResponseBytes = 0;
74886
+ for await (const chunk of source) {
74887
+ totalResponseBytes += chunk.length;
74888
+ if (totalResponseBytes > limit) {
74889
+ throw new AxiosError("maxContentLength size of " + limit + " exceeded", AxiosError.ERR_BAD_RESPONSE, config, lastRequest);
74890
+ }
74891
+ yield chunk;
74892
+ }
74893
+ }
74894
+ responseStream = stream.Readable.from(enforceMaxContentLength(), {
74895
+ objectMode: false
74896
+ });
74897
+ }
74638
74898
  response.data = responseStream;
74639
74899
  settle(resolve2, reject, response);
74640
74900
  } else {
@@ -74653,13 +74913,13 @@ var require_axios = __commonJS({
74653
74913
  if (rejected) {
74654
74914
  return;
74655
74915
  }
74656
- const err = new AxiosError("stream has been aborted", AxiosError.ERR_BAD_RESPONSE, config, lastRequest);
74916
+ const err = new AxiosError("stream has been aborted", AxiosError.ERR_BAD_RESPONSE, config, lastRequest, response);
74657
74917
  responseStream.destroy(err);
74658
74918
  reject(err);
74659
74919
  });
74660
74920
  responseStream.on("error", function handleStreamError(err) {
74661
- if (req.destroyed) return;
74662
- reject(AxiosError.from(err, null, config, lastRequest));
74921
+ if (rejected) return;
74922
+ reject(AxiosError.from(err, null, config, lastRequest, response));
74663
74923
  });
74664
74924
  responseStream.on("end", function handleStreamEnd() {
74665
74925
  try {
@@ -74694,8 +74954,29 @@ var require_axios = __commonJS({
74694
74954
  req.on("error", function handleRequestError(err) {
74695
74955
  reject(AxiosError.from(err, null, config, req));
74696
74956
  });
74957
+ const boundSockets = /* @__PURE__ */ new Set();
74697
74958
  req.on("socket", function handleRequestSocket(socket) {
74698
74959
  socket.setKeepAlive(true, 1e3 * 60);
74960
+ if (!socket[kAxiosSocketListener]) {
74961
+ socket.on("error", function handleSocketError(err) {
74962
+ const current = socket[kAxiosCurrentReq];
74963
+ if (current && !current.destroyed) {
74964
+ current.destroy(err);
74965
+ }
74966
+ });
74967
+ socket[kAxiosSocketListener] = true;
74968
+ }
74969
+ socket[kAxiosCurrentReq] = req;
74970
+ boundSockets.add(socket);
74971
+ });
74972
+ req.once("close", function clearCurrentReq() {
74973
+ clearConnectPhaseTimer();
74974
+ for (const socket of boundSockets) {
74975
+ if (socket[kAxiosCurrentReq] === req) {
74976
+ socket[kAxiosCurrentReq] = null;
74977
+ }
74978
+ }
74979
+ boundSockets.clear();
74699
74980
  });
74700
74981
  if (config.timeout) {
74701
74982
  const timeout = parseInt(config.timeout, 10);
@@ -74703,15 +74984,14 @@ var require_axios = __commonJS({
74703
74984
  abort(new AxiosError("error trying to parse `config.timeout` to int", AxiosError.ERR_BAD_OPTION_VALUE, config, req));
74704
74985
  return;
74705
74986
  }
74706
- req.setTimeout(timeout, function handleRequestTimeout() {
74987
+ const handleTimeout = function handleTimeout2() {
74707
74988
  if (isDone) return;
74708
- let timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
74709
- const transitional = config.transitional || transitionalDefaults;
74710
- if (config.timeoutErrorMessage) {
74711
- timeoutErrorMessage = config.timeoutErrorMessage;
74712
- }
74713
- abort(new AxiosError(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED, config, req));
74714
- });
74989
+ abort(createTimeoutError());
74990
+ };
74991
+ if (isNativeTransport && timeout > 0) {
74992
+ connectPhaseTimer = setTimeout(handleTimeout, timeout);
74993
+ }
74994
+ req.setTimeout(timeout, handleTimeout);
74715
74995
  } else {
74716
74996
  req.setTimeout(0);
74717
74997
  }
@@ -74730,7 +75010,24 @@ var require_axios = __commonJS({
74730
75010
  abort(new CanceledError("Request stream has been aborted", config, req));
74731
75011
  }
74732
75012
  });
74733
- data.pipe(req);
75013
+ let uploadStream = data;
75014
+ if (config.maxBodyLength > -1 && config.maxRedirects === 0) {
75015
+ const limit = config.maxBodyLength;
75016
+ let bytesSent = 0;
75017
+ uploadStream = stream.pipeline([data, new stream.Transform({
75018
+ transform(chunk, _enc, cb) {
75019
+ bytesSent += chunk.length;
75020
+ if (bytesSent > limit) {
75021
+ return cb(new AxiosError("Request body larger than maxBodyLength limit", AxiosError.ERR_BAD_REQUEST, config, req));
75022
+ }
75023
+ cb(null, chunk);
75024
+ }
75025
+ })], utils$1.noop);
75026
+ uploadStream.on("error", (err) => {
75027
+ if (!req.destroyed) req.destroy(err);
75028
+ });
75029
+ }
75030
+ uploadStream.pipe(req);
74734
75031
  } else {
74735
75032
  data && req.write(data);
74736
75033
  req.end();
@@ -74744,14 +75041,14 @@ var require_axios = __commonJS({
74744
75041
  var cookies = platform2.hasStandardBrowserEnv ? (
74745
75042
  // Standard browser envs support document.cookie
74746
75043
  {
74747
- write(name2, value, expires, path3, domain, secure, sameSite) {
75044
+ write(name2, value, expires, path4, domain, secure, sameSite) {
74748
75045
  if (typeof document === "undefined") return;
74749
75046
  const cookie = [`${name2}=${encodeURIComponent(value)}`];
74750
75047
  if (utils$1.isNumber(expires)) {
74751
75048
  cookie.push(`expires=${new Date(expires).toUTCString()}`);
74752
75049
  }
74753
- if (utils$1.isString(path3)) {
74754
- cookie.push(`path=${path3}`);
75050
+ if (utils$1.isString(path4)) {
75051
+ cookie.push(`path=${path4}`);
74755
75052
  }
74756
75053
  if (utils$1.isString(domain)) {
74757
75054
  cookie.push(`domain=${domain}`);
@@ -74766,8 +75063,15 @@ var require_axios = __commonJS({
74766
75063
  },
74767
75064
  read(name2) {
74768
75065
  if (typeof document === "undefined") return null;
74769
- const match = document.cookie.match(new RegExp("(?:^|; )" + name2 + "=([^;]*)"));
74770
- return match ? decodeURIComponent(match[1]) : null;
75066
+ const cookies2 = document.cookie.split(";");
75067
+ for (let i = 0; i < cookies2.length; i++) {
75068
+ const cookie = cookies2[i].replace(/^\s+/, "");
75069
+ const eq = cookie.indexOf("=");
75070
+ if (eq !== -1 && cookie.slice(0, eq) === name2) {
75071
+ return decodeURIComponent(cookie.slice(eq + 1));
75072
+ }
75073
+ }
75074
+ return null;
74771
75075
  },
74772
75076
  remove(name2) {
74773
75077
  this.write(name2, "", Date.now() - 864e5, "/");
@@ -74790,7 +75094,16 @@ var require_axios = __commonJS({
74790
75094
  } : thing;
74791
75095
  function mergeConfig2(config1, config2) {
74792
75096
  config2 = config2 || {};
74793
- const config = {};
75097
+ const config = /* @__PURE__ */ Object.create(null);
75098
+ Object.defineProperty(config, "hasOwnProperty", {
75099
+ // Null-proto descriptor so a polluted Object.prototype.get cannot turn
75100
+ // this data descriptor into an accessor descriptor on the way in.
75101
+ __proto__: null,
75102
+ value: Object.prototype.hasOwnProperty,
75103
+ enumerable: false,
75104
+ writable: true,
75105
+ configurable: true
75106
+ });
74794
75107
  function getMergedValue(target, source, prop, caseless) {
74795
75108
  if (utils$1.isPlainObject(target) && utils$1.isPlainObject(source)) {
74796
75109
  return utils$1.merge.call({
@@ -74823,9 +75136,9 @@ var require_axios = __commonJS({
74823
75136
  }
74824
75137
  }
74825
75138
  function mergeDirectKeys(a, b, prop) {
74826
- if (prop in config2) {
75139
+ if (utils$1.hasOwnProp(config2, prop)) {
74827
75140
  return getMergedValue(a, b);
74828
- } else if (prop in config1) {
75141
+ } else if (utils$1.hasOwnProp(config1, prop)) {
74829
75142
  return getMergedValue(void 0, a);
74830
75143
  }
74831
75144
  }
@@ -74856,6 +75169,7 @@ var require_axios = __commonJS({
74856
75169
  httpsAgent: defaultToConfig2,
74857
75170
  cancelToken: defaultToConfig2,
74858
75171
  socketPath: defaultToConfig2,
75172
+ allowedSocketPaths: defaultToConfig2,
74859
75173
  responseEncoding: defaultToConfig2,
74860
75174
  validateStatus: mergeDirectKeys,
74861
75175
  headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
@@ -74866,42 +75180,56 @@ var require_axios = __commonJS({
74866
75180
  }), function computeConfigValue(prop) {
74867
75181
  if (prop === "__proto__" || prop === "constructor" || prop === "prototype") return;
74868
75182
  const merge4 = utils$1.hasOwnProp(mergeMap, prop) ? mergeMap[prop] : mergeDeepProperties;
74869
- const configValue = merge4(config1[prop], config2[prop], prop);
75183
+ const a = utils$1.hasOwnProp(config1, prop) ? config1[prop] : void 0;
75184
+ const b = utils$1.hasOwnProp(config2, prop) ? config2[prop] : void 0;
75185
+ const configValue = merge4(a, b, prop);
74870
75186
  utils$1.isUndefined(configValue) && merge4 !== mergeDirectKeys || (config[prop] = configValue);
74871
75187
  });
74872
75188
  return config;
74873
75189
  }
75190
+ var FORM_DATA_CONTENT_HEADERS = ["content-type", "content-length"];
75191
+ function setFormDataHeaders(headers, formHeaders, policy) {
75192
+ if (policy !== "content-only") {
75193
+ headers.set(formHeaders);
75194
+ return;
75195
+ }
75196
+ Object.entries(formHeaders).forEach(([key, val]) => {
75197
+ if (FORM_DATA_CONTENT_HEADERS.includes(key.toLowerCase())) {
75198
+ headers.set(key, val);
75199
+ }
75200
+ });
75201
+ }
75202
+ var encodeUTF8 = (str) => encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) => String.fromCharCode(parseInt(hex, 16)));
74874
75203
  var resolveConfig = (config) => {
74875
75204
  const newConfig = mergeConfig2({}, config);
74876
- let {
74877
- data,
74878
- withXSRFToken,
74879
- xsrfHeaderName,
74880
- xsrfCookieName,
74881
- headers,
74882
- auth
74883
- } = newConfig;
75205
+ const own2 = (key) => utils$1.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
75206
+ const data = own2("data");
75207
+ let withXSRFToken = own2("withXSRFToken");
75208
+ const xsrfHeaderName = own2("xsrfHeaderName");
75209
+ const xsrfCookieName = own2("xsrfCookieName");
75210
+ let headers = own2("headers");
75211
+ const auth = own2("auth");
75212
+ const baseURL = own2("baseURL");
75213
+ const allowAbsoluteUrls = own2("allowAbsoluteUrls");
75214
+ const url2 = own2("url");
74884
75215
  newConfig.headers = headers = AxiosHeaders.from(headers);
74885
- newConfig.url = buildURL(buildFullPath(newConfig.baseURL, newConfig.url, newConfig.allowAbsoluteUrls), config.params, config.paramsSerializer);
75216
+ newConfig.url = buildURL(buildFullPath(baseURL, url2, allowAbsoluteUrls), config.params, config.paramsSerializer);
74886
75217
  if (auth) {
74887
- headers.set("Authorization", "Basic " + btoa((auth.username || "") + ":" + (auth.password ? unescape(encodeURIComponent(auth.password)) : "")));
75218
+ headers.set("Authorization", "Basic " + btoa((auth.username || "") + ":" + (auth.password ? encodeUTF8(auth.password) : "")));
74888
75219
  }
74889
75220
  if (utils$1.isFormData(data)) {
74890
75221
  if (platform2.hasStandardBrowserEnv || platform2.hasStandardBrowserWebWorkerEnv) {
74891
75222
  headers.setContentType(void 0);
74892
75223
  } else if (utils$1.isFunction(data.getHeaders)) {
74893
- const formHeaders = data.getHeaders();
74894
- const allowedHeaders = ["content-type", "content-length"];
74895
- Object.entries(formHeaders).forEach(([key, val]) => {
74896
- if (allowedHeaders.includes(key.toLowerCase())) {
74897
- headers.set(key, val);
74898
- }
74899
- });
75224
+ setFormDataHeaders(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
74900
75225
  }
74901
75226
  }
74902
75227
  if (platform2.hasStandardBrowserEnv) {
74903
- withXSRFToken && utils$1.isFunction(withXSRFToken) && (withXSRFToken = withXSRFToken(newConfig));
74904
- if (withXSRFToken || withXSRFToken !== false && isURLSameOrigin(newConfig.url)) {
75228
+ if (utils$1.isFunction(withXSRFToken)) {
75229
+ withXSRFToken = withXSRFToken(newConfig);
75230
+ }
75231
+ const shouldSendXSRF = withXSRFToken === true || withXSRFToken == null && isURLSameOrigin(newConfig.url);
75232
+ if (shouldSendXSRF) {
74905
75233
  const xsrfValue = xsrfHeaderName && xsrfCookieName && cookies.read(xsrfCookieName);
74906
75234
  if (xsrfValue) {
74907
75235
  headers.set(xsrfHeaderName, xsrfValue);
@@ -74963,7 +75291,7 @@ var require_axios = __commonJS({
74963
75291
  if (!request || request.readyState !== 4) {
74964
75292
  return;
74965
75293
  }
74966
- if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf("file:") === 0)) {
75294
+ if (request.status === 0 && !(request.responseURL && request.responseURL.startsWith("file:"))) {
74967
75295
  return;
74968
75296
  }
74969
75297
  setTimeout(onloadend);
@@ -74974,6 +75302,7 @@ var require_axios = __commonJS({
74974
75302
  return;
74975
75303
  }
74976
75304
  reject(new AxiosError("Request aborted", AxiosError.ECONNABORTED, config, request));
75305
+ done();
74977
75306
  request = null;
74978
75307
  };
74979
75308
  request.onerror = function handleError(event) {
@@ -74981,6 +75310,7 @@ var require_axios = __commonJS({
74981
75310
  const err = new AxiosError(msg, AxiosError.ERR_NETWORK, config, request);
74982
75311
  err.event = event || null;
74983
75312
  reject(err);
75313
+ done();
74984
75314
  request = null;
74985
75315
  };
74986
75316
  request.ontimeout = function handleTimeout() {
@@ -74990,6 +75320,7 @@ var require_axios = __commonJS({
74990
75320
  timeoutErrorMessage = _config.timeoutErrorMessage;
74991
75321
  }
74992
75322
  reject(new AxiosError(timeoutErrorMessage, transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED, config, request));
75323
+ done();
74993
75324
  request = null;
74994
75325
  };
74995
75326
  requestData === void 0 && requestHeaders.setContentType(null);
@@ -75020,6 +75351,7 @@ var require_axios = __commonJS({
75020
75351
  }
75021
75352
  reject(!cancel || cancel.type ? new CanceledError(null, config, request) : cancel);
75022
75353
  request.abort();
75354
+ done();
75023
75355
  request = null;
75024
75356
  };
75025
75357
  _config.cancelToken && _config.cancelToken.subscribe(onCanceled);
@@ -75028,7 +75360,7 @@ var require_axios = __commonJS({
75028
75360
  }
75029
75361
  }
75030
75362
  const protocol = parseProtocol(_config.url);
75031
- if (protocol && platform2.protocols.indexOf(protocol) === -1) {
75363
+ if (protocol && !platform2.protocols.includes(protocol)) {
75032
75364
  reject(new AxiosError("Unsupported protocol " + protocol + ":", AxiosError.ERR_BAD_REQUEST, config));
75033
75365
  return;
75034
75366
  }
@@ -75157,17 +75489,6 @@ var require_axios = __commonJS({
75157
75489
  var {
75158
75490
  isFunction: isFunction3
75159
75491
  } = utils$1;
75160
- var globalFetchAPI = (({
75161
- Request,
75162
- Response
75163
- }) => ({
75164
- Request,
75165
- Response
75166
- }))(utils$1.global);
75167
- var {
75168
- ReadableStream: ReadableStream$1,
75169
- TextEncoder: TextEncoder$1
75170
- } = utils$1.global;
75171
75492
  var test = (fn2, ...args) => {
75172
75493
  try {
75173
75494
  return !!fn2(...args);
@@ -75176,9 +75497,18 @@ var require_axios = __commonJS({
75176
75497
  }
75177
75498
  };
75178
75499
  var factory = (env) => {
75500
+ var _utils$global;
75501
+ const globalObject = (_utils$global = utils$1.global) !== null && _utils$global !== void 0 ? _utils$global : globalThis;
75502
+ const {
75503
+ ReadableStream: ReadableStream2,
75504
+ TextEncoder: TextEncoder2
75505
+ } = globalObject;
75179
75506
  env = utils$1.merge.call({
75180
75507
  skipUndefined: true
75181
- }, globalFetchAPI, env);
75508
+ }, {
75509
+ Request: globalObject.Request,
75510
+ Response: globalObject.Response
75511
+ }, env);
75182
75512
  const {
75183
75513
  fetch: envFetch,
75184
75514
  Request,
@@ -75190,20 +75520,22 @@ var require_axios = __commonJS({
75190
75520
  if (!isFetchSupported) {
75191
75521
  return false;
75192
75522
  }
75193
- const isReadableStreamSupported = isFetchSupported && isFunction3(ReadableStream$1);
75194
- const encodeText = isFetchSupported && (typeof TextEncoder$1 === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder$1()) : async (str) => new Uint8Array(await new Request(str).arrayBuffer()));
75523
+ const isReadableStreamSupported = isFetchSupported && isFunction3(ReadableStream2);
75524
+ const encodeText = isFetchSupported && (typeof TextEncoder2 === "function" ? /* @__PURE__ */ ((encoder) => (str) => encoder.encode(str))(new TextEncoder2()) : async (str) => new Uint8Array(await new Request(str).arrayBuffer()));
75195
75525
  const supportsRequestStream = isRequestSupported && isReadableStreamSupported && test(() => {
75196
75526
  let duplexAccessed = false;
75197
- const body = new ReadableStream$1();
75198
- const hasContentType = new Request(platform2.origin, {
75199
- body,
75527
+ const request = new Request(platform2.origin, {
75528
+ body: new ReadableStream2(),
75200
75529
  method: "POST",
75201
75530
  get duplex() {
75202
75531
  duplexAccessed = true;
75203
75532
  return "half";
75204
75533
  }
75205
- }).headers.has("Content-Type");
75206
- body.cancel();
75534
+ });
75535
+ const hasContentType = request.headers.has("Content-Type");
75536
+ if (request.body != null) {
75537
+ request.body.cancel();
75538
+ }
75207
75539
  return duplexAccessed && !hasContentType;
75208
75540
  });
75209
75541
  const supportsResponseStream = isResponseSupported && isReadableStreamSupported && test(() => utils$1.isReadableStream(new Response("").body));
@@ -75262,8 +75594,12 @@ var require_axios = __commonJS({
75262
75594
  responseType,
75263
75595
  headers,
75264
75596
  withCredentials = "same-origin",
75265
- fetchOptions
75597
+ fetchOptions,
75598
+ maxContentLength,
75599
+ maxBodyLength
75266
75600
  } = resolveConfig(config);
75601
+ const hasMaxContentLength = utils$1.isNumber(maxContentLength) && maxContentLength > -1;
75602
+ const hasMaxBodyLength = utils$1.isNumber(maxBodyLength) && maxBodyLength > -1;
75267
75603
  let _fetch = envFetch || fetch;
75268
75604
  responseType = responseType ? (responseType + "").toLowerCase() : "text";
75269
75605
  let composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
@@ -75273,6 +75609,18 @@ var require_axios = __commonJS({
75273
75609
  });
75274
75610
  let requestContentLength;
75275
75611
  try {
75612
+ if (hasMaxContentLength && typeof url2 === "string" && url2.startsWith("data:")) {
75613
+ const estimated = estimateDataURLDecodedBytes(url2);
75614
+ if (estimated > maxContentLength) {
75615
+ throw new AxiosError("maxContentLength size of " + maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config, request);
75616
+ }
75617
+ }
75618
+ if (hasMaxBodyLength && method !== "get" && method !== "head") {
75619
+ const outboundLength = await resolveBodyLength(headers, data);
75620
+ if (typeof outboundLength === "number" && isFinite(outboundLength) && outboundLength > maxBodyLength) {
75621
+ throw new AxiosError("Request body larger than maxBodyLength limit", AxiosError.ERR_BAD_REQUEST, config, request);
75622
+ }
75623
+ }
75276
75624
  if (onUploadProgress && supportsRequestStream && method !== "get" && method !== "head" && (requestContentLength = await resolveBodyLength(headers, data)) !== 0) {
75277
75625
  let _request = new Request(url2, {
75278
75626
  method: "POST",
@@ -75292,6 +75640,13 @@ var require_axios = __commonJS({
75292
75640
  withCredentials = withCredentials ? "include" : "omit";
75293
75641
  }
75294
75642
  const isCredentialsSupported = isRequestSupported && "credentials" in Request.prototype;
75643
+ if (utils$1.isFormData(data)) {
75644
+ const contentType = headers.getContentType();
75645
+ if (contentType && /^multipart\/form-data/i.test(contentType) && !/boundary=/i.test(contentType)) {
75646
+ headers.delete("content-type");
75647
+ }
75648
+ }
75649
+ headers.set("User-Agent", "axios/" + VERSION6, false);
75295
75650
  const resolvedOptions = {
75296
75651
  ...fetchOptions,
75297
75652
  signal: composedSignal,
@@ -75303,21 +75658,52 @@ var require_axios = __commonJS({
75303
75658
  };
75304
75659
  request = isRequestSupported && new Request(url2, resolvedOptions);
75305
75660
  let response = await (isRequestSupported ? _fetch(request, fetchOptions) : _fetch(url2, resolvedOptions));
75661
+ if (hasMaxContentLength) {
75662
+ const declaredLength = utils$1.toFiniteNumber(response.headers.get("content-length"));
75663
+ if (declaredLength != null && declaredLength > maxContentLength) {
75664
+ throw new AxiosError("maxContentLength size of " + maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config, request);
75665
+ }
75666
+ }
75306
75667
  const isStreamResponse = supportsResponseStream && (responseType === "stream" || responseType === "response");
75307
- if (supportsResponseStream && (onDownloadProgress || isStreamResponse && unsubscribe)) {
75668
+ if (supportsResponseStream && response.body && (onDownloadProgress || hasMaxContentLength || isStreamResponse && unsubscribe)) {
75308
75669
  const options = {};
75309
75670
  ["status", "statusText", "headers"].forEach((prop) => {
75310
75671
  options[prop] = response[prop];
75311
75672
  });
75312
75673
  const responseContentLength = utils$1.toFiniteNumber(response.headers.get("content-length"));
75313
75674
  const [onProgress, flush] = onDownloadProgress && progressEventDecorator(responseContentLength, progressEventReducer(asyncDecorator(onDownloadProgress), true)) || [];
75314
- response = new Response(trackStream(response.body, DEFAULT_CHUNK_SIZE, onProgress, () => {
75675
+ let bytesRead = 0;
75676
+ const onChunkProgress = (loadedBytes) => {
75677
+ if (hasMaxContentLength) {
75678
+ bytesRead = loadedBytes;
75679
+ if (bytesRead > maxContentLength) {
75680
+ throw new AxiosError("maxContentLength size of " + maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config, request);
75681
+ }
75682
+ }
75683
+ onProgress && onProgress(loadedBytes);
75684
+ };
75685
+ response = new Response(trackStream(response.body, DEFAULT_CHUNK_SIZE, onChunkProgress, () => {
75315
75686
  flush && flush();
75316
75687
  unsubscribe && unsubscribe();
75317
75688
  }), options);
75318
75689
  }
75319
75690
  responseType = responseType || "text";
75320
75691
  let responseData = await resolvers[utils$1.findKey(resolvers, responseType) || "text"](response, config);
75692
+ if (hasMaxContentLength && !supportsResponseStream && !isStreamResponse) {
75693
+ let materializedSize;
75694
+ if (responseData != null) {
75695
+ if (typeof responseData.byteLength === "number") {
75696
+ materializedSize = responseData.byteLength;
75697
+ } else if (typeof responseData.size === "number") {
75698
+ materializedSize = responseData.size;
75699
+ } else if (typeof responseData === "string") {
75700
+ materializedSize = typeof TextEncoder2 === "function" ? new TextEncoder2().encode(responseData).byteLength : responseData.length;
75701
+ }
75702
+ }
75703
+ if (typeof materializedSize === "number" && materializedSize > maxContentLength) {
75704
+ throw new AxiosError("maxContentLength size of " + maxContentLength + " exceeded", AxiosError.ERR_BAD_RESPONSE, config, request);
75705
+ }
75706
+ }
75321
75707
  !isStreamResponse && unsubscribe && unsubscribe();
75322
75708
  return await new Promise((resolve2, reject) => {
75323
75709
  settle(resolve2, reject, {
@@ -75331,6 +75717,13 @@ var require_axios = __commonJS({
75331
75717
  });
75332
75718
  } catch (err) {
75333
75719
  unsubscribe && unsubscribe();
75720
+ if (composedSignal && composedSignal.aborted && composedSignal.reason instanceof AxiosError) {
75721
+ const canceledError = composedSignal.reason;
75722
+ canceledError.config = config;
75723
+ request && (canceledError.request = request);
75724
+ err !== canceledError && (canceledError.cause = err);
75725
+ throw canceledError;
75726
+ }
75334
75727
  if (err && err.name === "TypeError" && /Load failed|fetch/i.test(err.message)) {
75335
75728
  throw Object.assign(new AxiosError("Network Error", AxiosError.ERR_NETWORK, config, request, err && err.response), {
75336
75729
  cause: err.cause || err
@@ -75370,11 +75763,13 @@ var require_axios = __commonJS({
75370
75763
  if (fn2) {
75371
75764
  try {
75372
75765
  Object.defineProperty(fn2, "name", {
75766
+ __proto__: null,
75373
75767
  value
75374
75768
  });
75375
75769
  } catch (e) {
75376
75770
  }
75377
75771
  Object.defineProperty(fn2, "adapterName", {
75772
+ __proto__: null,
75378
75773
  value
75379
75774
  });
75380
75775
  }
@@ -75441,14 +75836,24 @@ var require_axios = __commonJS({
75441
75836
  const adapter = adapters.getAdapter(config.adapter || defaults.adapter, config);
75442
75837
  return adapter(config).then(function onAdapterResolution(response) {
75443
75838
  throwIfCancellationRequested(config);
75444
- response.data = transformData.call(config, config.transformResponse, response);
75839
+ config.response = response;
75840
+ try {
75841
+ response.data = transformData.call(config, config.transformResponse, response);
75842
+ } finally {
75843
+ delete config.response;
75844
+ }
75445
75845
  response.headers = AxiosHeaders.from(response.headers);
75446
75846
  return response;
75447
75847
  }, function onAdapterRejection(reason) {
75448
75848
  if (!isCancel(reason)) {
75449
75849
  throwIfCancellationRequested(config);
75450
75850
  if (reason && reason.response) {
75451
- reason.response.data = transformData.call(config, config.transformResponse, reason.response);
75851
+ config.response = reason.response;
75852
+ try {
75853
+ reason.response.data = transformData.call(config, config.transformResponse, reason.response);
75854
+ } finally {
75855
+ delete config.response;
75856
+ }
75452
75857
  reason.response.headers = AxiosHeaders.from(reason.response.headers);
75453
75858
  }
75454
75859
  }
@@ -75491,7 +75896,7 @@ var require_axios = __commonJS({
75491
75896
  let i = keys.length;
75492
75897
  while (i-- > 0) {
75493
75898
  const opt = keys[i];
75494
- const validator2 = schema[opt];
75899
+ const validator2 = Object.prototype.hasOwnProperty.call(schema, opt) ? schema[opt] : void 0;
75495
75900
  if (validator2) {
75496
75901
  const value = options[opt];
75497
75902
  const result = value === void 0 || validator2(value, opt, options);
@@ -75602,7 +76007,7 @@ var require_axios = __commonJS({
75602
76007
  }, true);
75603
76008
  config.method = (config.method || this.defaults.method || "get").toLowerCase();
75604
76009
  let contextHeaders = headers && utils$1.merge(headers.common, headers[config.method]);
75605
- headers && utils$1.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (method) => {
76010
+ headers && utils$1.forEach(["delete", "get", "head", "post", "put", "patch", "query", "common"], (method) => {
75606
76011
  delete headers[method];
75607
76012
  });
75608
76013
  config.headers = AxiosHeaders.concat(contextHeaders, headers);
@@ -75678,7 +76083,7 @@ var require_axios = __commonJS({
75678
76083
  }));
75679
76084
  };
75680
76085
  });
75681
- utils$1.forEach(["post", "put", "patch"], function forEachMethodWithData(method) {
76086
+ utils$1.forEach(["post", "put", "patch", "query"], function forEachMethodWithData(method) {
75682
76087
  function generateHTTPMethod(isForm) {
75683
76088
  return function httpMethod(url2, data, config) {
75684
76089
  return this.request(mergeConfig2(config || {}, {
@@ -75692,7 +76097,9 @@ var require_axios = __commonJS({
75692
76097
  };
75693
76098
  }
75694
76099
  Axios.prototype[method] = generateHTTPMethod();
75695
- Axios.prototype[method + "Form"] = generateHTTPMethod(true);
76100
+ if (method !== "query") {
76101
+ Axios.prototype[method + "Form"] = generateHTTPMethod(true);
76102
+ }
75696
76103
  });
75697
76104
  var CancelToken = class _CancelToken {
75698
76105
  constructor(executor) {
@@ -83113,9 +83520,9 @@ var require_src3 = __commonJS({
83113
83520
  }
83114
83521
  });
83115
83522
 
83116
- // ../../node_modules/.pnpm/@sap+cf-tools@3.3.0/node_modules/@sap/cf-tools/out/src/types.js
83523
+ // ../../node_modules/.pnpm/@sap+cf-tools@3.3.1/node_modules/@sap/cf-tools/out/src/types.js
83117
83524
  var require_types4 = __commonJS({
83118
- "../../node_modules/.pnpm/@sap+cf-tools@3.3.0/node_modules/@sap/cf-tools/out/src/types.js"(exports2) {
83525
+ "../../node_modules/.pnpm/@sap+cf-tools@3.3.1/node_modules/@sap/cf-tools/out/src/types.js"(exports2) {
83119
83526
  "use strict";
83120
83527
  Object.defineProperty(exports2, "__esModule", { value: true });
83121
83528
  exports2.eServiceTypes = exports2.eOrderDirection = exports2.eOperation = exports2.eFilters = exports2.CF_CMD_EXIT_CODE = exports2.DEFAULT_TARGET = exports2.CF_PAGE_SIZE = exports2.NEW_LINE = exports2.OK = void 0;
@@ -91079,9 +91486,9 @@ var require_src5 = __commonJS({
91079
91486
  }
91080
91487
  });
91081
91488
 
91082
- // ../../node_modules/.pnpm/@sap+cf-tools@3.3.0/node_modules/@sap/cf-tools/out/src/cli.js
91489
+ // ../../node_modules/.pnpm/@sap+cf-tools@3.3.1/node_modules/@sap/cf-tools/out/src/cli.js
91083
91490
  var require_cli3 = __commonJS({
91084
- "../../node_modules/.pnpm/@sap+cf-tools@3.3.0/node_modules/@sap/cf-tools/out/src/cli.js"(exports2) {
91491
+ "../../node_modules/.pnpm/@sap+cf-tools@3.3.1/node_modules/@sap/cf-tools/out/src/cli.js"(exports2) {
91085
91492
  "use strict";
91086
91493
  Object.defineProperty(exports2, "__esModule", { value: true });
91087
91494
  exports2.Cli = void 0;
@@ -91166,9 +91573,9 @@ var require_cli3 = __commonJS({
91166
91573
  }
91167
91574
  });
91168
91575
 
91169
- // ../../node_modules/.pnpm/@sap+cf-tools@3.3.0/node_modules/@sap/cf-tools/out/src/messages.js
91576
+ // ../../node_modules/.pnpm/@sap+cf-tools@3.3.1/node_modules/@sap/cf-tools/out/src/messages.js
91170
91577
  var require_messages = __commonJS({
91171
- "../../node_modules/.pnpm/@sap+cf-tools@3.3.0/node_modules/@sap/cf-tools/out/src/messages.js"(exports2) {
91578
+ "../../node_modules/.pnpm/@sap+cf-tools@3.3.1/node_modules/@sap/cf-tools/out/src/messages.js"(exports2) {
91172
91579
  "use strict";
91173
91580
  Object.defineProperty(exports2, "__esModule", { value: true });
91174
91581
  exports2.messages = void 0;
@@ -91187,9 +91594,9 @@ var require_messages = __commonJS({
91187
91594
  }
91188
91595
  });
91189
91596
 
91190
- // ../../node_modules/.pnpm/@sap+cf-tools@3.3.0/node_modules/@sap/cf-tools/out/src/utils.js
91597
+ // ../../node_modules/.pnpm/@sap+cf-tools@3.3.1/node_modules/@sap/cf-tools/out/src/utils.js
91191
91598
  var require_utils5 = __commonJS({
91192
- "../../node_modules/.pnpm/@sap+cf-tools@3.3.0/node_modules/@sap/cf-tools/out/src/utils.js"(exports2) {
91599
+ "../../node_modules/.pnpm/@sap+cf-tools@3.3.1/node_modules/@sap/cf-tools/out/src/utils.js"(exports2) {
91193
91600
  "use strict";
91194
91601
  Object.defineProperty(exports2, "__esModule", { value: true });
91195
91602
  exports2.parseRawDictData = exports2.padQuerySpace = exports2.getSpaceGuidThrowIfUndefined = exports2.cfGetConfigFileField = exports2.cfGetConfigFileJson = exports2.isUpsType = exports2.cfGetConfigFilePath = exports2.getTags = exports2.getOrgGUID = exports2.getSpaceFieldGUID = exports2.getDescription = exports2.getLabel = exports2.getName = exports2.getGuid = exports2.padQuery = exports2.ensureQuery = exports2.dataContentAsObject = void 0;
@@ -91316,9 +91723,9 @@ var require_utils5 = __commonJS({
91316
91723
  }
91317
91724
  });
91318
91725
 
91319
- // ../../node_modules/.pnpm/@sap+cf-tools@3.3.0/node_modules/@sap/cf-tools/out/src/cf-local.js
91726
+ // ../../node_modules/.pnpm/@sap+cf-tools@3.3.1/node_modules/@sap/cf-tools/out/src/cf-local.js
91320
91727
  var require_cf_local = __commonJS({
91321
- "../../node_modules/.pnpm/@sap+cf-tools@3.3.0/node_modules/@sap/cf-tools/out/src/cf-local.js"(exports2) {
91728
+ "../../node_modules/.pnpm/@sap+cf-tools@3.3.1/node_modules/@sap/cf-tools/out/src/cf-local.js"(exports2) {
91322
91729
  "use strict";
91323
91730
  Object.defineProperty(exports2, "__esModule", { value: true });
91324
91731
  exports2.cfApi = exports2.cfGetApps = exports2.cfGetServiceInstancesList = exports2.cfGetInstanceKeyParameters = exports2.cfGetInstanceCredentials = exports2.cfGetServiceKeys = exports2.cfLogout = exports2.cfGetServicePlans = exports2.cfGetTarget = exports2.cfGetAuthToken = exports2.cfGetInstanceMetadata = exports2.cfBindLocalUps = exports2.cfBindLocalServices = exports2.cfGetSpaceServices = exports2.cfGetServices = exports2.cfGetTargets = exports2.cfSetOrgSpace = exports2.cfGetManagedServiceInstances = exports2.cfGetServiceInstances = exports2.cfGetServicePlansList = exports2.cfGetAvailableSpaces = exports2.cfGetAvailableOrgs = exports2.cfLogin = exports2.cfCreateUpsInstance = exports2.cfCreateService = exports2.cfGetUpsInstances = exports2.clearCacheServiceInstances = exports2.resolveEndpoint = void 0;
@@ -91917,9 +92324,9 @@ ${messages_1.messages.service_creation_started}`, increment: 1 });
91917
92324
  }
91918
92325
  });
91919
92326
 
91920
- // ../../node_modules/.pnpm/@sap+cf-tools@3.3.0/node_modules/@sap/cf-tools/out/src/cfServicesUtil.js
92327
+ // ../../node_modules/.pnpm/@sap+cf-tools@3.3.1/node_modules/@sap/cf-tools/out/src/cfServicesUtil.js
91921
92328
  var require_cfServicesUtil = __commonJS({
91922
- "../../node_modules/.pnpm/@sap+cf-tools@3.3.0/node_modules/@sap/cf-tools/out/src/cfServicesUtil.js"(exports2) {
92329
+ "../../node_modules/.pnpm/@sap+cf-tools@3.3.1/node_modules/@sap/cf-tools/out/src/cfServicesUtil.js"(exports2) {
91923
92330
  "use strict";
91924
92331
  Object.defineProperty(exports2, "__esModule", { value: true });
91925
92332
  exports2.isTargetSet = exports2.getInstanceMetadata = exports2.createServiceInstance = exports2.getInstanceCredentials = exports2.getServicesInstancesFilteredByType = void 0;
@@ -91961,9 +92368,9 @@ var require_cfServicesUtil = __commonJS({
91961
92368
  }
91962
92369
  });
91963
92370
 
91964
- // ../../node_modules/.pnpm/@sap+cf-tools@3.3.0/node_modules/@sap/cf-tools/out/src/index.js
92371
+ // ../../node_modules/.pnpm/@sap+cf-tools@3.3.1/node_modules/@sap/cf-tools/out/src/index.js
91965
92372
  var require_src6 = __commonJS({
91966
- "../../node_modules/.pnpm/@sap+cf-tools@3.3.0/node_modules/@sap/cf-tools/out/src/index.js"(exports2) {
92373
+ "../../node_modules/.pnpm/@sap+cf-tools@3.3.1/node_modules/@sap/cf-tools/out/src/index.js"(exports2) {
91967
92374
  "use strict";
91968
92375
  var __createBinding2 = exports2 && exports2.__createBinding || (Object.create ? (function(o, m, k, k2) {
91969
92376
  if (k2 === void 0) k2 = k;
@@ -132801,6 +133208,8 @@ var require_position = __commonJS({
132801
133208
  exports2.positionContainedStrict = positionContainedStrict;
132802
133209
  exports2.rangeContained = rangeContained;
132803
133210
  exports2.getIndentLevel = getIndentLevel;
133211
+ exports2.indentWithTabs = indentWithTabs;
133212
+ exports2.indentWithSpaces = indentWithSpaces;
132804
133213
  exports2.indent = indent;
132805
133214
  var vscode_languageserver_types_1 = require_main();
132806
133215
  function positionAt(lineOffsets, offset, textLength) {
@@ -132851,11 +133260,17 @@ var require_position = __commonJS({
132851
133260
  }
132852
133261
  return level;
132853
133262
  }
133263
+ function indentWithTabs(level) {
133264
+ return " ".repeat(level);
133265
+ }
133266
+ function indentWithSpaces(tabWidth, level) {
133267
+ return " ".repeat(tabWidth * level);
133268
+ }
132854
133269
  function indent(tabWidth, useTabs, level) {
132855
133270
  if (useTabs) {
132856
- return " ".repeat(level);
133271
+ return indentWithTabs(level);
132857
133272
  } else {
132858
- return " ".repeat(tabWidth * level);
133273
+ return indentWithSpaces(tabWidth, level);
132859
133274
  }
132860
133275
  }
132861
133276
  }
@@ -132916,7 +133331,7 @@ var require_dist11 = __commonJS({
132916
133331
  "../text-document-utils/dist/index.js"(exports2) {
132917
133332
  "use strict";
132918
133333
  Object.defineProperty(exports2, "__esModule", { value: true });
132919
- exports2.printOptions = exports2.createRangeWithPosition = exports2.createRange = exports2.arePositionsEqual = exports2.copyPosition = exports2.areRangesEqual = exports2.copyRange = exports2.rangeAt = exports2.positionContained = exports2.rangeContained = exports2.positionContainedStrict = exports2.isBefore = exports2.indent = exports2.getIndentLevel = exports2.positionAt = exports2.getLineOffsets = exports2.MarkedString = exports2.MarkupContent = exports2.CompletionItem = exports2.CompletionList = exports2.Hover = exports2.CodeActionKind = exports2.CodeAction = exports2.MarkupKind = exports2.integer = exports2.InsertTextFormat = exports2.CompletionItemKind = exports2.WorkspaceEdit = exports2.TextEdit = exports2.DiagnosticTag = exports2.DiagnosticSeverity = exports2.Diagnostic = exports2.Position = exports2.Range = exports2.Location = void 0;
133334
+ exports2.printOptions = exports2.createRangeWithPosition = exports2.createRange = exports2.arePositionsEqual = exports2.copyPosition = exports2.areRangesEqual = exports2.copyRange = exports2.rangeAt = exports2.positionContained = exports2.rangeContained = exports2.positionContainedStrict = exports2.isBefore = exports2.indentWithSpaces = exports2.indentWithTabs = exports2.getIndentLevel = exports2.positionAt = exports2.getLineOffsets = exports2.MarkedString = exports2.MarkupContent = exports2.CompletionItem = exports2.CompletionList = exports2.Hover = exports2.CodeActionKind = exports2.CodeAction = exports2.MarkupKind = exports2.integer = exports2.InsertTextFormat = exports2.CompletionItemKind = exports2.WorkspaceEdit = exports2.TextEdit = exports2.DiagnosticTag = exports2.DiagnosticSeverity = exports2.Diagnostic = exports2.Position = exports2.Range = exports2.Location = void 0;
132920
133335
  var vscode_languageserver_types_1 = require_main();
132921
133336
  Object.defineProperty(exports2, "Location", { enumerable: true, get: function() {
132922
133337
  return vscode_languageserver_types_1.Location;
@@ -132986,8 +133401,11 @@ var require_dist11 = __commonJS({
132986
133401
  Object.defineProperty(exports2, "getIndentLevel", { enumerable: true, get: function() {
132987
133402
  return position_1.getIndentLevel;
132988
133403
  } });
132989
- Object.defineProperty(exports2, "indent", { enumerable: true, get: function() {
132990
- return position_1.indent;
133404
+ Object.defineProperty(exports2, "indentWithTabs", { enumerable: true, get: function() {
133405
+ return position_1.indentWithTabs;
133406
+ } });
133407
+ Object.defineProperty(exports2, "indentWithSpaces", { enumerable: true, get: function() {
133408
+ return position_1.indentWithSpaces;
132991
133409
  } });
132992
133410
  Object.defineProperty(exports2, "isBefore", { enumerable: true, get: function() {
132993
133411
  return position_1.isBefore;
@@ -138679,7 +139097,7 @@ var require_reporting = __commonJS({
138679
139097
  var config_state_1 = require_config_state();
138680
139098
  var types_1 = require_types10();
138681
139099
  var parseErrorStack = (errorStack) => {
138682
- const regexps = [/sap-ux.+/gi, /[a-zA-Z-]+\/ide-extension\/.+/gi, /(\/telemetry\/.+)/gi];
139100
+ const regexps = [/sap-ux.+/gi, /[-a-zA-Z]+\/ide-extension\/.+/gi, /(\/telemetry\/.+)/gi];
138683
139101
  const parsedStack = [];
138684
139102
  const filtered = errorStack.split("\n").filter((line) => !!/^\s*at .*(\S+:\d+|\(native\))/m.exec(line));
138685
139103
  if (!filtered.length) {
@@ -141622,7 +142040,7 @@ var require_odata_service = __commonJS({
141622
142040
  }
141623
142041
  const response = await super.get(url, config);
141624
142042
  const contentType = response.headers["content-type"] ?? response.headers["Content-Type"];
141625
- if (response.data && (contentType?.includes("application/json") || config.params?.["$format"] === "json")) {
142043
+ if (response.data && (typeof contentType === "string" && contentType.includes("application/json") || config.params?.["$format"] === "json")) {
141626
142044
  response.odata = parseODataResponse.bind(response, includeV4ControlData);
141627
142045
  }
141628
142046
  return response;
@@ -142232,7 +142650,8 @@ var require_connection = __commonJS({
142232
142650
  }
142233
142651
  }
142234
142652
  function isHtmlResponse(response) {
142235
- return getContentType(response.headers["content-type"], response.data).startsWith("text/html");
142653
+ const contentTypeHeader = response.headers["content-type"];
142654
+ return getContentType(typeof contentTypeHeader === "string" ? contentTypeHeader : void 0, response.data).startsWith("text/html");
142236
142655
  }
142237
142656
  function isHtmlLoginForm(response) {
142238
142657
  return isHtmlResponse(response) && typeof response.data === "string" && !!response.data.match(/log[io]n/i);
@@ -156840,9 +157259,10 @@ var require_factory = __commonJS({
156840
157259
  }
156841
157260
  break;
156842
157261
  }
156843
- default:
157262
+ default: {
156844
157263
  const opts = options;
156845
157264
  throw new Error(`Unknown environment type supplied: ${(0, node_util_1.inspect)(opts)}`);
157265
+ }
156846
157266
  }
156847
157267
  return provider;
156848
157268
  }
@@ -159421,6 +159841,7 @@ var confirmationPromptMap = /* @__PURE__ */ new Map([
159421
159841
  var fioriToolsAppModAppGenLaunchCmd = "sap.ux.appGenerator.launch";
159422
159842
  var launchAppGenCmdType = "SAP_SYSTEMS_DATA";
159423
159843
  var NEW_SYSTEM_PANEL_KEY = "__NEW_SYSTEM_PANEL__";
159844
+ var EXTERNAL_SYSTEM_PANEL_KEY = "__EXTERNAL_SYSTEM_PANEL__";
159424
159845
 
159425
159846
  // src/utils/constants/telemetry.ts
159426
159847
  var SYSTEMS_EVENT = "SYSTEM_DETAILS_VIEW_EVENT";
@@ -159473,7 +159894,7 @@ function shouldStoreSystemInfo(system) {
159473
159894
  var import_telemetry = __toESM(require_dist14());
159474
159895
 
159475
159896
  // package.json
159476
- var version = "0.5.0";
159897
+ var version = "0.5.2";
159477
159898
 
159478
159899
  // src/utils/telemetryHelper.ts
159479
159900
  var import_feature_toggle = __toESM(require_dist15());
@@ -160589,19 +161010,30 @@ var PanelManager = class {
160589
161010
 
160590
161011
  // src/commands/system/create.ts
160591
161012
  var createSystemCommandHandler = (context2) => async (system) => {
161013
+ const panelKey = EXTERNAL_SYSTEM_PANEL_KEY;
161014
+ if (context2.panelManager.has(panelKey)) {
161015
+ context2.panelManager.deleteAndDispose(panelKey);
161016
+ }
161017
+ const panel = context2.panelManager.getOrCreateNewPanel(
161018
+ panelKey,
161019
+ () => createNewPanel(context2, system, panelKey)
161020
+ );
161021
+ await panel.reveal();
161022
+ };
161023
+ var createNewSystemCommandHandler = (context2) => async () => {
160592
161024
  const panel = context2.panelManager.getOrCreateNewPanel(
160593
161025
  NEW_SYSTEM_PANEL_KEY,
160594
- () => createNewPanel(context2, system)
161026
+ () => createNewPanel(context2, void 0, NEW_SYSTEM_PANEL_KEY)
160595
161027
  );
160596
161028
  await panel.reveal();
160597
161029
  };
160598
- function createNewPanel(context2, backendSystem) {
161030
+ function createNewPanel(context2, backendSystem, panelKey = NEW_SYSTEM_PANEL_KEY) {
160599
161031
  const extensionPath = context2.extContext.vscodeExtContext.extensionPath;
160600
161032
  return new SystemPanel({
160601
161033
  extensionPath,
160602
161034
  systemPanelViewType: 0 /* Create */,
160603
161035
  disposeCallback: () => {
160604
- context2.panelManager.deleteAndDispose(NEW_SYSTEM_PANEL_KEY);
161036
+ context2.panelManager.deleteAndDispose(panelKey);
160605
161037
  },
160606
161038
  backendSystem
160607
161039
  });
@@ -160853,6 +161285,7 @@ function errorHandler2(error, systemName = "unknown") {
160853
161285
  // src/commands/system/index.ts
160854
161286
  var commandHandlers = {
160855
161287
  create: createSystemCommandHandler,
161288
+ createNew: createNewSystemCommandHandler,
160856
161289
  show: showSystemsCommandHandler,
160857
161290
  import: importSystemCommandHandler,
160858
161291
  delete: deleteSystemCommandHandler,
@@ -160867,6 +161300,7 @@ var registerSystemViewCommands = (context2) => {
160867
161300
  };
160868
161301
  const disposables = [
160869
161302
  import_vscode14.commands.registerCommand("sap.ux.tools.sapSystems.create" /* Create */, commandHandlers.create(systemCommandContext)),
161303
+ import_vscode14.commands.registerCommand("sap.ux.tools.sapSystems.createNew" /* CreateNew */, commandHandlers.createNew(systemCommandContext)),
160870
161304
  import_vscode14.commands.registerCommand("sap.ux.tools.sapSystems.show" /* Show */, commandHandlers.show(systemCommandContext)),
160871
161305
  import_vscode14.commands.registerCommand("sap.ux.tools.sapSystems.delete" /* Delete */, commandHandlers.delete(systemCommandContext)),
160872
161306
  import_vscode14.commands.registerCommand("sap.ux.tools.sapSystems.import" /* Import */, commandHandlers.import(systemCommandContext)),
@@ -160965,7 +161399,7 @@ mime-types/index.js:
160965
161399
  *)
160966
161400
 
160967
161401
  axios/dist/node/axios.cjs:
160968
- (*! Axios v1.15.0 Copyright (c) 2026 Matt Zabriskie and contributors *)
161402
+ (*! Axios v1.16.0 Copyright (c) 2026 Matt Zabriskie and contributors *)
160969
161403
 
160970
161404
  repeat-string/index.js:
160971
161405
  (*!