import { cloneDeep as b } from "lodash";
const r = "2.0.0", a = (o) => {
  const t = b(o);
  if (t.version !== r) {
    t.version = r;
    const n = {};
    return t.backButton && (n.backButton = {
      show: t.backButton,
      left: t.backButtonLeft,
      bottom: t.backButtonBottom,
      text: {
        color: t.backButtonCss.color,
        fontSize: t.backButtonCss.fontSize,
        fontStyle: t.backButtonCss.fontStyle,
        fontWeight: t.backButtonCss.fontWeight,
        fontFamily: t.backButtonCss.fontFamily
      },
      border: {
        borderRadius: t.backButtonCss.borderRadius,
        borderWidth: t.backButtonCss.borderWidth,
        borderColor: t.backButtonCss.borderColor,
        borderStyle: t.backButtonCss.borderStyle
      },
      background: {
        backgroundColor: t.backButtonCss.backgroundColor,
        backgroundImage: t.backButtonCss.backgroundImage,
        backgroundSize: t.backButtonCss.backgroundSize
      }
    }), {
      ...t,
      ...n
    };
  }
  return o;
};
export {
  r as VERSION,
  a as upgradeMap3d
};
