!(function () {
    function e(e) {
        return e && e.__esModule ? e.default : e;
    }
    var t = (function (e) {
        var t,
            n = Object.prototype,
            o = n.hasOwnProperty,
            r = "function" == typeof Symbol ? Symbol : {},
            i = r.iterator || "@@iterator",
            s = r.asyncIterator || "@@asyncIterator",
            a = r.toStringTag || "@@toStringTag";
        function c(e, t, n) {
            return (
                Object.defineProperty(e, t, {
                    value: n,
                    enumerable: !0,
                    configurable: !0,
                    writable: !0,
                }),
                e[t]
            );
        }
        try {
            c({}, "");
        } catch (e) {
            c = function (e, t, n) {
                return (e[t] = n);
            };
        }
        function l(e, t, n, o) {
            var r = t && t.prototype instanceof g ? t : g,
                i = Object.create(r.prototype),
                s = new S(o || []);
            return (
                (i._invoke = (function (e, t, n) {
                    var o = p;
                    return function (r, i) {
                        if (o === h)
                            throw new Error("Generator is already running");
                        if (o === f) {
                            if ("throw" === r) throw i;
                            return L();
                        }
                        for (n.method = r, n.arg = i; ; ) {
                            var s = n.delegate;
                            if (s) {
                                var a = E(s, n);
                                if (a) {
                                    if (a === m) continue;
                                    return a;
                                }
                            }
                            if ("next" === n.method) n.sent = n._sent = n.arg;
                            else if ("throw" === n.method) {
                                if (o === p) throw ((o = f), n.arg);
                                n.dispatchException(n.arg);
                            } else
                                "return" === n.method &&
                                    n.abrupt("return", n.arg);
                            o = h;
                            var c = u(e, t, n);
                            if ("normal" === c.type) {
                                if (((o = n.done ? f : d), c.arg === m))
                                    continue;
                                return { value: c.arg, done: n.done };
                            }
                            "throw" === c.type &&
                                ((o = f),
                                (n.method = "throw"),
                                (n.arg = c.arg));
                        }
                    };
                })(e, n, s)),
                i
            );
        }
        function u(e, t, n) {
            try {
                return { type: "normal", arg: e.call(t, n) };
            } catch (e) {
                return { type: "throw", arg: e };
            }
        }
        e.wrap = l;
        var p = "suspendedStart",
            d = "suspendedYield",
            h = "executing",
            f = "completed",
            m = {};
        function g() {}
        function v() {}
        function y() {}
        var b = {};
        c(b, i, function () {
            return this;
        });
        var x = Object.getPrototypeOf,
            w = x && x(x(A([])));
        w && w !== n && o.call(w, i) && (b = w);
        var _ = (y.prototype = g.prototype = Object.create(b));
        function k(e) {
            ["next", "throw", "return"].forEach(function (t) {
                c(e, t, function (e) {
                    return this._invoke(t, e);
                });
            });
        }
        function C(e, t) {
            function n(r, i, s, a) {
                var c = u(e[r], e, i);
                if ("throw" !== c.type) {
                    var l = c.arg,
                        p = l.value;
                    return p && "object" == typeof p && o.call(p, "__await")
                        ? t.resolve(p.__await).then(
                              function (e) {
                                  n("next", e, s, a);
                              },
                              function (e) {
                                  n("throw", e, s, a);
                              },
                          )
                        : t.resolve(p).then(
                              function (e) {
                                  (l.value = e), s(l);
                              },
                              function (e) {
                                  return n("throw", e, s, a);
                              },
                          );
                }
                a(c.arg);
            }
            var r;
            this._invoke = function (e, o) {
                function i() {
                    return new t(function (t, r) {
                        n(e, o, t, r);
                    });
                }
                return (r = r ? r.then(i, i) : i());
            };
        }
        function E(e, n) {
            var o = e.iterator[n.method];
            if (o === t) {
                if (((n.delegate = null), "throw" === n.method)) {
                    if (
                        e.iterator.return &&
                        ((n.method = "return"),
                        (n.arg = t),
                        E(e, n),
                        "throw" === n.method)
                    )
                        return m;
                    (n.method = "throw"),
                        (n.arg = new TypeError(
                            "The iterator does not provide a 'throw' method",
                        ));
                }
                return m;
            }
            var r = u(o, e.iterator, n.arg);
            if ("throw" === r.type)
                return (
                    (n.method = "throw"),
                    (n.arg = r.arg),
                    (n.delegate = null),
                    m
                );
            var i = r.arg;
            return i
                ? i.done
                    ? ((n[e.resultName] = i.value),
                      (n.next = e.nextLoc),
                      "return" !== n.method &&
                          ((n.method = "next"), (n.arg = t)),
                      (n.delegate = null),
                      m)
                    : i
                : ((n.method = "throw"),
                  (n.arg = new TypeError("iterator result is not an object")),
                  (n.delegate = null),
                  m);
        }
        function O(e) {
            var t = { tryLoc: e[0] };
            1 in e && (t.catchLoc = e[1]),
                2 in e && ((t.finallyLoc = e[2]), (t.afterLoc = e[3])),
                this.tryEntries.push(t);
        }
        function N(e) {
            var t = e.completion || {};
            (t.type = "normal"), delete t.arg, (e.completion = t);
        }
        function S(e) {
            (this.tryEntries = [{ tryLoc: "root" }]),
                e.forEach(O, this),
                this.reset(!0);
        }
        function A(e) {
            if (e) {
                var n = e[i];
                if (n) return n.call(e);
                if ("function" == typeof e.next) return e;
                if (!isNaN(e.length)) {
                    var r = -1,
                        s = function n() {
                            for (; ++r < e.length; )
                                if (o.call(e, r))
                                    return (n.value = e[r]), (n.done = !1), n;
                            return (n.value = t), (n.done = !0), n;
                        };
                    return (s.next = s);
                }
            }
            return { next: L };
        }
        function L() {
            return { value: t, done: !0 };
        }
        return (
            (v.prototype = y),
            c(_, "constructor", y),
            c(y, "constructor", v),
            (v.displayName = c(y, a, "GeneratorFunction")),
            (e.isGeneratorFunction = function (e) {
                var t = "function" == typeof e && e.constructor;
                return (
                    !!t &&
                    (t === v ||
                        "GeneratorFunction" === (t.displayName || t.name))
                );
            }),
            (e.mark = function (e) {
                return (
                    Object.setPrototypeOf
                        ? Object.setPrototypeOf(e, y)
                        : ((e.__proto__ = y), c(e, a, "GeneratorFunction")),
                    (e.prototype = Object.create(_)),
                    e
                );
            }),
            (e.awrap = function (e) {
                return { __await: e };
            }),
            k(C.prototype),
            c(C.prototype, s, function () {
                return this;
            }),
            (e.AsyncIterator = C),
            (e.async = function (t, n, o, r, i) {
                void 0 === i && (i = Promise);
                var s = new C(l(t, n, o, r), i);
                return e.isGeneratorFunction(n)
                    ? s
                    : s.next().then(function (e) {
                          return e.done ? e.value : s.next();
                      });
            }),
            k(_),
            c(_, a, "Generator"),
            c(_, i, function () {
                return this;
            }),
            c(_, "toString", function () {
                return "[object Generator]";
            }),
            (e.keys = function (e) {
                var t = [];
                for (var n in e) t.push(n);
                return (
                    t.reverse(),
                    function n() {
                        for (; t.length; ) {
                            var o = t.pop();
                            if (o in e) return (n.value = o), (n.done = !1), n;
                        }
                        return (n.done = !0), n;
                    }
                );
            }),
            (e.values = A),
            (S.prototype = {
                constructor: S,
                reset: function (e) {
                    if (
                        ((this.prev = 0),
                        (this.next = 0),
                        (this.sent = this._sent = t),
                        (this.done = !1),
                        (this.delegate = null),
                        (this.method = "next"),
                        (this.arg = t),
                        this.tryEntries.forEach(N),
                        !e)
                    )
                        for (var n in this)
                            "t" === n.charAt(0) &&
                                o.call(this, n) &&
                                !isNaN(+n.slice(1)) &&
                                (this[n] = t);
                },
                stop: function () {
                    this.done = !0;
                    var e = this.tryEntries[0].completion;
                    if ("throw" === e.type) throw e.arg;
                    return this.rval;
                },
                dispatchException: function (e) {
                    if (this.done) throw e;
                    var n = this;
                    function r(o, r) {
                        return (
                            (a.type = "throw"),
                            (a.arg = e),
                            (n.next = o),
                            r && ((n.method = "next"), (n.arg = t)),
                            !!r
                        );
                    }
                    for (var i = this.tryEntries.length - 1; i >= 0; --i) {
                        var s = this.tryEntries[i],
                            a = s.completion;
                        if ("root" === s.tryLoc) return r("end");
                        if (s.tryLoc <= this.prev) {
                            var c = o.call(s, "catchLoc"),
                                l = o.call(s, "finallyLoc");
                            if (c && l) {
                                if (this.prev < s.catchLoc)
                                    return r(s.catchLoc, !0);
                                if (this.prev < s.finallyLoc)
                                    return r(s.finallyLoc);
                            } else if (c) {
                                if (this.prev < s.catchLoc)
                                    return r(s.catchLoc, !0);
                            } else {
                                if (!l)
                                    throw new Error(
                                        "try statement without catch or finally",
                                    );
                                if (this.prev < s.finallyLoc)
                                    return r(s.finallyLoc);
                            }
                        }
                    }
                },
                abrupt: function (e, t) {
                    for (var n = this.tryEntries.length - 1; n >= 0; --n) {
                        var r = this.tryEntries[n];
                        if (
                            r.tryLoc <= this.prev &&
                            o.call(r, "finallyLoc") &&
                            this.prev < r.finallyLoc
                        ) {
                            var i = r;
                            break;
                        }
                    }
                    i &&
                        ("break" === e || "continue" === e) &&
                        i.tryLoc <= t &&
                        t <= i.finallyLoc &&
                        (i = null);
                    var s = i ? i.completion : {};
                    return (
                        (s.type = e),
                        (s.arg = t),
                        i
                            ? ((this.method = "next"),
                              (this.next = i.finallyLoc),
                              m)
                            : this.complete(s)
                    );
                },
                complete: function (e, t) {
                    if ("throw" === e.type) throw e.arg;
                    return (
                        "break" === e.type || "continue" === e.type
                            ? (this.next = e.arg)
                            : "return" === e.type
                            ? ((this.rval = this.arg = e.arg),
                              (this.method = "return"),
                              (this.next = "end"))
                            : "normal" === e.type && t && (this.next = t),
                        m
                    );
                },
                finish: function (e) {
                    for (var t = this.tryEntries.length - 1; t >= 0; --t) {
                        var n = this.tryEntries[t];
                        if (n.finallyLoc === e)
                            return (
                                this.complete(n.completion, n.afterLoc), N(n), m
                            );
                    }
                },
                catch: function (e) {
                    for (var t = this.tryEntries.length - 1; t >= 0; --t) {
                        var n = this.tryEntries[t];
                        if (n.tryLoc === e) {
                            var o = n.completion;
                            if ("throw" === o.type) {
                                var r = o.arg;
                                N(n);
                            }
                            return r;
                        }
                    }
                    throw new Error("illegal catch attempt");
                },
                delegateYield: function (e, n, o) {
                    return (
                        (this.delegate = {
                            iterator: A(e),
                            resultName: n,
                            nextLoc: o,
                        }),
                        "next" === this.method && (this.arg = t),
                        m
                    );
                },
            }),
            e
        );
    })({});
    try {
        regeneratorRuntime = t;
    } catch (e) {
        "object" == typeof globalThis
            ? (globalThis.regeneratorRuntime = t)
            : Function("r", "regeneratorRuntime = r")(t);
    }
    var n = e({
            Application: { Name: null, Release: null },
            Hosts: {
                Staging: [
                    "staging.homodea.com",
                    "app.staging.homodea.com",
                    "localhost",
                ],
            },
            Content: {
                TitleHTML:
                    "<h3>Wir wollen homodea immer weiter für dich verbessern!</h3>",
                ButtonClose:
                    '<button class="tcup-modal-close"> <svg id="close" width="16" height="16" viewBox="0 0 22.828 22.829" fill="none" stroke="#ffffff" stroke-linecap="round" stroke-linejoin="round" stroke-width="2px"><g transform="translate(-4.586 -4.586)"><line class="a" x1="20" y2="20" transform="translate(6 6)"/><line class="a" x2="20" y2="20" transform="translate(6 6)"/></g></svg> </button>',
                ConditionsHTML:
                    '<p>Damit das richtig cool funktioniert, verwenden wir Cookies und Analysetechnologien für Sachen wie den Warenkorb, für Statistikzwecke, um dir personalisierte Angebote zukommen lassen zu können, zur Erstellung von Nutzungsprofilen, sowie zur Erfolgsmessung unserer Werbung. Diese Daten gehen auch an Partner wie Google oder Facebook, die Daten außerhalb der EU (z.B. in den USA) verarbeiten. Mehr Infos findest du in unserer <a href="https://static.${domain}/datenschutz" target="_blank">Datenschutzerklärung</a>. Gerne kannst du auch unser <a href="https://static.${domain}/impressum" target="_blank">Impressum</a> überprüfen.</p>\n<p><strong>Es wäre echt cool von dir, wenn du uns dabei unterstützt!</strong>Natürlich stellen wir dir frei, die Cookie-Kategorien, die du zulassen willst, selbst auszuwählen, und deine Einstellungen jederzeit wieder zu ändern. Wenn du auf "Alle akzeptieren" klickst, werden alle Cookie-Kategorien, die eine Zustimmung erfordern, automatisch aktiviert. Wenn du auf den Button "Ablehnen" klickst, werden die Cookie-Kategorien, die eine Zustimmung erfordern, deaktiviert.</p>',
                AcceptAll: "Alle akzeptieren",
                AcceptSome: "Auswahl bestätigen",
                AcceptMinimum: "Ablehnen",
                Reject: "Ablehnen",
                Footer: "",
                MoreOptions: "Mehr Optionen",
                LessOptions: "Weniger Optionen",
            },
            Cookies: {
                Names: {
                    COOKIE_AUTH: "lt_jwt",
                    COOKIE_USER: "lt_user",
                    COOKIE_REFERRAL: "lt_ref",
                    COOKIE_EXPERIMENT: "lt_ex",
                    COOKIE_EXP_PARAMS: "lt_exp",
                    COOKIE_LAST_ACTIVE: "lt_la",
                    COOKIE_VID: "vid",
                    COOKIE_SESS: "lt_sess",
                    COOKIE_QPS: "qps",
                },
            },
            Scripts: { Filter: !1, Lax: !0 },
            Frames: { Filter: !1, Lax: !0 },
            Urls: { IgnoreRegexFilter: "(\\/impressum)" },
            Fetch: { Intercept: !1 },
            Permissions: {
                Essential: {
                    Description: "Notwendige Cookies",
                    Warning:
                        "Notwendige Cookies helfen dabei, eine Webseite nutzbar zu machen, indem sie Grundfunktionen wie Seitennavigation und Zugriff auf sichere Bereiche der Webseite ermöglichen. Die Webseite kann ohne diese Cookies nicht richtig funktionieren.",
                    Expiry: "session",
                    ExpiryDescription: "Session",
                    ChosenByDefault: !0,
                    Required: !0,
                    Order: 0,
                    N: 1,
                    Cookies: [
                        "lt_content_views",
                        "lt_la",
                        "lt_ref",
                        "lt_sess",
                        "lt_exp",
                        "vid",
                        "sid",
                        "lt_jwt",
                        "lt_user",
                        "cfDomain",
                        "CloudFront-Key-Pair-Id",
                        "CloudFront-Policy",
                        "CloudFront-Signature",
                    ],
                },
                Comfort: {
                    Description: "Komfort Cookies",
                    Warning:
                        "Komfort-Cookies ermöglichen einer Webseite sich an Informationen zu erinnern, die die Art beeinflussen, wie sich eine Webseite verhält oder aussieht.",
                    Expiry: 30,
                    ExpiryDescription: "1 Month",
                    Order: 1,
                    N: 64,
                    Cookies: [
                        "vid",
                        "lt_exp",
                        "lt_jwt",
                        "lt_user",
                        "lt_sess",
                        "cfDomain",
                        "CloudFront-Key-Pair-Id",
                        "CloudFront-Policy",
                        "CloudFront-Signature",
                    ],
                },
                Marketing: {
                    Description: "Marketing Cookies",
                    Warning:
                        "Marketing-Cookies helfen Webseiten-Besitzern zu verstehen, wie Besucher mit Webseiten interagieren, indem Informationen über den Nutzer und das Nutzerverhalten gesammelt und gemeldet werden.",
                    Expiry: 730,
                    ExpiryDescription: "2 Years",
                    Order: 2,
                    N: 4096,
                    Cookies: [
                        "_fbp",
                        "_gat_UA-128796328-1",
                        "_gat_UA-128796328-2",
                        "_ga",
                        "_ga_*",
                        "_gid",
                        "_hjAbsoluteSessionInProgress",
                        "_hjid",
                    ],
                },
                Functional: {
                    Description: "Funktionale Cookies",
                    Warning:
                        "Funktionale Cookies helfen Webseiten-Besitzern zu verstehen, ob Fehler oder z.B. Performance Probleme bei der Nutzung der Website auftreten.",
                    Expiry: 365,
                    ExpiryDescription: "1 Year",
                    Order: 3,
                    N: 1024,
                    Cookies: ["sentry-sc", "session"],
                },
            },
            Styles: ".tcup-btn { background: rgba(0, 0, 0, 0) linear-gradient(to right, rgb(255, 0, 0) 0%, rgb(243, 11, 110) 57.5%, rgb(243, 11, 113) 100%) repeat scroll 0% 0%; }",
        }),
        o = {};
    !(function (e) {
        var t;
        if (("object" == typeof o && ((o = e()), (t = !0)), !t)) {
            var n = window.Cookies,
                r = (window.Cookies = e());
            r.noConflict = function () {
                return (window.Cookies = n), r;
            };
        }
    })(function () {
        function e() {
            for (var e = 0, t = {}; e < arguments.length; e++) {
                var n = arguments[e];
                for (var o in n) t[o] = n[o];
            }
            return t;
        }
        function t(e) {
            return e.replace(/(%[0-9A-Z]{2})+/g, decodeURIComponent);
        }
        return (function n(o) {
            function r() {}
            function i(t, n, i) {
                if ("undefined" != typeof document) {
                    "number" ==
                        typeof (i = e({ path: "/" }, r.defaults, i)).expires &&
                        (i.expires = new Date(
                            1 * new Date() + 864e5 * i.expires,
                        )),
                        (i.expires = i.expires ? i.expires.toUTCString() : "");
                    try {
                        var s = JSON.stringify(n);
                        /^[\{\[]/.test(s) && (n = s);
                    } catch (e) {}
                    (n = o.write
                        ? o.write(n, t)
                        : encodeURIComponent(String(n)).replace(
                              /%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,
                              decodeURIComponent,
                          )),
                        (t = encodeURIComponent(String(t))
                            .replace(
                                /%(23|24|26|2B|5E|60|7C)/g,
                                decodeURIComponent,
                            )
                            .replace(/[\(\)]/g, escape));
                    var a = "";
                    for (var c in i)
                        i[c] &&
                            ((a += "; " + c),
                            !0 !== i[c] && (a += "=" + i[c].split(";")[0]));
                    return (document.cookie = t + "=" + n + a);
                }
            }
            function s(e, n) {
                if ("undefined" != typeof document) {
                    for (
                        var r = {},
                            i = document.cookie
                                ? document.cookie.split("; ")
                                : [],
                            s = 0;
                        s < i.length;
                        s++
                    ) {
                        var a = i[s].split("="),
                            c = a.slice(1).join("=");
                        n || '"' !== c.charAt(0) || (c = c.slice(1, -1));
                        try {
                            var l = t(a[0]);
                            if (((c = (o.read || o)(c, l) || t(c)), n))
                                try {
                                    c = JSON.parse(c);
                                } catch (e) {}
                            if (((r[l] = c), e === l)) break;
                        } catch (e) {}
                    }
                    return e ? r[e] : r;
                }
            }
            return (
                (r.set = i),
                (r.get = function (e) {
                    return s(e, !1);
                }),
                (r.getJSON = function (e) {
                    return s(e, !0);
                }),
                (r.remove = function (t, n) {
                    i(t, "", e(n, { expires: -1 }));
                }),
                (r.defaults = {}),
                (r.withConverter = n),
                r
            );
        })(function () {});
    });
    var r = e(o),
        i = {},
        s = {},
        a =
            ("undefined" != typeof crypto &&
                crypto.getRandomValues &&
                crypto.getRandomValues.bind(crypto)) ||
            ("undefined" != typeof msCrypto &&
                "function" == typeof window.msCrypto.getRandomValues &&
                msCrypto.getRandomValues.bind(msCrypto));
    if (a) {
        var c = new Uint8Array(16);
        s = function () {
            return a(c), c;
        };
    } else {
        var l = new Array(16);
        s = function () {
            for (var e, t = 0; t < 16; t++)
                0 == (3 & t) && (e = 4294967296 * Math.random()),
                    (l[t] = (e >>> ((3 & t) << 3)) & 255);
            return l;
        };
    }
    for (var u, p = s, d = [], h = 0; h < 256; ++h)
        d[h] = (h + 256).toString(16).substr(1);
    var f,
        m,
        g = (u = function (e, t) {
            var n = t || 0,
                o = d;
            return [
                o[e[n++]],
                o[e[n++]],
                o[e[n++]],
                o[e[n++]],
                "-",
                o[e[n++]],
                o[e[n++]],
                "-",
                o[e[n++]],
                o[e[n++]],
                "-",
                o[e[n++]],
                o[e[n++]],
                "-",
                o[e[n++]],
                o[e[n++]],
                o[e[n++]],
                o[e[n++]],
                o[e[n++]],
                o[e[n++]],
            ].join("");
        }),
        v = 0,
        y = 0;
    var b = function (e, t, n) {
            var o = (t && n) || 0,
                r = t || [],
                i = (e = e || {}).node || f,
                s = void 0 !== e.clockseq ? e.clockseq : m;
            if (null == i || null == s) {
                var a = p();
                null == i && (i = f = [1 | a[0], a[1], a[2], a[3], a[4], a[5]]),
                    null == s && (s = m = 16383 & ((a[6] << 8) | a[7]));
            }
            var c = void 0 !== e.msecs ? e.msecs : new Date().getTime(),
                l = void 0 !== e.nsecs ? e.nsecs : y + 1,
                u = c - v + (l - y) / 1e4;
            if (
                (u < 0 && void 0 === e.clockseq && (s = (s + 1) & 16383),
                (u < 0 || c > v) && void 0 === e.nsecs && (l = 0),
                l >= 1e4)
            )
                throw new Error(
                    "uuid.v1(): Can't create more than 10M uuids/sec",
                );
            (v = c), (y = l), (m = s);
            var d = (1e4 * (268435455 & (c += 122192928e5)) + l) % 4294967296;
            (r[o++] = (d >>> 24) & 255),
                (r[o++] = (d >>> 16) & 255),
                (r[o++] = (d >>> 8) & 255),
                (r[o++] = 255 & d);
            var h = ((c / 4294967296) * 1e4) & 268435455;
            (r[o++] = (h >>> 8) & 255),
                (r[o++] = 255 & h),
                (r[o++] = ((h >>> 24) & 15) | 16),
                (r[o++] = (h >>> 16) & 255),
                (r[o++] = (s >>> 8) | 128),
                (r[o++] = 255 & s);
            for (var b = 0; b < 6; ++b) r[o + b] = i[b];
            return t || g(r);
        },
        x = s,
        w = u;
    var _ = function (e, t, n) {
            var o = (t && n) || 0;
            "string" == typeof e &&
                ((t = "binary" === e ? new Array(16) : null), (e = null));
            var r = (e = e || {}).random || (e.rng || x)();
            if (((r[6] = (15 & r[6]) | 64), (r[8] = (63 & r[8]) | 128), t))
                for (var i = 0; i < 16; ++i) t[o + i] = r[i];
            return t || w(r);
        },
        k = _;
    function C(e) {
        return (
            null != e &&
            "object" == typeof e &&
            !0 === e["@@functional/placeholder"]
        );
    }
    function E(e) {
        return function t(n) {
            return 0 === arguments.length || C(n)
                ? t
                : e.apply(this, arguments);
        };
    }
    function O(e) {
        return function t(n, o) {
            switch (arguments.length) {
                case 0:
                    return t;
                case 1:
                    return C(n)
                        ? t
                        : E(function (t) {
                              return e(n, t);
                          });
                default:
                    return C(n) && C(o)
                        ? t
                        : C(n)
                        ? E(function (t) {
                              return e(t, o);
                          })
                        : C(o)
                        ? E(function (t) {
                              return e(n, t);
                          })
                        : e(n, o);
            }
        };
    }
    (k.v1 = b), (k.v4 = _), (i = k);
    var N =
        Number.isInteger ||
        function (e) {
            return e << 0 === e;
        };
    var S = O(function (e, t) {
            var n,
                o = e < 0 ? t.length + e : e;
            return (
                (n = t),
                "[object String]" === Object.prototype.toString.call(n)
                    ? t.charAt(o)
                    : t[o]
            );
        }),
        A = O(function (e, t) {
            return e.map(function (e) {
                for (var n, o = t, r = 0; r < e.length; ) {
                    if (null == o) return;
                    (n = e[r]), (o = N(n) ? S(n, o) : o[n]), (r += 1);
                }
                return o;
            });
        }),
        L = O(function (e, t) {
            return A([e], t)[0];
        }),
        j = [
            ".staging5.homodea.com",
            "staging5.homodea.com",
            "staging.homodea.com",
        ],
        T = [".dev5.homodea.com", "dev5.homodea.com"],
        P = [
            "hi.homodea.com",
            ".hd5.homodea.com",
            "hd5.homodea.com",
            "app.homodea.com",
        ];
    function R() {
        var e = I();
        return [].concat(j, T, P).includes(e)
            ? [".homodea.com", "homodea.com"]
            : [e];
    }
    function I() {
        var e = location.host.split(".").reverse(),
            t = (e.length > 2 ? e[2] + "." + e[1] + "." + e[0] : e[0]).split(
                ":",
            )[0];
        return j.includes(t)
            ? "staging5.homodea.com"
            : T.includes(t)
            ? "dev5.homodea.com"
            : P.includes(t)
            ? "hd5.homodea.com"
            : t;
    }
    var F = function () {
        var e = I();
        return n.Content.ConditionsHTML.replace(/\${domain}/g, e);
    };
    function z(e, t) {
        var n = Object.keys(e);
        if (Object.getOwnPropertySymbols) {
            var o = Object.getOwnPropertySymbols(e);
            t &&
                (o = o.filter(function (t) {
                    return Object.getOwnPropertyDescriptor(e, t).enumerable;
                })),
                n.push.apply(n, o);
        }
        return n;
    }
    function M(e) {
        for (var t = 1; t < arguments.length; t++) {
            var n = null != arguments[t] ? arguments[t] : {};
            t % 2
                ? z(Object(n), !0).forEach(function (t) {
                      V(e, t, n[t]);
                  })
                : Object.getOwnPropertyDescriptors
                ? Object.defineProperties(
                      e,
                      Object.getOwnPropertyDescriptors(n),
                  )
                : z(Object(n)).forEach(function (t) {
                      Object.defineProperty(
                          e,
                          t,
                          Object.getOwnPropertyDescriptor(n, t),
                      );
                  });
        }
        return e;
    }
    function V(e, t, n) {
        return (
            t in e
                ? Object.defineProperty(e, t, {
                      value: n,
                      enumerable: !0,
                      configurable: !0,
                      writable: !0,
                  })
                : (e[t] = n),
            e
        );
    }
    function D() {
        var e = I(),
            t = r.get(),
            n = R();
        if (t) {
            var o = function (t) {
                try {
                    n.forEach(function (e) {
                        r.remove(t, { domain: e });
                    }),
                        r.remove(t),
                        r.remove(t, { domain: e }),
                        r.remove(t, { domain: "." + e });
                } catch (e) {}
            };
            for (var i in t) o(i);
        }
    }
    var B = {
        get: r.get,
        set: function (e, t, o) {
            var i = M(M({}, o || {}), {}, { sameSite: "lax", secure: !1 });
            switch (
                ((i.expires = (function (e) {
                    var t = r.get("CookieConsent"),
                        o = -1;
                    if (!t) return o;
                    for (var i in n.Permissions)
                        if (
                            n.Permissions[i].N & t &&
                            n.Permissions[i].Cookies &&
                            Array.isArray(n.Permissions[i].Cookies) &&
                            n.Permissions[i].Cookies.some(function (t) {
                                return t === e;
                            })
                        ) {
                            var s = n.Permissions[i].Expiry;
                            void 0 === s ||
                            ("string" == typeof s &&
                                "session" === s?.toLowerCase())
                                ? (s = 0)
                                : isNaN(s) && (s = -1),
                                s > o && (o = s);
                        }
                    return o;
                })(e)),
                !0)
            ) {
                case /^CookieConsent$/.test(e):
                case /^CookieConsented$/.test(e):
                case "lt_content_views" === e:
                    i.expires = 99999;
            }
            if (void 0 === i.expires || i.expires < 0 || isNaN(i.expires))
                return (
                    console.log("Clearing unknown cookie:", e),
                    void (function (e, t) {
                        try {
                            r.remove(e, t);
                        } catch (e) {}
                    })(e)
                );
            0 === i.expires && delete i.expires, r.set(e, t, i);
        },
    };
    function H(e) {
        I();
        var t = r.get(n.Cookies.Names.COOKIE_VID) || i.v1(),
            o = r.get(n.Cookies.Names.COOKIE_SESS) || t,
            s = R();
        1 == e || "1" == B
            ? s.forEach(function (e) {
                  r.set(n.Cookies.Names.COOKIE_VID, t, {
                      sameSite: "lax",
                      domain: e,
                  }),
                      r.set(n.Cookies.Names.COOKIE_SESS, o, {
                          sameSite: "lax",
                          domain: e,
                      });
              })
            : e > 1 && "0" != e && "false" != e
            ? s.forEach(function (e) {
                  r.set(n.Cookies.Names.COOKIE_VID, t, {
                      sameSite: "lax",
                      expires: 99999,
                      domain: e,
                  }),
                      r.set(n.Cookies.Names.COOKIE_SESS, o, {
                          sameSite: "lax",
                          domain: e,
                      });
              })
            : D();
    }
    function W(e) {
        return (W =
            "function" == typeof Symbol && "symbol" == typeof Symbol.iterator
                ? function (e) {
                      return typeof e;
                  }
                : function (e) {
                      return e &&
                          "function" == typeof Symbol &&
                          e.constructor === Symbol &&
                          e !== Symbol.prototype
                          ? "symbol"
                          : typeof e;
                  })(e);
    }
    function q(e, t, n, o, r, i, s) {
        try {
            var a = e[i](s),
                c = a.value;
        } catch (e) {
            return void n(e);
        }
        a.done ? t(c) : Promise.resolve(c).then(o, r);
    }
    function K(e, t) {
        var n = Object.keys(e);
        if (Object.getOwnPropertySymbols) {
            var o = Object.getOwnPropertySymbols(e);
            t &&
                (o = o.filter(function (t) {
                    return Object.getOwnPropertyDescriptor(e, t).enumerable;
                })),
                n.push.apply(n, o);
        }
        return n;
    }
    function U(e) {
        for (var t = 1; t < arguments.length; t++) {
            var n = null != arguments[t] ? arguments[t] : {};
            t % 2
                ? K(Object(n), !0).forEach(function (t) {
                      $(e, t, n[t]);
                  })
                : Object.getOwnPropertyDescriptors
                ? Object.defineProperties(
                      e,
                      Object.getOwnPropertyDescriptors(n),
                  )
                : K(Object(n)).forEach(function (t) {
                      Object.defineProperty(
                          e,
                          t,
                          Object.getOwnPropertyDescriptor(n, t),
                      );
                  });
        }
        return e;
    }
    function $(e, t, n) {
        return (
            t in e
                ? Object.defineProperty(e, t, {
                      value: n,
                      enumerable: !0,
                      configurable: !0,
                      writable: !0,
                  })
                : (e[t] = n),
            e
        );
    }
    function G(e, t) {
        for (var n = 0; n < t.length; n++) {
            var o = t[n];
            (o.enumerable = o.enumerable || !1),
                (o.configurable = !0),
                "value" in o && (o.writable = !0),
                Object.defineProperty(e, o.key, o);
        }
    }
    function Y(e, t) {
        return !t || ("object" !== W(t) && "function" != typeof t) ? Z(e) : t;
    }
    function Z(e) {
        if (void 0 === e)
            throw new ReferenceError(
                "this hasn't been initialised - super() hasn't been called",
            );
        return e;
    }
    function J(e) {
        var t = "function" == typeof Map ? new Map() : void 0;
        return (J = function (e) {
            if (
                null === e ||
                ((n = e),
                -1 === Function.toString.call(n).indexOf("[native code]"))
            )
                return e;
            var n;
            if ("function" != typeof e)
                throw new TypeError(
                    "Super expression must either be null or a function",
                );
            if (void 0 !== t) {
                if (t.has(e)) return t.get(e);
                t.set(e, o);
            }
            function o() {
                return X(e, arguments, te(this).constructor);
            }
            return (
                (o.prototype = Object.create(e.prototype, {
                    constructor: {
                        value: o,
                        enumerable: !1,
                        writable: !0,
                        configurable: !0,
                    },
                })),
                ee(o, e)
            );
        })(e);
    }
    function X(e, t, n) {
        return (X = Q()
            ? Reflect.construct
            : function (e, t, n) {
                  var o = [null];
                  o.push.apply(o, t);
                  var r = new (Function.bind.apply(e, o))();
                  return n && ee(r, n.prototype), r;
              }).apply(null, arguments);
    }
    function Q() {
        if ("undefined" == typeof Reflect || !Reflect.construct) return !1;
        if (Reflect.construct.sham) return !1;
        if ("function" == typeof Proxy) return !0;
        try {
            return (
                Boolean.prototype.valueOf.call(
                    Reflect.construct(Boolean, [], function () {}),
                ),
                !0
            );
        } catch (e) {
            return !1;
        }
    }
    function ee(e, t) {
        return (ee =
            Object.setPrototypeOf ||
            function (e, t) {
                return (e.__proto__ = t), e;
            })(e, t);
    }
    function te(e) {
        return (te = Object.setPrototypeOf
            ? Object.getPrototypeOf
            : function (e) {
                  return e.__proto__ || Object.getPrototypeOf(e);
              })(e);
    }
    var ne = (function (e) {
        !(function (e, t) {
            if ("function" != typeof t && null !== t)
                throw new TypeError(
                    "Super expression must either be null or a function",
                );
            (e.prototype = Object.create(t && t.prototype, {
                constructor: { value: e, writable: !0, configurable: !0 },
            })),
                t && ee(e, t);
        })(u, e);
        var t,
            o,
            r,
            i,
            s,
            a,
            c,
            l =
                ((t = u),
                (o = Q()),
                function () {
                    var e,
                        n = te(t);
                    if (o) {
                        var r = te(this).constructor;
                        e = Reflect.construct(n, arguments, r);
                    } else e = n.apply(this, arguments);
                    return Y(this, e);
                });
        function u() {
            var e;
            !(function (e, t) {
                if (!(e instanceof t))
                    throw new TypeError("Cannot call a class as a function");
            })(this, u),
                (e = l.call(this));
            var t = document.createElement("template");
            return (
                (t.innerHTML = u.template()),
                e.attachShadow({ mode: "open" }),
                e.shadowRoot.appendChild(t.content.cloneNode(!0)),
                (e.__element = e.shadowRoot.querySelector(".tcup-form")),
                (e.__button = e.shadowRoot.querySelector(".tcup-btn")),
                (e.__close = e.shadowRoot.querySelector(".close")),
                (e.__abort = e.shadowRoot.querySelector(".tcup-abort")),
                (e.__accordion = e.shadowRoot.querySelector(".tcup-accordion")),
                (e.__more = e.shadowRoot.querySelector(".tcup-more")),
                (e.__less = e.shadowRoot.querySelector(".tcup-less")),
                (e.__all = e.shadowRoot.querySelector(".tcup-all")),
                (e.__some = e.shadowRoot.querySelector(".tcup-some")),
                (e.__initialized = !1),
                (e.save = e.save.bind(Z(e))),
                (e.abort = e.abort.bind(Z(e))),
                (e.toggle = e.toggle.bind(Z(e))),
                e
            );
        }
        return (
            (r = u),
            (i = [
                {
                    key: "attributeChangedCallback",
                    value: function (e, t, n) {
                        this.__initialized && t !== n && (this[e] = n);
                    },
                },
                {
                    key: "hidden",
                    get: function () {
                        return this.hasAttribute("hidden");
                    },
                    set: function (e) {
                        this.hasAttribute("hidden")
                            ? this.setAttribute("hidden", "")
                            : this.removeAttribute("hidden"),
                            this.setHidden();
                    },
                },
                {
                    key: "toggle",
                    value: function () {
                        this.__accordion.classList.toggle("tcup-active");
                        var e = this.__accordion.nextElementSibling;
                        e.style.maxHeight
                            ? ((e.style.maxHeight = null),
                              (this.__more.style.display = ""),
                              (this.__less.style.display = "none"),
                              (this.__all.style.display = ""),
                              (this.__some.style.display = "none"))
                            : ((this.__more.style.display = "none"),
                              (this.__less.style.display = ""),
                              (this.__all.style.display = "none"),
                              (this.__some.style.display = ""),
                              (e.style.maxHeight = e.scrollHeight + "px"));
                    },
                },
                {
                    key: "setHidden",
                    value: function () {
                        this.hasAttribute("hidden")
                            ? ((this.__element.style.display = "none"),
                              (this.style.display = "none"))
                            : ((this.__element.style.display = ""),
                              (this.style.display = ""));
                    },
                },
                {
                    key: "save",
                    value: function () {
                        var e = 0,
                            t = null;
                        t = this.__all.style.display
                            ? this.shadowRoot.querySelectorAll(
                                  ".tcup-checkboxes input:checked",
                              )
                            : this.shadowRoot.querySelectorAll(
                                  '.tcup-checkboxes input[type="checkbox"]',
                              );
                        for (var n = 0; n < t.length; n++)
                            e += Number(t[n].getAttribute("data-n"));
                        H(e);
                        var o = R(),
                            r = { sameSite: "lax", expires: 99999 };
                        o.forEach(function (t) {
                            B.set(
                                "CookieConsented",
                                "".concat(Date.now(), "-v").concat("4"),
                                U(U({}, r), {}, { domain: t }),
                            ),
                                B.set(
                                    "CookieConsent",
                                    e,
                                    U(U({}, r), {}, { domain: t }),
                                );
                        }),
                            this.setAttribute("hidden", ""),
                            this.setHidden();
                    },
                },
                {
                    key: "abort",
                    value: function () {
                        H(1);
                        var e = R(),
                            t = { sameSite: "lax", expires: 99999 };
                        e.forEach(function (e) {
                            B.set(
                                "CookieConsented",
                                "".concat(Date.now(), "-v").concat("4"),
                                U(U({}, t), {}, { domain: e }),
                            ),
                                B.set(
                                    "CookieConsent",
                                    1,
                                    U(U({}, t), {}, { domain: e }),
                                );
                        }),
                            this.setAttribute("hidden", ""),
                            this.setHidden();
                    },
                },
                {
                    key: "connectedCallback",
                    value:
                        ((a = regeneratorRuntime.mark(function e() {
                            return regeneratorRuntime.wrap(
                                function (e) {
                                    for (;;)
                                        switch ((e.prev = e.next)) {
                                            case 0:
                                                (this.style.width = this.style
                                                    .width
                                                    ? this.style.width
                                                    : "100%"),
                                                    (this.style.fontFamily =
                                                        this.style.fontFamily
                                                            ? this.style
                                                                  .fontFamily
                                                            : "Calibre, Arial, open-sans"),
                                                    this.hasAttribute(
                                                        "hidden",
                                                    ) && this.setHidden(),
                                                    this.__button.addEventListener(
                                                        "click",
                                                        this.save,
                                                    ),
                                                    this.__abort.addEventListener(
                                                        "click",
                                                        this.abort,
                                                    ),
                                                    this.__close.addEventListener(
                                                        "click",
                                                        this.abort,
                                                    ),
                                                    this.__accordion.addEventListener(
                                                        "click",
                                                        this.toggle,
                                                    ),
                                                    (this.__initialized = !0);
                                            case 8:
                                            case "end":
                                                return e.stop();
                                        }
                                },
                                e,
                                this,
                            );
                        })),
                        (c = function () {
                            var e = this,
                                t = arguments;
                            return new Promise(function (n, o) {
                                var r = a.apply(e, t);
                                function i(e) {
                                    q(r, n, o, i, s, "next", e);
                                }
                                function s(e) {
                                    q(r, n, o, i, s, "throw", e);
                                }
                                i(void 0);
                            });
                        }),
                        function () {
                            return c.apply(this, arguments);
                        }),
                },
                {
                    key: "disconnectedCallback",
                    value: function () {
                        this.__button.removeEventListener("click", this.save),
                            this.__abort.removeEventListener(
                                "click",
                                this.abort,
                            ),
                            this.__close.removeEventListener(
                                "click",
                                this.abort,
                            ),
                            this.__accordion.removeEventListener(
                                "click",
                                this.toggle,
                            );
                    },
                },
            ]),
            (s = [
                {
                    key: "observedAttributes",
                    get: function () {
                        return ["hidden"];
                    },
                },
                {
                    key: "checkboxes",
                    value: function () {
                        var e = "";
                        for (var t in n.Permissions) {
                            var o = n.Permissions[t].ChosenByDefault
                                    ? "checked"
                                    : "",
                                r = n.Permissions[t].Required ? "disabled" : "";
                            e += '\n          <label class="tcup-container">'
                                .concat(
                                    n.Permissions[t].Description,
                                    '\n            <input type="checkbox" data-n="',
                                )
                                .concat(n.Permissions[t].N, '" ')
                                .concat(o, " ")
                                .concat(
                                    r,
                                    '>\n            <span class="tcup-checkmark"></span>\n          </label>\n          <p class="tcup-checkbox-warning">',
                                )
                                .concat(
                                    n.Permissions[t].Warning,
                                    "</p>\n        ",
                                );
                        }
                        return e;
                    },
                },
                {
                    key: "template",
                    value: function () {
                        return "\n        <script>\n          let ready = false;\n          function setInt() {\n              var modalContent = document.getElementById(\"tcup-modal-block\");\n              document.addEventListener('keydown', function(e) {\n              switch(e.key) {\n                case 38:\n                    modalContent.scrollTop -= 30;\n                    event.preventDefault();\n                    break;\n                case 40:\n                    modalContent.scrollTop += 30;\n                    event.preventDefault();\n                    break;\n                  default:\n                    break;\n                }\n              });\n          };\n          setInterval(() => {\n            if (document.readyState === 'complete' && !ready) {\n              setInt();\n              ready = true;\n            }\n          }, 1000);\n        </script>\n        <style>\n        .tcup-accordion {\n          position: relative;\n          background-color: transparent;\n          color: #fff;\n          cursor: pointer;\n          padding: 40px;\n          padding-bottom: 10px;\n          padding-left: 0;\n          width: 100%;\n          border: none;\n          border-bottom: 1px solid #656565;\n          text-align: left;\n          outline: none;\n          font-size: 28px;\n          line-height: 1;\n          transition: 0.4s;\n        }\n\n        slot p {\n          font-size: 20px;\n          line-height: 23px;\n        }\n        \n        slot h3 {\n          font-size: 23.4px;\n          line-height: 26.9px;\n        }\n\n        .tcup-modal a {\n          color: #f30b71;\n          text-decoration: none;\n        }\n\n        .tcup-active {\n          padding-bottom: 25px;\n        }\n\n        .tcup-accordion::after,\n        .tcup-accordion::before {\n          content: '';\n          position: absolute;\n          top: 61%;\n          height: 11px;\n          width: 2px;\n          background-color: #fff;\n        }\n        \n        .tcup-accordion::after {        \n          right: 23px;\n          transform: rotate(45deg);\n        }\n\n        .tcup-accordion::before {\n          right: 30px;\n          transform: rotate(-45deg);\n        }\n        \n        .tcup-active::after {\n          transform: rotate(-45deg);\n        }\n\n        .tcup-active::before {\n          transform: rotate(45deg);\n        }\n        \n        .tcup-panel {\n          margin-top: 20px;\n          padding: 0 18px;\n          padding-left: 0;\n          background-color: transparent;\n          max-height: 0;\n          overflow: hidden;\n          transition: max-height 0.2s ease-out;\n        }   \n\n        .tcup-panel + div {\n          margin-top: 40px;\n        }\n        \n        .tcup-abort {\n          float:left;\n          display: inline-block;\n          padding: 12px 30px;\n          color: #0f253a;\n          font-size: 18px;\n          font-weight: 700;\n          white-space: nowrap;\n          text-align: center;\n          background: #fff;\n          outline: currentcolor none 0px;\n          border: 1px solid transparent;\n          border-radius: 24px;\n          cursor: pointer;\n          pointer-events: initial;\n        }\n\n        .tcup-btn {\n          float:right;\n          display: inline-block;\n          padding: 12px 30px;\n          color: rgb(255, 255, 255);\n          font-size: 18px;\n          font-weight: 700;\n          white-space: nowrap;\n          text-align: center;\n          background: black;\n          outline: currentcolor none 0px;\n          border: 1px solid transparent;\n          border-radius: 24px;\n          cursor: pointer;\n          pointer-events: initial;\n        }\n\n        .tcup-btn:hover,\n        .tcup-btn:focus {\n          color: #F30B71;\n          background: transparent ;  \n          border-color: #F30B71;\n        }\n\n        .tcup-abort:hover,\n        .tcup-abort:focus {\n          color: #fff;\n          background: transparent;\n          border-color: #fff;\n\n        }\n\n        /* Customize checkboxes */\n        .tcup-checkboxes {\n          margin-top: 12px;\n        }\n        \n        .tcup-container {\n          display: block;\n          position: relative;\n          padding-left: 39px;\n          margin-bottom: 10px;\n          cursor: pointer;\n          font-size: 22px;\n          line-height: 1;\n          -webkit-user-select: none;\n          -moz-user-select: none;\n          -ms-user-select: none;\n          user-select: none;\n        }\n        \n        .tcup-container input {\n          position: absolute;\n          opacity: 0;\n          cursor: pointer;\n          height: 0;\n          width: 0;\n        }\n        \n        .tcup-checkmark {\n          position: absolute;\n          top: 0;\n          left: 0;\n          height: 24px;\n          width: 24px;\n          background-color: #343645;\n          border-radius: 4px;\n        }\n\n        .tcup-checkbox-warning {\n          margin-top: 10px;\n          padding-left: 39px;\n          font-size: 16px;\n          line-height: 1;\n        }\n        \n        .tcup-container:hover input ~ .tcup-checkmark {\n          background-color: #54596B;\n        }\n        \n        .tcup-container input:checked ~ .tcup-checkmark {\n          background-color: #F30B71;\n        }\n\n        .tcup-container input:disabled ~ .tcup-checkmark {\n          background-color: #F30B71;\n          opacity: 0.8;\n          cursor: not-allowed;\n        }\n        \n        .tcup-checkmark:after {\n          content: \"\";\n          position: absolute;\n          display: none;\n        }\n        \n        .tcup-container input:checked ~ .tcup-checkmark:after {\n          display: block;\n        }\n        \n        .tcup-container .tcup-checkmark:after {\n          left: 8px;\n          top: 2px;\n          width: 6px;\n          height: 14px;\n          border: solid white;\n          border-width: 0 2px 2px 0;\n          -webkit-transform: rotate(45deg);\n          -ms-transform: rotate(45deg);\n          transform: rotate(45deg);\n        } \n\n        /* Modal */\n        .tcup-modal {\n          position: fixed; \n          z-index: 99999; \n          left: 0;\n          top: 0;\n          width: 100%; \n          height: 100%;\n          overflow: auto;\n          background-color: rgb(0,0,0);\n          background-color: rgba(0,0,0,0.4);\n          font-family: Calibre, sans-serif;\n        }\n        \n        .tcup-modal-content {\n          position: relative;\n          max-width: 600px;\n          background-color: #1C1D27;\n          margin: 5% auto;\n          padding: 20px 108px;\n          padding-bottom: 90px;\n          color: #fff;\n          border-radius: 12px;\n        }\n\n      .tcup-modal-close {\n        position: absolute;\n        right: 20px;\n        top: 20px;\n        width: 48px;\n        height: 48px;\n        border: none;\n        border-radius: 2.4rem;\n        overflow: hidden;\n        background-color: #343645;\n        transition: background-color 0.3s ease-out;\n        cursor: pointer;\n      }\n      .tcup-modal-close:hover {\n        background-color: #F30B71;\n      }\n\n      .tcup-modal-close svg {\n        width: 2rem;\n        height: 2rem;\n        fill: #0f253a;\n        stroke: #0f253a;\n        position: absolute;\n        top: 50%;\n        left: 50%;\n        transform: translate(-50%,-50%) scale(1.3);\n      }\n\n      @media screen and (min-width: 769px) {\n        .tcup-active::after {\n          top: 52px;\n          transform: rotate(-45deg);\n        }\n\n        .tcup-active::before {\n          top: 52px;\n          transform: rotate(45deg);\n        }\n      }\n\n      @media screen and (max-width: 768px) {\n        .tcup-modal-content {\n          max-width: initial;\n          margin: 0;\n          padding: 20px 32px;\n          padding-bottom: 75px;\n          border-radius: 0;\n        }\n        .tcup-accordion {\n          font-size: 24px;\n        }\n        .tcup-active {\n          padding-bottom: 10px;\n        }\n\n        .buttons-wrapper {\n          display: flex;\n          flex-direction: column-reverse;\n          justify-content: flex-start;\n          align-items: flex-start;\n        }\n\n        .tcup-abort {\n          margin-top: 20px;\n          padding: 7px 19px;\n        }\n\n        .tcup-btn {\n          padding: 7px 19px;\n        }\n      }\n\n        </style>\n        <style>\n          "
                            .concat(
                                n.Styles,
                                '\n        </style>\n        <div class="tcup-modal" id="tcup-modal-block">\n          <div class="tcup-modal-content">\n            <div class="tcup-form">\n              <div class="close" hidden><slot name="close">',
                            )
                            .concat(
                                n.Content.ButtonClose,
                                '</slot></div>\n              <div class="cookie-title"><slot name="title">',
                            )
                            .concat(
                                n.Content.TitleHTML,
                                '</slot></div>\n              <div><slot name="conditions">',
                            )
                            .concat(
                                F(),
                                '</slot></div>\n              <button class="tcup-accordion">\n                <span class="tcup-more"><slot name="more-options">',
                            )
                            .concat(
                                n.Content.MoreOptions,
                                '</slot></span>\n                <span class="tcup-less" style="display:none"><slot name="less-options">',
                            )
                            .concat(
                                n.Content.LessOptions,
                                '</slot></span>\n              </button>\n              <div class="tcup-panel">\n                <span class="tcup-checks"><slot name="checks"></slot></span>\n                <div class="tcup-checkboxes"><slot name="checkboxes">',
                            )
                            .concat(
                                u.checkboxes(),
                                '</slot></div>\n              </div>\n              <div class="buttons-wrapper" style="overflow:auto">\n                <button class="tcup-abort">\n                  <span class="tcup-min"><slot name="accept-min">',
                            )
                            .concat(
                                n.Content.AcceptMinimum,
                                '</slot></span>              \n                </button>  \n                <button class="tcup-btn">\n                  <span class="tcup-all"><slot name="accept-all">',
                            )
                            .concat(
                                n.Content.AcceptAll,
                                '</slot></span>\n                  <span class="tcup-some" style="display:none"><slot name="accept-some">',
                            )
                            .concat(
                                n.Content.AcceptSome,
                                '</slot></span>\n                </button>  \n              </div>\n              <div><slot name="footer"></slot></div>        \n            </div>\n          </div>\n        </div>\n      ',
                            );
                    },
                },
            ]),
            i && G(r.prototype, i),
            s && G(r, s),
            u
        );
    })(J(HTMLElement));
    function oe() {
        var e = document.querySelectorAll("tcup-form a"),
            t = document.querySelectorAll("tcup-form strong"),
            n = document.querySelectorAll("tcup-form h3"),
            o = document.querySelectorAll(":not(.tcup-panel) p"),
            r = document.querySelector(".tcup-modal-close"),
            i = document.querySelector("tcup-form");
        i && (i.style.cssText = "display: block;");
        var s =
                "\n      color: #f30b71;\n      text-decoration: none; \n      font-weight: bold;\n    ",
            a = "\n      ".concat(
                s,
                " \n      border-bottom: 1px solid currentColor;\n    ",
            ),
            c =
                "\n      position: absolute;\n      right: 20px;\n      top: 20px;\n      width: 48px;\n      height: 48px;\n      border: none;\n      border-radius: 2.4rem;\n      overflow: hidden;\n      background-color: #343645;\n      transition: background-color 0.3s ease-out;\n      cursor: pointer;\n      display: flex;\n      align-items: center;\n      justify-content: center;\n  ",
            l = "    \n    ".concat(c, "\n    background-color: #F30B71;\n  ");
        r && (r.style.cssText = c),
            e &&
                e.forEach(function (e) {
                    (e.style.cssText = s),
                        e.addEventListener("mouseover", function (t) {
                            e.style.cssText = a;
                        }),
                        e.addEventListener("mouseout", function (t) {
                            e.style.cssText = s;
                        });
                }),
            o &&
                o.forEach(function (e) {
                    e.style.cssText =
                        "\n        font-size: 18px;\n        font-weight: 400;\n        line-height: 22px;\n      ";
                }),
            t &&
                t.forEach(function (e) {
                    document.body.clientWidth > 768
                        ? (e.style.cssText =
                              "\n          display: block;\n          margin-top: 40px;\n          margin-bottom: 20px;\n          font-size: 28px; \n          line-height: 1; \n          font-weight: 500;\n        ")
                        : (e.style.cssText =
                              "\n          display: block;\n          margin-top: 40px;\n          margin-bottom: 20px;\n          font-size: 24px; \n          line-height: 1; \n          font-weight: 500;\n        ");
                }),
            n &&
                n.forEach(function (e) {
                    document.body.clientWidth > 768
                        ? (e.style.cssText =
                              "\n          font-size: 42px; \n          line-height: 1; \n          margin-top: 70px; \n          margin-bottom: 40px; \n          font-weight: 500;\n        ")
                        : (e.style.cssText =
                              "\n          font-size: 36px; \n          line-height: 34px; \n          margin-top: 70px; \n          margin-bottom: 40px; \n          font-weight: 500;\n        ");
                }),
            r &&
                (r.addEventListener("mouseover", function (e) {
                    r.style.cssText = l;
                }),
                r.addEventListener("mouseout", function (e) {
                    r.style.cssText = c;
                }));
    }
    "interactive" === document.readyState
        ? oe()
        : document.addEventListener("DOMContentLoaded", function () {
              oe();
          }),
        customElements.define("tcup-form", ne);
    /**
     * @license
     * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
     * This code may only be used under the BSD style license found at
     * http://polymer.github.io/LICENSE.txt
     * The complete set of authors may be found at
     * http://polymer.github.io/AUTHORS.txt
     * The complete set of contributors may be found at
     * http://polymer.github.io/CONTRIBUTORS.txt
     * Code distributed by Google as part of the polymer project is also
     * subject to an additional IP rights grant found at
     * http://polymer.github.io/PATENTS.txt
     */
    const re = new WeakMap(),
        ie =
            (e) =>
            (...t) => {
                const n = e(...t);
                return re.set(n, !0), n;
            },
        se = (e) => "function" == typeof e && re.has(e),
        ae =
            "undefined" != typeof window &&
            null != window.customElements &&
            void 0 !== window.customElements.polyfillWrapFlushCallback,
        ce = (e, t, n = null, o = null) => {
            for (; t !== n; ) {
                const n = t.nextSibling;
                e.insertBefore(t, o), (t = n);
            }
        },
        le = (e, t, n = null) => {
            for (; t !== n; ) {
                const n = t.nextSibling;
                e.removeChild(t), (t = n);
            }
        },
        ue = {},
        pe = {},
        de = `{{lit-${String(Math.random()).slice(2)}}}`,
        he = `\x3c!--${de}--\x3e`,
        fe = new RegExp(`${de}|${he}`),
        me = "$lit$";
    class ge {
        constructor(e, t) {
            (this.parts = []), (this.element = t);
            const n = [],
                o = [],
                r = document.createTreeWalker(t.content, 133, null, !1);
            let i = 0,
                s = -1,
                a = 0;
            const {
                strings: c,
                values: { length: l },
            } = e;
            for (; a < l; ) {
                const e = r.nextNode();
                if (null !== e) {
                    if ((s++, 1 === e.nodeType)) {
                        if (e.hasAttributes()) {
                            const t = e.attributes,
                                { length: n } = t;
                            let o = 0;
                            for (let e = 0; e < n; e++)
                                ve(t[e].name, me) && o++;
                            for (; o-- > 0; ) {
                                const t = c[a],
                                    n = xe.exec(t)[2],
                                    o = n?.toLowerCase() + me,
                                    r = e.getAttribute(o);
                                e.removeAttribute(o);
                                const i = r.split(fe);
                                this.parts.push({
                                    type: "attribute",
                                    index: s,
                                    name: n,
                                    strings: i,
                                }),
                                    (a += i.length - 1);
                            }
                        }
                        "TEMPLATE" === e.tagName &&
                            (o.push(e), (r.currentNode = e.content));
                    } else if (3 === e.nodeType) {
                        const t = e.data;
                        if (t.indexOf(de) >= 0) {
                            const o = e.parentNode,
                                r = t.split(fe),
                                i = r.length - 1;
                            for (let t = 0; t < i; t++) {
                                let n,
                                    i = r[t];
                                if ("" === i) n = be();
                                else {
                                    const e = xe.exec(i);
                                    null !== e &&
                                        ve(e[2], me) &&
                                        (i =
                                            i.slice(0, e.index) +
                                            e[1] +
                                            e[2].slice(0, -me.length) +
                                            e[3]),
                                        (n = document.createTextNode(i));
                                }
                                o.insertBefore(n, e),
                                    this.parts.push({
                                        type: "node",
                                        index: ++s,
                                    });
                            }
                            "" === r[i]
                                ? (o.insertBefore(be(), e), n.push(e))
                                : (e.data = r[i]),
                                (a += i);
                        }
                    } else if (8 === e.nodeType)
                        if (e.data === de) {
                            const t = e.parentNode;
                            (null !== e.previousSibling && s !== i) ||
                                (s++, t.insertBefore(be(), e)),
                                (i = s),
                                this.parts.push({ type: "node", index: s }),
                                null === e.nextSibling
                                    ? (e.data = "")
                                    : (n.push(e), s--),
                                a++;
                        } else {
                            let t = -1;
                            for (; -1 !== (t = e.data.indexOf(de, t + 1)); )
                                this.parts.push({ type: "node", index: -1 }),
                                    a++;
                        }
                } else r.currentNode = o.pop();
            }
            for (const e of n) e.parentNode.removeChild(e);
        }
    }
    const ve = (e, t) => {
            const n = e.length - t.length;
            return n >= 0 && e.slice(n) === t;
        },
        ye = (e) => -1 !== e.index,
        be = () => document.createComment(""),
        xe =
            /([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F "'>=/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;
    class we {
        constructor(e, t, n) {
            (this.__parts = []),
                (this.template = e),
                (this.processor = t),
                (this.options = n);
        }
        update(e) {
            let t = 0;
            for (const n of this.__parts) void 0 !== n && n.setValue(e[t]), t++;
            for (const e of this.__parts) void 0 !== e && e.commit();
        }
        _clone() {
            const e = ae
                    ? this.template.element.content.cloneNode(!0)
                    : document.importNode(this.template.element.content, !0),
                t = [],
                n = this.template.parts,
                o = document.createTreeWalker(e, 133, null, !1);
            let r,
                i = 0,
                s = 0,
                a = o.nextNode();
            for (; i < n.length; )
                if (((r = n[i]), ye(r))) {
                    for (; s < r.index; )
                        s++,
                            "TEMPLATE" === a.nodeName &&
                                (t.push(a), (o.currentNode = a.content)),
                            null === (a = o.nextNode()) &&
                                ((o.currentNode = t.pop()), (a = o.nextNode()));
                    if ("node" === r.type) {
                        const e = this.processor.handleTextExpression(
                            this.options,
                        );
                        e.insertAfterNode(a.previousSibling),
                            this.__parts.push(e);
                    } else
                        this.__parts.push(
                            ...this.processor.handleAttributeExpressions(
                                a,
                                r.name,
                                r.strings,
                                this.options,
                            ),
                        );
                    i++;
                } else this.__parts.push(void 0), i++;
            return ae && (document.adoptNode(e), customElements.upgrade(e)), e;
        }
    }
    const _e = ` ${de} `;
    class ke {
        constructor(e, t, n, o) {
            (this.strings = e),
                (this.values = t),
                (this.type = n),
                (this.processor = o);
        }
        getHTML() {
            const e = this.strings.length - 1;
            let t = "",
                n = !1;
            for (let o = 0; o < e; o++) {
                const e = this.strings[o],
                    r = e.lastIndexOf("\x3c!--");
                n = (r > -1 || n) && -1 === e.indexOf("--\x3e", r + 1);
                const i = xe.exec(e);
                t +=
                    null === i
                        ? e + (n ? _e : he)
                        : e.substr(0, i.index) + i[1] + i[2] + me + i[3] + de;
            }
            return (t += this.strings[e]), t;
        }
        getTemplateElement() {
            const e = document.createElement("template");
            return (e.innerHTML = this.getHTML()), e;
        }
    }
    const Ce = (e) =>
            null === e || !("object" == typeof e || "function" == typeof e),
        Ee = (e) => Array.isArray(e) || !(!e || !e[Symbol.iterator]);
    class Oe {
        constructor(e, t, n) {
            (this.dirty = !0),
                (this.element = e),
                (this.name = t),
                (this.strings = n),
                (this.parts = []);
            for (let e = 0; e < n.length - 1; e++)
                this.parts[e] = this._createPart();
        }
        _createPart() {
            return new Ne(this);
        }
        _getValue() {
            const e = this.strings,
                t = e.length - 1;
            let n = "";
            for (let o = 0; o < t; o++) {
                n += e[o];
                const t = this.parts[o];
                if (void 0 !== t) {
                    const e = t.value;
                    if (Ce(e) || !Ee(e))
                        n += "string" == typeof e ? e : String(e);
                    else
                        for (const t of e)
                            n += "string" == typeof t ? t : String(t);
                }
            }
            return (n += e[t]), n;
        }
        commit() {
            this.dirty &&
                ((this.dirty = !1),
                this.element.setAttribute(this.name, this._getValue()));
        }
    }
    class Ne {
        constructor(e) {
            (this.value = void 0), (this.committer = e);
        }
        setValue(e) {
            e === ue ||
                (Ce(e) && e === this.value) ||
                ((this.value = e), se(e) || (this.committer.dirty = !0));
        }
        commit() {
            for (; se(this.value); ) {
                const e = this.value;
                (this.value = ue), e(this);
            }
            this.value !== ue && this.committer.commit();
        }
    }
    class Se {
        constructor(e) {
            (this.value = void 0),
                (this.__pendingValue = void 0),
                (this.options = e);
        }
        appendInto(e) {
            (this.startNode = e.appendChild(be())),
                (this.endNode = e.appendChild(be()));
        }
        insertAfterNode(e) {
            (this.startNode = e), (this.endNode = e.nextSibling);
        }
        appendIntoPart(e) {
            e.__insert((this.startNode = be())),
                e.__insert((this.endNode = be()));
        }
        insertAfterPart(e) {
            e.__insert((this.startNode = be())),
                (this.endNode = e.endNode),
                (e.endNode = this.startNode);
        }
        setValue(e) {
            this.__pendingValue = e;
        }
        commit() {
            if (null === this.startNode.parentNode) return;
            for (; se(this.__pendingValue); ) {
                const e = this.__pendingValue;
                (this.__pendingValue = ue), e(this);
            }
            const e = this.__pendingValue;
            e !== ue &&
                (Ce(e)
                    ? e !== this.value && this.__commitText(e)
                    : e instanceof ke
                    ? this.__commitTemplateResult(e)
                    : e instanceof Node
                    ? this.__commitNode(e)
                    : Ee(e)
                    ? this.__commitIterable(e)
                    : e === pe
                    ? ((this.value = pe), this.clear())
                    : this.__commitText(e));
        }
        __insert(e) {
            this.endNode.parentNode.insertBefore(e, this.endNode);
        }
        __commitNode(e) {
            this.value !== e &&
                (this.clear(), this.__insert(e), (this.value = e));
        }
        __commitText(e) {
            const t = this.startNode.nextSibling,
                n = "string" == typeof (e = null == e ? "" : e) ? e : String(e);
            t === this.endNode.previousSibling && 3 === t.nodeType
                ? (t.data = n)
                : this.__commitNode(document.createTextNode(n)),
                (this.value = e);
        }
        __commitTemplateResult(e) {
            const t = this.options.templateFactory(e);
            if (this.value instanceof we && this.value.template === t)
                this.value.update(e.values);
            else {
                const n = new we(t, e.processor, this.options),
                    o = n._clone();
                n.update(e.values), this.__commitNode(o), (this.value = n);
            }
        }
        __commitIterable(e) {
            Array.isArray(this.value) || ((this.value = []), this.clear());
            const t = this.value;
            let n,
                o = 0;
            for (const r of e)
                (n = t[o]),
                    void 0 === n &&
                        ((n = new Se(this.options)),
                        t.push(n),
                        0 === o
                            ? n.appendIntoPart(this)
                            : n.insertAfterPart(t[o - 1])),
                    n.setValue(r),
                    n.commit(),
                    o++;
            o < t.length && ((t.length = o), this.clear(n && n.endNode));
        }
        clear(e = this.startNode) {
            le(this.startNode.parentNode, e.nextSibling, this.endNode);
        }
    }
    class Ae {
        constructor(e, t, n) {
            if (
                ((this.value = void 0),
                (this.__pendingValue = void 0),
                2 !== n.length || "" !== n[0] || "" !== n[1])
            )
                throw new Error(
                    "Boolean attributes can only contain a single expression",
                );
            (this.element = e), (this.name = t), (this.strings = n);
        }
        setValue(e) {
            this.__pendingValue = e;
        }
        commit() {
            for (; se(this.__pendingValue); ) {
                const e = this.__pendingValue;
                (this.__pendingValue = ue), e(this);
            }
            if (this.__pendingValue === ue) return;
            const e = !!this.__pendingValue;
            this.value !== e &&
                (e
                    ? this.element.setAttribute(this.name, "")
                    : this.element.removeAttribute(this.name),
                (this.value = e)),
                (this.__pendingValue = ue);
        }
    }
    class Le extends Oe {
        constructor(e, t, n) {
            super(e, t, n),
                (this.single = 2 === n.length && "" === n[0] && "" === n[1]);
        }
        _createPart() {
            return new je(this);
        }
        _getValue() {
            return this.single ? this.parts[0].value : super._getValue();
        }
        commit() {
            this.dirty &&
                ((this.dirty = !1),
                (this.element[this.name] = this._getValue()));
        }
    }
    class je extends Ne {}
    let Te = !1;
    (() => {
        try {
            const e = {
                get capture() {
                    return (Te = !0), !1;
                },
            };
            window.addEventListener("test", e, e),
                window.removeEventListener("test", e, e);
        } catch (e) {}
    })();
    class Pe {
        constructor(e, t, n) {
            (this.value = void 0),
                (this.__pendingValue = void 0),
                (this.element = e),
                (this.eventName = t),
                (this.eventContext = n),
                (this.__boundHandleEvent = (e) => this.handleEvent(e));
        }
        setValue(e) {
            this.__pendingValue = e;
        }
        commit() {
            for (; se(this.__pendingValue); ) {
                const e = this.__pendingValue;
                (this.__pendingValue = ue), e(this);
            }
            if (this.__pendingValue === ue) return;
            const e = this.__pendingValue,
                t = this.value,
                n =
                    null == e ||
                    (null != t &&
                        (e.capture !== t.capture ||
                            e.once !== t.once ||
                            e.passive !== t.passive)),
                o = null != e && (null == t || n);
            n &&
                this.element.removeEventListener(
                    this.eventName,
                    this.__boundHandleEvent,
                    this.__options,
                ),
                o &&
                    ((this.__options = Re(e)),
                    this.element.addEventListener(
                        this.eventName,
                        this.__boundHandleEvent,
                        this.__options,
                    )),
                (this.value = e),
                (this.__pendingValue = ue);
        }
        handleEvent(e) {
            "function" == typeof this.value
                ? this.value.call(this.eventContext || this.element, e)
                : this.value.handleEvent(e);
        }
    }
    const Re = (e) =>
        e &&
        (Te
            ? { capture: e.capture, passive: e.passive, once: e.once }
            : e.capture);
    const Ie = new (class {
        handleAttributeExpressions(e, t, n, o) {
            const r = t[0];
            if ("." === r) {
                return new Le(e, t.slice(1), n).parts;
            }
            if ("@" === r) return [new Pe(e, t.slice(1), o.eventContext)];
            if ("?" === r) return [new Ae(e, t.slice(1), n)];
            return new Oe(e, t, n).parts;
        }
        handleTextExpression(e) {
            return new Se(e);
        }
    })();
    function Fe(e) {
        let t = ze.get(e.type);
        void 0 === t &&
            ((t = { stringsArray: new WeakMap(), keyString: new Map() }),
            ze.set(e.type, t));
        let n = t.stringsArray.get(e.strings);
        if (void 0 !== n) return n;
        const o = e.strings.join(de);
        return (
            (n = t.keyString.get(o)),
            void 0 === n &&
                ((n = new ge(e, e.getTemplateElement())),
                t.keyString.set(o, n)),
            t.stringsArray.set(e.strings, n),
            n
        );
    }
    const ze = new Map(),
        Me = new WeakMap();
    "undefined" != typeof window &&
        (window.litHtmlVersions || (window.litHtmlVersions = [])).push("1.2.1");
    const Ve = (e, ...t) => new ke(e, t, "html", Ie),
        De = new WeakMap(),
        Be = ie((e) => (t) => {
            if (!(t instanceof Se))
                throw new Error("unsafeHTML can only be used in text bindings");
            const n = De.get(t);
            if (
                void 0 !== n &&
                Ce(e) &&
                e === n.value &&
                t.value === n.fragment
            )
                return;
            const o = document.createElement("template");
            o.innerHTML = e;
            const r = document.importNode(o.content, !0);
            t.setValue(r), De.set(t, { value: e, fragment: r });
        }),
        He = (e, t) => {
            const n = e.startNode.parentNode,
                o = void 0 === t ? e.endNode : t.startNode,
                r = n.insertBefore(be(), o);
            n.insertBefore(be(), o);
            const i = new Se(e.options);
            return i.insertAfterNode(r), i;
        },
        We = (e, t) => (e.setValue(t), e.commit(), e),
        qe = (e, t, n) => {
            const o = e.startNode.parentNode,
                r = n ? n.startNode : e.endNode,
                i = t.endNode.nextSibling;
            i !== r && ce(o, t.startNode, i, r);
        },
        Ke = (e) => {
            le(e.startNode.parentNode, e.startNode, e.endNode.nextSibling);
        },
        Ue = (e, t, n) => {
            const o = new Map();
            for (let r = t; r <= n; r++) o.set(e[r], r);
            return o;
        },
        $e = new WeakMap(),
        Ge = new WeakMap(),
        Ye = ie((e, t, n) => {
            let o;
            return (
                void 0 === n ? (n = t) : void 0 !== t && (o = t),
                (t) => {
                    if (!(t instanceof Se))
                        throw new Error(
                            "repeat can only be used in text bindings",
                        );
                    const r = $e.get(t) || [],
                        i = Ge.get(t) || [],
                        s = [],
                        a = [],
                        c = [];
                    let l,
                        u,
                        p = 0;
                    for (const t of e)
                        (c[p] = o ? o(t, p) : p), (a[p] = n(t, p)), p++;
                    let d = 0,
                        h = r.length - 1,
                        f = 0,
                        m = a.length - 1;
                    for (; d <= h && f <= m; )
                        if (null === r[d]) d++;
                        else if (null === r[h]) h--;
                        else if (i[d] === c[f])
                            (s[f] = We(r[d], a[f])), d++, f++;
                        else if (i[h] === c[m])
                            (s[m] = We(r[h], a[m])), h--, m--;
                        else if (i[d] === c[m])
                            (s[m] = We(r[d], a[m])),
                                qe(t, r[d], s[m + 1]),
                                d++,
                                m--;
                        else if (i[h] === c[f])
                            (s[f] = We(r[h], a[f])),
                                qe(t, r[h], r[d]),
                                h--,
                                f++;
                        else if (
                            (void 0 === l &&
                                ((l = Ue(c, f, m)), (u = Ue(i, d, h))),
                            l.has(i[d]))
                        )
                            if (l.has(i[h])) {
                                const e = u.get(c[f]),
                                    n = void 0 !== e ? r[e] : null;
                                if (null === n) {
                                    const e = He(t, r[d]);
                                    We(e, a[f]), (s[f] = e);
                                } else
                                    (s[f] = We(n, a[f])),
                                        qe(t, n, r[d]),
                                        (r[e] = null);
                                f++;
                            } else Ke(r[h]), h--;
                        else Ke(r[d]), d++;
                    for (; f <= m; ) {
                        const e = He(t, s[m + 1]);
                        We(e, a[f]), (s[f++] = e);
                    }
                    for (; d <= h; ) {
                        const e = r[d++];
                        null !== e && Ke(e);
                    }
                    $e.set(t, s), Ge.set(t, c);
                }
            );
        });
    function Ze(e) {
        var t = [],
            o = (function (e) {
                if ("string" != typeof e) return [];
                var t = e
                        .split(/[\s,]+/)
                        .join(",")
                        ?.toLowerCase()
                        .split(","),
                    o = Object.keys(L(["Permissions"], n) || {})
                        .join(",")
                        ?.toLowerCase()
                        .split(",");
                return (
                    o.push("all"),
                    t.filter(function (e) {
                        return o.includes(e);
                    })
                );
            })(e),
            r = B.get("CookieConsent");
        if ("string" != typeof r || !r || isNaN(r)) return [];
        r = Number(r);
        var i = L(["Permissions"], n),
            s = function (e) {
                o.forEach(function (n) {
                    e?.toLowerCase() == n && r & i[e].N && t.push(n);
                });
            };
        for (var a in i) s(a);
        return o.includes("all") && t.push("all"), t;
    }
    var Je,
        Xe,
        Qe = {
            CleanScripts: function () {
                var e = document.querySelectorAll("script");
                if (e)
                    for (var t = 0; t < e.length; t++) {
                        if (Ze(e[t].getAttribute("data-consent")).length > 0) {
                            var o = e[t].getAttribute("data-src");
                            if (o) {
                                var r = document.createElement("script");
                                r.setAttribute(
                                    "data-consent",
                                    e[t].getAttribute("data-consent"),
                                ),
                                    (r.src = o),
                                    (r.type = "text/javascript"),
                                    e[t].parentNode.insertBefore(r, e[t]),
                                    e[t].remove();
                            }
                        } else
                            L(["Scripts", "Lax"], n)
                                ? console.log("Leaving script " + e[t].src)
                                : (console.log("Removing script " + e[t].src),
                                  (e[t].innerHTML = ""),
                                  (e[t].src = ""),
                                  e[t].remove());
                    }
            },
            CleanFrames: function () {
                var e = document.querySelectorAll("iframe");
                if (e)
                    for (var t = 0; t < e.length; t++) {
                        if (Ze(e[t].getAttribute("data-consent")).length > 0) {
                            var o = e[t].getAttribute("data-src");
                            if (o) {
                                var r = document.createElement("iframe");
                                r.setAttribute(
                                    "data-consent",
                                    e[t].getAttribute("data-consent"),
                                ),
                                    (r.src = o),
                                    e[t].parentNode.insertBefore(r, e[t]),
                                    e[t].remove();
                            }
                        } else
                            L(["Frames", "Lax"], n)
                                ? console.log("Leaving iframe " + e[t].src)
                                : (console.log("Removing iframe " + e[t].src),
                                  (e[t].innerHTML = ""),
                                  (e[t].src = ""),
                                  e[t].remove());
                    }
            },
            Observe: function () {
                var e = new MutationObserver(function (e, t) {
                    Qe.CleanScripts(), Qe.CleanFrames();
                });
                return e.observe(document.body, { childList: 1 }), e;
            },
        },
        et = {
            Intercept: function () {
                console.error("Intercept Not Implemented");
            },
        };
    function tt(e, t) {
        return (
            t || (t = e.slice(0)),
            Object.freeze(
                Object.defineProperties(e, {
                    raw: { value: Object.freeze(t) },
                }),
            )
        );
    }
    console.log("TCUP Release:", "4");
    var nt = { BROWSER: "browser", NATIVE: "native", NODE: "node" },
        ot =
            "undefined" != typeof document
                ? nt.BROWSER
                : "undefined" != typeof navigator
                ? nt.NATIVE
                : nt.NODE,
        rt =
            n.Urls &&
            n.Urls.IgnoreRegexFilter &&
            new RegExp(n.Urls.IgnoreRegexFilter, "ig").test(
                window && window.location ? window.location.href : null,
            );
    function it() {
        if (!st.get("CookieConsent")) {
            var e =
                    ((i = n),
                    Ve(
                        Je ||
                            (Je = tt([
                                '\n    <tcup-form style="display: none;">\n        <span slot="title">',
                                '</span>\n        <span slot="close">',
                                '</span>\n        <span slot="conditions">',
                                '</span>\n        <span slot="more-options">',
                                '</span>\n        <span slot="less-options">',
                                '</span>\n        <span slot="accept-all">',
                                '</span>\n        <span slot="accept-min">',
                                '</span>\n        <span slot="accept-some">',
                                '</span>\n        <span slot="todo-checks" data-src=',
                                '></span>\n        <span slot="todo-checkboxes">',
                                "</span>\n    </tcup-form>",
                            ])),
                        Be(i.Content.TitleHTML),
                        Be(i.Content.ButtonClose),
                        Be(F()),
                        i.Content.MoreOptions,
                        i.Content.LessOptions,
                        i.Content.AcceptAll,
                        i.Content.AcceptMinimum,
                        i.Content.AcceptSome,
                        Object.keys(i.Cookies).join(","),
                        Ye(Object.keys(i.Cookies), function (e, t) {
                            return Ve(
                                Xe || (Xe = tt(["<li>", "", "</li>"])),
                                e,
                                t,
                            );
                        }),
                    )),
                t = e.strings.join(""),
                o = document.createElement("div");
            o.innerHTML = t;
            var r = o.querySelector("tcup-form");
            ((e, t, n) => {
                let o = Me.get(t);
                void 0 === o &&
                    (le(t, t.firstChild),
                    Me.set(
                        t,
                        (o = new Se(Object.assign({ templateFactory: Fe }, n))),
                    ),
                    o.appendInto(t)),
                    o.setValue(e),
                    o.commit();
            })(e.processor, r),
                document.body.insertAdjacentElement("beforeend", r);
        }
        var i;
    }
    var st = B,
        at = D,
        ct = H,
        lt = function (e) {
            if ("string" != typeof e) return !1;
            var t = B.get("CookieConsent");
            if ("string" != typeof t || !t || isNaN(t)) return !1;
            t = Number(t);
            var o = L(["Permissions"], n);
            for (var r in o)
                if (t & o[r].N && e?.toLowerCase() === r?.toLowerCase())
                    return !0;
            return !1;
        };
    var ut = Qe,
        pt = et,
        dt = n;
    rt || ot != nt.BROWSER || st.get("CookieConsent") || it(),
        n && n.Scripts && n.Scripts.Filter && Qe.CleanScripts(),
        n && n.Frames && n.Frames.Filter && Qe.CleanFrames(),
        n && n.Fetch && n.Fetch.Intercept && et.Intercept(),
        window &&
            (window.tcup = {
                IsFiltered: rt,
                Runtimes: nt,
                Runtime: ot,
                Show: it,
                Hide: function () {
                    var e = document.querySelector("tcup-form");
                    e && (e.style.display = "none");
                },
                Cookies: st,
                ClearCookies: at,
                ResetCookies: ct,
                HasConsent: lt,
                Handle: function (e) {
                    console.warn(e);
                },
                Scripts: ut,
                Fetch: pt,
                Config: dt,
            });
})();
//# sourceMappingURL=index.bc348066.js.map
