import { cloneDeep as r } from "lodash";
const o = "2.0.0", f = (e) => {
  const t = r(e);
  return t.version !== o ? {
    autoUpdate: t.autoUpdate,
    icon: t.icon,
    weather: {
      city: {
        show: t.weather.city.show,
        textStyle: {
          fontFamily: "SHJ-SourceHanSansSC-Regular-otf",
          fontSize: t.weather.city.textStyle.fontSize,
          fontStyle: t.weather.city.textStyle.fontStyle,
          fontWeight: t.weather.city.textStyle.fontWeight,
          color: t.weather.city.textStyle.color,
          alignItems: "center",
          justifyContent: "flex-start",
          "-webkit-text-stroke-color": "#ffffff",
          "-webkit-text-stroke-width": 0,
          letterSpacing: 1,
          lineHeight: 1,
          textAlign: "left",
          textShadow: {
            color: "#000000",
            show: !1,
            x: 0,
            y: 0,
            value: 0
          },
          textOverflow: {
            enable: !1,
            displayLines: 1
          }
        }
      },
      type: {
        show: t.weather.type.show,
        textStyle: {
          fontFamily: "SHJ-SourceHanSansSC-Regular-otf",
          fontSize: t.weather.type.textStyle.fontSize,
          fontStyle: t.weather.type.textStyle.fontStyle,
          fontWeight: t.weather.type.textStyle.fontWeight,
          color: t.weather.type.textStyle.color,
          alignItems: "center",
          justifyContent: "flex-start",
          "-webkit-text-stroke-color": "#ffffff",
          "-webkit-text-stroke-width": 0,
          letterSpacing: 1,
          textAlign: "left",
          lineHeight: 1,
          textShadow: {
            color: "#000000",
            show: !1,
            x: 0,
            y: 0,
            value: 0
          },
          textOverflow: {
            enable: !1,
            displayLines: 1
          }
        }
      },
      wind: {
        show: t.weather.wind.show,
        textStyle: {
          fontFamily: "SHJ-SourceHanSansSC-Regular-otf",
          fontSize: t.weather.wind.textStyle.fontSize,
          fontStyle: t.weather.wind.textStyle.fontStyle,
          fontWeight: t.weather.wind.textStyle.fontWeight,
          color: t.weather.wind.textStyle.color,
          alignItems: "center",
          justifyContent: "flex-start",
          "-webkit-text-stroke-color": "#ffffff",
          "-webkit-text-stroke-width": 0,
          letterSpacing: 1,
          textAlign: "left",
          lineHeight: 1,
          textShadow: {
            color: "#000000",
            show: !1,
            x: 0,
            y: 0,
            value: 0
          },
          textOverflow: {
            enable: !1,
            displayLines: 1
          }
        }
      },
      temperature: {
        show: t.weather.temperature.show,
        connectors: t.weather.temperature.connectors,
        textStyle: {
          fontFamily: "SHJ-SourceHanSansSC-Regular-otf",
          fontSize: t.weather.temperature.textStyle.fontSize,
          fontStyle: t.weather.temperature.textStyle.fontStyle,
          fontWeight: t.weather.temperature.textStyle.fontWeight,
          color: t.weather.temperature.textStyle.color,
          alignItems: "center",
          justifyContent: "flex-start",
          "-webkit-text-stroke-color": "#ffffff",
          "-webkit-text-stroke-width": 0,
          letterSpacing: 1,
          textAlign: "left",
          lineHeight: 1,
          textShadow: {
            color: "#000000",
            show: !1,
            x: 0,
            y: 0,
            value: 0
          },
          textOverflow: {
            enable: !1,
            displayLines: 1
          }
        },
        suffix: {
          show: t.weather.temperature.suffix.show,
          suffix: t.weather.temperature.suffix.suffix,
          textStyle: {
            fontFamily: "SHJ-SourceHanSansSC-Regular-otf",
            fontSize: t.weather.temperature.suffix.textStyle.fontSize,
            fontStyle: t.weather.temperature.suffix.textStyle.fontStyle,
            fontWeight: t.weather.temperature.suffix.textStyle.fontWeight,
            color: t.weather.temperature.suffix.textStyle.color,
            alignItems: "center",
            justifyContent: "flex-start",
            "-webkit-text-stroke-color": "#ffffff",
            "-webkit-text-stroke-width": 0,
            letterSpacing: 1,
            textAlign: "left",
            lineHeight: 1,
            textShadow: {
              color: "#000000",
              show: !1,
              x: 0,
              y: 0,
              value: 0
            },
            textOverflow: {
              enable: !1,
              displayLines: 1
            }
          }
        }
      }
    },
    icons: t.icons,
    version: o
  } : e;
};
export {
  o as VERSION,
  f as upgradeWeather
};
