import { m as t } from "./chunk1.mjs";

import "react";

import "react-dom/client";

import "tslib";

import "rxjs";

import "rxjs/operators";

import "i18next";

import "react-i18next";

import "zod";

import "polished";

import "reselect";

import "framer-motion";

import "react/jsx-runtime";

import "react-dom";

import "classnames";

import "./i18n/nova_i18n.mjs";

import "react-focus-lock";

import "react-popper";

import "@popperjs/core";

import "axios";

import "@tanstack/react-virtual";

import "cldr-core/supplemental/weekData.json";

import "use-memo-one";

import "memoize-one";

import "@tanstack/react-query";

import "react-cropper";

import "redux-observable";

import "redux";

import "@redux-devtools/extension";

import "react-redux";

const e = new RegExp("__([0-9]+)__");

const r = "P98";

function o(t, e) {
    this._locale = t.length > 2 ? t.substring(0, 2) : t;
    if (e == null || e == undefined) this._tag = r; else this._tag = e.length > 5 ? e.substring(0, 5) : e;
}

o.prototype.doPseudoL10n = function(t, r) {
    if (t.length == 0 || e.test(t)) return t;
    if (r && r != t) return r;
    var o = "[" + this._tag + "]";
    if (t == r) o += "(" + this._locale + ")";
    o += t;
    switch (this._locale) {
      case "fr":
        o += "[Çôï’]";
        break;

      case "it":
        o += "[Èéà’]";
        break;

      case "es":
        o += "[Ñü¿’]";
        break;

      case "ru":
        o += "[Йця’]";
        break;

      case "de":
        o += "[ßüö’]";
        break;

      case "pl":
        o += "[Źłę’]";
        break;

      case "lt":
        o += "[Ļīž’]";
        break;

      default:
        o += "[bÿe]";
        break;
    }
    return o;
};

o.builder = function(t, e) {
    return new o(t, e);
};

var s = o.builder;

var i = t(s);

const n = t => {
    for (const e in t.comments) {
        const r = t.comments[e].replace(/\s+/g, "");
        if (r.length > 9 && /^#Toolkit:/.test(r)) return r.substring(9);
    }
};

function a(t) {
    if (!t || t.length === 0) return false;
    if (/[._](notrans|lcl|image|classname|gif)$/i.test(t)) return false;
    return true;
}

const c = (t, e, r, o) => {
    const s = {};
    const c = t.messages;
    const m = e.messages;
    const p = n(e);
    const l = i(r, p ? p : o);
    for (const t in c) if (a(t)) {
        const e = m[t];
        const r = c[t];
        s[t] = l.doPseudoL10n(r, e);
    } else s[t] = c[t];
    return s;
};

export { n as getTag, c as pseudoLocalize4L10n };
