import { u as h } from "./index.es228.js";
var n = h, P = function(a, r) {
  r = r || {};
  var u = {};
  function s(e, i) {
    return n.isPlainObject(e) && n.isPlainObject(i) ? n.merge(e, i) : n.isPlainObject(i) ? n.merge({}, i) : n.isArray(i) ? i.slice() : i;
  }
  function o(e) {
    if (n.isUndefined(r[e])) {
      if (!n.isUndefined(a[e]))
        return s(void 0, a[e]);
    } else
      return s(a[e], r[e]);
  }
  function d(e) {
    if (!n.isUndefined(r[e]))
      return s(void 0, r[e]);
  }
  function t(e) {
    if (n.isUndefined(r[e])) {
      if (!n.isUndefined(a[e]))
        return s(void 0, a[e]);
    } else
      return s(void 0, r[e]);
  }
  function m(e) {
    if (e in r)
      return s(a[e], r[e]);
    if (e in a)
      return s(void 0, a[e]);
  }
  var v = {
    url: d,
    method: d,
    data: d,
    baseURL: t,
    transformRequest: t,
    transformResponse: t,
    paramsSerializer: t,
    timeout: t,
    timeoutMessage: t,
    withCredentials: t,
    adapter: t,
    responseType: t,
    xsrfCookieName: t,
    xsrfHeaderName: t,
    onUploadProgress: t,
    onDownloadProgress: t,
    decompress: t,
    maxContentLength: t,
    maxBodyLength: t,
    transport: t,
    httpAgent: t,
    httpsAgent: t,
    cancelToken: t,
    socketPath: t,
    responseEncoding: t,
    validateStatus: m
  };
  return n.forEach(Object.keys(a).concat(Object.keys(r)), function(i) {
    var l = v[i] || o, f = l(i);
    n.isUndefined(f) && l !== m || (u[i] = f);
  }), u;
};
export {
  P as m
};
//# sourceMappingURL=index.es231.js.map
