;
! function() {
    try {
        var e = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof global ? global : "undefined" != typeof window ? window : "undefined" != typeof self ? self : {},
            n = (new e.Error).stack;
        n && ((e._debugIds || (e._debugIds = {}))[n] = "15f3d805-4c64-94f3-942c-bcbb756163c9")
    } catch (e) {}
}();
(globalThis.TURBOPACK || (globalThis.TURBOPACK = [])).push(["object" == typeof document ? document.currentScript : void 0, 204941, (t, e, r) => {
    function n(t) {
        return function(e, r, n, i) {
            var o, s = i && "function" == typeof i.normalizer ? i.normalizer : a;
            r = s(r);
            for (var u = !1; !u;) ! function() {
                for (o in e) {
                    var t = s(o);
                    if (0 === r.indexOf(t)) {
                        var n = r.substr(t.length);
                        if ("." === n.charAt(0) || 0 === n.length) {
                            r = n.substr(1);
                            var i = e[o];
                            if (null == i || !r.length) {
                                u = !0;
                                return
                            }
                            e = i;
                            return
                        }
                    }
                }
                o = void 0, u = !0
            }();
            if (o) return null == e ? e : t(e, o, n)
        }
    }

    function i(t, e) {
        return t.hasOwnProperty(e) && delete t[e], t
    }

    function o(t, e, r) {
        return t.hasOwnProperty(e) && (t[e] = r), t
    }

    function a(t) {
        return t.replace(/[^a-zA-Z0-9\.]+/g, "").toLowerCase()
    }
    e.exports = n(function(t, e) {
        if (t.hasOwnProperty(e)) return t[e]
    }), e.exports.find = e.exports, e.exports.replace = function(t, e, r, i) {
        return n(o).call(this, t, e, r, i), t
    }, e.exports.del = function(t, e, r) {
        return n(i).call(this, t, e, null, r), t
    }
}, 7134, (t, e, r) => {
    "use strict";
    var n = t.e && t.e.__importDefault || function(t) {
        return t && t.__esModule ? t : {
            default: t
        }
    };
    Object.defineProperty(r, "__esModule", {
        value: !0
    });
    var i = n(t.r(204941));

    function o(t, e) {
        return function() {
            var r = this.traits(),
                n = this.properties ? this.properties() : {};
            return i.default(r, "address." + t) || i.default(r, t) || (e ? i.default(r, "address." + e) : null) || (e ? i.default(r, e) : null) || i.default(n, "address." + t) || i.default(n, t) || (e ? i.default(n, "address." + e) : null) || (e ? i.default(n, e) : null)
        }
    }
    r.default = function(t) {
        t.zip = o("postalCode", "zip"), t.country = o("country"), t.street = o("street"), t.state = o("state"), t.city = o("city"), t.region = o("region")
    }
}, 940453, (t, e, r) => {
    "use strict";
    Object.defineProperty(r, "__esModule", {
        value: !0
    }), r.clone = void 0, r.clone = function t(e) {
        if ("object" != typeof e) return e;
        if ("[object Object]" === Object.prototype.toString.call(e)) {
            var r = {};
            for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && (r[n] = t(e[n]));
            return r
        }
        return Array.isArray(e) ? e.map(t) : e
    }
}, 251475, (t, e, r) => {
    "use strict";
    Object.defineProperty(r, "__esModule", {
        value: !0
    });
    var n = {
        Salesforce: !0
    };
    r.default = function(t) {
        return !n[t]
    }
}, 726609, (t, e, r) => {
    "use strict";
    var n = /^(\d{4})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:([ T])(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;
    r.parse = function(t) {
        var e = [1, 5, 6, 7, 11, 12],
            r = n.exec(t),
            i = 0;
        if (!r) return new Date(t);
        for (var o, a = 0; o = e[a]; a++) r[o] = parseInt(r[o], 10) || 0;
        return r[2] = parseInt(r[2], 10) || 1, r[3] = parseInt(r[3], 10) || 1, r[2]--, r[8] = r[8] ? (r[8] + "00").substring(0, 3) : 0, " " === r[4] ? i = new Date().getTimezoneOffset() : "Z" !== r[9] && r[10] && (i = 60 * r[11] + r[12], "+" === r[10] && (i = 0 - i)), new Date(Date.UTC(r[1], r[2], r[3], r[5], r[6] + i, r[7], r[8]))
    }, r.is = function(t, e) {
        return "string" == typeof t && (!e || !1 !== /^\d{4}-\d{2}-\d{2}/.test(t)) && n.test(t)
    }
}, 93605, (t, e, r) => {
    "use strict";
    var n = /\d{13}/;
    r.is = function(t) {
        return n.test(t)
    }, r.parse = function(t) {
        return new Date(t = parseInt(t, 10))
    }
}, 608407, (t, e, r) => {
    "use strict";
    var n = /\d{10}/;
    r.is = function(t) {
        return n.test(t)
    }, r.parse = function(t) {
        return new Date(1e3 * parseInt(t, 10))
    }
}, 840616, (t, e, r) => {
    "use strict";
    var n = t.r(726609),
        i = t.r(93605),
        o = t.r(608407),
        a = Object.prototype.toString;
    e.exports = function(t) {
        var e;
        if ("[object Date]" === a.call(t)) return t;
        return "[object Number]" === a.call(t) ? new Date((e = t) < 315576e5 ? 1e3 * e : e) : n.is(t) ? n.parse(t) : i.is(t) ? i.parse(t) : o.is(t) ? o.parse(t) : new Date(t)
    }
}, 618462, (t, e, r) => {
    "use strict";
    var n = t.r(726609);
    e.exports = function t(e, r) {
        var i, o, a, s;
        if (void 0 === r && (r = !0), e && "object" == typeof e) {
            return i = e, o = r, Object.keys(i).forEach(function(e) {
                i[e] = t(i[e], o)
            }), i
        }
        if (Array.isArray(e)) {
            return a = e, s = r, a.forEach(function(e, r) {
                a[r] = t(e, s)
            }), a
        }
        return n.is(e, r) ? n.parse(e) : e
    }
}, 70636, (t, e, r) => {
    "use strict";
    var n = t.e && t.e.__importDefault || function(t) {
        return t && t.__esModule ? t : {
            default: t
        }
    };
    Object.defineProperty(r, "__esModule", {
        value: !0
    }), r.Facade = void 0;
    var i = n(t.r(7134)),
        o = t.r(940453),
        a = n(t.r(251475)),
        s = n(t.r(840616)),
        u = n(t.r(204941)),
        c = n(t.r(618462));

    function l(t, e) {
        e = e || {}, this.raw = o.clone(t), "clone" in e || (e.clone = !0), e.clone && (t = o.clone(t)), "traverse" in e || (e.traverse = !0), "timestamp" in t ? t.timestamp = s.default(t.timestamp) : t.timestamp = new Date, e.traverse && c.default(t), this.opts = e, this.obj = t
    }
    r.Facade = l;
    var p = l.prototype;

    function f(t) {
        return o.clone(t)
    }
    p.proxy = function(t) {
        var e = t.split("."),
            r = this[t = e.shift()] || this.obj[t];
        return r ? ("function" == typeof r && (r = r.call(this) || {}), 0 === e.length || (r = u.default(r, e.join("."))), this.opts.clone ? f(r) : r) : r
    }, p.field = function(t) {
        var e = this.obj[t];
        return this.opts.clone ? f(e) : e
    }, l.proxy = function(t) {
        return function() {
            return this.proxy(t)
        }
    }, l.field = function(t) {
        return function() {
            return this.field(t)
        }
    }, l.multi = function(t) {
        return function() {
            var e = this.proxy(t + "s");
            if (Array.isArray(e)) return e;
            var r = this.proxy(t);
            return r && (r = [this.opts.clone ? o.clone(r) : r]), r || []
        }
    }, l.one = function(t) {
        return function() {
            var e = this.proxy(t);
            if (e) return e;
            var r = this.proxy(t + "s");
            if (Array.isArray(r)) return r[0]
        }
    }, p.json = function() {
        var t = this.opts.clone ? o.clone(this.obj) : this.obj;
        return this.type && (t.type = this.type()), t
    }, p.rawEvent = function() {
        return this.raw
    }, p.options = function(t) {
        var e = this.obj.options || this.obj.context || {},
            r = this.opts.clone ? o.clone(e) : e;
        if (!t) return r;
        if (this.enabled(t)) {
            var n = this.integrations(),
                i = n[t] || u.default(n, t);
            return "object" != typeof i && (i = u.default(this.options(), t)), "object" == typeof i ? i : {}
        }
    }, p.context = p.options, p.enabled = function(t) {
        var e = this.proxy("options.providers.all");
        "boolean" != typeof e && (e = this.proxy("options.all")), "boolean" != typeof e && (e = this.proxy("integrations.all")), "boolean" != typeof e && (e = !0);
        var r = e && a.default(t),
            n = this.integrations();
        if (n.providers && n.providers.hasOwnProperty(t) && (r = n.providers[t]), n.hasOwnProperty(t)) {
            var i = n[t];
            r = "boolean" != typeof i || i
        }
        return !!r
    }, p.integrations = function() {
        return this.obj.integrations || this.proxy("options.providers") || this.options()
    }, p.active = function() {
        var t = this.proxy("options.active");
        return null == t && (t = !0), t
    }, p.anonymousId = function() {
        return this.field("anonymousId") || this.field("sessionId")
    }, p.sessionId = p.anonymousId, p.groupId = l.proxy("options.groupId"), p.traits = function(t) {
        var e = this.proxy("options.traits") || {},
            r = this.userId();
        for (var n in t = t || {}, r && (e.id = r), t)
            if (Object.prototype.hasOwnProperty.call(t, n)) {
                var i = null == this[n] ? this.proxy("options.traits." + n) : this[n]();
                if (null == i) continue;
                e[t[n]] = i, delete e[n]
            }
        return e
    }, p.library = function() {
        var t = this.proxy("options.library");
        return t ? "string" == typeof t ? {
            name: t,
            version: null
        } : t : {
            name: "unknown",
            version: null
        }
    }, p.device = function() {
        var t = this.proxy("context.device");
        ("object" != typeof t || null === t) && (t = {});
        var e = this.library().name;
        return t.type || (e.indexOf("ios") > -1 && (t.type = "ios"), e.indexOf("android") > -1 && (t.type = "android")), t
    }, p.userAgent = l.proxy("context.userAgent"), p.timezone = l.proxy("context.timezone"), p.timestamp = l.field("timestamp"), p.channel = l.field("channel"), p.ip = l.proxy("context.ip"), p.userId = l.field("userId"), i.default(p)
}, 737011, (t, e, r) => {
    "function" == typeof Object.create ? e.exports = function(t, e) {
        e && (t.super_ = e, t.prototype = Object.create(e.prototype, {
            constructor: {
                value: t,
                enumerable: !1,
                writable: !0,
                configurable: !0
            }
        }))
    } : e.exports = function(t, e) {
        if (e) {
            t.super_ = e;
            var r = function() {};
            r.prototype = e.prototype, t.prototype = new r, t.prototype.constructor = t
        }
    }
}, 668239, (t, e, r) => {
    "use strict";
    var n = t.e && t.e.__importDefault || function(t) {
        return t && t.__esModule ? t : {
            default: t
        }
    };
    Object.defineProperty(r, "__esModule", {
        value: !0
    }), r.Alias = void 0;
    var i = n(t.r(737011)),
        o = t.r(70636);

    function a(t, e) {
        o.Facade.call(this, t, e)
    }
    r.Alias = a, i.default(a, o.Facade), a.prototype.action = function() {
        return "alias"
    }, a.prototype.type = a.prototype.action, a.prototype.previousId = function() {
        return this.field("previousId") || this.field("from")
    }, a.prototype.from = a.prototype.previousId, a.prototype.userId = function() {
        return this.field("userId") || this.field("to")
    }, a.prototype.to = a.prototype.userId
}, 360718, (t, e, r) => {
    "use strict";
    Object.defineProperty(r, "__esModule", {
        value: !0
    });
    var n = /.+\@.+\..+/;
    r.default = function(t) {
        return n.test(t)
    }
}, 657764, (t, e, r) => {
    "use strict";
    var n = t.e && t.e.__importDefault || function(t) {
        return t && t.__esModule ? t : {
            default: t
        }
    };
    Object.defineProperty(r, "__esModule", {
        value: !0
    }), r.Group = void 0;
    var i = n(t.r(737011)),
        o = n(t.r(360718)),
        a = n(t.r(840616)),
        s = t.r(70636);

    function u(t, e) {
        s.Facade.call(this, t, e)
    }
    r.Group = u, i.default(u, s.Facade);
    var c = u.prototype;
    c.action = function() {
        return "group"
    }, c.type = c.action, c.groupId = s.Facade.field("groupId"), c.created = function() {
        var t = this.proxy("traits.createdAt") || this.proxy("traits.created") || this.proxy("properties.createdAt") || this.proxy("properties.created");
        if (t) return a.default(t)
    }, c.email = function() {
        var t = this.proxy("traits.email");
        if (t) return t;
        var e = this.groupId();
        if (o.default(e)) return e
    }, c.traits = function(t) {
        var e = this.properties(),
            r = this.groupId();
        for (var n in t = t || {}, r && (e.id = r), t)
            if (Object.prototype.hasOwnProperty.call(t, n)) {
                var i = null == this[n] ? this.proxy("traits." + n) : this[n]();
                if (null == i) continue;
                e[t[n]] = i, delete e[n]
            }
        return e
    }, c.name = s.Facade.proxy("traits.name"), c.industry = s.Facade.proxy("traits.industry"), c.employees = s.Facade.proxy("traits.employees"), c.properties = function() {
        return this.field("traits") || this.field("properties") || {}
    }
}, 828472, (t, e, r) => {
    "use strict";
    var n = t.e && t.e.__importDefault || function(t) {
        return t && t.__esModule ? t : {
            default: t
        }
    };
    Object.defineProperty(r, "__esModule", {
        value: !0
    }), r.Identify = void 0;
    var i = t.r(70636),
        o = n(t.r(204941)),
        a = n(t.r(737011)),
        s = n(t.r(360718)),
        u = n(t.r(840616)),
        c = function(t) {
            return t.trim()
        };

    function l(t, e) {
        i.Facade.call(this, t, e)
    }
    r.Identify = l, a.default(l, i.Facade);
    var p = l.prototype;
    p.action = function() {
        return "identify"
    }, p.type = p.action, p.traits = function(t) {
        var e = this.field("traits") || {},
            r = this.userId();
        for (var n in t = t || {}, r && (e.id = r), t) {
            var i = null == this[n] ? this.proxy("traits." + n) : this[n]();
            null != i && (e[t[n]] = i, n !== t[n] && delete e[n])
        }
        return e
    }, p.email = function() {
        var t = this.proxy("traits.email");
        if (t) return t;
        var e = this.userId();
        if (s.default(e)) return e
    }, p.created = function() {
        var t = this.proxy("traits.created") || this.proxy("traits.createdAt");
        if (t) return u.default(t)
    }, p.companyCreated = function() {
        var t = this.proxy("traits.company.created") || this.proxy("traits.company.createdAt");
        if (t) return u.default(t)
    }, p.companyName = function() {
        return this.proxy("traits.company.name")
    }, p.name = function() {
        var t = this.proxy("traits.name");
        if ("string" == typeof t) return c(t);
        var e = this.firstName(),
            r = this.lastName();
        if (e && r) return c(e + " " + r)
    }, p.firstName = function() {
        var t = this.proxy("traits.firstName");
        if ("string" == typeof t) return c(t);
        var e = this.proxy("traits.name");
        if ("string" == typeof e) return c(e).split(" ")[0]
    }, p.lastName = function() {
        var t = this.proxy("traits.lastName");
        if ("string" == typeof t) return c(t);
        var e = this.proxy("traits.name");
        if ("string" == typeof e) {
            var r = c(e).indexOf(" ");
            if (-1 !== r) return c(e.substr(r + 1))
        }
    }, p.uid = function() {
        return this.userId() || this.username() || this.email()
    }, p.description = function() {
        return this.proxy("traits.description") || this.proxy("traits.background")
    }, p.age = function() {
        var t = this.birthday(),
            e = o.default(this.traits(), "age");
        return null != e ? e : t instanceof Date ? new Date().getFullYear() - t.getFullYear() : void 0
    }, p.avatar = function() {
        var t = this.traits();
        return o.default(t, "avatar") || o.default(t, "photoUrl") || o.default(t, "avatarUrl")
    }, p.position = function() {
        var t = this.traits();
        return o.default(t, "position") || o.default(t, "jobTitle")
    }, p.username = i.Facade.proxy("traits.username"), p.website = i.Facade.one("traits.website"), p.websites = i.Facade.multi("traits.website"), p.phone = i.Facade.one("traits.phone"), p.phones = i.Facade.multi("traits.phone"), p.address = i.Facade.proxy("traits.address"), p.gender = i.Facade.proxy("traits.gender"), p.birthday = i.Facade.proxy("traits.birthday")
}, 962297, (t, e, r) => {
    "use strict";
    var n = t.e && t.e.__importDefault || function(t) {
        return t && t.__esModule ? t : {
            default: t
        }
    };
    Object.defineProperty(r, "__esModule", {
        value: !0
    }), r.Track = void 0;
    var i = n(t.r(737011)),
        o = t.r(70636),
        a = t.r(828472),
        s = n(t.r(360718)),
        u = n(t.r(204941));

    function c(t, e) {
        o.Facade.call(this, t, e)
    }
    r.Track = c, i.default(c, o.Facade);
    var l = c.prototype;
    l.action = function() {
        return "track"
    }, l.type = l.action, l.event = o.Facade.field("event"), l.value = o.Facade.proxy("properties.value"), l.category = o.Facade.proxy("properties.category"), l.id = o.Facade.proxy("properties.id"), l.productId = function() {
        return this.proxy("properties.product_id") || this.proxy("properties.productId")
    }, l.promotionId = function() {
        return this.proxy("properties.promotion_id") || this.proxy("properties.promotionId")
    }, l.cartId = function() {
        return this.proxy("properties.cart_id") || this.proxy("properties.cartId")
    }, l.checkoutId = function() {
        return this.proxy("properties.checkout_id") || this.proxy("properties.checkoutId")
    }, l.paymentId = function() {
        return this.proxy("properties.payment_id") || this.proxy("properties.paymentId")
    }, l.couponId = function() {
        return this.proxy("properties.coupon_id") || this.proxy("properties.couponId")
    }, l.wishlistId = function() {
        return this.proxy("properties.wishlist_id") || this.proxy("properties.wishlistId")
    }, l.reviewId = function() {
        return this.proxy("properties.review_id") || this.proxy("properties.reviewId")
    }, l.orderId = function() {
        return this.proxy("properties.id") || this.proxy("properties.order_id") || this.proxy("properties.orderId")
    }, l.sku = o.Facade.proxy("properties.sku"), l.tax = o.Facade.proxy("properties.tax"), l.name = o.Facade.proxy("properties.name"), l.price = o.Facade.proxy("properties.price"), l.total = o.Facade.proxy("properties.total"), l.repeat = o.Facade.proxy("properties.repeat"), l.coupon = o.Facade.proxy("properties.coupon"), l.shipping = o.Facade.proxy("properties.shipping"), l.discount = o.Facade.proxy("properties.discount"), l.shippingMethod = function() {
        return this.proxy("properties.shipping_method") || this.proxy("properties.shippingMethod")
    }, l.paymentMethod = function() {
        return this.proxy("properties.payment_method") || this.proxy("properties.paymentMethod")
    }, l.description = o.Facade.proxy("properties.description"), l.plan = o.Facade.proxy("properties.plan"), l.subtotal = function() {
        var t = u.default(this.properties(), "subtotal"),
            e = this.total() || this.revenue();
        if (t) return t;
        if (!e) return 0;
        if (this.total()) {
            var r = this.tax();
            r && (e -= r), (r = this.shipping()) && (e -= r), (r = this.discount()) && (e += r)
        }
        return e
    }, l.products = function() {
        var t = this.properties(),
            e = u.default(t, "products");
        return Array.isArray(e) ? e.filter(function(t) {
            return null !== t
        }) : []
    }, l.quantity = function() {
        return (this.obj.properties || {}).quantity || 1
    }, l.currency = function() {
        return (this.obj.properties || {}).currency || "USD"
    }, l.referrer = function() {
        return this.proxy("context.referrer.url") || this.proxy("context.page.referrer") || this.proxy("properties.referrer")
    }, l.query = o.Facade.proxy("options.query"), l.properties = function(t) {
        var e = this.field("properties") || {};
        for (var r in t = t || {})
            if (Object.prototype.hasOwnProperty.call(t, r)) {
                var n = null == this[r] ? this.proxy("properties." + r) : this[r]();
                if (null == n) continue;
                e[t[r]] = n, delete e[r]
            }
        return e
    }, l.username = function() {
        return this.proxy("traits.username") || this.proxy("properties.username") || this.userId() || this.sessionId()
    }, l.email = function() {
        var t = this.proxy("traits.email") || this.proxy("properties.email") || this.proxy("options.traits.email");
        if (t) return t;
        var e = this.userId();
        if (s.default(e)) return e
    }, l.revenue = function() {
        var t = this.proxy("properties.revenue"),
            e = this.event();
        return !t && e && e.match(/^[ _]?completed[ _]?order[ _]?|^[ _]?order[ _]?completed[ _]?$/i) && (t = this.proxy("properties.total")),
            function(t) {
                if (t && ("number" == typeof t || "string" == typeof t && !isNaN(t = parseFloat(t = t.replace(/\$/g, ""))))) return t
            }(t)
    }, l.cents = function() {
        var t = this.revenue();
        return "number" != typeof t ? this.value() || 0 : 100 * t
    }, l.identify = function() {
        var t = this.json();
        return t.traits = this.traits(), new a.Identify(t, this.opts)
    }
}, 951266, (t, e, r) => {
    "use strict";
    var n = t.e && t.e.__importDefault || function(t) {
        return t && t.__esModule ? t : {
            default: t
        }
    };
    Object.defineProperty(r, "__esModule", {
        value: !0
    }), r.Page = void 0;
    var i = n(t.r(737011)),
        o = t.r(70636),
        a = t.r(962297),
        s = n(t.r(360718));

    function u(t, e) {
        o.Facade.call(this, t, e)
    }
    r.Page = u, i.default(u, o.Facade);
    var c = u.prototype;
    c.action = function() {
        return "page"
    }, c.type = c.action, c.category = o.Facade.field("category"), c.name = o.Facade.field("name"), c.title = o.Facade.proxy("properties.title"), c.path = o.Facade.proxy("properties.path"), c.url = o.Facade.proxy("properties.url"), c.referrer = function() {
        return this.proxy("context.referrer.url") || this.proxy("context.page.referrer") || this.proxy("properties.referrer")
    }, c.properties = function(t) {
        var e = this.field("properties") || {},
            r = this.category(),
            n = this.name();
        for (var i in t = t || {}, r && (e.category = r), n && (e.name = n), t)
            if (Object.prototype.hasOwnProperty.call(t, i)) {
                var o = null == this[i] ? this.proxy("properties." + i) : this[i]();
                if (null == o) continue;
                e[t[i]] = o, i !== t[i] && delete e[i]
            }
        return e
    }, c.email = function() {
        var t = this.proxy("context.traits.email") || this.proxy("properties.email");
        if (t) return t;
        var e = this.userId();
        if (s.default(e)) return e
    }, c.fullName = function() {
        var t = this.category(),
            e = this.name();
        return e && t ? t + " " + e : e
    }, c.event = function(t) {
        return t ? "Viewed " + t + " Page" : "Loaded a Page"
    }, c.track = function(t) {
        var e = this.json();
        return e.event = this.event(t), e.timestamp = this.timestamp(), e.properties = this.properties(), new a.Track(e, this.opts)
    }
}, 250119, (t, e, r) => {
    "use strict";
    var n = t.e && t.e.__importDefault || function(t) {
        return t && t.__esModule ? t : {
            default: t
        }
    };
    Object.defineProperty(r, "__esModule", {
        value: !0
    }), r.Screen = void 0;
    var i = n(t.r(737011)),
        o = t.r(951266),
        a = t.r(962297);

    function s(t, e) {
        o.Page.call(this, t, e)
    }
    r.Screen = s, i.default(s, o.Page), s.prototype.action = function() {
        return "screen"
    }, s.prototype.type = s.prototype.action, s.prototype.event = function(t) {
        return t ? "Viewed " + t + " Screen" : "Loaded a Screen"
    }, s.prototype.track = function(t) {
        var e = this.json();
        return e.event = this.event(t), e.timestamp = this.timestamp(), e.properties = this.properties(), new a.Track(e, this.opts)
    }
}, 980791, (t, e, r) => {
    "use strict";
    var n = t.e && t.e.__importDefault || function(t) {
        return t && t.__esModule ? t : {
            default: t
        }
    };
    Object.defineProperty(r, "__esModule", {
        value: !0
    }), r.Delete = void 0;
    var i = n(t.r(737011)),
        o = t.r(70636);

    function a(t, e) {
        o.Facade.call(this, t, e)
    }
    r.Delete = a, i.default(a, o.Facade), a.prototype.type = function() {
        return "delete"
    }
}, 618675, (t, e, r) => {
    "use strict";
    var n = t.e && t.e.__assign || function() {
        return (n = Object.assign || function(t) {
            for (var e, r = 1, n = arguments.length; r < n; r++)
                for (var i in e = arguments[r]) Object.prototype.hasOwnProperty.call(e, i) && (t[i] = e[i]);
            return t
        }).apply(this, arguments)
    };
    Object.defineProperty(r, "__esModule", {
        value: !0
    }), r.Delete = r.Screen = r.Page = r.Track = r.Identify = r.Group = r.Alias = r.Facade = void 0;
    var i = t.r(70636);
    Object.defineProperty(r, "Facade", {
        enumerable: !0,
        get: function() {
            return i.Facade
        }
    });
    var o = t.r(668239);
    Object.defineProperty(r, "Alias", {
        enumerable: !0,
        get: function() {
            return o.Alias
        }
    });
    var a = t.r(657764);
    Object.defineProperty(r, "Group", {
        enumerable: !0,
        get: function() {
            return a.Group
        }
    });
    var s = t.r(828472);
    Object.defineProperty(r, "Identify", {
        enumerable: !0,
        get: function() {
            return s.Identify
        }
    });
    var u = t.r(962297);
    Object.defineProperty(r, "Track", {
        enumerable: !0,
        get: function() {
            return u.Track
        }
    });
    var c = t.r(951266);
    Object.defineProperty(r, "Page", {
        enumerable: !0,
        get: function() {
            return c.Page
        }
    });
    var l = t.r(250119);
    Object.defineProperty(r, "Screen", {
        enumerable: !0,
        get: function() {
            return l.Screen
        }
    });
    var p = t.r(980791);
    Object.defineProperty(r, "Delete", {
        enumerable: !0,
        get: function() {
            return p.Delete
        }
    }), r.default = n(n({}, i.Facade), {
        Alias: o.Alias,
        Group: a.Group,
        Identify: s.Identify,
        Track: u.Track,
        Page: c.Page,
        Screen: l.Screen,
        Delete: p.Delete
    })
}, 150722, 550907, 58022, 633027, 457923, 85052, t => {
    "use strict";
    for (var e, r = t.i(274466), n = 256, i = []; n--;) i[n] = (n + 256).toString(16).substring(1);

    function o() {
        var t, r = 0,
            o = "";
        if (!e || n + 16 > 256) {
            for (e = Array(r = 256); r--;) e[r] = 256 * Math.random() | 0;
            r = n = 0
        }
        for (; r < 16; r++) t = e[n + r], 6 == r ? o += i[15 & t | 64] : 8 == r ? o += i[63 & t | 128] : o += i[t], 1 & r && r > 1 && r < 11 && (o += "-");
        return n++, o
    }

    function a(t, e, r) {
        e.split && (e = e.split("."));
        for (var n, i, o = 0, a = e.length, s = t; o < a && "__proto__" != (i = "" + e[o++]) && "constructor" !== i && "prototype" !== i;) s = s[i] = o === a ? r : typeof(n = s[i]) == typeof e ? n : 0 * e[o] != 0 || ~("" + e[o]).indexOf(".") ? {} : []
    }
    t.s(["v4", 0, o], 550907), t.s(["dset", 0, a], 58022);
    var s = function() {
            function t() {
                this._logs = []
            }
            return t.prototype.log = function(t, e, r) {
                var n = new Date;
                this._logs.push({
                    level: t,
                    message: e,
                    time: n,
                    extras: r
                })
            }, Object.defineProperty(t.prototype, "logs", {
                get: function() {
                    return this._logs
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.flush = function() {
                if (this.logs.length > 1) {
                    var t = this._logs.reduce(function(t, e) {
                        var n, i, o, a = (0, r.__assign)((0, r.__assign)({}, e), {
                            json: JSON.stringify(e.extras, null, " "),
                            extras: e.extras
                        });
                        delete a.time;
                        var s = null != (o = null == (i = e.time) ? void 0 : i.toISOString()) ? o : "";
                        return t[s] && (s = "".concat(s, "-").concat(Math.random())), (0, r.__assign)((0, r.__assign)({}, t), ((n = {})[s] = a, n))
                    }, {});
                    console.table ? console.table(t) : console.log(t)
                } else this.logs.forEach(function(t) {
                    var e = t.level,
                        r = t.message,
                        n = t.extras;
                    "info" === e || "debug" === e ? console.log(r, null != n ? n : "") : console[e](r, null != n ? n : "")
                });
                this._logs = []
            }, t
        }(),
        u = function() {
            function t() {
                this.metrics = []
            }
            return t.prototype.increment = function(t, e, r) {
                void 0 === e && (e = 1), this.metrics.push({
                    metric: t,
                    value: e,
                    tags: null != r ? r : [],
                    type: "counter",
                    timestamp: Date.now()
                })
            }, t.prototype.gauge = function(t, e, r) {
                this.metrics.push({
                    metric: t,
                    value: e,
                    tags: null != r ? r : [],
                    type: "gauge",
                    timestamp: Date.now()
                })
            }, t.prototype.flush = function() {
                var t = this.metrics.map(function(t) {
                    return (0, r.__assign)((0, r.__assign)({}, t), {
                        tags: t.tags.join(",")
                    })
                });
                console.table ? console.table(t) : console.log(t), this.metrics = []
            }, t.prototype.serialize = function() {
                return this.metrics.map(function(t) {
                    return {
                        m: t.metric,
                        v: t.value,
                        t: t.tags,
                        k: ({
                            gauge: "g",
                            counter: "c"
                        })[t.type],
                        e: t.timestamp
                    }
                })
            }, t
        }(),
        c = function(t) {
            function e() {
                return null !== t && t.apply(this, arguments) || this
            }
            return (0, r.__extends)(e, t), e.prototype.gauge = function() {
                for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]
            }, e.prototype.increment = function() {
                for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]
            }, e.prototype.flush = function() {
                for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e]
            }, e.prototype.serialize = function() {
                for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
                return []
            }, e
        }(u);
    t.s(["CoreStats", 0, u, "NullStats", 0, c], 633027);
    var l = function(t) {
            var e, r, n;
            this.retry = null == (e = t.retry) || e, this.type = null != (r = t.type) ? r : "plugin Error", this.reason = null != (n = t.reason) ? n : ""
        },
        p = function() {
            function t(t, e, r, n) {
                void 0 === e && (e = o()), void 0 === r && (r = new c), void 0 === n && (n = new s), this.attempts = 0, this.event = t, this._id = e, this.logger = n, this.stats = r
            }
            return t.system = function() {}, t.prototype.isSame = function(t) {
                return t.id === this.id
            }, t.prototype.cancel = function(t) {
                if (t) throw t;
                throw new l({
                    reason: "Context Cancel"
                })
            }, t.prototype.log = function(t, e, r) {
                this.logger.log(t, e, r)
            }, Object.defineProperty(t.prototype, "id", {
                get: function() {
                    return this._id
                },
                enumerable: !1,
                configurable: !0
            }), t.prototype.updateEvent = function(t, e) {
                var r;
                if ("integrations" === t.split(".")[0]) {
                    var n = t.split(".")[1];
                    if ((null == (r = this.event.integrations) ? void 0 : r[n]) === !1) return this.event
                }
                return a(this.event, t, e), this.event
            }, t.prototype.failedDelivery = function() {
                return this._failedDelivery
            }, t.prototype.setFailedDelivery = function(t) {
                this._failedDelivery = t
            }, t.prototype.logs = function() {
                return this.logger.logs
            }, t.prototype.flush = function() {
                this.logger.flush(), this.stats.flush()
            }, t.prototype.toJSON = function() {
                return {
                    id: this._id,
                    event: this.event,
                    logs: this.logger.logs,
                    metrics: this.stats.metrics
                }
            }, t
        }();
    t.s(["ContextCancelation", 0, l, "CoreContext", 0, p], 457923);
    var f = t.i(618675);

    function d(t, e) {
        var r = new f.Facade(t, e);
        return "track" === t.type && (r = new f.Track(t, e)), "identify" === t.type && (r = new f.Identify(t, e)), "page" === t.type && (r = new f.Page(t, e)), "alias" === t.type && (r = new f.Alias(t, e)), "group" === t.type && (r = new f.Group(t, e)), "screen" === t.type && (r = new f.Screen(t, e)), Object.defineProperty(r, "obj", {
            value: t,
            writable: !0
        }), r
    }
    t.s(["toFacade", 0, d], 85052), t.s(["applyDestinationMiddleware", 0, function(t, e, n) {
        return (0, r.__awaiter)(this, void 0, void 0, function() {
            var i, o, a, s, u;
            return (0, r.__generator)(this, function(c) {
                switch (c.label) {
                    case 0:
                        i = d(e, {
                            clone: !0,
                            traverse: !1
                        }).rawEvent(), o = 0, a = n, c.label = 1;
                    case 1:
                        if (!(o < a.length)) return [3, 4];
                        return s = a[o], [4, function(e, n) {
                            return (0, r.__awaiter)(this, void 0, void 0, function() {
                                var i, o, a;
                                return (0, r.__generator)(this, function(s) {
                                    switch (s.label) {
                                        case 0:
                                            return i = !1, o = null, [4, n({
                                                payload: d(e, {
                                                    clone: !0,
                                                    traverse: !1
                                                }),
                                                integration: t,
                                                next: function(t) {
                                                    i = !0, null === t && (o = null), t && (o = t.obj)
                                                }
                                            })];
                                        case 1:
                                            return s.sent(), i || null === o || (o.integrations = (0, r.__assign)((0, r.__assign)({}, e.integrations), ((a = {})[t] = !1, a))), [2, o]
                                    }
                                })
                            })
                        }(i, s)];
                    case 2:
                        if (null === (u = c.sent())) return [2, null];
                        i = u, c.label = 3;
                    case 3:
                        return o++, [3, 1];
                    case 4:
                        return [2, i]
                }
            })
        })
    }, "sourceMiddlewarePlugin", 0, function(t, e) {
        function n(n) {
            return (0, r.__awaiter)(this, void 0, void 0, function() {
                var i;
                return (0, r.__generator)(this, function(r) {
                    switch (r.label) {
                        case 0:
                            return i = !1, [4, t({
                                payload: d(n.event, {
                                    clone: !0,
                                    traverse: !1
                                }),
                                integrations: null != e ? e : {},
                                next: function(t) {
                                    i = !0, t && (n.event = t.obj)
                                }
                            })];
                        case 1:
                            if (r.sent(), !i) throw new l({
                                retry: !1,
                                type: "middleware_cancellation",
                                reason: "Middleware `next` function skipped"
                            });
                            return [2, n]
                    }
                })
            })
        }
        return {
            name: "Source Middleware ".concat(t.name),
            type: "before",
            version: "0.1.0",
            isLoaded: function() {
                return !0
            },
            load: function(t) {
                return Promise.resolve(t)
            },
            track: n,
            page: n,
            identify: n,
            alias: n,
            group: n
        }
    }], 150722)
}, 846406, t => {
    "use strict";

    function e() {
        return "u" > typeof window
    }
    t.s(["isBrowser", 0, e, "isServer", 0, function() {
        return !e()
    }])
}, 605344, 844722, t => {
    "use strict";
    var e, r = "analytics";

    function n() {
        return window[r]
    }
    t.s(["getGlobalAnalytics", 0, n, "setGlobalAnalytics", 0, function(t) {
        window[r] = t
    }, "setGlobalAnalyticsKey", 0, function(t) {
        r = t
    }], 844722);
    var i = /(https?:\/\/[\w.\-:]+)\/(?:analytics\.js\/v1|v1\/analytics-js\/snippet)\/[\w\-:]+\/(analytics\.(?:min)\.js)/,
        o = function() {
            for (var t, e, r, n = Array.prototype.slice.call(document.querySelectorAll("script")), o = 0; o < n.length; o++) {
                var a = n[o],
                    s = null != (t = a.getAttribute("src")) ? t : "",
                    u = i.exec(s);
                if (u && u[1] && (r = u[1]), (null == (e = a.dataset) ? void 0 : e.globalCustomerioAnalyticsKey) != null) break
            }
            return r
        },
        a = function() {
            var t;
            return null != e ? e : null == (t = n()) ? void 0 : t._cdn
        },
        s = function() {
            var t = a();
            if (t) return t;
            var e = o();
            return e || "https://cdp.customer.io"
        };
    t.s(["getCDN", 0, s, "getNextIntegrationsURL", 0, function() {
        var t = s();
        return "".concat(t, "/v1/analytics-js/actions")
    }, "setGlobalCDNUrl", 0, function(t) {
        var r = n();
        r && (r._cdn = t), e = t
    }], 605344)
}, 395936, t => {
    "use strict";

    function e(t) {
        return Array.prototype.slice.call(window.document.querySelectorAll("script")).find(function(e) {
            return e.src === t
        })
    }
    t.s(["loadScript", 0, function(t, r) {
        var n = e(t);
        if (void 0 !== n) {
            var i = null == n ? void 0 : n.getAttribute("status");
            if ("loaded" === i) return Promise.resolve(n);
            if ("loading" === i) return new Promise(function(t, e) {
                n.addEventListener("load", function() {
                    return t(n)
                }), n.addEventListener("error", function(t) {
                    return e(t)
                })
            })
        }
        return new Promise(function(e, n) {
            var i, o = window.document.createElement("script");
            o.type = "text/javascript", o.src = t, o.async = !0, o.setAttribute("status", "loading");
            for (var a = 0, s = Object.entries(null != r ? r : {}); a < s.length; a++) {
                var u = s[a],
                    c = u[0],
                    l = u[1];
                o.setAttribute(c, l)
            }
            o.onload = function() {
                o.onerror = o.onload = null, o.setAttribute("status", "loaded"), e(o)
            }, o.onerror = function() {
                o.onerror = o.onload = null, o.setAttribute("status", "error"), n(Error("Failed to load ".concat(t)))
            };
            var p = window.document.getElementsByTagName("script")[0];
            null == (i = p.parentElement) || i.insertBefore(o, p)
        })
    }, "unloadScript", 0, function(t) {
        var r = e(t);
        return void 0 !== r && r.remove(), Promise.resolve()
    }])
}, 357503, t => {
    "use strict";
    t.s(["gracefulDecodeURIComponent", 0, function(t) {
        try {
            return decodeURIComponent(t.replace(/\+/g, " "))
        } catch (e) {
            return t
        }
    }])
}, 616566, (t, e, r) => {
    "use strict";
    e.exports = self.fetch.bind(self), e.exports.default = e.exports
}, 692143, 372239, 110229, 798035, 373830, 950523, 287811, 216129, 811471, t => {
    "use strict";
    var e, r, n = t.i(846406);

    function i() {
        return !(0, n.isBrowser)() || window.navigator.onLine
    }
    t.s(["isOffline", 0, function() {
        return !i()
    }, "isOnline", 0, i], 692143);
    var o = t.i(274466),
        a = t.i(457923),
        s = t.i(633027),
        u = t.i(616566),
        c = function() {
            return "u" > typeof globalThis ? globalThis : "u" > typeof self ? self : "u" > typeof window ? window : t.g
        };
    t.s(["getGlobal", 0, c], 372239);
    var l = function() {
        for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
        var r = c();
        return (r && r.fetch || u.default).apply(void 0, t)
    };
    t.s(["fetch", 0, l], 110229);
    var p = "0.4.13";

    function f(t) {
        for (var e = 1; e < arguments.length; e++) {
            var r = arguments[e];
            for (var n in r) t[n] = r[n]
        }
        return t
    }
    t.s(["version", 0, p], 798035);
    var d = function t(e, r) {
            function n(t, n, i) {
                if ("u" > typeof document) {
                    "number" == typeof(i = f({}, r, i)).expires && (i.expires = new Date(Date.now() + 864e5 * i.expires)), i.expires && (i.expires = i.expires.toUTCString()), t = encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g, decodeURIComponent).replace(/[()]/g, escape);
                    var o = "";
                    for (var a in i) i[a] && (o += "; " + a, !0 !== i[a] && (o += "=" + i[a].split(";")[0]));
                    return document.cookie = t + "=" + e.write(n, t) + o
                }
            }
            return Object.create({
                set: n,
                get: function(t) {
                    if ("u" > typeof document && (!arguments.length || t)) {
                        for (var r = document.cookie ? document.cookie.split("; ") : [], n = {}, i = 0; i < r.length; i++) {
                            var o = r[i].split("="),
                                a = o.slice(1).join("=");
                            try {
                                var s = decodeURIComponent(o[0]);
                                if (n[s] = e.read(a, s), t === s) break
                            } catch (t) {}
                        }
                        return t ? n[t] : n
                    }
                },
                remove: function(t, e) {
                    n(t, "", f({}, e, {
                        expires: -1
                    }))
                },
                withAttributes: function(e) {
                    return t(this.converter, f({}, this.attributes, e))
                },
                withConverter: function(e) {
                    return t(f({}, this.converter, e), this.attributes)
                }
            }, {
                attributes: {
                    value: Object.freeze(r)
                },
                converter: {
                    value: Object.freeze(e)
                }
            })
        }({
            read: function(t) {
                return '"' === t[0] && (t = t.slice(1, -1)), t.replace(/(%[\dA-F]{2})+/gi, decodeURIComponent)
            },
            write: function(t) {
                return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, decodeURIComponent)
            }
        }, {
            path: "/"
        }),
        h = t.i(357503);

    function y(t) {
        var e = function(t) {
            try {
                return new URL(t)
            } catch (t) {
                return
            }
        }(t);
        if (e)
            for (var r = function(t) {
                    var e = t.hostname.split("."),
                        r = e[e.length - 1],
                        n = [];
                    if (4 === e.length && parseInt(r, 10) > 0 || e.length <= 1) return n;
                    for (var i = e.length - 2; i >= 0; --i) n.push(e.slice(i).join("."));
                    return n
                }(e), n = 0; n < r.length; ++n) {
                var i = "__tld__",
                    o = r[n],
                    a = {
                        domain: "." + o
                    };
                try {
                    if (d.set(i, "1", a), d.get(i)) return d.remove(i, a), o
                } catch (t) {
                    return
                }
            }
    }
    var v = t.i(550907);

    function g(t) {
        for (var e = t.constructor.prototype, r = 0, n = Object.getOwnPropertyNames(e); r < n.length; r++) {
            var i = n[r];
            if ("constructor" !== i) {
                var o = Object.getOwnPropertyDescriptor(t.constructor.prototype, i);
                o && "function" == typeof o.value && (t[i] = t[i].bind(t))
            }
        }
        return t
    }
    t.s(["default", 0, g], 373830);
    var m = {
            persist: !0,
            cookie: {
                key: "ajs_user_id",
                oldKey: "ajs_user"
            },
            localStorage: {
                key: "ajs_user_traits"
            }
        },
        _ = function() {
            function t() {
                this.cache = {}
            }
            return t.prototype.get = function(t) {
                return this.cache[t]
            }, t.prototype.set = function(t, e) {
                this.cache[t] = e
            }, t.prototype.remove = function(t) {
                delete this.cache[t]
            }, Object.defineProperty(t.prototype, "type", {
                get: function() {
                    return "memory"
                },
                enumerable: !1,
                configurable: !0
            }), t
        }(),
        b = function(t) {
            function e(r) {
                void 0 === r && (r = e.defaults);
                var n = t.call(this) || this;
                return n.options = (0, o.__assign)((0, o.__assign)({}, e.defaults), r), n
            }
            return (0, o.__extends)(e, t), e.available = function() {
                var t = window.navigator.cookieEnabled;
                return t || (d.set("ajs:cookies", "test"), t = document.cookie.includes("ajs:cookies"), d.remove("ajs:cookies")), t
            }, Object.defineProperty(e, "defaults", {
                get: function() {
                    return {
                        maxage: 365,
                        domain: y(window.location.href),
                        path: "/",
                        sameSite: "Lax"
                    }
                },
                enumerable: !1,
                configurable: !0
            }), e.prototype.opts = function() {
                return {
                    sameSite: this.options.sameSite,
                    expires: this.options.maxage,
                    domain: this.options.domain,
                    path: this.options.path,
                    secure: this.options.secure
                }
            }, e.prototype.get = function(t) {
                try {
                    var e = d.get(t);
                    if (!e) return null;
                    try {
                        return JSON.parse(e)
                    } catch (t) {
                        return e
                    }
                } catch (t) {
                    return null
                }
            }, e.prototype.set = function(t, e) {
                "string" == typeof e ? d.set(t, e, this.opts()) : null === e ? d.remove(t, this.opts()) : d.set(t, JSON.stringify(e), this.opts())
            }, e.prototype.remove = function(t) {
                return d.remove(t, this.opts())
            }, Object.defineProperty(e.prototype, "type", {
                get: function() {
                    return "cookie"
                },
                enumerable: !1,
                configurable: !0
            }), e
        }(_),
        x = function(t, e) {
            console.warn("Unable to access ".concat(t, ", localStorage may be ").concat(e))
        },
        w = function(t) {
            function e() {
                return null !== t && t.apply(this, arguments) || this
            }
            return (0, o.__extends)(e, t), e.available = function() {
                var t = "test";
                try {
                    return localStorage.setItem(t, t), localStorage.removeItem(t), !0
                } catch (t) {
                    return !1
                }
            }, e.prototype.get = function(t) {
                try {
                    var e = localStorage.getItem(t);
                    if (null === e) return null;
                    try {
                        return JSON.parse(e)
                    } catch (t) {
                        return e
                    }
                } catch (e) {
                    return x(t, "unavailable"), null
                }
            }, e.prototype.set = function(t, e) {
                try {
                    localStorage.setItem(t, JSON.stringify(e))
                } catch (e) {
                    x(t, "full")
                }
            }, e.prototype.remove = function(t) {
                try {
                    return localStorage.removeItem(t)
                } catch (e) {
                    x(t, "unavailable")
                }
            }, Object.defineProperty(e.prototype, "type", {
                get: function() {
                    return "localStorage"
                },
                enumerable: !1,
                configurable: !0
            }), e
        }(_),
        j = function() {
            function t(t, e) {
                this.storageOptions = e, this.enabledStores = t
            }
            return t.prototype.getStores = function(t) {
                var e = this,
                    r = [];
                return this.enabledStores.filter(function(e) {
                    return !t || (null == t ? void 0 : t.includes(e))
                }).forEach(function(t) {
                    var n = e.storageOptions[t];
                    void 0 !== n && r.push(n)
                }), r
            }, t.prototype.getAndSync = function(t, e) {
                var r = this.get(t, e),
                    n = "number" == typeof r ? r.toString() : r;
                return this.set(t, n, e), n
            }, t.prototype.get = function(t, e) {
                for (var r = null, n = 0, i = this.getStores(e); n < i.length; n++)
                    if (r = i[n].get(t)) return r;
                return null
            }, t.prototype.set = function(t, e, r) {
                for (var n = 0, i = this.getStores(r); n < i.length; n++) i[n].set(t, e)
            }, t.prototype.clear = function(t, e) {
                for (var r = 0, n = this.getStores(e); r < n.length; r++) n[r].remove(t)
            }, t
        }();

    function S(t) {
        return {
            cookie: b.available() ? new b(t) : void 0,
            localStorage: w.available() ? new w : void 0,
            memory: new _
        }
    }
    var I = function() {
            function t(t, e) {
                void 0 === t && (t = m);
                var r, n, i, o, a = this;
                this.options = {}, this.id = function(t) {
                    if (a.options.disable) return null;
                    var e = a.identityStore.getAndSync(a.idKey);
                    void 0 !== t && (a.identityStore.set(a.idKey, t), t !== e && null !== e && null !== t && a.anonymousId(null));
                    var r = a.identityStore.getAndSync(a.idKey);
                    if (r) return r;
                    var n = a.legacyUserStore.get(m.cookie.oldKey);
                    return n ? "object" == typeof n ? n.id : n : null
                }, this.anonymousId = function(t) {
                    var e, r;
                    if (a.options.disable) return null;
                    if (void 0 === t) {
                        var n = null != (e = a.identityStore.getAndSync(a.anonKey)) ? e : null == (r = a.legacySIO()) ? void 0 : r[0];
                        if (n) return n
                    }
                    return null === t ? a.identityStore.set(a.anonKey, null) : a.identityStore.set(a.anonKey, null != t ? t : (0, v.v4)()), a.identityStore.getAndSync(a.anonKey)
                }, this.traits = function(t) {
                    var e;
                    if (!a.options.disable) return null === t && (t = {}), t && a.traitsStore.set(a.traitsKey, null != t ? t : {}), null != (e = a.traitsStore.get(a.traitsKey)) ? e : {}
                }, this.options = t, this.cookieOptions = e, this.idKey = null != (n = null == (r = t.cookie) ? void 0 : r.key) ? n : m.cookie.key, this.traitsKey = null != (o = null == (i = t.localStorage) ? void 0 : i.key) ? o : m.localStorage.key, this.anonKey = "ajs_anonymous_id";
                var s = !0 === t.disable,
                    u = !1 !== t.persist,
                    c = s ? [] : u ? ["localStorage", "cookie", "memory"] : ["memory"],
                    l = S(e);
                t.localStorageFallbackDisabled && (c = c.filter(function(t) {
                    return "localStorage" !== t
                })), this.identityStore = new j(c, l), this.legacyUserStore = new j(c.filter(function(t) {
                    return "localStorage" !== t && "memory" !== t
                }), l), this.traitsStore = new j(c.filter(function(t) {
                    return "cookie" !== t
                }), l);
                var p = this.legacyUserStore.get(m.cookie.oldKey);
                p && "object" == typeof p && (p.id && this.id(p.id), p.traits && this.traits(p.traits)), g(this)
            }
            return t.prototype.legacySIO = function() {
                var t = this.legacyUserStore.get("_sio");
                if (!t) return null;
                var e = t.split("----");
                return [e[0], e[1]]
            }, t.prototype.identify = function(t, e) {
                if (!this.options.disable) {
                    e = null != e ? e : {};
                    var r = this.id();
                    (null === r || r === t) && (e = (0, o.__assign)((0, o.__assign)({}, this.traits()), e)), t && this.id(t), this.traits(e)
                }
            }, t.prototype.logout = function() {
                this.anonymousId(null), this.id(null), this.traits({})
            }, t.prototype.reset = function() {
                this.logout(), this.identityStore.clear(this.idKey), this.identityStore.clear(this.anonKey), this.traitsStore.clear(this.traitsKey)
            }, t.prototype.load = function() {
                return new t(this.options, this.cookieOptions)
            }, t.prototype.save = function() {
                return !0
            }, t.defaults = m, t
        }(),
        O = {
            persist: !0,
            cookie: {
                key: "ajs_group_id"
            },
            localStorage: {
                key: "ajs_group_properties"
            }
        },
        A = function(t) {
            function e(e, r) {
                void 0 === e && (e = O);
                var n = t.call(this, e, r) || this;
                return n.anonymousId = function(t) {}, g(n), n
            }
            return (0, o.__extends)(e, t), e
        }(I);

    function P() {
        return "npm"
    }
    t.s(["Cookie", 0, b, "Group", 0, A, "LocalStorage", 0, w, "UniversalStorage", 0, j, "User", 0, I, "getAvailableStorageOptions", 0, S], 950523), t.s(["getVersionType", 0, P, "normalize", 0, function(t, r, n, i) {
        var a, s, u, c, l, f, v, g, m = t.user(),
            _ = window.location.search;
        r.context = null != (f = null != (l = r.context) ? l : r.options) ? f : {};
        var b = r.context;
        delete r.options, r.writeKey = null == n ? void 0 : n.apiKey, b.userAgent = window.navigator.userAgent;
        var x = navigator.userLanguage || navigator.language;
        void 0 === b.locale && void 0 !== x && (b.locale = x), b.library || ("web" === P() ? b.library = {
            name: "analytics.js",
            version: "next-".concat(p)
        } : b.library = {
            name: "analytics.js",
            version: "npm:next-".concat(p)
        }), _ && !b.campaign && ((a = _).startsWith("?") && (a = a.substring(1)), b.campaign = (a = a.replace(/\?/g, "&")).split("&").reduce(function(t, e) {
            var r = e.split("="),
                n = r[0],
                i = r[1];
            if (n.includes("utm_") && n.length > 4) {
                var o = n.substr(4);
                "campaign" === o && (o = "name"), t[o] = (0, h.gracefulDecodeURIComponent)(void 0 === i ? "" : i)
            }
            return t
        }, {})), u = (s = new j(null != (v = t.options.disableClientPersistence) && v ? [] : ["cookie"], S(function() {
            if (e) return e;
            var t = y(window.location.href);
            return e = {
                expires: 31536e6,
                secure: !1,
                path: "/"
            }, t && (e.domain = t), e
        }()))).get("s:context.referrer"), (c = null != (c = function(t) {
            var e = {
                btid: "dataxu",
                urid: "millennial-media"
            };
            t.startsWith("?") && (t = t.substring(1));
            for (var r = (t = t.replace(/\?/g, "&")).split("&"), n = 0; n < r.length; n++) {
                var i = r[n].split("="),
                    o = i[0],
                    a = i[1];
                if (e[o]) return {
                    id: a,
                    type: e[o]
                }
            }
        }(_)) ? c : u) && (b && (b.referrer = (0, o.__assign)((0, o.__assign)({}, b.referrer), c)), s.set("s:context.referrer", c)), r.userId = r.userId || m.id(), r.anonymousId = r.anonymousId || m.anonymousId(), r.sentAt = new Date;
        var w = t.queue.failedInitializations || [];
        w.length > 0 && (r._metadata = {
            failedInitializations: w
        });
        var I = [],
            O = [];
        for (var A in i) {
            var k = i[A];
            "Customer.io Data Pipelines" === A && I.push(A), "bundled" === k.bundlingStatus && I.push(A), "unbundled" === k.bundlingStatus && O.push(A)
        }
        for (var F = 0, D = (null == n ? void 0 : n.unbundledIntegrations) || []; F < D.length; F++) {
            var C = D[F];
            O.includes(C) || O.push(C)
        }
        var M = null != (g = null == n ? void 0 : n.maybeBundledConfigIds) ? g : {},
            T = [];
        I.sort().forEach(function(t) {
            var e;
            (null != (e = M[t]) ? e : []).forEach(function(t) {
                T.push(t)
            })
        }), (null == n ? void 0 : n.addBundledMetadata) !== !1 && (r._metadata = (0, o.__assign)((0, o.__assign)({}, r._metadata), {
            bundled: I.sort(),
            unbundled: O.sort(),
            bundledIds: T
        }));
        var N = function() {
            var t = d.get("_ga");
            if (t && t.startsWith("amp")) return t
        }();
        return N && (b.amp = {
            id: N
        }), r
    }], 287811);
    var k = function(t, e, r) {
        var n = e.reduce(function(t, e) {
            var r = e.split(":"),
                n = r[0],
                i = r[1];
            return t[n] = i, t
        }, {});
        return {
            type: "Counter",
            metric: t,
            value: 1,
            tags: (0, o.__assign)((0, o.__assign)({}, n), {
                library: "analytics.js",
                library_version: "web" === r ? "next-".concat(p) : "npm:next-".concat(p)
            })
        }
    };

    function F(t) {
        console.error("Error sending performance metrics", t)
    }
    var D = function() {
            function t(t) {
                var e, r, n, i, o = this;
                if (this.host = null != (e = null == t ? void 0 : t.host) ? e : "cdp.customer.io/v1", this.sampleRate = null != (r = null == t ? void 0 : t.sampleRate) ? r : 1, this.flushTimer = null != (n = null == t ? void 0 : t.flushTimer) ? n : 3e4, this.maxQueueSize = null != (i = null == t ? void 0 : t.maxQueueSize) ? i : 20, this.queue = [], this.sampleRate > 0) {
                    var a = !1,
                        s = function() {
                            a || (a = !0, o.flush().catch(F), a = !1, setTimeout(s, o.flushTimer))
                        };
                    s()
                }
            }
            return t.prototype.increment = function(t, e) {
                if (!(!t.includes("analytics_js.") || 0 === e.length || Math.random() > this.sampleRate) && !(this.queue.length >= this.maxQueueSize)) {
                    var r = k(t, e, P());
                    this.queue.push(r), t.includes("error") && this.flush().catch(F)
                }
            }, t.prototype.flush = function() {
                return (0, o.__awaiter)(this, void 0, void 0, function() {
                    var t = this;
                    return (0, o.__generator)(this, function(e) {
                        switch (e.label) {
                            case 0:
                                if (this.queue.length <= 0) return [2];
                                return [4, this.send().catch(function(e) {
                                    F(e), t.sampleRate = 0
                                })];
                            case 1:
                                return e.sent(), [2]
                        }
                    })
                })
            }, t.prototype.send = function() {
                return (0, o.__awaiter)(this, void 0, void 0, function() {
                    var t, e;
                    return (0, o.__generator)(this, function(r) {
                        return t = {
                            series: this.queue
                        }, this.queue = [], e = {
                            "Content-Type": "text/plain"
                        }, [2, l("https://".concat(this.host, "/m"), {
                            headers: e,
                            body: JSON.stringify(t),
                            method: "POST"
                        })]
                    })
                })
            }, t
        }(),
        C = function(t) {
            function e() {
                return null !== t && t.apply(this, arguments) || this
            }
            return (0, o.__extends)(e, t), e.initRemoteMetrics = function(t) {
                r = new D(t)
            }, e.prototype.increment = function(e, n, i) {
                t.prototype.increment.call(this, e, n, i), null == r || r.increment(e, null != i ? i : [])
            }, e
        }(s.CoreStats);
    t.s(["Stats", 0, C], 216129);
    var M = function(t) {
        function e(e, r) {
            return t.call(this, e, r, new C) || this
        }
        return (0, o.__extends)(e, t), e.system = function() {
            return new this({
                type: "track",
                event: "system"
            })
        }, e
    }(a.CoreContext);
    t.s(["Context", 0, M], 811471)
}, 829014, 234030, 862156, t => {
    "use strict";
    var e = t.i(274466),
        r = function() {
            function t() {
                this.callbacks = {}
            }
            return t.prototype.on = function(t, e) {
                return this.callbacks[t] ? this.callbacks[t].push(e) : this.callbacks[t] = [e], this
            }, t.prototype.once = function(t, e) {
                var r = this,
                    n = function() {
                        for (var i = [], o = 0; o < arguments.length; o++) i[o] = arguments[o];
                        r.off(t, n), e.apply(r, i)
                    };
                return this.on(t, n), this
            }, t.prototype.off = function(t, e) {
                var r, n = (null != (r = this.callbacks[t]) ? r : []).filter(function(t) {
                    return t !== e
                });
                return this.callbacks[t] = n, this
            }, t.prototype.emit = function(t) {
                for (var e, r = this, n = [], i = 1; i < arguments.length; i++) n[i - 1] = arguments[i];
                return (null != (e = this.callbacks[t]) ? e : []).forEach(function(t) {
                    t.apply(r, n)
                }), this
            }, t
        }();
    t.s(["Emitter", 0, r], 234030);
    var n = "onRemoveFromFuture",
        i = function(t) {
            function r(e, r, n) {
                var i = t.call(this) || this;
                return i.future = [], i.maxAttempts = e, i.queue = r, i.seen = null != n ? n : {}, i
            }
            return (0, e.__extends)(r, t), r.prototype.push = function() {
                for (var t = this, e = [], r = 0; r < arguments.length; r++) e[r] = arguments[r];
                var n = e.map(function(e) {
                    return !(t.updateAttempts(e) > t.maxAttempts || t.includes(e)) && (t.queue.push(e), !0)
                });
                return this.queue = this.queue.sort(function(e, r) {
                    return t.getAttempts(e) - t.getAttempts(r)
                }), n
            }, r.prototype.pushWithBackoff = function(t) {
                var e, r, i, o, a, s = this;
                if (0 === this.getAttempts(t)) return this.push(t)[0];
                var u = this.updateAttempts(t);
                return !(u > this.maxAttempts || this.includes(t)) && (setTimeout(function() {
                    s.queue.push(t), s.future = s.future.filter(function(e) {
                        return e.id !== t.id
                    }), s.emit(n)
                }, (e = {
                    attempt: u - 1
                }, r = Math.random() + 1, i = e.minTimeout, o = e.factor, Math.min(r * (void 0 === i ? 500 : i) * Math.pow(void 0 === o ? 2 : o, e.attempt), void 0 === (a = e.maxTimeout) ? 1 / 0 : a))), this.future.push(t), !0)
            }, r.prototype.getAttempts = function(t) {
                var e;
                return null != (e = this.seen[t.id]) ? e : 0
            }, r.prototype.updateAttempts = function(t) {
                return this.seen[t.id] = this.getAttempts(t) + 1, this.getAttempts(t)
            }, r.prototype.includes = function(t) {
                return this.queue.includes(t) || this.future.includes(t) || !!this.queue.find(function(e) {
                    return e.id === t.id
                }) || !!this.future.find(function(e) {
                    return e.id === t.id
                })
            }, r.prototype.pop = function() {
                return this.queue.shift()
            }, Object.defineProperty(r.prototype, "length", {
                get: function() {
                    return this.queue.length
                },
                enumerable: !1,
                configurable: !0
            }), Object.defineProperty(r.prototype, "todo", {
                get: function() {
                    return this.queue.length + this.future.length
                },
                enumerable: !1,
                configurable: !0
            }), r
        }(r);
    t.s(["ON_REMOVE_FROM_FUTURE", 0, n, "PriorityQueue", 0, i], 862156);
    var o = t.i(811471),
        a = t.i(846406),
        s = {
            getItem: function() {},
            setItem: function() {},
            removeItem: function() {}
        };
    try {
        s = (0, a.isBrowser)() && window.localStorage ? window.localStorage : s
    } catch (t) {
        console.warn("Unable to access localStorage", t)
    }

    function u(t) {
        var e = s.getItem(t);
        return (e ? JSON.parse(e) : []).map(function(t) {
            return new o.Context(t.event, t.id)
        })
    }

    function c(t) {
        var e = s.getItem(t);
        return e ? JSON.parse(e) : {}
    }

    function l(t) {
        s.removeItem(t)
    }

    function p(t, e, r) {
        void 0 === r && (r = 0);
        var n = "persisted-queue:v1:".concat(t, ":lock"),
            i = s.getItem(n),
            o = i ? JSON.parse(i) : null,
            a = null === o || new Date().getTime() > o;
        if (a) {
            s.setItem(n, JSON.stringify(new Date().getTime() + 50)), e(), s.removeItem(n);
            return
        }!a && r < 3 ? setTimeout(function() {
            p(t, e, r + 1)
        }, 50) : console.error("Unable to retrieve lock")
    }
    var f = function(t) {
        function r(r, n) {
            var i = t.call(this, r, []) || this,
                o = "persisted-queue:v1:".concat(n, ":items"),
                a = "persisted-queue:v1:".concat(n, ":seen"),
                f = [],
                d = {};
            return p(n, function() {
                try {
                    f = u(o), d = c(a), l(o), l(a), i.queue = (0, e.__spreadArray)((0, e.__spreadArray)([], f, !0), i.queue, !0), i.seen = (0, e.__assign)((0, e.__assign)({}, d), i.seen)
                } catch (t) {
                    console.error(t)
                }
            }), window.addEventListener("pagehide", function() {
                if (i.todo > 0) {
                    var t = (0, e.__spreadArray)((0, e.__spreadArray)([], i.queue, !0), i.future, !0);
                    try {
                        p(n, function() {
                            var r, n, l, p;
                            r = u(o), n = (0, e.__spreadArray)((0, e.__spreadArray)([], t, !0), r, !0).reduce(function(t, r) {
                                var n;
                                return (0, e.__assign)((0, e.__assign)({}, t), ((n = {})[r.id] = r, n))
                            }, {}), s.setItem(o, JSON.stringify(Object.values(n))), l = i.seen, p = c(a), s.setItem(a, JSON.stringify((0, e.__assign)((0, e.__assign)({}, p), l)))
                        })
                    } catch (t) {
                        console.error(t)
                    }
                }
            }), i
        }
        return (0, e.__extends)(r, t), r
    }(i);
    t.s(["PersistedPriorityQueue", 0, f], 829014)
}, 456849, 208482, 783321, t => {
    "use strict";
    var e = t.i(274466),
        r = t.i(457923);

    function n(t, n) {
        t.log("debug", "plugin", {
            plugin: n.name
        });
        var i = new Date().getTime(),
            o = n[t.event.type];
        return void 0 === o ? Promise.resolve(t) : (function(t) {
            return (0, e.__awaiter)(this, void 0, void 0, function() {
                return (0, e.__generator)(this, function(e) {
                    switch (e.label) {
                        case 0:
                            return e.trys.push([0, 2, , 3]), [4, t()];
                        case 1:
                            return [2, e.sent()];
                        case 2:
                            return [2, Promise.reject(e.sent())];
                        case 3:
                            return [2]
                    }
                })
            })
        })(function() {
            return o.apply(n, [t])
        }).then(function(t) {
            var e = new Date().getTime() - i;
            return t.stats.gauge("plugin_time", e, ["plugin:".concat(n.name)]), t
        }).catch(function(e) {
            if (e instanceof r.ContextCancelation && "middleware_cancellation" === e.type) throw e;
            return e instanceof r.ContextCancelation ? t.log("warn", e.type, {
                plugin: n.name,
                error: e
            }) : (t.log("error", "plugin Error", {
                plugin: n.name,
                error: e
            }), t.stats.increment("plugin_error", 1, ["plugin:".concat(n.name)])), e
        })
    }
    t.s(["attempt", 0, n, "ensure", 0, function(t, e) {
        return n(t, e).then(function(e) {
            if (e instanceof r.CoreContext) return e;
            t.log("debug", "Context canceled"), t.stats.increment("context_canceled"), t.cancel(e)
        })
    }], 456849), t.s(["mergedOptions", 0, function(t, r) {
        var n, i = Object.entries(null != (n = r.integrations) ? n : {}).reduce(function(t, r) {
            var n, i, o = r[0],
                a = r[1];
            return "object" == typeof a ? (0, e.__assign)((0, e.__assign)({}, t), ((n = {})[o] = a, n)) : (0, e.__assign)((0, e.__assign)({}, t), ((i = {})[o] = {}, i))
        }, {});
        return Object.entries(t.integrations).reduce(function(t, r) {
            var n, o = r[0],
                a = r[1];
            return (0, e.__assign)((0, e.__assign)({}, t), ((n = {})[o] = (0, e.__assign)((0, e.__assign)({}, a), i[o]), n))
        }, {})
    }], 208482), t.s(["pWhile", 0, function(t, r) {
        return (0, e.__awaiter)(void 0, void 0, void 0, function() {
            var n;
            return (0, e.__generator)(this, function(i) {
                return [2, (n = function(i) {
                    return (0, e.__awaiter)(void 0, void 0, void 0, function() {
                        var o;
                        return (0, e.__generator)(this, function(e) {
                            switch (e.label) {
                                case 0:
                                    if (!t(i)) return [3, 2];
                                    return o = n, [4, r()];
                                case 1:
                                    return [2, o.apply(void 0, [e.sent()])];
                                case 2:
                                    return [2]
                            }
                        })
                    })
                })(void 0)]
            })
        })
    }], 783321)
}]);

//# debugId=15f3d805-4c64-94f3-942c-bcbb756163c9