@jerome-benoit/sap-ai-provider 4.7.0 → 4.7.1

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.
Files changed (29) hide show
  1. package/README.md +21 -31
  2. package/dist/{chunk-36DFHUVQ.js → chunk-BZWUUBX2.js} +2 -2
  3. package/dist/{chunk-WDUOKIKD.js → chunk-HDOSHLV6.js} +4 -2
  4. package/dist/chunk-HDOSHLV6.js.map +1 -0
  5. package/dist/{chunk-GMMX46AH.js → chunk-OA6TJHD2.js} +3 -3
  6. package/dist/{chunk-BZZJKLDG.js → chunk-RUCURXS7.js} +3 -3
  7. package/dist/{chunk-TVXWNZQT.js → chunk-XIWHF23D.js} +219 -104
  8. package/dist/chunk-XIWHF23D.js.map +1 -0
  9. package/dist/{foundation-models-embedding-model-strategy-YWPDIJEN.js → foundation-models-embedding-model-strategy-TACUPFS2.js} +4 -4
  10. package/dist/{foundation-models-language-model-strategy-WDSQWU64.js → foundation-models-language-model-strategy-LLWYUGA3.js} +4 -4
  11. package/dist/index.cjs +221 -103
  12. package/dist/index.cjs.map +1 -1
  13. package/dist/index.d.cts +2 -0
  14. package/dist/index.d.ts +2 -0
  15. package/dist/index.js +6 -6
  16. package/dist/index.js.map +1 -1
  17. package/dist/{orchestration-embedding-model-strategy-66QYAO64.js → orchestration-embedding-model-strategy-RYI3HWRZ.js} +5 -5
  18. package/dist/{orchestration-language-model-strategy-4TKRZK7U.js → orchestration-language-model-strategy-NIUPRYDW.js} +6 -5
  19. package/dist/orchestration-language-model-strategy-NIUPRYDW.js.map +1 -0
  20. package/package.json +9 -11
  21. package/dist/chunk-TVXWNZQT.js.map +0 -1
  22. package/dist/chunk-WDUOKIKD.js.map +0 -1
  23. package/dist/orchestration-language-model-strategy-4TKRZK7U.js.map +0 -1
  24. /package/dist/{chunk-36DFHUVQ.js.map → chunk-BZWUUBX2.js.map} +0 -0
  25. /package/dist/{chunk-GMMX46AH.js.map → chunk-OA6TJHD2.js.map} +0 -0
  26. /package/dist/{chunk-BZZJKLDG.js.map → chunk-RUCURXS7.js.map} +0 -0
  27. /package/dist/{foundation-models-embedding-model-strategy-YWPDIJEN.js.map → foundation-models-embedding-model-strategy-TACUPFS2.js.map} +0 -0
  28. /package/dist/{foundation-models-language-model-strategy-WDSQWU64.js.map → foundation-models-language-model-strategy-LLWYUGA3.js.map} +0 -0
  29. /package/dist/{orchestration-embedding-model-strategy-66QYAO64.js.map → orchestration-embedding-model-strategy-RYI3HWRZ.js.map} +0 -0
