(function() {
    'use strict';
    var aa = Object.defineProperty,
        ba = globalThis;

    function ca(a, b) {
        if (b) a: {
            var c = ba;a = a.split(".");
            for (var d = 0; d < a.length - 1; d++) {
                var e = a[d];
                if (!(e in c)) break a;
                c = c[e]
            }
            a = a[a.length - 1];d = c[a];b = b(d);b != d && b != null && aa(c, a, {
                configurable: !0,
                writable: !0,
                value: b
            })
        }
    }
    ca("Symbol.dispose", function(a) {
        return a ? a : Symbol("Symbol.dispose")
    });
    /* 
     
     Copyright The Closure Library Authors. 
     SPDX-License-Identifier: Apache-2.0 
    */
    var r = this || self;

    function da(a) {
        r.setTimeout(() => {
            throw a;
        }, 0)
    };
    var t, v;
    a: {
        for (var ea = ["CLOSURE_FLAGS"], z = r, A = 0; A < ea.length; A++)
            if (z = z[ea[A]], z == null) {
                v = null;
                break a
            }
        v = z
    }
    var fa = v && v[748402147];
    t = fa != null ? fa : !0;

    function C(a) {
        C[" "](a);
        return a
    }
    C[" "] = function() {};
    var ha = void 0;

    function D(a, b = !1) {
        return b && Symbol.for && a ? Symbol.for(a) : a != null ? Symbol(a) : Symbol()
    }
    var E = D(),
        ia = D("m_m", !0);
    var F = D("jas", !0);
    var ja = {};

    function ma(a) {
        var b = na;
        if (!oa(a)) throw b = (typeof b === "function" ? b() : b) ? .concat("\n") ? ? "", Error(b + String(a));
        return a
    }

    function H(a) {
        a.da = !0;
        return a
    }
    var na = void 0,
        oa = H(a => a !== null && a !== void 0);
    var pa = H(a => typeof a === "number"),
        qa = H(a => typeof a === "string"),
        ra = H(a => typeof a === "function");
    var ua = H(a => a >= sa && a <= ta),
        sa = BigInt(Number.MIN_SAFE_INTEGER),
        ta = BigInt(Number.MAX_SAFE_INTEGER);

    function va(a, b = `unexpected value ${a}!`) {
        throw Error(b);
    };
    var wa = Number.isFinite;

    function xa(a) {
        return a
    };

    function ya(a, b) {
        var c = za,
            d = e !== void 0;
        var e = !!e;
        var f = [],
            g = a.length,
            h = 4294967295,
            k = !1,
            m = !!(b & 64),
            l = m ? b & 128 ? 0 : -1 : void 0;
        if (!(b & 1)) {
            var q = g && a[g - 1];
            q != null && typeof q === "object" && q.constructor === Object ? (g--, h = g) : q = void 0;
            !m || b & 128 || d || (k = !0, h = (Aa ? ? xa)(h - l, l, a, q, void 0) + l)
        }
        b = void 0;
        for (d = 0; d < g; d++) {
            let n = a[d];
            if (n != null && (n = c(n, e)) != null)
                if (m && d >= h) {
                    let p = d - l;
                    (b ? ? (b = {}))[p] = n
                } else f[d] = n
        }
        if (q)
            for (let n in q) {
                a = q[n];
                if (a == null || (a = c(a, e)) == null) continue;
                g = +n;
                let p;
                m && !Number.isNaN(g) && (p = g + l) < h ? f[p] =
                    a : (b ? ? (b = {}))[n] = a
            }
        b && (k ? f.push(b) : f[h] = b);
        return f
    }

    function za(a) {
        switch (typeof a) {
            case "number":
                return Number.isFinite(a) ? a : "" + a;
            case "bigint":
                return ua(a) ? Number(a) : "" + a;
            case "boolean":
                return a ? 1 : 0;
            case "object":
                if (Array.isArray(a)) {
                    let b = a[F] | 0;
                    return a.length === 0 && b & 1 ? void 0 : ya(a, b)
                }
                if (a != null && a[ia] === ja) return Ba(a);
                return
        }
        return a
    }
    var Aa;

    function Ba(a) {
        a = a.g;
        return ya(a, a[F] | 0)
    };

    function Ca(a, b, c, d = 0) {
        if (a == null) {
            var e = 32;
            c ? (a = [c], e |= 128) : a = [];
            b && (e = e & -16760833 | (b & 1023) << 14)
        } else {
            if (!Array.isArray(a)) throw Error("narr");
            e = a[F] | 0;
            if (t && 1 & e) throw Error("rfarr");
            2048 & e && !(2 & e) && Da();
            if (e & 256) throw Error("farr");
            if (e & 64) return (e | d) !== e && (a[F] = e | d), a;
            if (c && (e |= 128, c !== a[0])) throw Error("mid");
            a: {
                c = a;e |= 64;
                var f = c.length;
                if (f) {
                    var g = f - 1;
                    let k = c[g];
                    if (k != null && typeof k === "object" && k.constructor === Object) {
                        b = e & 128 ? 0 : -1;
                        g -= b;
                        if (g >= 1024) throw Error("pvtlmt");
                        for (var h in k)
                            if (f = +h,
                                f < g) c[f + b] = k[h], delete k[h];
                            else break;
                        e = e & -16760833 | (g & 1023) << 14;
                        break a
                    }
                }
                if (b) {
                    h = Math.max(b, f - (e & 128 ? 0 : -1));
                    if (h > 1024) throw Error("spvt");
                    e = e & -16760833 | (h & 1023) << 14
                }
            }
        }
        a[F] = e | 64 | d;
        return a
    }

    function Da() {
        if (t) throw Error("carr");
        if (E != null) {
            var a = ha ? ? (ha = {});
            var b = a[E] || 0;
            b >= 5 || (a[E] = b + 1, a = Error(), a.__closure__error__context__984382 || (a.__closure__error__context__984382 = {}), a.__closure__error__context__984382.severity = "incident", da(a))
        }
    };

    function Ea(a, b) {
        a: {
            var c = a.g;
            if (b === -1) b = null;
            else {
                a = b + -1;
                var d = c.length - 1;
                if (d < 0) b = void 0;
                else if (a >= d)
                    if (c = c[d], c != null && typeof c === "object" && c.constructor === Object) b = c[b];
                    else if (a === d) b = c;
                else {
                    b = void 0;
                    break a
                } else b = c[a]
            }
        }
        if (b !== null) return b
    }

    function I(a, b) {
        a = Ea(a, b);
        return (a == null || typeof a === "boolean" ? a : typeof a === "number" ? !!a : void 0) ? ? !1
    }

    function J(a, b) {
        a = Ea(a, b);
        return (a == null || typeof a === "string" ? a : void 0) ? ? ""
    }

    function K(a, b) {
        a = Ea(a, b);
        return (a == null ? a : wa(a) ? a | 0 : void 0) ? ? 0
    };
    var Fa = class {
        constructor(a) {
            this.g = Ca(a, void 0, void 0, 2048)
        }
        toJSON() {
            var a = Ba(this);
            return a
        }
    };
    Fa.prototype[ia] = ja;
    Fa.prototype.toString = function() {
        return this.g.toString()
    };

    function Ga(a, b) {
        if (a)
            for (let c in a) Object.prototype.hasOwnProperty.call(a, c) && b(a[c], c, a)
    };

    function Ha(a = document) {
        return a.createElement("img")
    };
    var L = [];

    function Ia() {
        var a = L;
        L = [];
        for (let b of a) try {
            b()
        } catch {}
    }

    function Na(a) {
        L.push(a);
        L.length === 1 && (window.Promise ? Promise.resolve().then(Ia) : (a = window.setImmediate, ra(a) ? a(Ia) : setTimeout(Ia, 0)))
    };

    function M(a, b, c) {
        typeof a.addEventListener === "function" && a.addEventListener(b, c, !1)
    }

    function Oa(a, b, c) {
        return typeof a.removeEventListener === "function" ? (a.removeEventListener(b, c, !1), !0) : !1
    }

    function Pa(a) {
        return new Promise(b => {
            a.readyState === "complete" || a.readyState === "interactive" ? Na(b) : a.addEventListener("DOMContentLoaded", b)
        })
    }

    function Qa(a) {
        return new Promise(b => {
            a.document.readyState === "complete" ? Na(b) : a.addEventListener("load", b)
        })
    };

    function Ra(a, b, c = null, d = !1) {
        Sa(a, b, c, d)
    }

    function Sa(a, b, c, d) {
        a.google_image_requests || (a.google_image_requests = []);
        var e = Ha(a.document);
        if (c || d) {
            let f = g => {
                c && c(g);
                if (d) {
                    g = a.google_image_requests;
                    let h = Array.prototype.indexOf.call(g, e, void 0);
                    h >= 0 && Array.prototype.splice.call(g, h, 1)
                }
                Oa(e, "load", f);
                Oa(e, "error", f)
            };
            M(e, "load", f);
            M(e, "error", f)
        }
        e.src = b;
        a.google_image_requests.push(e)
    };
    var Ta = 0;

    function Ua(a) {
        return (a = Va(a, document.currentScript)) && a.getAttribute("data-jc-version") || "unknown"
    }

    function Va(a, b = null) {
        return b && b.getAttribute("data-jc") === String(a) ? b : document.querySelector(`[data-jc="${a}"]`)
    }

    function Wa() {
        if (!(Math.random() > .01)) {
            var a = Va(105, document.currentScript);
            a = `https://${a&&a.getAttribute("data-jc-rcd")==="true"?"pagead2.googlesyndication-cn.com":"pagead2.googlesyndication.com"}/pagead/gen_204?id=jca&jc=105&version=${Ua(105)}&sample=0.01`;
            var b = window,
                c;
            if (c = b.navigator) c = b.navigator.userAgent, c = /Chrome/.test(c) && !/Edge/.test(c) ? !0 : !1;
            c && typeof b.navigator.sendBeacon === "function" ? b.navigator.sendBeacon(a) : Ra(b, a, void 0, !1)
        }
    };
    var Xa = class {
        constructor(a, b) {
            this.error = a;
            this.meta = {};
            this.context = b.context;
            this.msg = b.message || "";
            this.id = b.id || "jserror"
        }
    };

    function Ya(a) {
        var b = a.toString();
        a.name && b.indexOf(a.name) == -1 && (b += ": " + a.name);
        a.message && b.indexOf(a.message) == -1 && (b += ": " + a.message);
        if (a.stack) a: {
            a = a.stack;
            var c = b;
            try {
                a.indexOf(c) == -1 && (a = c + "\n" + a);
                let d;
                for (; a != d;) d = a, a = a.replace(RegExp("((https?:/..*/)[^/:]*:\\d+(?:.|\n)*)\\2"), "$1");
                b = a.replace(RegExp("\n *", "g"), "\n");
                break a
            } catch (d) {
                b = c;
                break a
            }
            b = void 0
        }
        return b
    };
    var Za = RegExp("^https?://(\\w|-)+\\.cdn\\.ampproject\\.(net|org)(\\?|/|$)"),
        $a = class {
            constructor(a, b) {
                this.g = a;
                this.h = b
            }
        },
        ab = class {
            constructor(a, b) {
                this.url = a;
                this.g = !!b;
                this.depth = null
            }
        };
    var N = null;

    function bb() {
        var a = r.performance;
        return a && a.now && a.timing ? Math.floor(a.now() + a.timing.navigationStart) : Date.now()
    }

    function cb() {
        var a = r.performance;
        return a && a.now ? a.now() : null
    };
    var db = class {
        constructor(a, b) {
            var c = cb() || bb();
            this.label = a;
            this.type = b;
            this.value = c;
            this.duration = 0;
            this.taskId = this.slotId = void 0;
            this.uniqueId = Math.random()
        }
    };
    var O = r.performance,
        eb = !!(O && O.mark && O.measure && O.clearMarks),
        P = function(a) {
            var b = !1,
                c;
            return function() {
                b || (c = a(), b = !0);
                return c
            }
        }(() => {
            var a;
            if (a = eb) {
                var b;
                a = window;
                if (N === null) {
                    N = "";
                    try {
                        let c = "";
                        try {
                            c = a.top.location.hash
                        } catch (d) {
                            c = a.location.hash
                        }
                        c && (N = (b = c.match(/\bdeid=([\d,]+)/)) ? b[1] : "")
                    } catch (c) {}
                }
                b = N;
                a = !!b.indexOf && b.indexOf("1337") >= 0
            }
            return a
        });

    function fb(a) {
        a && O && P() && (O.clearMarks(`goog_${a.label}_${a.uniqueId}_start`), O.clearMarks(`goog_${a.label}_${a.uniqueId}_end`))
    };

    function Q(a, b) {
        var c = {};
        c[a] = b;
        return [c]
    }

    function gb(a, b, c, d, e) {
        var f = [];
        Ga(a, (g, h) => {
            (g = hb(g, b, c, d, e)) && f.push(`${h}=${g}`)
        });
        return f.join(b)
    }

    function hb(a, b, c, d, e) {
        if (a == null) return "";
        b = b || "&";
        c = c || ",$";
        qa(c) && (c = c.split(""));
        if (a instanceof Array) {
            if (d || (d = 0), d < c.length) {
                let f = [];
                for (let g = 0; g < a.length; g++) f.push(hb(a[g], b, c, d + 1, e));
                return f.join(c[d])
            }
        } else if (typeof a === "object") return e || (e = 0), e < 2 ? encodeURIComponent(gb(a, b, c, d, e + 1)) : "...";
        return encodeURIComponent(String(a))
    }

    function ib(a) {
        var b = 1;
        for (let c in a.h) c.length > b && (b = c.length);
        return 3997 - b - a.i.length - 1
    }

    function jb(a, b, c, d) {
        b = b + "//" + c + d;
        var e = ib(a) - d.length;
        if (e < 0) return "";
        a.g.sort((f, g) => f - g);
        d = null;
        c = "";
        for (let f = 0; f < a.g.length; f++) {
            let g = a.g[f],
                h = a.h[g];
            for (let k = 0; k < h.length; k++) {
                if (!e) {
                    d = d == null ? g : d;
                    break
                }
                let m = gb(h[k], a.i, ",$");
                if (m) {
                    m = c + m;
                    if (e >= m.length) {
                        e -= m.length;
                        b += m;
                        c = a.i;
                        break
                    }
                    d = d == null ? g : d
                }
            }
        }
        a = "";
        d != null && (a = `${c}trn=${d}`);
        return b + a
    }
    var kb = class {
        constructor() {
            this.i = "&";
            this.h = {};
            this.j = 0;
            this.g = []
        }
    };
    var lb = RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");

    function mb(a, b, c) {
        try {
            if (a.g && a.g.g) {
                var d = a.g.start(b.toString(), 3);
                var e = c();
                a.g.end(d)
            } else e = c()
        } catch (f) {
            c = !0;
            try {
                fb(d), c = a.m(b, new Xa(f, {
                    message: Ya(f)
                }), void 0, void 0)
            } catch (g) {
                a.l(217, g)
            }
            if (c) window.console ? .error ? .(f);
            else throw f;
        }
        return e
    }

    function nb(a, b, c) {
        return (...d) => mb(a, b, () => c.apply(void 0, d))
    }
    var pb = class {
        constructor(a = null) {
            this.j = S;
            this.g = a;
            this.h = null;
            this.i = !1;
            this.m = this.l
        }
        l(a, b, c, d, e) {
            e = e || "jserror";
            var f = void 0;
            try {
                let x = new kb;
                var g = x;
                g.g.push(1);
                g.h[1] = Q("context", a);
                b.error && b.meta && b.id || (b = new Xa(b, {
                    message: Ya(b)
                }));
                g = b;
                if (g.msg) {
                    b = x;
                    var h = g.msg.substring(0, 512);
                    b.g.push(2);
                    b.h[2] = Q("msg", h)
                }
                var k = g.meta || {};
                h = k;
                if (this.h) try {
                    this.h(h)
                } catch (w) {}
                if (d) try {
                    d(h)
                } catch (w) {}
                d = x;
                k = [k];
                d.g.push(3);
                d.h[3] = k;
                var m;
                if (!(m = p)) {
                    d = r;
                    k = [];
                    let w;
                    h = null;
                    do {
                        var l = d;
                        try {
                            var q;
                            if (q = !!l && l.location.href !=
                                null) b: {
                                try {
                                    C(l.foo);
                                    q = !0;
                                    break b
                                } catch (u) {}
                                q = !1
                            }
                            var n = q
                        } catch {
                            n = !1
                        }
                        n ? (w = l.location.href, h = l.document && l.document.referrer || null) : (w = h, h = null);
                        k.push(new ab(w || ""));
                        try {
                            d = l.parent
                        } catch (u) {
                            d = null
                        }
                    } while (d && l !== d);
                    for (let u = 0, Ja = k.length - 1; u <= Ja; ++u) k[u].depth = Ja - u;
                    l = r;
                    if (l.location && l.location.ancestorOrigins && l.location.ancestorOrigins.length === k.length - 1)
                        for (n = 1; n < k.length; ++n) {
                            let u = k[n];
                            u.url || (u.url = l.location.ancestorOrigins[n - 1] || "", u.g = !0)
                        }
                    m = k
                }
                var p = m;
                let R = new ab(r.location.href, !1);
                m = null;
                let ka = p.length - 1;
                for (l = ka; l >= 0; --l) {
                    var y = p[l];
                    !m && Za.test(y.url) && (m = y);
                    if (y.url && !y.g) {
                        R = y;
                        break
                    }
                }
                y = null;
                let zb = p.length && p[ka].url;
                R.depth !== 0 && zb && (y = p[ka]);
                f = new $a(R, y);
                if (f.h) {
                    p = x;
                    var B = f.h.url || "";
                    p.g.push(4);
                    p.h[4] = Q("top", B)
                }
                var la = {
                    url: f.g.url || ""
                };
                if (f.g.url) {
                    let w = f.g.url.match(lb);
                    var G = w[1],
                        Ka = w[3],
                        La = w[4];
                    B = "";
                    G && (B += G + ":");
                    Ka && (B += "//", B += Ka, La && (B += ":" + La));
                    var Ma = B
                } else Ma = "";
                G = x;
                la = [la, {
                    url: Ma
                }];
                G.g.push(5);
                G.h[5] = la;
                ob(this.j, e, x, this.i, c)
            } catch (x) {
                try {
                    ob(this.j, e, {
                        context: "ecmserr",
                        rctx: a,
                        msg: Ya(x),
                        url: f ? .g.url ? ? ""
                    }, this.i, c)
                } catch (R) {}
            }
            return !0
        }
    };

    function ob(a, b, c, d = !1, e) {
        if ((d ? a.g : Math.random()) < (e || .01)) try {
            let f;
            c instanceof kb ? f = c : (f = new kb, Ga(c, (h, k) => {
                var m = f,
                    l = m.j++;
                h = Q(k, h);
                m.g.push(l);
                m.h[l] = h
            }));
            let g = jb(f, a.protocol, a.domain, a.path + b + "&");
            g && Ra(r, g)
        } catch (f) {}
    }

    function qb() {
        var a = S,
            b = window.google_srt;
        b >= 0 && b <= 1 && (a.g = b)
    }
    var rb = class {
        constructor() {
            this.domain = "pagead2.googlesyndication.com";
            this.path = "/pagead/gen_204?id=";
            this.protocol = "https:";
            this.g = Math.random()
        }
    };
    var S, T, U = new class {
        constructor(a, b) {
            this.h = [];
            this.i = b || r;
            var c = null;
            b && (b.google_js_reporting_queue = b.google_js_reporting_queue || [], this.h = b.google_js_reporting_queue, c = b.google_measure_js_timing);
            this.g = P() || (c != null ? c : Math.random() < a)
        }
        start(a, b) {
            if (!this.g) return null;
            a = new db(a, b);
            b = `goog_${a.label}_${a.uniqueId}_start`;
            O && P() && O.mark(b);
            return a
        }
        end(a) {
            if (this.g && pa(a.value)) {
                a.duration = (cb() || bb()) - a.value;
                var b = `goog_${a.label}_${a.uniqueId}_end`;
                O && P() && O.mark(b);
                !this.g || this.h.length > 2048 ||
                    this.h.push(a)
            }
        }
    }(1, window);

    function sb() {
        window.google_measure_js_timing || (U.g = !1, U.h !== U.i.google_js_reporting_queue && (P() && Array.prototype.forEach.call(U.h, fb, void 0), U.h.length = 0))
    }(function(a) {
        S = a ? ? new rb;
        typeof window.google_srt !== "number" && (window.google_srt = Math.random());
        qb();
        T = new pb(U);
        T.h = b => {
            var c = Ta;
            c !== 0 && (b.jc = String(c), b.shv = Ua(c))
        };
        T.i = !0;
        window.document.readyState === "complete" ? sb() : U.g && M(window, "load", () => {
            sb()
        })
    })();
    var tb = function(a) {
        return b => {
            if (b == null || b == "") b = new a;
            else {
                b = JSON.parse(b);
                if (!Array.isArray(b)) throw Error("dnarr");
                b[F] |= 32;
                b = new a(b)
            }
            return b
        }
    }(class extends Fa {});

    function ub(a, b) {
        var c = e => {
            try {
                var f = JSON.parse(e.data)
            } catch (g) {
                return
            }!f || f.googMsgType !== "fullscreen" || b(f, e)
        };
        M(a, "message", c);
        var d = !1;
        return () => {
            var e = !1;
            d || (d = !0, e = Oa(a, "message", c));
            return e
        }
    }

    function V(a, b) {
        b.googMsgType = "fullscreen";
        a.postMessage(JSON.stringify(b), "*")
    };

    function vb(a, b, c, d) {
        a = {
            status: a
        };
        a.dismissSource = b;
        c != null && (a.payload = c);
        return d != null ? {
            eventType: "adClosed",
            result: a,
            closeAfterError: d
        } : {
            eventType: "adClosed",
            result: a
        }
    }

    function wb(a, b, c, d) {
        return ub(a, nb(d, 952, (e, f) => {
            if (f.source === b) {
                if (!("eventType" in e)) throw Error(`bad message ${JSON.stringify(e)}`);
                delete e.googMsgType;
                c(e)
            }
        }))
    }

    function xb(a, b) {
        V(a, b)
    };
    var yb = {
        ba: 0,
        ca: 4,
        X: 1,
        aa: 2,
        V: 3,
        R: 5,
        N: 6,
        Z: 7,
        Y: 8,
        L: 9,
        U: 10,
        M: 11,
        W: 12,
        S: 13,
        T: 14,
        O: 15,
        P: 16,
        J: 17,
        K: 18
    };
    class W {
        constructor() {
            this.promise = new Promise((a, b) => {
                this.resolve = a;
                this.reject = b
            })
        }
    };

    function Ab(a) {
        a.google_llp || (a.google_llp = {});
        a = a.google_llp;
        var b = a[10];
        if (b) return b;
        var {
            promise: c,
            resolve: d
        } = new W;
        b = {
            promise: c,
            resolve: d
        };
        return a[10] = b
    };

    function X() {
        this.j = this.j;
        this.g = this.g
    }
    X.prototype.j = !1;
    X.prototype.dispose = function() {
        if (!this.j && (this.j = !0, this.g))
            for (; this.g.length;) this.g.shift()()
    };
    X.prototype[Symbol.dispose] = function() {
        this.dispose()
    };

    function Bb(a, b) {
        a.j ? b() : (a.g || (a.g = []), a.g.push(b))
    };

    function Cb(a) {
        var b = wb(a.i, a.h, c => {
            switch (c.eventType) {
                case "visible":
                    Db(a);
                    break;
                case "backButton":
                    for (let d of a.D) mb(a.u, 1003, d);
                    break;
                case "triggerType":
                    c = c.payload ? .triggerType, typeof c === "number" && Object.values(yb).includes(c) && a.H.resolve(c)
            }
        }, a.u);
        Bb(a, b);
        Eb(a);
        Fb(a)
    }

    function Y(a, b) {
        Gb(a, "usg_err", {
            error: b,
            stack: Error().stack ? ? ""
        }, .25);
        throw Error(`FullscreenApi usage error: '${b}'. See ApiError in fullscreen/proto/enums.proto for details`);
    }

    function Z(a, b, c) {
        b.includes(a.state) ? a.state = c : (Gb(a, "st_err", {
            old_state: a.state,
            new_state: c
        }), I(a.config, 8) && (a.state = 6, V(a.h, {
            eventType: "adError"
        })))
    }

    function Gb(a, b, c, d = .01) {
        c.type = b;
        c.version = Ua(105);
        c.slot = K(a.config, 3);
        c.freq = d;
        c.qem = J(a.config, 7);
        ob(a.I, "fullscreen_adapter", c, !1, d)
    }

    function Eb(a) {
        var b = a.i;
        if (b.IntersectionObserver) {
            var c = new b.IntersectionObserver(nb(a.u, 954, (d, e) => {
                for (let f of d) f.intersectionRatio <= 0 || (Db(a), e.disconnect())
            }), {
                threshold: .1
            });
            c.observe(b.document.documentElement);
            Bb(a, () => {
                c.disconnect()
            })
        }
    }
    async function Fb(a) {
        var b = Hb(a),
            c = K(a.config, 5);
        switch (c) {
            case 0:
                throw Error("adReadyTrigger is not set");
            case 1:
                var d = Promise.resolve();
                break;
            case 2:
                d = Pa(b ? ma(b.contentDocument) : a.i.document);
                break;
            case 3:
                d = Qa(b ? ma(b.contentWindow) : a.i);
                break;
            default:
                va(c, void 0)
        }
        try {
            await d.then(() => Promise.all(a.B))
        } catch {
            a.notifyError("rejected adReadyDelay");
            return
        }
        xb(a.h, {
            eventType: "adReady",
            slotType: K(a.config, 3),
            qem: J(a.config, 7)
        });
        Wa();
        a.C = !0;
        Z(a, [1], 2)
    }

    function Hb(a) {
        var b = J(a.config, 2);
        return b === "" ? null : a.i.document.getElementById(b)
    }

    function Db(a) {
        a.l = !0;
        Z(a, [2], 3);
        a.G.resolve()
    }
    class Ib extends X {
        constructor(a, b, c, d) {
            super();
            this.config = a;
            this.i = b;
            this.u = c;
            this.I = d;
            this.G = new W;
            this.F = new W;
            this.H = new W;
            this.C = this.A = this.l = this.m = !1;
            this.o = void 0;
            this.D = [];
            this.B = [];
            this.state = 1;
            this.h = b.parent;
            this.v = K(a, 1) === 2
        }
        init() {
            if (this.v) Cb(this);
            else throw Error(`Can't handle environment ${K(this.config,1)}`);
        }
        delayAdReadyEvent(a) {
            if (this.v)(I(this.config, 8) ? this.state === 2 || this.state === 3 || this.state === 4 || this.state === 5 : this.C) && Y(this, 7), this.B.push(a);
            else throw Error("not implemented");
        }
        async waitForOnShow() {
            this.v && !this.m && Y(this, 2);
            return this.G.promise
        }
        enableCustomCloseButton() {
            this.m = !0
        }
        disableCustomCloseButton() {
            this.m = !1
        }
        closeAd(a) {
            (I(this.config, 8) ? this.state === 3 || this.state === 4 : this.l) || Y(this, 3);
            var b = 1;
            K(this.config, 3) === 2 && (b = (I(this.config, 8) ? this.state === 4 : this.A) ? 2 : 3);
            I(this.config, 9) ? V(this.h, vb(b, a, this.o, !0)) : V(this.h, vb(b, a, this.o));
            Z(this, [3, 4, 5], 5)
        }
        grantReward(a) {
            K(this.config, 3) !== 2 && Y(this, 4);
            (I(this.config, 8) ? this.state === 3 || this.state === 4 : this.l) || Y(this,
                5);
            (I(this.config, 8) ? this.state === 4 : this.A) && Y(this, 6);
            this.A = !0;
            Z(this, [3], 4);
            this.o = a;
            this.F.resolve()
        }
        async waitForGrantReward() {
            return this.F.promise
        }
        listenToBackButton(a) {
            this.D.push(a)
        }
        notifyError(a) {
            Gb(this, "ntf_err", {
                error: a
            }, .25);
            V(this.h, {
                eventType: "adError"
            })
        }
        getInterstitialTriggerType() {
            return this.H.promise
        }
    }

    function Jb(a, b, c) {
        Ab(a).resolve(b);
        c = J(c, 2);
        if (c !== "") {
            var d = a.document.getElementById(c);
            if (d == null) throw Error(`no creative iframe for id ${c}`);
            a = () => {
                Ab(d.contentWindow).resolve(b)
            };
            d.contentWindow == null ? d.addEventListener("load", a) : a()
        }
    };
    var Kb;
    Kb = nb(T, 953, a => {
        var b = window,
            c = T,
            d = S;
        a = tb(a.config);
        c = new Ib(a, b, c, d);
        I(a, 4) || c.init();
        Jb(b, I(a, 4) ? null : c, a)
    });
    Ta = 105;
    var Lb = Va(105, document.currentScript);
    if (Lb == null) throw Error("JSC not found 105");
    var Mb = {},
        Nb = Lb.attributes;
    for (let a = Nb.length - 1; a >= 0; a--) {
        let b = Nb[a].name;
        b.indexOf("data-jcp-") === 0 && (Mb[b.substring(9)] = Nb[a].value)
    }
    Kb(Mb);
}).call(this);