@@ -25334,7 +25334,7 @@ var require_axios = __commonJS({
25334
25334
  if (key === "__proto__" || key === "constructor" || key === "prototype") {
25335
25335
  return;
25336
25336
  }
25337
- const targetKey = caseless && findKey(result, key) || key;
25337
+ const targetKey = caseless && typeof key === "string" && findKey(result, key) || key;
25338
25338
  const existing = hasOwnProperty(result, targetKey) ? result[targetKey] : void 0;
25339
25339
  if (isPlainObject2(existing) && isPlainObject2(val)) {
25340
25340
  result[targetKey] = merge(existing, val);
@@ -25347,7 +25347,21 @@ var require_axios = __commonJS({
25347
25347
  }
25348
25348
  };
25349
25349
  for (let i = 0, l = objs.length; i < l; i++) {
25350
- objs[i] && forEach(objs[i], assignValue);
25350
+ const source = objs[i];
25351
+ if (!source || isBuffer(source)) {
25352
+ continue;
25353
+ }
25354
+ forEach(source, assignValue);
25355
+ if (typeof source !== "object" || isArray(source)) {
25356
+ continue;
25357
+ }
25358
+ const symbols = Object.getOwnPropertySymbols(source);
25359
+ for (let j = 0; j < symbols.length; j++) {
25360
+ const symbol = symbols[j];
25361
+ if (propertyIsEnumerable.call(source, symbol)) {
25362
+ assignValue(source[symbol], symbol);
25363
+ }
25364
+ }
25351
25365
  }
25352
25366
  return result;
25353
25367
  }
@@ -25472,6 +25486,9 @@ var require_axios = __commonJS({
25472
25486
  var hasOwnProperty = (({
25473
25487
  hasOwnProperty: hasOwnProperty2
25474
25488
  }) => (obj, prop) => hasOwnProperty2.call(obj, prop))(Object.prototype);
25489
+ var {
25490
+ propertyIsEnumerable
25491
+ } = Object.prototype;
25475
25492
  var isRegExp = kindOfTest("RegExp");
25476
25493
  var reduceDescriptors = (obj, reducer) => {
25477
25494
  const descriptors = Object.getOwnPropertyDescriptors(obj);
@@ -25755,7 +25772,7 @@ var require_axios = __commonJS({
25755
25772
  function setHeader(_value, _header, _rewrite) {
25756
25773
  const lHeader = normalizeHeader(_header);
25757
25774
  if (!lHeader) {
25758
- throw new Error("header name must be a non-empty string");
25775
+ return;
25759
25776
  }
25760
25777
  const key = utils$1.findKey(self2, lHeader);
25761
25778
  if (!key || self2[key] === void 0 || _rewrite === true || _rewrite === void 0 && self2[key] !== false) {
@@ -25771,7 +25788,7 @@ var require_axios = __commonJS({
25771
25788
  let obj = {}, dest, key;
25772
25789
  for (const entry of header) {
25773
25790
  if (!utils$1.isArray(entry)) {
25774
- throw TypeError("Object iterator must return a key-value pair");
25791
+ throw new TypeError("Object iterator must return a key-value pair");
25775
25792
  }
25776
25793
  obj[key = entry[0]] = (dest = obj[key]) ? utils$1.isArray(dest) ? [...dest, entry[1]] : [dest, entry[1]] : entry[1];
25777
25794
  }
@@ -26152,7 +26169,7 @@ var require_axios = __commonJS({
26152
26169
  throw new AxiosError("Object is too deeply nested (" + depth + " levels). Max depth: " + maxDepth, AxiosError.ERR_FORM_DATA_DEPTH_EXCEEDED);
26153
26170
  }
26154
26171
  if (stack.indexOf(value) !== -1) {
26155
- throw Error("Circular reference detected in " + path2.join("."));
26172
+ throw new Error("Circular reference detected in " + path2.join("."));
26156
26173
  }
26157
26174
  stack.push(value);
26158
26175
  utils$1.forEach(value, function each(el, key) {
@@ -26291,7 +26308,8 @@ var require_axios = __commonJS({
26291
26308
  silentJSONParsing: true,
26292
26309
  forcedJSONParsing: true,
26293
26310
  clarifyTimeoutError: false,
26294
- legacyInterceptorReqResOrdering: true
26311
+ legacyInterceptorReqResOrdering: true,
26312
+ advertiseZstdAcceptEncoding: false
26295
26313
  };
26296
26314
  var URLSearchParams = url.URLSearchParams;
26297
26315
  var ALPHA = "abcdefghijklmnopqrstuvwxyz";
@@ -26633,7 +26651,7 @@ var require_axios = __commonJS({
26633
26651
  function getEnv(key) {
26634
26652
  return process.env[key.toLowerCase()] || process.env[key.toUpperCase()] || "";
26635
26653
  }
26636
- var VERSION2 = "1.16.1";
26654
+ var VERSION2 = "1.17.0";
26637
26655
  function parseProtocol(url2) {
26638
26656
  const match2 = /^([-+\w]{1,25}):(?:\/\/)?/.exec(url2);
26639
26657
  return match2 && match2[1] || "";
@@ -26850,10 +26868,10 @@ var require_axios = __commonJS({
26850
26868
  boundary = tag + "-" + platform.generateString(size, BOUNDARY_ALPHABET)
26851
26869
  } = options || {};
26852
26870
  if (!utils$1.isFormData(form)) {
26853
- throw TypeError("FormData instance required");
26871
+ throw new TypeError("FormData instance required");
26854
26872
  }
26855
26873
  if (boundary.length < 1 || boundary.length > 70) {
26856
- throw Error("boundary must be 1-70 characters long");
26874
+ throw new Error("boundary must be 1-70 characters long");
26857
26875
  }
26858
26876
  const boundaryBytes = textEncoder.encode("--" + boundary + CRLF);
26859
26877
  const footerBytes = textEncoder.encode("--" + boundary + "--" + CRLF);
@@ -26898,6 +26916,81 @@ var require_axios = __commonJS({
26898
26916
  this.__transform(chunk, encoding, callback);
26899
26917
  }
26900
26918
  };
26919
+ var Http2Sessions = class {
26920
+ constructor() {
26921
+ this.sessions = /* @__PURE__ */ Object.create(null);
26922
+ }
26923
+ getSession(authority, options) {
26924
+ options = Object.assign({
26925
+ sessionTimeout: 1e3
26926
+ }, options);
26927
+ let authoritySessions = this.sessions[authority];
26928
+ if (authoritySessions) {
26929
+ let len = authoritySessions.length;
26930
+ for (let i = 0; i < len; i++) {
26931
+ const [sessionHandle, sessionOptions] = authoritySessions[i];
26932
+ if (!sessionHandle.destroyed && !sessionHandle.closed && util.isDeepStrictEqual(sessionOptions, options)) {
26933
+ return sessionHandle;
26934
+ }
26935
+ }
26936
+ }
26937
+ const session = http2.connect(authority, options);
26938
+ let removed;
26939
+ let timer;
26940
+ const removeSession = () => {
26941
+ if (removed) {
26942
+ return;
26943
+ }
26944
+ removed = true;
26945
+ if (timer) {
26946
+ clearTimeout(timer);
26947
+ timer = null;
26948
+ }
26949
+ let entries = authoritySessions, len = entries.length, i = len;
26950
+ while (i--) {
26951
+ if (entries[i][0] === session) {
26952
+ if (len === 1) {
26953
+ delete this.sessions[authority];
26954
+ } else {
26955
+ entries.splice(i, 1);
26956
+ }
26957
+ if (!session.closed) {
26958
+ session.close();
26959
+ }
26960
+ return;
26961
+ }
26962
+ }
26963
+ };
26964
+ const originalRequestFn = session.request;
26965
+ const {
26966
+ sessionTimeout
26967
+ } = options;
26968
+ if (sessionTimeout != null) {
26969
+ let streamsCount = 0;
26970
+ session.request = function() {
26971
+ const stream2 = originalRequestFn.apply(this, arguments);
26972
+ streamsCount++;
26973
+ if (timer) {
26974
+ clearTimeout(timer);
26975
+ timer = null;
26976
+ }
26977
+ stream2.once("close", () => {
26978
+ if (!--streamsCount) {
26979
+ timer = setTimeout(() => {
26980
+ timer = null;
26981
+ removeSession();
26982
+ }, sessionTimeout);
26983
+ }
26984
+ });
26985
+ return stream2;
26986
+ };
26987
+ }
26988
+ session.once("close", removeSession);
26989
+ let entry = [session, options];
26990
+ authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
26991
+ return session;
26992
+ }
26993
+ };
26901
26994
  var callbackify = (fn, reducer) => {
26902
26995
  return utils$1.isAsyncFn(fn) ? function(...args) {
26903
26996
  const cb = args.pop();
@@ -27210,7 +27303,14 @@ var require_axios = __commonJS({
27210
27303
  flush: zlib.constants.BROTLI_OPERATION_FLUSH,
27211
27304
  finishFlush: zlib.constants.BROTLI_OPERATION_FLUSH
27212
27305
  };
27306
+ var zstdOptions = {
27307
+ flush: zlib.constants.ZSTD_e_flush,
27308
+ finishFlush: zlib.constants.ZSTD_e_flush
27309
+ };
27213
27310
  var isBrotliSupported = utils$1.isFunction(zlib.createBrotliDecompress);
27311
+ var isZstdSupported = utils$1.isFunction(zlib.createZstdDecompress);
27312
+ var ACCEPT_ENCODING = "gzip, compress, deflate" + (isBrotliSupported ? ", br" : "");
27313
+ var ACCEPT_ENCODING_WITH_ZSTD = ACCEPT_ENCODING + (isZstdSupported ? ", zstd" : "");
27214
27314
  var {
27215
27315
  http: httpFollow,
27216
27316
  https: httpsFollow
@@ -27243,6 +27343,18 @@ var require_axios = __commonJS({
27243
27343
  ...agentOptions
27244
27344
  } : agentOptions;
27245
27345
  agent = new HttpsProxyAgent(merged);
27346
+ if (userHttpsAgent && userHttpsAgent.options) {
27347
+ const originTLSOptions = {
27348
+ ...userHttpsAgent.options
27349
+ };
27350
+ const callback = agent.callback;
27351
+ agent.callback = function axiosTunnelingAgentCallback(req, opts) {
27352
+ return callback.call(this, req, {
27353
+ ...originTLSOptions,
27354
+ ...opts
27355
+ });
27356
+ };
27357
+ }
27246
27358
  agent[kAxiosInstalledTunnel] = true;
27247
27359
  cache.set(key, agent);
27248
27360
  return agent;
@@ -27250,7 +27362,7 @@ var require_axios = __commonJS({
27250
27362
  var supportedProtocols = platform.protocols.map((protocol) => {
27251
27363
  return protocol + ":";
27252
27364
  });
27253
- var decodeURIComponentSafe = (value) => {
27365
+ var decodeURIComponentSafe$1 = (value) => {
27254
27366
  if (!utils$1.isString(value)) {
27255
27367
  return value;
27256
27368
  }
@@ -27264,82 +27376,14 @@ var require_axios = __commonJS({
27264
27376
  stream2.on("end", flush).on("error", flush);
27265
27377
  return throttled;
27266
27378
  };
27267
- var Http2Sessions = class {
27268
- constructor() {
27269
- this.sessions = /* @__PURE__ */ Object.create(null);
27270
- }
27271
- getSession(authority, options) {
27272
- options = Object.assign({
27273
- sessionTimeout: 1e3
27274
- }, options);
27275
- let authoritySessions = this.sessions[authority];
27276
- if (authoritySessions) {
27277
- let len = authoritySessions.length;
27278
- for (let i = 0; i < len; i++) {
27279
- const [sessionHandle, sessionOptions] = authoritySessions[i];
27280
- if (!sessionHandle.destroyed && !sessionHandle.closed && util.isDeepStrictEqual(sessionOptions, options)) {
27281
- return sessionHandle;
27282
- }
27283
- }
27284
- }
27285
- const session = http2.connect(authority, options);
27286
- let removed;
27287
- const removeSession = () => {
27288
- if (removed) {
27289
- return;
27290
- }
27291
- removed = true;
27292
- let entries = authoritySessions, len = entries.length, i = len;
27293
- while (i--) {
27294
- if (entries[i][0] === session) {
27295
- if (len === 1) {
27296
- delete this.sessions[authority];
27297
- } else {
27298
- entries.splice(i, 1);
27299
- }
27300
- if (!session.closed) {
27301
- session.close();
27302
- }
27303
- return;
27304
- }
27305
- }
27306
- };
27307
- const originalRequestFn = session.request;
27308
- const {
27309
- sessionTimeout
27310
- } = options;
27311
- if (sessionTimeout != null) {
27312
- let timer;
27313
- let streamsCount = 0;
27314
- session.request = function() {
27315
- const stream2 = originalRequestFn.apply(this, arguments);
27316
- streamsCount++;
27317
- if (timer) {
27318
- clearTimeout(timer);
27319
- timer = null;
27320
- }
27321
- stream2.once("close", () => {
27322
- if (!--streamsCount) {
27323
- timer = setTimeout(() => {
27324
- timer = null;
27325
- removeSession();
27326
- }, sessionTimeout);
27327
- }
27328
- });
27329
- return stream2;
27330
- };
27331
- }
27332
- session.once("close", removeSession);
27333
- let entry = [session, options];
27334
- authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
27335
- return session;
27336
- }
27337
- };
27338
27379
  var http2Sessions = new Http2Sessions();
27339
27380
  function dispatchBeforeRedirect(options, responseDetails, requestDetails) {
27340
27381
  if (options.beforeRedirects.proxy) {
27341
27382
  options.beforeRedirects.proxy(options);
27342
27383
  }
27384
+ if (options.beforeRedirects.auth) {
27385
+ options.beforeRedirects.auth(options);
27386
+ }
27343
27387
  if (options.beforeRedirects.config) {
27344
27388
  options.beforeRedirects.config(options, responseDetails, requestDetails);
27345
27389
  }
@@ -27515,6 +27559,7 @@ var require_axios = __commonJS({
27515
27559
  var httpAdapter = isHttpAdapterSupported && function httpAdapter2(config) {
27516
27560
  return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) {
27517
27561
  const own2 = (key) => utils$1.hasOwnProp(config, key) ? config[key] : void 0;
27562
+ const transitional = own2("transitional") || transitionalDefaults;
27518
27563
  let data = own2("data");
27519
27564
  let lookup = own2("lookup");
27520
27565
  let family = own2("family");
@@ -27553,7 +27598,6 @@ var require_axios = __commonJS({
27553
27598
  try {
27554
27599
  abortEmitter.emit("abort", !reason || reason.type ? new CanceledError(null, config, req) : reason);
27555
27600
  } catch (err) {
27556
- console.warn("emit error", err);
27557
27601
  }
27558
27602
  }
27559
27603
  function clearConnectPhaseTimer() {
@@ -27564,7 +27608,6 @@ var require_axios = __commonJS({
27564
27608
  }
27565
27609
  function createTimeoutError() {
27566
27610
  let timeoutErrorMessage = config.timeout ? "timeout of " + config.timeout + "ms exceeded" : "timeout exceeded";
27567
- const transitional = config.transitional || transitionalDefaults;
27568
27611
  if (config.timeoutErrorMessage) {
27569
27612
  timeoutErrorMessage = config.timeoutErrorMessage;
27570
27613
  }
@@ -27722,9 +27765,9 @@ var require_axios = __commonJS({
27722
27765
  const password = configAuth.password || "";
27723
27766
  auth = username + ":" + password;
27724
27767
  }
27725
- if (!auth && parsed.username) {
27726
- const urlUsername = decodeURIComponentSafe(parsed.username);
27727
- const urlPassword = decodeURIComponentSafe(parsed.password);
27768
+ if (!auth && (parsed.username || parsed.password)) {
27769
+ const urlUsername = decodeURIComponentSafe$1(parsed.username);
27770
+ const urlPassword = decodeURIComponentSafe$1(parsed.password);
27728
27771
  auth = urlUsername + ":" + urlPassword;
27729
27772
  }
27730
27773
  auth && headers.delete("authorization");
@@ -27738,7 +27781,7 @@ var require_axios = __commonJS({
27738
27781
  customErr.exists = true;
27739
27782
  return reject(customErr);
27740
27783
  }
27741
- headers.set("Accept-Encoding", "gzip, compress, deflate" + (isBrotliSupported ? ", br" : ""), false);
27784
+ headers.set("Accept-Encoding", utils$1.hasOwnProp(transitional, "advertiseZstdAcceptEncoding") && transitional.advertiseZstdAcceptEncoding === true ? ACCEPT_ENCODING_WITH_ZSTD : ACCEPT_ENCODING, false);
27742
27785
  const options = Object.assign(/* @__PURE__ */ Object.create(null), {
27743
27786
  path: path$1,
27744
27787
  method,
@@ -27755,19 +27798,21 @@ var require_axios = __commonJS({
27755
27798
  http2Options
27756
27799
  });
27757
27800
  !utils$1.isUndefined(lookup) && (options.lookup = lookup);
27758
- if (config.socketPath) {
27759
- if (typeof config.socketPath !== "string") {
27801
+ const socketPath = own2("socketPath");
27802
+ if (socketPath) {
27803
+ if (typeof socketPath !== "string") {
27760
27804
  return reject(new AxiosError("socketPath must be a string", AxiosError.ERR_BAD_OPTION_VALUE, config));
27761
27805
  }
27762
- if (config.allowedSocketPaths != null) {
27763
- const allowed = Array.isArray(config.allowedSocketPaths) ? config.allowedSocketPaths : [config.allowedSocketPaths];
27764
- const resolvedSocket = path.resolve(config.socketPath);
27806
+ const allowedSocketPaths = own2("allowedSocketPaths");
27807
+ if (allowedSocketPaths != null) {
27808
+ const allowed = Array.isArray(allowedSocketPaths) ? allowedSocketPaths : [allowedSocketPaths];
27809
+ const resolvedSocket = path.resolve(socketPath);
27765
27810
  const isAllowed = allowed.some((entry) => typeof entry === "string" && path.resolve(entry) === resolvedSocket);
27766
27811
  if (!isAllowed) {
27767
- return reject(new AxiosError(`socketPath "${config.socketPath}" is not permitted by allowedSocketPaths`, AxiosError.ERR_BAD_OPTION_VALUE, config));
27812
+ return reject(new AxiosError(`socketPath "${socketPath}" is not permitted by allowedSocketPaths`, AxiosError.ERR_BAD_OPTION_VALUE, config));
27768
27813
  }
27769
27814
  }
27770
- options.socketPath = config.socketPath;
27815
+ options.socketPath = socketPath;
27771
27816
  } else {
27772
27817
  options.hostname = parsed.hostname.startsWith("[") ? parsed.hostname.slice(1, -1) : parsed.hostname;
27773
27818
  options.port = parsed.port;
@@ -27796,6 +27841,18 @@ var require_axios = __commonJS({
27796
27841
  if (configBeforeRedirect) {
27797
27842
  options.beforeRedirects.config = configBeforeRedirect;
27798
27843
  }
27844
+ if (auth) {
27845
+ const requestOrigin = parsed.origin;
27846
+ const authToRestore = auth;
27847
+ options.beforeRedirects.auth = function beforeRedirectAuth(redirectOptions) {
27848
+ try {
27849
+ if (new URL(redirectOptions.href).origin === requestOrigin) {
27850
+ redirectOptions.auth = authToRestore;
27851
+ }
27852
+ } catch (e) {
27853
+ }
27854
+ };
27855
+ }
27799
27856
  transport = isHttpsRequest ? httpsFollow : httpFollow;
27800
27857
  }
27801
27858
  }
@@ -27842,6 +27899,13 @@ var require_axios = __commonJS({
27842
27899
  streams.push(zlib.createBrotliDecompress(brotliOptions));
27843
27900
  delete res.headers["content-encoding"];
27844
27901
  }
27902
+ break;
27903
+ case "zstd":
27904
+ if (isZstdSupported) {
27905
+ streams.push(zlib.createZstdDecompress(zstdOptions));
27906
+ delete res.headers["content-encoding"];
27907
+ }
27908
+ break;
27845
27909
  }
27846
27910
  }
27847
27911
  responseStream = streams.length > 1 ? stream.pipeline(streams, utils$1.noop) : streams[0];
@@ -28174,8 +28238,8 @@ var require_axios = __commonJS({
28174
28238
  }
28175
28239
  });
28176
28240
  }
28177
- var encodeUTF8 = (str) => encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) => String.fromCharCode(parseInt(hex, 16)));
28178
- var resolveConfig = (config) => {
28241
+ var encodeUTF8$1 = (str) => encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) => String.fromCharCode(parseInt(hex, 16)));
28242
+ function resolveConfig(config) {
28179
28243
  const newConfig = mergeConfig({}, config);
28180
28244
  const own2 = (key) => utils$1.hasOwnProp(newConfig, key) ? newConfig[key] : void 0;
28181
28245
  const data = own2("data");
@@ -28188,12 +28252,12 @@ var require_axios = __commonJS({
28188
28252
  const allowAbsoluteUrls = own2("allowAbsoluteUrls");
28189
28253
  const url2 = own2("url");
28190
28254
  newConfig.headers = headers = AxiosHeaders.from(headers);
28191
- newConfig.url = buildURL(buildFullPath(baseURL, url2, allowAbsoluteUrls), config.params, config.paramsSerializer);
28255
+ newConfig.url = buildURL(buildFullPath(baseURL, url2, allowAbsoluteUrls), own2("params"), own2("paramsSerializer"));
28192
28256
  if (auth) {
28193
- headers.set("Authorization", "Basic " + btoa((auth.username || "") + ":" + (auth.password ? encodeUTF8(auth.password) : "")));
28257
+ headers.set("Authorization", "Basic " + btoa((auth.username || "") + ":" + (auth.password ? encodeUTF8$1(auth.password) : "")));
28194
28258
  }
28195
28259
  if (utils$1.isFormData(data)) {
28196
- if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv) {
28260
+ if (platform.hasStandardBrowserEnv || platform.hasStandardBrowserWebWorkerEnv || utils$1.isReactNative(data)) {
28197
28261
  headers.setContentType(void 0);
28198
28262
  } else if (utils$1.isFunction(data.getHeaders)) {
28199
28263
  setFormDataHeaders(headers, data.getHeaders(), own2("formDataHeaderPolicy"));
@@ -28212,7 +28276,7 @@ var require_axios = __commonJS({
28212
28276
  }
28213
28277
  }
28214
28278
  return newConfig;
28215
- };
28279
+ }
28216
28280
  var isXHRAdapterSupported = typeof XMLHttpRequest !== "undefined";
28217
28281
  var xhrAdapter = isXHRAdapterSupported && function(config) {
28218
28282
  return new Promise(function dispatchXhrRequest(resolve, reject) {
@@ -28464,6 +28528,17 @@ var require_axios = __commonJS({
28464
28528
  var {
28465
28529
  isFunction
28466
28530
  } = utils$1;
28531
+ var encodeUTF8 = (str) => encodeURIComponent(str).replace(/%([0-9A-F]{2})/gi, (_, hex) => String.fromCharCode(parseInt(hex, 16)));
28532
+ var decodeURIComponentSafe = (value) => {
28533
+ if (!utils$1.isString(value)) {
28534
+ return value;
28535
+ }
28536
+ try {
28537
+ return decodeURIComponent(value);
28538
+ } catch (error) {
28539
+ return value;
28540
+ }
28541
+ };
28467
28542
  var test = (fn, ...args) => {
28468
28543
  try {
28469
28544
  return !!fn(...args);
@@ -28471,6 +28546,14 @@ var require_axios = __commonJS({
28471
28546
  return false;
28472
28547
  }
28473
28548
  };
28549
+ var maybeWithAuthCredentials = (url2) => {
28550
+ const protocolIndex = url2.indexOf("://");
28551
+ let urlToCheck = url2;
28552
+ if (protocolIndex !== -1) {
28553
+ urlToCheck = urlToCheck.slice(protocolIndex + 3);
28554
+ }
28555
+ return urlToCheck.includes("@") || urlToCheck.includes(":");
28556
+ };
28474
28557
  var factory = (env) => {
28475
28558
  const globalObject2 = utils$1.global !== void 0 && utils$1.global !== null ? utils$1.global : globalThis;
28476
28559
  const {
@@ -28574,6 +28657,7 @@ var require_axios = __commonJS({
28574
28657
  } = resolveConfig(config);
28575
28658
  const hasMaxContentLength = utils$1.isNumber(maxContentLength) && maxContentLength > -1;
28576
28659
  const hasMaxBodyLength = utils$1.isNumber(maxBodyLength) && maxBodyLength > -1;
28660
+ const own2 = (key) => utils$1.hasOwnProp(config, key) ? config[key] : void 0;
28577
28661
  let _fetch = envFetch || fetch;
28578
28662
  responseType = responseType ? (responseType + "").toLowerCase() : "text";
28579
28663
  let composedSignal = composeSignals([signal, cancelToken && cancelToken.toAbortSignal()], timeout);
@@ -28583,6 +28667,36 @@ var require_axios = __commonJS({
28583
28667
  });
28584
28668
  let requestContentLength;
28585
28669
  try {
28670
+ let auth = void 0;
28671
+ const configAuth = own2("auth");
28672
+ if (configAuth) {
28673
+ const username = configAuth.username || "";
28674
+ const password = configAuth.password || "";
28675
+ auth = {
28676
+ username,
28677
+ password
28678
+ };
28679
+ }
28680
+ if (maybeWithAuthCredentials(url2)) {
28681
+ const parsedURL = new URL(url2, platform.origin);
28682
+ if (!auth && (parsedURL.username || parsedURL.password)) {
28683
+ const urlUsername = decodeURIComponentSafe(parsedURL.username);
28684
+ const urlPassword = decodeURIComponentSafe(parsedURL.password);
28685
+ auth = {
28686
+ username: urlUsername,
28687
+ password: urlPassword
28688
+ };
28689
+ }
28690
+ if (parsedURL.username || parsedURL.password) {
28691
+ parsedURL.username = "";
28692
+ parsedURL.password = "";
28693
+ url2 = parsedURL.href;
28694
+ }
28695
+ }
28696
+ if (auth) {
28697
+ headers.delete("authorization");
28698
+ headers.set("Authorization", "Basic " + btoa(encodeUTF8((auth.username || "") + ":" + (auth.password || ""))));
28699
+ }
28586
28700
  if (hasMaxContentLength && typeof url2 === "string" && url2.startsWith("data:")) {
28587
28701
  const estimated = estimateDataURLDecodedBytes(url2);
28588
28702
  if (estimated > maxContentLength) {
@@ -28954,7 +29068,8 @@ var require_axios = __commonJS({
28954
29068
  silentJSONParsing: validators.transitional(validators.boolean),
28955
29069
  forcedJSONParsing: validators.transitional(validators.boolean),
28956
29070
  clarifyTimeoutError: validators.transitional(validators.boolean),
28957
- legacyInterceptorReqResOrdering: validators.transitional(validators.boolean)
29071
+ legacyInterceptorReqResOrdering: validators.transitional(validators.boolean),
29072
+ advertiseZstdAcceptEncoding: validators.transitional(validators.boolean)
28958
29073
  }, false);
28959
29074
  }
28960
29075
  if (paramsSerializer != null) {
@@ -30069,7 +30184,7 @@ function tryExtractSAPErrorFromMessage(message) {
30069
30184
  }
30070
30185
 
30071
30186
  // src/version.ts
30072
- var VERSION = true ? "4.7.0" : "0.0.0-test";
30187
+ var VERSION = true ? "4.7.1" : "0.0.0-test";
30073
30188
 
30074
30189
  export {
30075
30190
  __toESM,
@@ -30121,6 +30236,6 @@ mime-types/index.js:
30121
30236
  *)
30122
30237
 
30123
30238
  axios/dist/node/axios.cjs:
30124
- (*! Axios v1.16.1 Copyright (c) 2026 Matt Zabriskie and contributors *)
30239
+ (*! Axios v1.17.0 Copyright (c) 2026 Matt Zabriskie and contributors *)
30125
30240
  */
30126
- //# sourceMappingURL=chunk-TVXWNZQT.js.map
30241
+ //# sourceMappingURL=chunk-XIWHF23D.js.map