;
! 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] = "c5e77d99-14d8-3474-36c4-53241b777cbc")
    } catch (e) {}
}();
(globalThis.TURBOPACK || (globalThis.TURBOPACK = [])).push(["object" == typeof document ? document.currentScript : void 0, 604777, e => {
    "use strict";
    var t = e.i(864006);

    function r(e, t) {
        return (...e) => {
            try {
                return t(...e)
            } catch {
                throw Error(void 0)
            }
        }
    }
    let n = r(0, t.useTranslations);
    r(0, t.useFormatter), e.s(["useTranslations", 0, n])
}, 870555, e => {
    "use strict";
    var t = e.i(197649);
    let r = (0, e.i(462280).extendTailwindMerge)({
        extend: {
            classGroups: {
                typography: ["text-body-xs", "text-body-sm", "text-body-base", "text-heading-base", "text-heading-lg", "text-heading-xl", "text-heading-2xl", "text-heading-3xl", "text-heading-4xl"]
            }
        }
    });
    e.s(["cn", 0, function(...e) {
        return r((0, t.clsx)(e))
    }])
}, 768439, (e, t, r) => {
    "use strict";
    Object.defineProperty(r, "__esModule", {
        value: !0
    });
    var n = {
        bindSnapshot: function() {
            return l
        },
        createAsyncLocalStorage: function() {
            return u
        },
        createSnapshot: function() {
            return c
        }
    };
    for (var a in n) Object.defineProperty(r, a, {
        enumerable: !0,
        get: n[a]
    });
    let i = Object.defineProperty(Error("Invariant: AsyncLocalStorage accessed in runtime where it is not available"), "__NEXT_ERROR_CODE", {
        value: "E504",
        enumerable: !1,
        configurable: !0
    });
    class o {
        disable() {
            throw i
        }
        getStore() {}
        run() {
            throw i
        }
        exit() {
            throw i
        }
        enterWith() {
            throw i
        }
        static bind(e) {
            return e
        }
    }
    let s = "u" > typeof globalThis && globalThis.AsyncLocalStorage;

    function u() {
        return s ? new s : new o
    }

    function l(e) {
        return s ? s.bind(e) : o.bind(e)
    }

    function c() {
        return s ? s.snapshot() : function(e, ...t) {
            return e(...t)
        }
    }
}, 233938, (e, t, r) => {
    "use strict";

    function n() {
        let e, t, r = new Promise((r, n) => {
            e = r, t = n
        });
        return {
            resolve: e,
            reject: t,
            promise: r
        }
    }
    Object.defineProperty(r, "__esModule", {
        value: !0
    }), Object.defineProperty(r, "createPromiseWithResolvers", {
        enumerable: !0,
        get: function() {
            return n
        }
    })
}, 666662, (e, t, r) => {
    "use strict";
    Object.defineProperty(r, "__esModule", {
        value: !0
    });
    var n, a = {
        RenderStage: function() {
            return u
        },
        StagedRenderingController: function() {
            return l
        }
    };
    for (var i in a) Object.defineProperty(r, i, {
        enumerable: !0,
        get: a[i]
    });
    let o = e.r(347730),
        s = e.r(233938);
    var u = ((n = {})[n.Before = 1] = "Before", n[n.EarlyStatic = 2] = "EarlyStatic", n[n.Static = 3] = "Static", n[n.EarlyRuntime = 4] = "EarlyRuntime", n[n.Runtime = 5] = "Runtime", n[n.Dynamic = 6] = "Dynamic", n[n.Abandoned = 7] = "Abandoned", n);
    class l {
        constructor(e, t, r) {
            this.abortSignal = e, this.abandonController = t, this.shouldTrackSyncIO = r, this.currentStage = 1, this.syncInterruptReason = null, this.staticStageEndTime = 1 / 0, this.runtimeStageEndTime = 1 / 0, this.staticStageListeners = [], this.earlyRuntimeStageListeners = [], this.runtimeStageListeners = [], this.dynamicStageListeners = [], this.staticStagePromise = (0, s.createPromiseWithResolvers)(), this.earlyRuntimeStagePromise = (0, s.createPromiseWithResolvers)(), this.runtimeStagePromise = (0, s.createPromiseWithResolvers)(), this.dynamicStagePromise = (0, s.createPromiseWithResolvers)(), e && e.addEventListener("abort", () => {
                let {
                    reason: t
                } = e;
                this.staticStagePromise.promise.catch(c), this.staticStagePromise.reject(t), this.earlyRuntimeStagePromise.promise.catch(c), this.earlyRuntimeStagePromise.reject(t), this.runtimeStagePromise.promise.catch(c), this.runtimeStagePromise.reject(t), this.dynamicStagePromise.promise.catch(c), this.dynamicStagePromise.reject(t)
            }, {
                once: !0
            }), t && t.signal.addEventListener("abort", () => {
                this.abandonRender()
            }, {
                once: !0
            })
        }
        onStage(e, t) {
            if (this.currentStage >= e) t();
            else if (3 === e) this.staticStageListeners.push(t);
            else if (4 === e) this.earlyRuntimeStageListeners.push(t);
            else if (5 === e) this.runtimeStageListeners.push(t);
            else if (6 === e) this.dynamicStageListeners.push(t);
            else throw Object.defineProperty(new o.InvariantError(`Invalid render stage: ${e}`), "__NEXT_ERROR_CODE", {
                value: "E881",
                enumerable: !1,
                configurable: !0
            })
        }
        shouldTrackSyncInterrupt() {
            if (!this.shouldTrackSyncIO) return !1;
            switch (this.currentStage) {
                case 1:
                case 5:
                case 6:
                case 7:
                default:
                    return !1;
                case 2:
                case 3:
                case 4:
                    return !0
            }
        }
        syncInterruptCurrentStageWithReason(e) {
            if (1 !== this.currentStage && 7 !== this.currentStage) {
                if (this.abandonController) return void this.abandonController.abort();
                if (this.abortSignal) {
                    this.syncInterruptReason = e, this.currentStage = 7;
                    return
                }
                switch (this.currentStage) {
                    case 2:
                    case 3:
                    case 4:
                        this.syncInterruptReason = e, this.advanceStage(6);
                        return;
                    case 5:
                        return
                }
            }
        }
        getSyncInterruptReason() {
            return this.syncInterruptReason
        }
        getStaticStageEndTime() {
            return this.staticStageEndTime
        }
        getRuntimeStageEndTime() {
            return this.runtimeStageEndTime
        }
        abandonRender() {
            let {
                currentStage: e
            } = this;
            switch (e) {
                case 2:
                    this.resolveStaticStage();
                case 3:
                    this.resolveEarlyRuntimeStage();
                case 4:
                    this.resolveRuntimeStage();
                case 5:
                    this.currentStage = 7;
                    return
            }
        }
        advanceStage(e) {
            if (e <= this.currentStage) return;
            let t = this.currentStage;
            if (this.currentStage = e, t < 3 && e >= 3 && this.resolveStaticStage(), t < 4 && e >= 4 && this.resolveEarlyRuntimeStage(), t < 5 && e >= 5 && (this.staticStageEndTime = performance.now() + performance.timeOrigin, this.resolveRuntimeStage()), t < 6 && e >= 6) {
                this.runtimeStageEndTime = performance.now() + performance.timeOrigin, this.resolveDynamicStage();
                return
            }
        }
        resolveStaticStage() {
            let e = this.staticStageListeners;
            for (let t = 0; t < e.length; t++) e[t]();
            e.length = 0, this.staticStagePromise.resolve()
        }
        resolveEarlyRuntimeStage() {
            let e = this.earlyRuntimeStageListeners;
            for (let t = 0; t < e.length; t++) e[t]();
            e.length = 0, this.earlyRuntimeStagePromise.resolve()
        }
        resolveRuntimeStage() {
            let e = this.runtimeStageListeners;
            for (let t = 0; t < e.length; t++) e[t]();
            e.length = 0, this.runtimeStagePromise.resolve()
        }
        resolveDynamicStage() {
            let e = this.dynamicStageListeners;
            for (let t = 0; t < e.length; t++) e[t]();
            e.length = 0, this.dynamicStagePromise.resolve()
        }
        getStagePromise(e) {
            switch (e) {
                case 3:
                    return this.staticStagePromise.promise;
                case 4:
                    return this.earlyRuntimeStagePromise.promise;
                case 5:
                    return this.runtimeStagePromise.promise;
                case 6:
                    return this.dynamicStagePromise.promise;
                default:
                    throw Object.defineProperty(new o.InvariantError(`Invalid render stage: ${e}`), "__NEXT_ERROR_CODE", {
                        value: "E881",
                        enumerable: !1,
                        configurable: !0
                    })
            }
        }
        waitForStage(e) {
            return this.getStagePromise(e)
        }
        delayUntilStage(e, t, r) {
            var n, a, i;
            let o, s = (n = this.getStagePromise(e), a = t, i = r, o = new Promise((e, t) => {
                n.then(e.bind(null, i), t)
            }), void 0 !== a && (o.displayName = a), o);
            return this.abortSignal && s.catch(c), s
        }
    }

    function c() {}
}, 193561, (e, t, r) => {
    "use strict";
    Object.defineProperty(r, "__esModule", {
        value: !0
    }), Object.defineProperty(r, "workUnitAsyncStorageInstance", {
        enumerable: !0,
        get: function() {
            return n
        }
    });
    let n = (0, e.r(768439).createAsyncLocalStorage)()
}, 263820, (e, t, r) => {
    "use strict";
    Object.defineProperty(r, "__esModule", {
        value: !0
    });
    var n = {
        ACTION_HEADER: function() {
            return o
        },
        FLIGHT_HEADERS: function() {
            return h
        },
        NEXT_ACTION_NOT_FOUND_HEADER: function() {
            return w
        },
        NEXT_ACTION_REVALIDATED_HEADER: function() {
            return P
        },
        NEXT_DID_POSTPONE_HEADER: function() {
            return _
        },
        NEXT_HMR_REFRESH_HASH_COOKIE: function() {
            return d
        },
        NEXT_HMR_REFRESH_HEADER: function() {
            return c
        },
        NEXT_HTML_REQUEST_ID_HEADER: function() {
            return O
        },
        NEXT_INSTANT_PREFETCH_HEADER: function() {
            return m
        },
        NEXT_INSTANT_TEST_COOKIE: function() {
            return g
        },
        NEXT_IS_PRERENDER_HEADER: function() {
            return S
        },
        NEXT_REQUEST_ID_HEADER: function() {
            return R
        },
        NEXT_REWRITTEN_PATH_HEADER: function() {
            return E
        },
        NEXT_REWRITTEN_QUERY_HEADER: function() {
            return v
        },
        NEXT_ROUTER_PREFETCH_HEADER: function() {
            return u
        },
        NEXT_ROUTER_SEGMENT_PREFETCH_HEADER: function() {
            return l
        },
        NEXT_ROUTER_STALE_TIME_HEADER: function() {
            return y
        },
        NEXT_ROUTER_STATE_TREE_HEADER: function() {
            return s
        },
        NEXT_RSC_UNION_QUERY: function() {
            return b
        },
        NEXT_URL: function() {
            return f
        },
        RSC_CONTENT_TYPE_HEADER: function() {
            return p
        },
        RSC_HEADER: function() {
            return i
        }
    };
    for (var a in n) Object.defineProperty(r, a, {
        enumerable: !0,
        get: n[a]
    });
    let i = "rsc",
        o = "next-action",
        s = "next-router-state-tree",
        u = "next-router-prefetch",
        l = "next-router-segment-prefetch",
        c = "next-hmr-refresh",
        d = "__next_hmr_refresh_hash__",
        f = "next-url",
        p = "text/x-component",
        m = "next-instant-navigation-testing-prefetch",
        g = "next-instant-navigation-testing",
        h = [i, s, u, c, l],
        b = "_rsc",
        y = "x-nextjs-stale-time",
        _ = "x-nextjs-postponed",
        E = "x-nextjs-rewritten-path",
        v = "x-nextjs-rewritten-query",
        S = "x-nextjs-prerender",
        w = "x-nextjs-action-not-found",
        R = "x-nextjs-request-id",
        O = "x-nextjs-html-request-id",
        P = "x-action-revalidated";
    ("function" == typeof r.default || "object" == typeof r.default && null !== r.default) && void 0 === r.default.__esModule && (Object.defineProperty(r.default, "__esModule", {
        value: !0
    }), Object.assign(r.default, r), t.exports = r.default)
}, 122655, (e, t, r) => {
    "use strict";
    Object.defineProperty(r, "__esModule", {
        value: !0
    });
    var n = {
        getCacheSignal: function() {
            return y
        },
        getDraftModeProviderForCacheScope: function() {
            return h
        },
        getHmrRefreshHash: function() {
            return p
        },
        getPrerenderResumeDataCache: function() {
            return d
        },
        getRenderResumeDataCache: function() {
            return f
        },
        getServerComponentsHmrCache: function() {
            return g
        },
        getStagedRenderingController: function() {
            return b
        },
        isHmrRefresh: function() {
            return m
        },
        isInEarlyRenderStage: function() {
            return u
        },
        throwForMissingRequestStore: function() {
            return l
        },
        throwInvariantForMissingStore: function() {
            return c
        },
        workUnitAsyncStorage: function() {
            return i.workUnitAsyncStorageInstance
        }
    };
    for (var a in n) Object.defineProperty(r, a, {
        enumerable: !0,
        get: n[a]
    });
    let i = e.r(193561);
    e.r(263820);
    let o = e.r(347730),
        s = e.r(666662);

    function u(e) {
        let t = e.stagedRendering;
        return !!t && (t.currentStage === s.RenderStage.EarlyStatic || t.currentStage === s.RenderStage.EarlyRuntime)
    }

    function l(e) {
        throw Object.defineProperty(Error(`\`${e}\` was called outside a request scope. Read more: https://nextjs.org/docs/messages/next-dynamic-api-wrong-context`), "__NEXT_ERROR_CODE", {
            value: "E251",
            enumerable: !1,
            configurable: !0
        })
    }

    function c() {
        throw Object.defineProperty(new o.InvariantError("Expected workUnitAsyncStorage to have a store."), "__NEXT_ERROR_CODE", {
            value: "E696",
            enumerable: !1,
            configurable: !0
        })
    }

    function d(e) {
        switch (e.type) {
            case "prerender":
            case "prerender-runtime":
            case "prerender-ppr":
            case "prerender-client":
            case "validation-client":
                return e.prerenderResumeDataCache;
            case "request":
                if (e.prerenderResumeDataCache) return e.prerenderResumeDataCache;
            case "prerender-legacy":
            case "cache":
            case "private-cache":
            case "unstable-cache":
            case "generate-static-params":
                return null;
            default:
                return e
        }
    }

    function f(e) {
        switch (e.type) {
            case "request":
            case "prerender":
            case "prerender-runtime":
            case "prerender-client":
            case "validation-client":
                if (e.renderResumeDataCache) return e.renderResumeDataCache;
            case "prerender-ppr":
                return e.prerenderResumeDataCache ? ? null;
            case "cache":
            case "private-cache":
            case "unstable-cache":
            case "prerender-legacy":
            case "generate-static-params":
                return null;
            default:
                return e
        }
    }

    function p(e) {}

    function m(e) {
        return !1
    }

    function g(e) {}

    function h(e, t) {
        if (e.isDraftMode) switch (t.type) {
            case "cache":
            case "private-cache":
            case "unstable-cache":
            case "prerender-runtime":
            case "request":
                return t.draftMode
        }
    }

    function b(e) {
        switch (e.type) {
            case "request":
            case "prerender-runtime":
                return e.stagedRendering ? ? null;
            case "prerender":
            case "prerender-client":
            case "validation-client":
            case "prerender-ppr":
            case "prerender-legacy":
            case "cache":
            case "private-cache":
            case "unstable-cache":
            case "generate-static-params":
                return null;
            default:
                return e
        }
    }

    function y(e) {
        switch (e.type) {
            case "prerender":
            case "prerender-client":
            case "validation-client":
            case "prerender-runtime":
                return e.cacheSignal;
            case "request":
                if (e.cacheSignal) return e.cacheSignal;
            case "prerender-ppr":
            case "prerender-legacy":
            case "cache":
            case "private-cache":
            case "unstable-cache":
            case "generate-static-params":
                return null;
            default:
                return e
        }
    }
}, 861668, (e, t, r) => {
    "use strict";
    Object.defineProperty(r, "__esModule", {
        value: !0
    }), Object.defineProperty(r, "workAsyncStorageInstance", {
        enumerable: !0,
        get: function() {
            return n
        }
    });
    let n = (0, e.r(768439).createAsyncLocalStorage)()
}, 506245, (e, t, r) => {
    "use strict";
    Object.defineProperty(r, "__esModule", {
        value: !0
    }), Object.defineProperty(r, "workAsyncStorage", {
        enumerable: !0,
        get: function() {
            return n.workAsyncStorageInstance
        }
    });
    let n = e.r(861668)
}, 347730, (e, t, r) => {
    "use strict";
    Object.defineProperty(r, "__esModule", {
        value: !0
    }), Object.defineProperty(r, "InvariantError", {
        enumerable: !0,
        get: function() {
            return n
        }
    });
    class n extends Error {
        constructor(e, t) {
            super(`Invariant: ${e.endsWith(".")?e:e+"."} This is a bug in Next.js.`, t), this.name = "InvariantError"
        }
    }
}, 623266, (e, t, r) => {
    "use strict";
    Object.defineProperty(r, "__esModule", {
        value: !0
    }), Object.defineProperty(r, "HTML_LIMITED_BOT_UA_RE", {
        enumerable: !0,
        get: function() {
            return n
        }
    });
    let n = /[\w-]+-Google|Google-[\w-]+|Chrome-Lighthouse|Slurp|DuckDuckBot|baiduspider|yandex|sogou|bitlybot|tumblr|vkShare|quora link preview|redditbot|ia_archiver|Bingbot|BingPreview|applebot|facebookexternalhit|facebookcatalog|Twitterbot|LinkedInBot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|Yeti|googleweblight/i
}, 663147, (e, t, r) => {
    "use strict";
    Object.defineProperty(r, "__esModule", {
        value: !0
    });
    var n = {
        HTML_LIMITED_BOT_UA_RE: function() {
            return i.HTML_LIMITED_BOT_UA_RE
        },
        HTML_LIMITED_BOT_UA_RE_STRING: function() {
            return s
        },
        getBotType: function() {
            return c
        },
        isBot: function() {
            return l
        }
    };
    for (var a in n) Object.defineProperty(r, a, {
        enumerable: !0,
        get: n[a]
    });
    let i = e.r(623266),
        o = /Googlebot(?!-)|Googlebot$/i,
        s = i.HTML_LIMITED_BOT_UA_RE.source;

    function u(e) {
        return i.HTML_LIMITED_BOT_UA_RE.test(e)
    }

    function l(e) {
        return o.test(e) || u(e)
    }

    function c(e) {
        return o.test(e) ? "dom" : u(e) ? "html" : void 0
    }
}, 186778, (e, t, r) => {
    "use strict";
    Object.defineProperty(r, "__esModule", {
        value: !0
    });
    var n = {
        AppRouterContext: function() {
            return o
        },
        GlobalLayoutRouterContext: function() {
            return u
        },
        LayoutRouterContext: function() {
            return s
        },
        MissingSlotContext: function() {
            return c
        },
        TemplateContext: function() {
            return l
        }
    };
    for (var a in n) Object.defineProperty(r, a, {
        enumerable: !0,
        get: n[a]
    });
    let i = e.r(2879)._(e.r(416340)),
        o = i.default.createContext(null),
        s = i.default.createContext(null),
        u = i.default.createContext(null),
        l = i.default.createContext(null),
        c = i.default.createContext(new Set)
}, 125832, (e, t, r) => {
    "use strict";
    Object.defineProperty(r, "__esModule", {
        value: !0
    }), Object.defineProperty(r, "ReadonlyURLSearchParams", {
        enumerable: !0,
        get: function() {
            return a
        }
    });
    class n extends Error {
        constructor() {
            super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")
        }
    }
    class a extends URLSearchParams {
        append() {
            throw new n
        }
        delete() {
            throw new n
        }
        set() {
            throw new n
        }
        sort() {
            throw new n
        }
    }("function" == typeof r.default || "object" == typeof r.default && null !== r.default) && void 0 === r.default.__esModule && (Object.defineProperty(r.default, "__esModule", {
        value: !0
    }), Object.assign(r.default, r), t.exports = r.default)
}, 755584, (e, t, r) => {
    "use strict";
    Object.defineProperty(r, "__esModule", {
        value: !0
    });
    var n = {
        NavigationPromisesContext: function() {
            return c
        },
        PathParamsContext: function() {
            return l
        },
        PathnameContext: function() {
            return u
        },
        ReadonlyURLSearchParams: function() {
            return o.ReadonlyURLSearchParams
        },
        SearchParamsContext: function() {
            return s
        },
        createDevToolsInstrumentedPromise: function() {
            return d
        }
    };
    for (var a in n) Object.defineProperty(r, a, {
        enumerable: !0,
        get: n[a]
    });
    let i = e.r(416340),
        o = e.r(125832),
        s = (0, i.createContext)(null),
        u = (0, i.createContext)(null),
        l = (0, i.createContext)(null),
        c = (0, i.createContext)(null);

    function d(e, t) {
        let r = Promise.resolve(t);
        return r.status = "fulfilled", r.value = t, r.displayName = `${e} (SSR)`, r
    }
}, 453937, (e, t, r) => {
    "use strict";
    Object.defineProperty(r, "__esModule", {
        value: !0
    });
    var n = {
        HTTPAccessErrorStatus: function() {
            return i
        },
        HTTP_ERROR_FALLBACK_ERROR_CODE: function() {
            return s
        },
        getAccessFallbackErrorTypeByStatus: function() {
            return c
        },
        getAccessFallbackHTTPStatus: function() {
            return l
        },
        isHTTPAccessFallbackError: function() {
            return u
        }
    };
    for (var a in n) Object.defineProperty(r, a, {
        enumerable: !0,
        get: n[a]
    });
    let i = {
            NOT_FOUND: 404,
            FORBIDDEN: 403,
            UNAUTHORIZED: 401
        },
        o = new Set(Object.values(i)),
        s = "NEXT_HTTP_ERROR_FALLBACK";

    function u(e) {
        if ("object" != typeof e || null === e || !("digest" in e) || "string" != typeof e.digest) return !1;
        let [t, r] = e.digest.split(";");
        return t === s && o.has(Number(r))
    }

    function l(e) {
        return Number(e.digest.split(";")[1])
    }

    function c(e) {
        switch (e) {
            case 401:
                return "unauthorized";
            case 403:
                return "forbidden";
            case 404:
                return "not-found";
            default:
                return
        }
    }("function" == typeof r.default || "object" == typeof r.default && null !== r.default) && void 0 === r.default.__esModule && (Object.defineProperty(r.default, "__esModule", {
        value: !0
    }), Object.assign(r.default, r), t.exports = r.default)
}, 50384, (e, t, r) => {
    "use strict";
    Object.defineProperty(r, "__esModule", {
        value: !0
    }), Object.defineProperty(r, "RedirectStatusCode", {
        enumerable: !0,
        get: function() {
            return a
        }
    });
    var n, a = ((n = {})[n.SeeOther = 303] = "SeeOther", n[n.TemporaryRedirect = 307] = "TemporaryRedirect", n[n.PermanentRedirect = 308] = "PermanentRedirect", n);
    ("function" == typeof r.default || "object" == typeof r.default && null !== r.default) && void 0 === r.default.__esModule && (Object.defineProperty(r.default, "__esModule", {
        value: !0
    }), Object.assign(r.default, r), t.exports = r.default)
}, 194717, (e, t, r) => {
    "use strict";
    Object.defineProperty(r, "__esModule", {
        value: !0
    });
    var n = {
        REDIRECT_ERROR_CODE: function() {
            return o
        },
        isRedirectError: function() {
            return s
        }
    };
    for (var a in n) Object.defineProperty(r, a, {
        enumerable: !0,
        get: n[a]
    });
    let i = e.r(50384),
        o = "NEXT_REDIRECT";

    function s(e) {
        if ("object" != typeof e || null === e || !("digest" in e) || "string" != typeof e.digest) return !1;
        let t = e.digest.split(";"),
            [r, n] = t,
            a = t.slice(2, -2).join(";"),
            s = Number(t.at(-2));
        return r === o && ("replace" === n || "push" === n) && "string" == typeof a && !isNaN(s) && s in i.RedirectStatusCode
    }("function" == typeof r.default || "object" == typeof r.default && null !== r.default) && void 0 === r.default.__esModule && (Object.defineProperty(r.default, "__esModule", {
        value: !0
    }), Object.assign(r.default, r), t.exports = r.default)
}, 515621, (e, t, r) => {
    "use strict";
    Object.defineProperty(r, "__esModule", {
        value: !0
    }), Object.defineProperty(r, "isNextRouterError", {
        enumerable: !0,
        get: function() {
            return i
        }
    });
    let n = e.r(453937),
        a = e.r(194717);

    function i(e) {
        return (0, a.isRedirectError)(e) || (0, n.isHTTPAccessFallbackError)(e)
    }("function" == typeof r.default || "object" == typeof r.default && null !== r.default) && void 0 === r.default.__esModule && (Object.defineProperty(r.default, "__esModule", {
        value: !0
    }), Object.assign(r.default, r), t.exports = r.default)
}, 397387, (e, t, r) => {
    "use strict";
    Object.defineProperty(r, "__esModule", {
        value: !0
    });
    var n = {
        BailoutToCSRError: function() {
            return o
        },
        isBailoutToCSRError: function() {
            return s
        }
    };
    for (var a in n) Object.defineProperty(r, a, {
        enumerable: !0,
        get: n[a]
    });
    let i = "BAILOUT_TO_CLIENT_SIDE_RENDERING";
    class o extends Error {
        constructor(e) {
            super(`Bail out to client-side rendering: ${e}`), this.reason = e, this.digest = i
        }
    }

    function s(e) {
        return "object" == typeof e && null !== e && "digest" in e && e.digest === i
    }
}, 138135, (e, t, r) => {
    t.exports = e.r(176165)
}, 744788, e => {
    "use strict";
    var t = e.i(284553),
        r = e.i(221628),
        n = e.i(999061),
        a = e.i(138135);
    let i = t.default.env.NEXT_PUBLIC_AMPLITUDE_KEY || "4572e28e5cd9c6997212cb354d024b58",
        o = "zryw7npl",
        s = "intercom-launcher",
        u = `
window.intercomSettings = {
    app_id: "${o}",
    api_base: "https://api-iam.intercom.io",
    custom_launcher_selector: "#${s}",
    hide_default_launcher: true,
};
(function () {
    var ic = window.Intercom;
    if (typeof ic === "function") {
        ic("reattach_activator");
        ic("update", window.intercomSettings);
    } else {
        var d = document;
        var i = function () {
            i.c(arguments);
        };
        i.q = [];
        i.c = function (args) {
            i.q.push(args);
        };
        window.Intercom = i;
        var l = function () {
            setTimeout(function () {
                var s = d.createElement('script');
                s.type = 'text/javascript';
                s.async = true;
                s.src = 'https://widget.intercom.io/widget/${o}';
                var x = d.getElementsByTagName('script')[0];
                x.parentNode.insertBefore(s, x);
            }, 5000);
        };
        if (d.readyState === 'complete') {
            l();
        } else if (window.attachEvent) {
            window.attachEvent('onload', l);
        } else {
            window.addEventListener('load', l, false);
        }
    }
})();`;
    e.s(["AMPLITUDE_API_KEY", 0, i, "INTERCOM_APP_ID", 0, o, "INTERCOM_LAUNCHER_ID", 0, s, "default", 0, () => {
        let e, t = (0, n.c)(1);
        return t[0] === Symbol.for("react.memo_cache_sentinel") ? (e = (0, r.jsx)(r.Fragment, {
            children: (0, r.jsx)(a.default, {
                id: "intercom-script",
                dangerouslySetInnerHTML: {
                    __html: u
                },
                strategy: "afterInteractive"
            })
        }), t[0] = e) : e = t[0], e
    }])
}, 126246, (e, t, r) => {
    t.exports = {
        id: "google-analytics",
        description: "Install a Google Analytics tag on your website",
        website: "https://analytics.google.com/analytics/web/",
        scripts: [{
            url: "https://www.googletagmanager.com/gtag/js",
            params: ["id"],
            strategy: "worker",
            location: "head",
            action: "append"
        }, {
            code: "window.dataLayer=window.dataLayer||[];window.gtag=function gtag(){window.dataLayer.push(arguments);};gtag('js',new Date());gtag('config','${args.id}')",
            strategy: "worker",
            location: "head",
            action: "append"
        }]
    }
}, 824633, (e, t, r) => {
    "use strict";

    function n(e, t, r = !1) {
        return t ? Object.keys(e).filter(e => r ? !t.includes(e) : t.includes(e)).reduce((t, r) => (t[r] = e[r], t), {}) : {}
    }

    function a(e, t, r, n) {
        let a = n && Object.keys(n).length > 0 ? new URL(Object.values(n)[0], e) : new URL(e);
        return t && r && t.forEach(e => {
            r[e] && a.searchParams.set(e, r[e])
        }), a.toString()
    }

    function i(e, t, r, n, i) {
        var o;
        if (!t) return `<${e}></${e}>`;
        let s = (null == (o = t.src) ? void 0 : o.url) ? Object.assign(Object.assign({}, t), {
                src: a(t.src.url, t.src.params, n, i)
            }) : t,
            u = Object.keys(Object.assign(Object.assign({}, s), r)).reduce((e, t) => {
                let n = null == r ? void 0 : r[t],
                    a = s[t],
                    i = null != n ? n : a,
                    o = !0 === i ? t : `${t}="${i}"`;
                return i ? e + ` ${o}` : e
            }, "");
        return `<${e}${u}></${e}>`
    }
    Object.defineProperty(r, "__esModule", {
        value: !0
    }), r.formatData = r.createHtml = r.formatUrl = void 0, r.formatUrl = a, r.createHtml = i, r.formatData = function(e, t) {
        var r, o, s, u, l;
        let c = n(t, null == (r = e.scripts) ? void 0 : r.reduce((e, t) => [...e, ...Array.isArray(t.params) ? t.params : []], [])),
            d = n(t, null == (s = null == (o = e.html) ? void 0 : o.attributes.src) ? void 0 : s.params),
            f = n(t, [null == (l = null == (u = e.html) ? void 0 : u.attributes.src) ? void 0 : l.slugParam]),
            p = n(t, [...Object.keys(c), ...Object.keys(d), ...Object.keys(f)], !0);
        return Object.assign(Object.assign({}, e), {
            html: e.html ? i(e.html.element, e.html.attributes, p, d, f) : null,
            scripts: e.scripts ? e.scripts.map(e => Object.assign(Object.assign({}, e), {
                url: a(e.url, e.params, c)
            })) : null
        })
    }
}, 779467, (e, t, r) => {
    "use strict";
    var n = e.e && e.e.__rest || function(e, t) {
            var r = {};
            for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && 0 > t.indexOf(n) && (r[n] = e[n]);
            if (null != e && "function" == typeof Object.getOwnPropertySymbols)
                for (var a = 0, n = Object.getOwnPropertySymbols(e); a < n.length; a++) 0 > t.indexOf(n[a]) && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
            return r
        },
        a = e.e && e.e.__importDefault || function(e) {
            return e && e.__esModule ? e : {
                default: e
            }
        };
    Object.defineProperty(r, "__esModule", {
        value: !0
    }), r.GoogleAnalytics = void 0;
    let i = a(e.r(126246)),
        o = e.r(824633);
    r.GoogleAnalytics = e => {
        var t = n(e, []);
        return (0, o.formatData)(i.default, t)
    }
}, 712162, (e, t, r) => {
    t.exports = {
        id: "google-maps-embed",
        description: "Embed a Google Maps embed on your webpage",
        website: "https://developers.google.com/maps/documentation/embed/get-started",
        html: {
            element: "iframe",
            attributes: {
                loading: "lazy",
                src: {
                    url: "https://www.google.com/maps/embed/v1/place",
                    slugParam: "mode",
                    params: ["key", "q", "center", "zoom", "maptype", "language", "region"]
                },
                referrerpolicy: "no-referrer-when-downgrade",
                frameborder: "0",
                style: "border:0",
                allowfullscreen: !0,
                width: null,
                height: null
            }
        }
    }
}, 824011, (e, t, r) => {
    "use strict";
    var n = e.e && e.e.__rest || function(e, t) {
            var r = {};
            for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && 0 > t.indexOf(n) && (r[n] = e[n]);
            if (null != e && "function" == typeof Object.getOwnPropertySymbols)
                for (var a = 0, n = Object.getOwnPropertySymbols(e); a < n.length; a++) 0 > t.indexOf(n[a]) && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
            return r
        },
        a = e.e && e.e.__importDefault || function(e) {
            return e && e.__esModule ? e : {
                default: e
            }
        };
    Object.defineProperty(r, "__esModule", {
        value: !0
    }), r.GoogleMapsEmbed = void 0;
    let i = a(e.r(712162)),
        o = e.r(824633);
    r.GoogleMapsEmbed = e => {
        var t = n(e, []);
        return (0, o.formatData)(i.default, t)
    }
}, 515554, (e, t, r) => {
    t.exports = {
        id: "youtube-embed",
        description: "Embed a YouTube embed on your webpage.",
        website: "https://github.com/paulirish/lite-youtube-embed",
        html: {
            element: "lite-youtube",
            attributes: {
                videoid: null,
                playlabel: null
            }
        },
        stylesheets: ["https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.css"],
        scripts: [{
            url: "https://cdn.jsdelivr.net/gh/paulirish/lite-youtube-embed@master/src/lite-yt-embed.js",
            strategy: "idle",
            location: "head",
            action: "append"
        }]
    }
}, 816477, (e, t, r) => {
    "use strict";
    var n = e.e && e.e.__rest || function(e, t) {
            var r = {};
            for (var n in e) Object.prototype.hasOwnProperty.call(e, n) && 0 > t.indexOf(n) && (r[n] = e[n]);
            if (null != e && "function" == typeof Object.getOwnPropertySymbols)
                for (var a = 0, n = Object.getOwnPropertySymbols(e); a < n.length; a++) 0 > t.indexOf(n[a]) && Object.prototype.propertyIsEnumerable.call(e, n[a]) && (r[n[a]] = e[n[a]]);
            return r
        },
        a = e.e && e.e.__importDefault || function(e) {
            return e && e.__esModule ? e : {
                default: e
            }
        };
    Object.defineProperty(r, "__esModule", {
        value: !0
    }), r.YouTubeEmbed = void 0;
    let i = a(e.r(515554)),
        o = e.r(824633);
    r.YouTubeEmbed = e => {
        var t = n(e, []);
        return (0, o.formatData)(i.default, t)
    }
}, 510916, (e, t, r) => {
    "use strict";
    Object.defineProperty(r, "__esModule", {
        value: !0
    }), r.YouTubeEmbed = r.GoogleMapsEmbed = r.GoogleAnalytics = void 0;
    var n = e.r(779467);
    Object.defineProperty(r, "GoogleAnalytics", {
        enumerable: !0,
        get: function() {
            return n.GoogleAnalytics
        }
    });
    var a = e.r(824011);
    Object.defineProperty(r, "GoogleMapsEmbed", {
        enumerable: !0,
        get: function() {
            return a.GoogleMapsEmbed
        }
    });
    var i = e.r(816477);
    Object.defineProperty(r, "YouTubeEmbed", {
        enumerable: !0,
        get: function() {
            return i.YouTubeEmbed
        }
    })
}, 993729, (e, t, r) => {
    "use strict";
    Object.defineProperty(r, "__esModule", {
        value: !0
    }), r.default = function({
        html: e,
        height: t = null,
        width: r = null,
        children: i,
        dataNtpc: o = ""
    }) {
        return (0, a.useEffect)(() => {
            o && performance.mark("mark_feature_usage", {
                detail: {
                    feature: `next-third-parties-${o}`
                }
            })
        }, [o]), (0, n.jsxs)(n.Fragment, {
            children: [i, e ? (0, n.jsx)("div", {
                style: {
                    height: null != t ? `${t}px` : "auto",
                    width: null != r ? `${r}px` : "auto"
                },
                "data-ntpc": o,
                dangerouslySetInnerHTML: {
                    __html: e
                }
            }) : null]
        })
    };
    let n = e.r(221628),
        a = e.r(416340)
}, 451754, (e, t, r) => {
    "use strict";
    var n = e.e && e.e.__importDefault || function(e) {
        return e && e.__esModule ? e : {
            default: e
        }
    };
    Object.defineProperty(r, "__esModule", {
        value: !0
    }), r.default = function(e) {
        let {
            apiKey: t,
            ...r
        } = e, n = { ...r,
            key: t
        }, {
            html: s
        } = (0, i.GoogleMapsEmbed)(n);
        return (0, a.jsx)(o.default, {
            height: n.height || null,
            width: n.width || null,
            html: s,
            dataNtpc: "GoogleMapsEmbed"
        })
    };
    let a = e.r(221628),
        i = e.r(510916),
        o = n(e.r(993729))
}, 300106, (e, t, r) => {
    "use strict";
    var n = e.e && e.e.__importDefault || function(e) {
        return e && e.__esModule ? e : {
            default: e
        }
    };
    Object.defineProperty(r, "__esModule", {
        value: !0
    }), r.default = function(e) {
        let {
            html: t,
            scripts: r,
            stylesheets: n
        } = (0, o.YouTubeEmbed)(e);
        return (0, a.jsx)(s.default, {
            height: e.height || null,
            width: e.width || null,
            html: t,
            dataNtpc: "YouTubeEmbed",
            children: null == r ? void 0 : r.map(e => (0, a.jsx)(i.default, {
                src: e.url,
                strategy: u[e.strategy],
                stylesheets: n
            }, e.url))
        })
    };
    let a = e.r(221628),
        i = n(e.r(138135)),
        o = e.r(510916),
        s = n(e.r(993729)),
        u = {
            server: "beforeInteractive",
            client: "afterInteractive",
            idle: "lazyOnload",
            worker: "worker"
        }
}, 332142, (e, t, r) => {
    "use strict";
    var n = e.e && e.e.__importDefault || function(e) {
        return e && e.__esModule ? e : {
            default: e
        }
    };
    Object.defineProperty(r, "__esModule", {
        value: !0
    }), r.sendGTMEvent = void 0, r.GoogleTagManager = function(e) {
        let {
            gtmId: t,
            gtmScriptUrl: r,
            dataLayerName: n = "dataLayer",
            auth: u,
            preview: l,
            dataLayer: c,
            nonce: d
        } = e;
        s = n;
        let f = new URL(r || "https://www.googletagmanager.com/gtm.js");
        return t && f.searchParams.set("id", t), "dataLayer" !== n && f.searchParams.set("l", n), u && f.searchParams.set("gtm_auth", u), l && (f.searchParams.set("gtm_preview", l), f.searchParams.set("gtm_cookies_win", "x")), (0, i.useEffect)(() => {
            performance.mark("mark_feature_usage", {
                detail: {
                    feature: "next-third-parties-gtm"
                }
            })
        }, []), (0, a.jsxs)(a.Fragment, {
            children: [(0, a.jsx)(o.default, {
                id: "_next-gtm-init",
                dangerouslySetInnerHTML: {
                    __html: `
      (function(w,l){
        w[l]=w[l]||[];
        w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});
        ${c?`w[l].push(${JSON.stringify(c)})`:""}
      })(window,'${n}');`
                },
                nonce: d
            }), (0, a.jsx)(o.default, {
                id: "_next-gtm",
                "data-ntpc": "GTM",
                src: f.href,
                nonce: d
            })]
        })
    };
    let a = e.r(221628),
        i = e.r(416340),
        o = n(e.r(138135)),
        s = "dataLayer";
    r.sendGTMEvent = (e, t) => {
        let r = t || s;
        window[r] = window[r] || [], window[r].push(e)
    }
}, 496423, (e, t, r) => {
    "use strict";
    let n;
    var a = e.e && e.e.__importDefault || function(e) {
        return e && e.__esModule ? e : {
            default: e
        }
    };
    Object.defineProperty(r, "__esModule", {
        value: !0
    }), r.GoogleAnalytics = function(e) {
        let {
            gaId: t,
            debugMode: r,
            dataLayerName: a = "dataLayer",
            nonce: u
        } = e;
        return void 0 === n && (n = a), (0, o.useEffect)(() => {
            performance.mark("mark_feature_usage", {
                detail: {
                    feature: "next-third-parties-ga"
                }
            })
        }, []), (0, i.jsxs)(i.Fragment, {
            children: [(0, i.jsx)(s.default, {
                id: "_next-ga-init",
                dangerouslySetInnerHTML: {
                    __html: `
          window['${a}'] = window['${a}'] || [];
          function gtag(){window['${a}'].push(arguments);}
          gtag('js', new Date());

          gtag('config', '${t}' ${r?",{ 'debug_mode': true }":""});`
                },
                nonce: u
            }), (0, i.jsx)(s.default, {
                id: "_next-ga",
                src: `https://www.googletagmanager.com/gtag/js?id=${t}`,
                nonce: u
            })]
        })
    }, r.sendGAEvent = function() {
        void 0 === n ? console.warn("@next/third-parties: GA has not been initialized") : window[n] ? window[n].push(arguments) : console.warn(`@next/third-parties: GA dataLayer ${n} does not exist`)
    };
    let i = e.r(221628),
        o = e.r(416340),
        s = a(e.r(138135))
}, 976338, (e, t, r) => {
    "use strict";
    var n = e.e && e.e.__importDefault || function(e) {
        return e && e.__esModule ? e : {
            default: e
        }
    };
    Object.defineProperty(r, "__esModule", {
        value: !0
    }), r.sendGAEvent = r.GoogleAnalytics = r.sendGTMEvent = r.GoogleTagManager = r.YouTubeEmbed = r.GoogleMapsEmbed = void 0;
    var a = e.r(451754);
    Object.defineProperty(r, "GoogleMapsEmbed", {
        enumerable: !0,
        get: function() {
            return n(a).default
        }
    });
    var i = e.r(300106);
    Object.defineProperty(r, "YouTubeEmbed", {
        enumerable: !0,
        get: function() {
            return n(i).default
        }
    });
    var o = e.r(332142);
    Object.defineProperty(r, "GoogleTagManager", {
        enumerable: !0,
        get: function() {
            return o.GoogleTagManager
        }
    }), Object.defineProperty(r, "sendGTMEvent", {
        enumerable: !0,
        get: function() {
            return o.sendGTMEvent
        }
    });
    var s = e.r(496423);
    Object.defineProperty(r, "GoogleAnalytics", {
        enumerable: !0,
        get: function() {
            return s.GoogleAnalytics
        }
    }), Object.defineProperty(r, "sendGAEvent", {
        enumerable: !0,
        get: function() {
            return s.sendGAEvent
        }
    })
}, 752675, (e, t, r) => {
    "use strict";
    Object.defineProperty(r, "__esModule", {
        value: !0
    });
    var n = {
        ServerInsertedHTMLContext: function() {
            return o
        },
        useServerInsertedHTML: function() {
            return s
        }
    };
    for (var a in n) Object.defineProperty(r, a, {
        enumerable: !0,
        get: n[a]
    });
    let i = e.r(887602)._(e.r(416340)),
        o = i.default.createContext(null);

    function s(e) {
        let t = (0, i.useContext)(o);
        t && t(e)
    }
}, 557127, (e, t, r) => {
    "use strict";
    Object.defineProperty(r, "__esModule", {
        value: !0
    });
    var n = {
        UnrecognizedActionError: function() {
            return i
        },
        unstable_isUnrecognizedActionError: function() {
            return o
        }
    };
    for (var a in n) Object.defineProperty(r, a, {
        enumerable: !0,
        get: n[a]
    });
    class i extends Error {
        constructor(...e) {
            super(...e), this.name = "UnrecognizedActionError"
        }
    }

    function o(e) {
        return !!(e && "object" == typeof e && e instanceof i)
    }("function" == typeof r.default || "object" == typeof r.default && null !== r.default) && void 0 === r.default.__esModule && (Object.defineProperty(r.default, "__esModule", {
        value: !0
    }), Object.assign(r.default, r), t.exports = r.default)
}, 914142, (e, t, r) => {
    "use strict";
    Object.defineProperty(r, "__esModule", {
        value: !0
    }), Object.defineProperty(r, "actionAsyncStorageInstance", {
        enumerable: !0,
        get: function() {
            return n
        }
    });
    let n = (0, e.r(768439).createAsyncLocalStorage)()
}, 88381, (e, t, r) => {
    "use strict";
    Object.defineProperty(r, "__esModule", {
        value: !0
    }), Object.defineProperty(r, "actionAsyncStorage", {
        enumerable: !0,
        get: function() {
            return n.actionAsyncStorageInstance
        }
    });
    let n = e.r(914142)
}, 748115, (e, t, r) => {
    "use strict";
    Object.defineProperty(r, "__esModule", {
        value: !0
    });
    var n = {
        getRedirectError: function() {
            return u
        },
        getRedirectStatusCodeFromError: function() {
            return p
        },
        getRedirectTypeFromError: function() {
            return f
        },
        getURLFromRedirectError: function() {
            return d
        },
        permanentRedirect: function() {
            return c
        },
        redirect: function() {
            return l
        }
    };
    for (var a in n) Object.defineProperty(r, a, {
        enumerable: !0,
        get: n[a]
    });
    let i = e.r(50384),
        o = e.r(194717),
        s = "u" < typeof window ? e.r(88381).actionAsyncStorage : void 0;

    function u(e, t, r = i.RedirectStatusCode.TemporaryRedirect) {
        let n = Object.defineProperty(Error(o.REDIRECT_ERROR_CODE), "__NEXT_ERROR_CODE", {
            value: "E394",
            enumerable: !1,
            configurable: !0
        });
        return n.digest = `${o.REDIRECT_ERROR_CODE};${t};${e};${r};`, n
    }

    function l(e, t) {
        throw u(e, t ? ? = s ? .getStore() ? .isAction ? "push" : "replace", i.RedirectStatusCode.TemporaryRedirect)
    }

    function c(e, t = "replace") {
        throw u(e, t, i.RedirectStatusCode.PermanentRedirect)
    }

    function d(e) {
        return (0, o.isRedirectError)(e) ? e.digest.split(";").slice(2, -2).join(";") : null
    }

    function f(e) {
        if (!(0, o.isRedirectError)(e)) throw Object.defineProperty(Error("Not a redirect error"), "__NEXT_ERROR_CODE", {
            value: "E260",
            enumerable: !1,
            configurable: !0
        });
        return e.digest.split(";", 2)[1]
    }

    function p(e) {
        if (!(0, o.isRedirectError)(e)) throw Object.defineProperty(Error("Not a redirect error"), "__NEXT_ERROR_CODE", {
            value: "E260",
            enumerable: !1,
            configurable: !0
        });
        return Number(e.digest.split(";").at(-2))
    }("function" == typeof r.default || "object" == typeof r.default && null !== r.default) && void 0 === r.default.__esModule && (Object.defineProperty(r.default, "__esModule", {
        value: !0
    }), Object.assign(r.default, r), t.exports = r.default)
}, 623494, (e, t, r) => {
    "use strict";
    Object.defineProperty(r, "__esModule", {
        value: !0
    }), Object.defineProperty(r, "notFound", {
        enumerable: !0,
        get: function() {
            return i
        }
    });
    let n = e.r(453937),
        a = `${n.HTTP_ERROR_FALLBACK_ERROR_CODE};404`;

    function i() {
        let e = Object.defineProperty(Error(a), "__NEXT_ERROR_CODE", {
            value: "E1041",
            enumerable: !1,
            configurable: !0
        });
        throw e.digest = a, e
    }("function" == typeof r.default || "object" == typeof r.default && null !== r.default) && void 0 === r.default.__esModule && (Object.defineProperty(r.default, "__esModule", {
        value: !0
    }), Object.assign(r.default, r), t.exports = r.default)
}, 868105, (e, t, r) => {
    "use strict";

    function n() {
        throw Object.defineProperty(Error("`forbidden()` is experimental and only allowed to be enabled when `experimental.authInterrupts` is enabled."), "__NEXT_ERROR_CODE", {
            value: "E488",
            enumerable: !1,
            configurable: !0
        })
    }
    Object.defineProperty(r, "__esModule", {
        value: !0
    }), Object.defineProperty(r, "forbidden", {
        enumerable: !0,
        get: function() {
            return n
        }
    }), e.r(453937).HTTP_ERROR_FALLBACK_ERROR_CODE, ("function" == typeof r.default || "object" == typeof r.default && null !== r.default) && void 0 === r.default.__esModule && (Object.defineProperty(r.default, "__esModule", {
        value: !0
    }), Object.assign(r.default, r), t.exports = r.default)
}, 890547, (e, t, r) => {
    "use strict";

    function n() {
        throw Object.defineProperty(Error("`unauthorized()` is experimental and only allowed to be used when `experimental.authInterrupts` is enabled."), "__NEXT_ERROR_CODE", {
            value: "E411",
            enumerable: !1,
            configurable: !0
        })
    }
    Object.defineProperty(r, "__esModule", {
        value: !0
    }), Object.defineProperty(r, "unauthorized", {
        enumerable: !0,
        get: function() {
            return n
        }
    }), e.r(453937).HTTP_ERROR_FALLBACK_ERROR_CODE, ("function" == typeof r.default || "object" == typeof r.default && null !== r.default) && void 0 === r.default.__esModule && (Object.defineProperty(r.default, "__esModule", {
        value: !0
    }), Object.assign(r.default, r), t.exports = r.default)
}, 841e3, (e, t, r) => {
    "use strict";
    Object.defineProperty(r, "__esModule", {
        value: !0
    }), Object.defineProperty(r, "unstable_rethrow", {
        enumerable: !0,
        get: function() {
            return function e(t) {
                if ((0, a.isNextRouterError)(t) || (0, n.isBailoutToCSRError)(t)) throw t;
                t instanceof Error && "cause" in t && e(t.cause)
            }
        }
    });
    let n = e.r(397387),
        a = e.r(515621);
    ("function" == typeof r.default || "object" == typeof r.default && null !== r.default) && void 0 === r.default.__esModule && (Object.defineProperty(r.default, "__esModule", {
        value: !0
    }), Object.assign(r.default, r), t.exports = r.default)
}, 583838, (e, t, r) => {
    "use strict";
    Object.defineProperty(r, "__esModule", {
        value: !0
    });
    var n = {
        delayUntilRuntimeStage: function() {
            return m
        },
        getRuntimeStage: function() {
            return p
        },
        isHangingPromiseRejectionError: function() {
            return o
        },
        makeDevtoolsIOAwarePromise: function() {
            return f
        },
        makeHangingPromise: function() {
            return c
        }
    };
    for (var a in n) Object.defineProperty(r, a, {
        enumerable: !0,
        get: n[a]
    });
    let i = e.r(666662);

    function o(e) {
        return "object" == typeof e && null !== e && "digest" in e && e.digest === s
    }
    let s = "HANGING_PROMISE_REJECTION";
    class u extends Error {
        constructor(e, t) {
            super(`During prerendering, ${t} rejects when the prerender is complete. Typically these errors are handled by React but if you move ${t} to a different context by using \`setTimeout\`, \`after\`, or similar functions you may observe this error and you should handle it in that context. This occurred at route "${e}".`), this.route = e, this.expression = t, this.digest = s
        }
    }
    let l = new WeakMap;

    function c(e, t, r) {
        if (e.aborted) return Promise.reject(new u(t, r)); {
            let n = new Promise((n, a) => {
                let i = a.bind(null, new u(t, r)),
                    o = l.get(e);
                if (o) o.push(i);
                else {
                    let t = [i];
                    l.set(e, t), e.addEventListener("abort", () => {
                        for (let e = 0; e < t.length; e++) t[e]()
                    }, {
                        once: !0
                    })
                }
            });
            return n.catch(d), n
        }
    }

    function d() {}

    function f(e, t, r) {
        return t.stagedRendering ? t.stagedRendering.delayUntilStage(r, void 0, e) : new Promise(t => {
            setTimeout(() => {
                t(e)
            }, 0)
        })
    }

    function p(e) {
        return e.currentStage === i.RenderStage.EarlyStatic || e.currentStage === i.RenderStage.EarlyRuntime ? i.RenderStage.EarlyRuntime : i.RenderStage.Runtime
    }

    function m(e, t) {
        let {
            stagedRendering: r
        } = e;
        return r ? r.waitForStage(p(r)).then(() => t) : t
    }
}, 963660, (e, t, r) => {
    "use strict";
    Object.defineProperty(r, "__esModule", {
        value: !0
    }), Object.defineProperty(r, "isPostpone", {
        enumerable: !0,
        get: function() {
            return a
        }
    });
    let n = Symbol.for("react.postpone");

    function a(e) {
        return "object" == typeof e && null !== e && e.$$typeof === n
    }
}, 739506, (e, t, r) => {
    "use strict";
    Object.defineProperty(r, "__esModule", {
        value: !0
    });
    var n = {
        DynamicServerError: function() {
            return o
        },
        isDynamicServerError: function() {
            return s
        }
    };
    for (var a in n) Object.defineProperty(r, a, {
        enumerable: !0,
        get: n[a]
    });
    let i = "DYNAMIC_SERVER_USAGE";
    class o extends Error {
        constructor(e) {
            super(`Dynamic server usage: ${e}`), this.description = e, this.digest = i
        }
    }

    function s(e) {
        return "object" == typeof e && null !== e && "digest" in e && "string" == typeof e.digest && e.digest === i
    }("function" == typeof r.default || "object" == typeof r.default && null !== r.default) && void 0 === r.default.__esModule && (Object.defineProperty(r.default, "__esModule", {
        value: !0
    }), Object.assign(r.default, r), t.exports = r.default)
}, 281090, (e, t, r) => {
    "use strict";
    Object.defineProperty(r, "__esModule", {
        value: !0
    });
    var n = {
        StaticGenBailoutError: function() {
            return o
        },
        isStaticGenBailoutError: function() {
            return s
        }
    };
    for (var a in n) Object.defineProperty(r, a, {
        enumerable: !0,
        get: n[a]
    });
    let i = "NEXT_STATIC_GEN_BAILOUT";
    class o extends Error {
        constructor(...e) {
            super(...e), this.code = i
        }
    }

    function s(e) {
        return "object" == typeof e && null !== e && "code" in e && e.code === i
    }("function" == typeof r.default || "object" == typeof r.default && null !== r.default) && void 0 === r.default.__esModule && (Object.defineProperty(r.default, "__esModule", {
        value: !0
    }), Object.assign(r.default, r), t.exports = r.default)
}, 975991, (e, t, r) => {
    "use strict";
    Object.defineProperty(r, "__esModule", {
        value: !0
    });
    var n = {
        METADATA_BOUNDARY_NAME: function() {
            return i
        },
        OUTLET_BOUNDARY_NAME: function() {
            return s
        },
        ROOT_LAYOUT_BOUNDARY_NAME: function() {
            return u
        },
        VIEWPORT_BOUNDARY_NAME: function() {
            return o
        }
    };
    for (var a in n) Object.defineProperty(r, a, {
        enumerable: !0,
        get: n[a]
    });
    let i = "__next_metadata_boundary__",
        o = "__next_viewport_boundary__",
        s = "__next_outlet_boundary__",
        u = "__next_root_layout_boundary__"
}, 221335, (e, t, r) => {
    "use strict";
    var n = e.i(284553);
    Object.defineProperty(r, "__esModule", {
        value: !0
    });
    var a = {
        atLeastOneTask: function() {
            return u
        },
        scheduleImmediate: function() {
            return s
        },
        scheduleOnNextTick: function() {
            return o
        },
        waitAtLeastOneReactRenderTask: function() {
            return l
        }
    };
    for (var i in a) Object.defineProperty(r, i, {
        enumerable: !0,
        get: a[i]
    });
    let o = e => {
            Promise.resolve().then(() => {
                n.default.nextTick(e)
            })
        },
        s = e => {
            setImmediate(e)
        };

    function u() {
        return new Promise(e => s(e))
    }

    function l() {
        return new Promise(e => setImmediate(e))
    }
}, 29024, (e, t, r) => {
    "use strict";
    Object.defineProperty(r, "__esModule", {
        value: !0
    }), Object.defineProperty(r, "INSTANT_VALIDATION_BOUNDARY_NAME", {
        enumerable: !0,
        get: function() {
            return n
        }
    });
    let n = "__next_instant_validation_boundary__"
}, 1380, (e, t, r) => {
    "use strict";
    Object.defineProperty(r, "__esModule", {
        value: !0
    });
    var n, a, i, o = {
        DynamicHoleKind: function() {
            return Q
        },
        Postpone: function() {
            return A
        },
        PreludeState: function() {
            return ei
        },
        abortAndThrowOnSynchronousRequestDataAccess: function() {
            return k
        },
        abortOnSynchronousPlatformIOAccess: function() {
            return C
        },
        accessedDynamicData: function() {
            return L
        },
        annotateDynamicAccess: function() {
            return F
        },
        consumeDynamicAccess: function() {
            return U
        },
        createDynamicTrackingState: function() {
            return E
        },
        createDynamicValidationState: function() {
            return v
        },
        createHangingInputAbortSignal: function() {
            return H
        },
        createInstantValidationState: function() {
            return Z
        },
        createRenderInBrowserAbortSignal: function() {
            return $
        },
        formatDynamicAPIAccesses: function() {
            return B
        },
        getFirstDynamicReason: function() {
            return S
        },
        getNavigationDisallowedDynamicReasons: function() {
            return el
        },
        getStaticShellDisallowedDynamicReasons: function() {
            return eu
        },
        isDynamicPostpone: function() {
            return M
        },
        isPrerenderInterruptedError: function() {
            return N
        },
        logDisallowedDynamicError: function() {
            return eo
        },
        markCurrentScopeAsDynamic: function() {
            return w
        },
        postponeWithTracking: function() {
            return T
        },
        throwIfDisallowedDynamic: function() {
            return es
        },
        throwToInterruptStaticGeneration: function() {
            return R
        },
        trackAllowedDynamicAccess: function() {
            return J
        },
        trackDynamicDataInDynamicRender: function() {
            return O
        },
        trackDynamicHoleInNavigation: function() {
            return ee
        },
        trackDynamicHoleInRuntimeShell: function() {
            return er
        },
        trackDynamicHoleInStaticShell: function() {
            return en
        },
        trackThrownErrorInNavigation: function() {
            return et
        },
        useDynamicRouteParams: function() {
            return G
        },
        useDynamicSearchParams: function() {
            return W
        }
    };
    for (var s in o) Object.defineProperty(r, s, {
        enumerable: !0,
        get: o[s]
    });
    let u = (n = e.r(416340)) && n.__esModule ? n : {
            default: n
        },
        l = e.r(739506),
        c = e.r(281090),
        d = e.r(122655),
        f = e.r(506245),
        p = e.r(583838),
        m = e.r(975991),
        g = e.r(221335),
        h = e.r(397387),
        b = e.r(347730),
        y = e.r(29024),
        _ = "function" == typeof u.default.unstable_postpone;

    function E(e) {
        return {
            isDebugDynamicAccesses: e,
            dynamicAccesses: [],
            syncDynamicErrorWithStack: null
        }
    }

    function v() {
        return {
            hasSuspenseAboveBody: !1,
            hasDynamicMetadata: !1,
            dynamicMetadata: null,
            hasDynamicViewport: !1,
            hasAllowedDynamic: !1,
            dynamicErrors: []
        }
    }

    function S(e) {
        var t;
        return null == (t = e.dynamicAccesses[0]) ? void 0 : t.expression
    }

    function w(e, t, r) {
        if (t) switch (t.type) {
            case "cache":
            case "unstable-cache":
            case "private-cache":
                return
        }
        if (!e.forceDynamic && !e.forceStatic) {
            if (e.dynamicShouldError) throw Object.defineProperty(new c.StaticGenBailoutError(`Route ${e.route} with \`dynamic = "error"\` couldn't be rendered statically because it used \`${r}\`. See more info here: https://nextjs.org/docs/app/building-your-application/rendering/static-and-dynamic#dynamic-rendering`), "__NEXT_ERROR_CODE", {
                value: "E553",
                enumerable: !1,
                configurable: !0
            });
            if (t) switch (t.type) {
                case "prerender-ppr":
                    return T(e.route, r, t.dynamicTracking);
                case "prerender-legacy":
                    t.revalidate = 0;
                    let n = Object.defineProperty(new l.DynamicServerError(`Route ${e.route} couldn't be rendered statically because it used ${r}. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`), "__NEXT_ERROR_CODE", {
                        value: "E550",
                        enumerable: !1,
                        configurable: !0
                    });
                    throw e.dynamicUsageDescription = r, e.dynamicUsageStack = n.stack, n
            }
        }
    }

    function R(e, t, r) {
        let n = Object.defineProperty(new l.DynamicServerError(`Route ${t.route} couldn't be rendered statically because it used \`${e}\`. See more info here: https://nextjs.org/docs/messages/dynamic-server-error`), "__NEXT_ERROR_CODE", {
            value: "E558",
            enumerable: !1,
            configurable: !0
        });
        throw r.revalidate = 0, t.dynamicUsageDescription = e, t.dynamicUsageStack = n.stack, n
    }

    function O(e) {
        switch (e.type) {
            case "cache":
            case "unstable-cache":
            case "private-cache":
                return
        }
    }

    function P(e, t, r) {
        let n = I(`Route ${e} needs to bail out of prerendering at this point because it used ${t}.`);
        r.controller.abort(n);
        let a = r.dynamicTracking;
        a && a.dynamicAccesses.push({
            stack: a.isDebugDynamicAccesses ? Error().stack : void 0,
            expression: t
        })
    }

    function C(e, t, r, n) {
        let a = n.dynamicTracking;
        P(e, t, n), a && null === a.syncDynamicErrorWithStack && (a.syncDynamicErrorWithStack = r)
    }

    function k(e, t, r, n) {
        if (!1 === n.controller.signal.aborted) {
            P(e, t, n);
            let a = n.dynamicTracking;
            a && null === a.syncDynamicErrorWithStack && (a.syncDynamicErrorWithStack = r)
        }
        throw I(`Route ${e} needs to bail out of prerendering at this point because it used ${t}.`)
    }

    function A({
        reason: e,
        route: t
    }) {
        let r = d.workUnitAsyncStorage.getStore();
        T(t, e, r && "prerender-ppr" === r.type ? r.dynamicTracking : null)
    }

    function T(e, t, r) {
        (function() {
            if (!_) throw Object.defineProperty(Error("Invariant: React.unstable_postpone is not defined. This suggests the wrong version of React was loaded. This is a bug in Next.js"), "__NEXT_ERROR_CODE", {
                value: "E224",
                enumerable: !1,
                configurable: !0
            })
        })(), r && r.dynamicAccesses.push({
            stack: r.isDebugDynamicAccesses ? Error().stack : void 0,
            expression: t
        }), u.default.unstable_postpone(j(e, t))
    }

    function j(e, t) {
        return `Route ${e} needs to bail out of prerendering at this point because it used ${t}. React throws this special object to indicate where. It should not be caught by your own try/catch. Learn more: https://nextjs.org/docs/messages/ppr-caught-error`
    }

    function M(e) {
        return "object" == typeof e && null !== e && "string" == typeof e.message && x(e.message)
    }

    function x(e) {
        return e.includes("needs to bail out of prerendering at this point because it used") && e.includes("Learn more: https://nextjs.org/docs/messages/ppr-caught-error")
    }
    if (!1 === x(j("%%%", "^^^"))) throw Object.defineProperty(Error("Invariant: isDynamicPostpone misidentified a postpone reason. This is a bug in Next.js"), "__NEXT_ERROR_CODE", {
        value: "E296",
        enumerable: !1,
        configurable: !0
    });
    let D = "NEXT_PRERENDER_INTERRUPTED";

    function I(e) {
        let t = Object.defineProperty(Error(e), "__NEXT_ERROR_CODE", {
            value: "E394",
            enumerable: !1,
            configurable: !0
        });
        return t.digest = D, t
    }

    function N(e) {
        return "object" == typeof e && null !== e && e.digest === D && "name" in e && "message" in e && e instanceof Error
    }

    function L(e) {
        return e.length > 0
    }

    function U(e, t) {
        return e.dynamicAccesses.push(...t.dynamicAccesses), e.dynamicAccesses
    }

    function B(e) {
        return e.filter(e => "string" == typeof e.stack && e.stack.length > 0).map(({
            expression: e,
            stack: t
        }) => (t = t.split("\n").slice(4).filter(e => !(e.includes("node_modules/next/") || e.includes(" (<anonymous>)") || e.includes(" (node:"))).join("\n"), `Dynamic API Usage Debug - ${e}:
${t}`))
    }

    function $() {
        let e = new AbortController;
        return e.abort(Object.defineProperty(new h.BailoutToCSRError("Render in Browser"), "__NEXT_ERROR_CODE", {
            value: "E721",
            enumerable: !1,
            configurable: !0
        })), e.signal
    }

    function H(e) {
        switch (e.type) {
            case "prerender":
            case "prerender-runtime":
                let t = new AbortController;
                if (e.cacheSignal) e.cacheSignal.inputReady().then(() => {
                    t.abort()
                });
                else if ("prerender-runtime" === e.type && e.stagedRendering) {
                    let {
                        stagedRendering: r
                    } = e;
                    r.waitForStage((0, p.getRuntimeStage)(r)).then(() => (0, g.scheduleOnNextTick)(() => t.abort()))
                } else(0, g.scheduleOnNextTick)(() => t.abort());
                return t.signal;
            case "prerender-client":
            case "validation-client":
            case "prerender-ppr":
            case "prerender-legacy":
            case "request":
            case "cache":
            case "private-cache":
            case "unstable-cache":
            case "generate-static-params":
                return
        }
    }

    function F(e, t) {
        let r = t.dynamicTracking;
        r && r.dynamicAccesses.push({
            stack: r.isDebugDynamicAccesses ? Error().stack : void 0,
            expression: e
        })
    }

    function G(e) {
        let t = f.workAsyncStorage.getStore(),
            r = d.workUnitAsyncStorage.getStore();
        if (t && r) switch (r.type) {
            case "prerender-client":
            case "prerender":
                {
                    let n = r.fallbackRouteParams;n && n.size > 0 && u.default.use((0, p.makeHangingPromise)(r.renderSignal, t.route, e));
                    break
                }
            case "prerender-ppr":
                {
                    let n = r.fallbackRouteParams;
                    if (n && n.size > 0) return T(t.route, e, r.dynamicTracking);
                    break
                }
            case "validation-client":
            case "prerender-legacy":
            case "request":
            case "unstable-cache":
                break;
            case "prerender-runtime":
                throw Object.defineProperty(new b.InvariantError(`\`${e}\` was called during a runtime prerender. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
                    value: "E771",
                    enumerable: !1,
                    configurable: !0
                });
            case "cache":
            case "private-cache":
                throw Object.defineProperty(new b.InvariantError(`\`${e}\` was called inside a cache scope. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
                    value: "E745",
                    enumerable: !1,
                    configurable: !0
                });
            case "generate-static-params":
                throw Object.defineProperty(new b.InvariantError(`\`${e}\` was called in \`generateStaticParams\`. Next.js should be preventing ${e} from being included in server component files statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
                    value: "E1130",
                    enumerable: !1,
                    configurable: !0
                })
        }
    }

    function W(e) {
        let t = f.workAsyncStorage.getStore(),
            r = d.workUnitAsyncStorage.getStore();
        if (t) switch (!r && (0, d.throwForMissingRequestStore)(e), r.type) {
            case "validation-client":
            case "request":
                return;
            case "prerender-client":
                u.default.use((0, p.makeHangingPromise)(r.renderSignal, t.route, e));
                break;
            case "prerender-legacy":
            case "prerender-ppr":
                if (t.forceStatic) return;
                throw Object.defineProperty(new h.BailoutToCSRError(e), "__NEXT_ERROR_CODE", {
                    value: "E394",
                    enumerable: !1,
                    configurable: !0
                });
            case "prerender":
            case "prerender-runtime":
                throw Object.defineProperty(new b.InvariantError(`\`${e}\` was called from a Server Component. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
                    value: "E795",
                    enumerable: !1,
                    configurable: !0
                });
            case "cache":
            case "unstable-cache":
            case "private-cache":
                throw Object.defineProperty(new b.InvariantError(`\`${e}\` was called inside a cache scope. Next.js should be preventing ${e} from being included in server components statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
                    value: "E745",
                    enumerable: !1,
                    configurable: !0
                });
            case "generate-static-params":
                throw Object.defineProperty(new b.InvariantError(`\`${e}\` was called in \`generateStaticParams\`. Next.js should be preventing ${e} from being included in server component files statically, but did not in this case.`), "__NEXT_ERROR_CODE", {
                    value: "E1130",
                    enumerable: !1,
                    configurable: !0
                })
        }
    }
    let X = /\n\s+at Suspense \(<anonymous>\)/,
        z = RegExp(`\\n\\s+at Suspense \\(<anonymous>\\)(?:(?!\\n\\s+at (?:body|div|main|section|article|aside|header|footer|nav|form|p|span|h1|h2|h3|h4|h5|h6) \\(<anonymous>\\))[\\s\\S])*?\\n\\s+at ${m.ROOT_LAYOUT_BOUNDARY_NAME} \\([^\\n]*\\)`),
        V = RegExp(`\\n\\s+at ${m.METADATA_BOUNDARY_NAME}[\\n\\s]`),
        q = RegExp(`\\n\\s+at ${m.VIEWPORT_BOUNDARY_NAME}[\\n\\s]`),
        Y = RegExp(`\\n\\s+at ${m.OUTLET_BOUNDARY_NAME}[\\n\\s]`),
        K = RegExp(`\\n\\s+at ${y.INSTANT_VALIDATION_BOUNDARY_NAME}[\\n\\s]`);

    function J(e, t, r, n) {
        if (!Y.test(t)) {
            if (V.test(t)) {
                r.hasDynamicMetadata = !0;
                return
            }
            if (q.test(t)) {
                r.hasDynamicViewport = !0;
                return
            }
            if (z.test(t)) {
                r.hasAllowedDynamic = !0, r.hasSuspenseAboveBody = !0;
                return
            } else if (X.test(t)) {
                r.hasAllowedDynamic = !0;
                return
            } else {
                if (n.syncDynamicErrorWithStack) return void r.dynamicErrors.push(n.syncDynamicErrorWithStack);
                let a = ea(Object.defineProperty(Error(`Route "${e.route}": Uncached data was accessed outside of <Suspense>. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`), "__NEXT_ERROR_CODE", {
                    value: "E1079",
                    enumerable: !1,
                    configurable: !0
                }), t, null);
                return void r.dynamicErrors.push(a)
            }
        }
    }
    var Q = ((a = {})[a.Runtime = 1] = "Runtime", a[a.Dynamic = 2] = "Dynamic", a);

    function Z(e) {
        return {
            hasDynamicMetadata: !1,
            hasAllowedClientDynamicAboveBoundary: !1,
            dynamicMetadata: null,
            hasDynamicViewport: !1,
            hasAllowedDynamic: !1,
            dynamicErrors: [],
            validationPreventingErrors: [],
            thrownErrorsOutsideBoundary: [],
            createInstantStack: e
        }
    }

    function ee(e, t, r, n, a, i) {
        if (Y.test(t)) return;
        if (V.test(t)) {
            let n = ea(Object.defineProperty(Error(`Route "${e.route}": ${1===a?"Runtime data such as `cookies()`, `headers()`, `params`, or `searchParams` was accessed inside `generateMetadata` or you have file-based metadata such as icons that depend on dynamic params segments.":"Uncached data or `connection()` was accessed inside `generateMetadata`."} Except for this instance, the page would have been entirely prerenderable which may have been the intended behavior. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`), "__NEXT_ERROR_CODE", {
                value: "E1076",
                enumerable: !1,
                configurable: !0
            }), t, r.createInstantStack);
            r.dynamicMetadata = n;
            return
        }
        if (q.test(t)) {
            let n = ea(Object.defineProperty(Error(`Route "${e.route}": ${1===a?"Runtime data such as `cookies()`, `headers()`, `params`, or `searchParams` was accessed inside `generateViewport`.":"Uncached data or `connection()` was accessed inside `generateViewport`."} This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`), "__NEXT_ERROR_CODE", {
                value: "E1086",
                enumerable: !1,
                configurable: !0
            }), t, r.createInstantStack);
            r.dynamicErrors.push(n);
            return
        }
        let o = K.exec(t);
        if (o) {
            let e = X.exec(t);
            if (e && e.index < o.index) {
                r.hasAllowedDynamic = !0;
                return
            }
        } else if (i.expectedIds.size === i.renderedIds.size) {
            r.hasAllowedClientDynamicAboveBoundary = !0, r.hasAllowedDynamic = !0;
            return
        } else {
            let n = ea(Object.defineProperty(Error(`Route "${e.route}": Could not validate \`unstable_instant\` because a Client Component in a parent segment prevented the page from rendering.`), "__NEXT_ERROR_CODE", {
                value: "E1082",
                enumerable: !1,
                configurable: !0
            }), t, r.createInstantStack);
            r.validationPreventingErrors.push(n);
            return
        }
        if (n.syncDynamicErrorWithStack) {
            let e = n.syncDynamicErrorWithStack;
            null !== r.createInstantStack && void 0 === e.cause && (e.cause = r.createInstantStack()), r.dynamicErrors.push(e);
            return
        }
        let s = ea(Object.defineProperty(Error(`Route "${e.route}": ${1===a?"Runtime data such as `cookies()`, `headers()`, `params`, or `searchParams` was accessed outside of `<Suspense>`.":"Uncached data or `connection()` was accessed outside of `<Suspense>`."} This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`), "__NEXT_ERROR_CODE", {
            value: "E1078",
            enumerable: !1,
            configurable: !0
        }), t, r.createInstantStack);
        r.dynamicErrors.push(s)
    }

    function et(e, t, r, n) {
        let a = K.exec(n);
        if (a) {
            let i = X.exec(n);
            if (i && i.index < a.index) return;
            let o = ea(Object.defineProperty(Error(`Route "${e.route}": Could not validate \`unstable_instant\` because an error prevented the target segment from rendering.`, {
                cause: r
            }), "__NEXT_ERROR_CODE", {
                value: "E1112",
                enumerable: !1,
                configurable: !0
            }), n, null);
            t.validationPreventingErrors.push(o)
        } else {
            let e = ea(Object.defineProperty(Error("An error occurred while attempting to validate instant UI. This error may be preventing the validation from completing.", {
                cause: r
            }), "__NEXT_ERROR_CODE", {
                value: "E1118",
                enumerable: !1,
                configurable: !0
            }), n, null);
            t.thrownErrorsOutsideBoundary.push(e)
        }
    }

    function er(e, t, r, n) {
        if (Y.test(t)) return;
        if (V.test(t)) {
            r.dynamicMetadata = ea(Object.defineProperty(Error(`Route "${e.route}": Uncached data or \`connection()\` was accessed inside \`generateMetadata\`. Except for this instance, the page would have been entirely prerenderable which may have been the intended behavior. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`), "__NEXT_ERROR_CODE", {
                value: "E1080",
                enumerable: !1,
                configurable: !0
            }), t, null);
            return
        }
        if (q.test(t)) {
            let n = ea(Object.defineProperty(Error(`Route "${e.route}": Uncached data or \`connection()\` was accessed inside \`generateViewport\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`), "__NEXT_ERROR_CODE", {
                value: "E1077",
                enumerable: !1,
                configurable: !0
            }), t, null);
            r.dynamicErrors.push(n);
            return
        }
        if (z.test(t)) {
            r.hasAllowedDynamic = !0, r.hasSuspenseAboveBody = !0;
            return
        }
        if (X.test(t)) {
            r.hasAllowedDynamic = !0;
            return
        } else if (n.syncDynamicErrorWithStack) return void r.dynamicErrors.push(n.syncDynamicErrorWithStack);
        let a = ea(Object.defineProperty(Error(`Route "${e.route}": Uncached data or \`connection()\` was accessed outside of \`<Suspense>\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`), "__NEXT_ERROR_CODE", {
            value: "E1084",
            enumerable: !1,
            configurable: !0
        }), t, null);
        r.dynamicErrors.push(a)
    }

    function en(e, t, r, n) {
        if (!Y.test(t)) {
            if (V.test(t)) {
                r.dynamicMetadata = ea(Object.defineProperty(Error(`Route "${e.route}": Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed inside \`generateMetadata\` or you have file-based metadata such as icons that depend on dynamic params segments. Except for this instance, the page would have been entirely prerenderable which may have been the intended behavior. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`), "__NEXT_ERROR_CODE", {
                    value: "E1085",
                    enumerable: !1,
                    configurable: !0
                }), t, null);
                return
            }
            if (q.test(t)) {
                let n = ea(Object.defineProperty(Error(`Route "${e.route}": Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed inside \`generateViewport\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`), "__NEXT_ERROR_CODE", {
                    value: "E1081",
                    enumerable: !1,
                    configurable: !0
                }), t, null);
                r.dynamicErrors.push(n);
                return
            }
            if (z.test(t)) {
                r.hasAllowedDynamic = !0, r.hasSuspenseAboveBody = !0;
                return
            } else if (X.test(t)) {
                r.hasAllowedDynamic = !0;
                return
            } else {
                if (n.syncDynamicErrorWithStack) return void r.dynamicErrors.push(n.syncDynamicErrorWithStack);
                let a = ea(Object.defineProperty(Error(`Route "${e.route}": Runtime data such as \`cookies()\`, \`headers()\`, \`params\`, or \`searchParams\` was accessed outside of \`<Suspense>\`. This delays the entire page from rendering, resulting in a slow user experience. Learn more: https://nextjs.org/docs/messages/blocking-route`), "__NEXT_ERROR_CODE", {
                    value: "E1083",
                    enumerable: !1,
                    configurable: !0
                }), t, null);
                return void r.dynamicErrors.push(a)
            }
        }
    }

    function ea(e, t, r) {
        return null !== r && (e.cause = r()), e.stack = e.name + ": " + e.message + t, e
    }
    var ei = ((i = {})[i.Full = 0] = "Full", i[i.Empty = 1] = "Empty", i[i.Errored = 2] = "Errored", i);

    function eo(e, t) {
        console.error(t), console.error(`To get a more detailed stack trace and pinpoint the issue, try one of the following:
  - Start the app in development mode by running \`next dev\`, then open "${e.route}" in your browser to investigate the error.
  - Rerun the production build with \`next build --debug-prerender\` to generate better stack traces.`)
    }

    function es(e, t, r, n) {
        if (n.syncDynamicErrorWithStack) throw eo(e, n.syncDynamicErrorWithStack), new c.StaticGenBailoutError;
        if (0 !== t) {
            if (r.hasSuspenseAboveBody) return;
            let n = r.dynamicErrors;
            if (n.length > 0) {
                for (let t = 0; t < n.length; t++) eo(e, n[t]);
                throw new c.StaticGenBailoutError
            }
            if (r.hasDynamicViewport) throw console.error(`Route "${e.route}" has a \`generateViewport\` that depends on Request data (\`cookies()\`, etc...) or uncached external data (\`fetch(...)\`, etc...) without explicitly allowing fully dynamic rendering. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-viewport`), new c.StaticGenBailoutError;
            if (1 === t) throw console.error(`Route "${e.route}" did not produce a static shell and Next.js was unable to determine a reason. This is a bug in Next.js.`), new c.StaticGenBailoutError
        } else if (!1 === r.hasAllowedDynamic && r.hasDynamicMetadata) throw console.error(`Route "${e.route}" has a \`generateMetadata\` that depends on Request data (\`cookies()\`, etc...) or uncached external data (\`fetch(...)\`, etc...) when the rest of the route does not. See more info here: https://nextjs.org/docs/messages/next-prerender-dynamic-metadata`), new c.StaticGenBailoutError
    }

    function eu(e, t, r, n) {
        if (n || r.hasSuspenseAboveBody) return [];
        if (0 !== t) {
            let n = r.dynamicErrors;
            if (n.length > 0) return n;
            if (1 === t) return [Object.defineProperty(new b.InvariantError(`Route "${e.route}" did not produce a static shell and Next.js was unable to determine a reason.`), "__NEXT_ERROR_CODE", {
                value: "E936",
                enumerable: !1,
                configurable: !0
            })]
        } else if (!1 === r.hasAllowedDynamic && 0 === r.dynamicErrors.length && r.dynamicMetadata) return [r.dynamicMetadata];
        return []
    }

    function el(e, t, r, n, a) {
        if (n) {
            let {
                missingSampleErrors: e
            } = n;
            if (e.length > 0) return e
        }
        let {
            validationPreventingErrors: i
        } = r;
        if (i.length > 0) return i;
        if (a.renderedIds.size < a.expectedIds.size) {
            let {
                thrownErrorsOutsideBoundary: t,
                createInstantStack: n
            } = r;
            if (0 === t.length) {
                let t = `Route "${e.route}": Could not validate \`unstable_instant\` because the target segment was prevented from rendering for an unknown reason.`,
                    r = null !== n ? n() : Error();
                return r.name = "Error", r.message = t, [r]
            }
            if (1 === t.length) {
                let r = `Route "${e.route}": Could not validate \`unstable_instant\` because the target segment was prevented from rendering, likely due to the following error.`,
                    a = null !== n ? n() : Error();
                return a.name = "Error", a.message = r, [a, t[0]]
            } {
                let r = `Route "${e.route}": Could not validate \`unstable_instant\` because the target segment was prevented from rendering, likely due to one of the following errors.`,
                    a = null !== n ? n() : Error();
                return a.name = "Error", a.message = r, [a, ...t]
            }
        }
        if (0 !== t) {
            let n = r.dynamicErrors;
            if (n.length > 0) return n;
            if (1 === t) return r.hasAllowedClientDynamicAboveBoundary ? [] : [Object.defineProperty(new b.InvariantError(`Route "${e.route}" failed to render during instant validation and Next.js was unable to determine a reason.`), "__NEXT_ERROR_CODE", {
                value: "E1055",
                enumerable: !1,
                configurable: !0
            })]
        } else {
            let e = r.dynamicErrors;
            if (e.length > 0) return e;
            if (!1 === r.hasAllowedDynamic && r.dynamicMetadata) return [r.dynamicMetadata]
        }
        return []
    }
}, 144845, (e, t, r) => {
    "use strict";
    Object.defineProperty(r, "__esModule", {
        value: !0
    }), Object.defineProperty(r, "unstable_rethrow", {
        enumerable: !0,
        get: function() {
            return function e(t) {
                if ((0, o.isNextRouterError)(t) || (0, i.isBailoutToCSRError)(t) || (0, u.isDynamicServerError)(t) || (0, s.isDynamicPostpone)(t) || (0, a.isPostpone)(t) || (0, n.isHangingPromiseRejectionError)(t) || (0, s.isPrerenderInterruptedError)(t)) throw t;
                t instanceof Error && "cause" in t && e(t.cause)
            }
        }
    });
    let n = e.r(583838),
        a = e.r(963660),
        i = e.r(397387),
        o = e.r(515621),
        s = e.r(1380),
        u = e.r(739506);
    ("function" == typeof r.default || "object" == typeof r.default && null !== r.default) && void 0 === r.default.__esModule && (Object.defineProperty(r.default, "__esModule", {
        value: !0
    }), Object.assign(r.default, r), t.exports = r.default)
}, 896751, (e, t, r) => {
    "use strict";
    Object.defineProperty(r, "__esModule", {
        value: !0
    }), Object.defineProperty(r, "unstable_rethrow", {
        enumerable: !0,
        get: function() {
            return n
        }
    });
    let n = "u" < typeof window ? e.r(144845).unstable_rethrow : e.r(841e3).unstable_rethrow;
    ("function" == typeof r.default || "object" == typeof r.default && null !== r.default) && void 0 === r.default.__esModule && (Object.defineProperty(r.default, "__esModule", {
        value: !0
    }), Object.assign(r.default, r), t.exports = r.default)
}, 590764, (e, t, r) => {
    "use strict";
    Object.defineProperty(r, "__esModule", {
        value: !0
    });
    var n = {
        ReadonlyURLSearchParams: function() {
            return i.ReadonlyURLSearchParams
        },
        RedirectType: function() {
            return f
        },
        forbidden: function() {
            return u.forbidden
        },
        notFound: function() {
            return s.notFound
        },
        permanentRedirect: function() {
            return o.permanentRedirect
        },
        redirect: function() {
            return o.redirect
        },
        unauthorized: function() {
            return l.unauthorized
        },
        unstable_isUnrecognizedActionError: function() {
            return d
        },
        unstable_rethrow: function() {
            return c.unstable_rethrow
        }
    };
    for (var a in n) Object.defineProperty(r, a, {
        enumerable: !0,
        get: n[a]
    });
    let i = e.r(125832),
        o = e.r(748115),
        s = e.r(623494),
        u = e.r(868105),
        l = e.r(890547),
        c = e.r(896751);

    function d() {
        throw Object.defineProperty(Error("`unstable_isUnrecognizedActionError` can only be used on the client."), "__NEXT_ERROR_CODE", {
            value: "E776",
            enumerable: !1,
            configurable: !0
        })
    }
    let f = {
        push: "push",
        replace: "replace"
    };
    ("function" == typeof r.default || "object" == typeof r.default && null !== r.default) && void 0 === r.default.__esModule && (Object.defineProperty(r.default, "__esModule", {
        value: !0
    }), Object.assign(r.default, r), t.exports = r.default)
}, 484145, (e, t, r) => {
    "use strict";
    Object.defineProperty(r, "__esModule", {
        value: !0
    });
    var n = {
        ReadonlyURLSearchParams: function() {
            return s.ReadonlyURLSearchParams
        },
        RedirectType: function() {
            return d.RedirectType
        },
        ServerInsertedHTMLContext: function() {
            return l.ServerInsertedHTMLContext
        },
        forbidden: function() {
            return d.forbidden
        },
        notFound: function() {
            return d.notFound
        },
        permanentRedirect: function() {
            return d.permanentRedirect
        },
        redirect: function() {
            return d.redirect
        },
        unauthorized: function() {
            return d.unauthorized
        },
        unstable_isUnrecognizedActionError: function() {
            return c.unstable_isUnrecognizedActionError
        },
        unstable_rethrow: function() {
            return d.unstable_rethrow
        },
        useParams: function() {
            return E
        },
        usePathname: function() {
            return y
        },
        useRouter: function() {
            return _
        },
        useSearchParams: function() {
            return b
        },
        useSelectedLayoutSegment: function() {
            return S
        },
        useSelectedLayoutSegments: function() {
            return v
        },
        useServerInsertedHTML: function() {
            return l.useServerInsertedHTML
        }
    };
    for (var a in n) Object.defineProperty(r, a, {
        enumerable: !0,
        get: n[a]
    });
    let i = e.r(887602)._(e.r(416340)),
        o = e.r(186778),
        s = e.r(755584),
        u = e.r(200335),
        l = e.r(752675),
        c = e.r(557127),
        d = e.r(590764),
        f = "u" < typeof window ? e.r(1380).useDynamicRouteParams : void 0,
        p = "u" < typeof window ? e.r(1380).useDynamicSearchParams : void 0,
        {
            instrumentParamsForClientValidation: m,
            instrumentSearchParamsForClientValidation: g,
            expectCompleteParamsInClientValidation: h
        } = {};

    function b() {
        p ? .("useSearchParams()");
        let e = (0, i.useContext)(s.SearchParamsContext);
        return (0, i.useMemo)(() => e ? new s.ReadonlyURLSearchParams(e) : null, [e])
    }

    function y() {
        return f ? .("usePathname()"), (0, i.useContext)(s.PathnameContext)
    }

    function _() {
        let e = (0, i.useContext)(o.AppRouterContext);
        if (null === e) throw Object.defineProperty(Error("invariant expected app router to be mounted"), "__NEXT_ERROR_CODE", {
            value: "E238",
            enumerable: !1,
            configurable: !0
        });
        return e
    }

    function E() {
        return f ? .("useParams()"), (0, i.useContext)(s.PathParamsContext)
    }

    function v(e = "children") {
        f ? .("useSelectedLayoutSegments()");
        let t = (0, i.useContext)(o.LayoutRouterContext);
        return t ? (0, u.getSelectedLayoutSegmentPath)(t.parentTree, e) : null
    }

    function S(e = "children") {
        f ? .("useSelectedLayoutSegment()"), (0, i.useContext)(s.NavigationPromisesContext);
        let t = v(e);
        return (0, u.computeSelectedLayoutSegment)(t, e)
    }("function" == typeof r.default || "object" == typeof r.default && null !== r.default) && void 0 === r.default.__esModule && (Object.defineProperty(r.default, "__esModule", {
        value: !0
    }), Object.assign(r.default, r), t.exports = r.default)
}, 932864, (e, t, r) => {
    t.exports = e.r(484145)
}, 787674, (e, t, r) => {
    "use strict";
    Object.defineProperty(r, "__esModule", {
        value: !0
    }), Object.defineProperty(r, "useRouter", {
        enumerable: !0,
        get: function() {
            return i
        }
    });
    let n = e.r(416340),
        a = e.r(6124);

    function i() {
        return (0, n.useContext)(a.RouterContext)
    }("function" == typeof r.default || "object" == typeof r.default && null !== r.default) && void 0 === r.default.__esModule && (Object.defineProperty(r.default, "__esModule", {
        value: !0
    }), Object.assign(r.default, r), t.exports = r.default)
}, 294781, (e, t, r) => {
    t.exports = e.r(787674)
}, 668122, e => {
    "use strict";
    var t, r = ((t = {}).Login = "Login", t.SignUp = "SignUp", t.Trade = "Trade", t.Withdraw = "Withdraw", t.DepositNavbarButtonClicked = "DepositNavbarButtonClicked", t.ReferNavbarButtonClicked = "ReferNavbarButtonClicked", t.DepositBuySellButtonClicked = "DepositBuySellButtonClicked", t.OnboardingDepositFundsButtonClicked = "OnboardingDepositFundsButtonClicked", t.DepositBannerClick = "DepositBannerClick", t.SignupBannerClick = "SignupBannerClick", t.SignupPromptOpened = "SignupPromptOpened", t.StartingUsdcUsdceConversion = "StartingUsdcUsdceConversion", t.UsdcUsdceConversionSuccess = "UsdcUsdceConversionSuccess", t.UsdcUsdceConversionError = "UsdcUsdceConversionError", t.AccountCreated = "AccountCreated", t.AttemptingAccountCreation = "AttemptingAccountCreation", t.StartTradingToDeposit = "StartTradingToDeposit", t.AttemptingProxyWalletCreation = "AttemptingProxyWalletCreation", t.ProxyWalletCreationSuccess = "ProxyWalletCreationSuccess", t.ProxyWalletCreationError = "ProxyWalletCreationError", t.TipSendOpen = "TipSendOpen", t.TipSendStart = "TipSendStart", t.TipSendSuccess = "TipSendSuccess", t.TipSendFailure = "TipSendFailure", t.VerifyEmail = "VerifyEmail", t.CyomCreate = "CyomCreate", t.CyomEdit = "CyomEdit", t.CyomDelete = "CyomDelete", t.CyomApprovals = "CyomApprovals", t.CyomDeploy = "CyomDeploy", t.CyomSponsor = "CyomSponsor", t.Redeem = "Redeem", t.RewardsSort = "RewardsSort", t.RewardsPaginate = "RewardsPaginate", t.RewardsReset = "RewardsReset", t.RewardsValidateFail = "RewardsValidateFail", t.RewardsValidateSuccess = "RewardsValidateSuccess", t.RewardsPlace = "RewardsPlace", t.RewardsAction = "RewardsAction", t.RewardsOverlayOpen = "RewardsOverlayOpen", t.ConvertOpen = "ConvertOpen", t.ConvertMax = "ConvertMax", t.ConvertInput = "ConvertInput", t.ConvertReview = "ConvertReview", t.ConvertStart = "ConvertStart", t.ConvertFail = "ConvertFail", t.ConvertSuccess = "ConvertSuccess", t.LeaderboardSort = "LeaderboardSort", t.PromoLinkClick = "PromoLinkClick", t.MoonpayOpen = "MoonpayOpen", t.SellPositionsEditClick = "SellPositionsEditClick", t.SellPositionsModalClick = "SellPositionsModalClick", t.SellPositionsSuccess = "SellPositionsSuccess", t.SearchNavbar = "SearchNavbar", t.SearchHomepage = "SearchHomepage", t.SearchNavbarMarketClick = "SearchNavbarMarketClick", t.SearchPageResultClick = "SearchPageResultClick", t.SearchNavbarSeeAllResultsClick = "SearchNavbarSeeAllResultsClick", t.DepositPage_Withdraw_Exchange_MaxUSDC_Polygon = "DepositPage_Withdraw_Exchange_MaxUSDC_Polygon", t.DepositPage_Withdraw_Exchange_Withdraw_Polygon = "DepositPage_Withdraw_Exchange_Withdraw_Polygon", t.DepositPage_Withdraw_Use_Connected_Wallet_Polygon = "DepositPage_Withdraw_Use_Connected_Wallet_Polygon", t.LoggedOutToggleButtonClick = "LoggedOutToggleButtonClick", t.LoggedOutFavoriteButtonClick = "LoggedOutFavoriteButtonClick", t.LoggedOutFavoriteButtonClick_Homepage = "LoggedOutFavoriteButtonClick_Homepage", t.BannerCardClick = "BannerCardClick", t.SortOptionClick = "SortOptionClick", t.GammaSignInError = "GammaSignInError", t.WalletConnected = "WalletConnected", t.SuccessfulLogin = "SuccessfulLogin", t.Logout = "Logout", t.HowItWorksNavbarClicked = "HowItWorksNavbarClicked", t.HowItWorksNavbarCompleted = "HowItWorksNavbarCompleted", t.HowItWorksFooterClicked = "HowItWorksFooterClicked", t.HowItWorksFooterCompleted = "HowItWorksFooterCompleted", t.SportsViewOrderbookClick = "SportsOrderbookClick", t.SportsToggleMarketLimitClick = "SportsToggleMarketLimitClick", t.SportsTogglePinClick = "SportsTogglePinClick", t.SportsPositionSellClick = "SportsPositionSellClick", t.SportsCashOutEditClick = "SportsCashOutEditClick", t.SportsCashOutModalClick = "SportsCashOutModalClick", t.SportsScroll = "SportsScroll", t.SportsWeek = "SportsWeek", t.SportsScoreboardView = "SportsScoreboardView", t.SportsScoreboardPlay = "SportsScoreboardPlay", t.SportsToggleSide = "SportsToggleSide", t.SportsRecenterBook = "SportsRecenterBook", t.SportsSidebar = "SportsSidebar", t.SportsSpreadsClick = "SportsSpreadsClick", t.SportsTotalsClick = "SportsTotalsClick", t.MobileTradingSmpClose = "MobileTradingSmpClose", t.MobileTradingDrawerClose = "MobileTradingDrawerClose", t.StartGoogleFlow = "StartGoogleFlow", t.StartSteamFlow = "StartSteamFlow", t.StartTelegramFlow = "StartTelegramFlow", t.StartMagicFlow = "StartMagicFlow", t.StartMetaMaskFlow = "StartMetaMaskFlow", t.StartPhantomFlow = "StartPhantomFlow", t.StartCoinbaseFlow = "StartCoinbaseFlow", t.StartWalletConnectFlow = "StartWalletConnectFlow", t.StartRainbowFlow = "StartRainbowFlow", t.LeaveFlow = "LeaveFlow", t.PickUserNameContinueClick = "PickUserNameContinueClick", t.MobileAuthSuccess = "MobileAuthSuccess", t.MobileAuthFailed = "MobileAuthFailed", t.GrokEventSummary = "GrokEventSummary", t.RelatedMarketClick = "RelatedMarketClick", t.RecommendedMarketPillClick = "RecommendedMarketPillClick", t.AutoResolvingMarketPending = "AutoResolvingMarketPending", t.AutoResolvingMarketResolved = "AutoResolvingMarketResolved", t.SearchProfileClick = "SearchProfileClick", t.SearchCryptoCalloutClick = "SearchCryptoCalloutClick", t.SearchCustomCalloutClick = "SearchCustomCalloutClick", t.BreakingEmailSubscribe = "BreakingEmailSubscribe", t.BreakingMarketClick = "BreakingMarketClick", t.BreakingTweetClick = "BreakingTweetClick", t.PinnedSportsMarketClick = "PinnedSportsMarketClick", t.HomepagePersonalizedEventsClick = "HomepagePersonalizedEventsClick", t.HomepageMarketCardClick = "HomepageMarketCardClick", t.HomepageCarouselClick = "HomepageCarouselClick", t.MarketCardImpression = "MarketCardImpression", t.PrimaryTagNavbarClick = "PrimaryTagNavbarClick", t.SecondaryTagClick = "SecondaryTagClick", t.CommentUserClick = "CommentUserClick", t.WeatherGlobeClick = "WeatherGlobeClick", t.ProfilePositionClick = "ProfilePositionClick", t.ProfileActivityClick = "ProfileActivityClick", t.LeaderboardProfileClick = "LeaderboardProfileClick", t.XAccountLinked = "XAccountLinked", t.OrderStatusPending = "OrderStatusPending", t.OrderStatusMatched = "OrderStatusMatched", t.OrderStatusMined = "OrderStatusMined", t.OrderStatusConfirmed = "OrderStatusConfirmed", t.OrderStatusFailed = "OrderStatusFailed", t.OrderUIDetails = "OrderUIDetails", t.OrderOutcome = "OrderOutcome", t.OneClickTradePresetClicked = "OneClickTradePresetClicked", t.OneClickTradeClicked = "OneClickTradeClicked", t.FakFallbackOrder = "FakFallbackOrder", t.FakFallbackOrderMatched = "FakFallbackOrderMatched", t.FakFallbackOrderCancelled = "FakFallbackOrderCancelled", t.FakFallbackOrderNotSubmitted = "FakFallbackOrderNotSubmitted", t);
    e.s(["Events", () => r])
}, 671876, 439716, e => {
    "use strict";
    var t = e.i(416340);

    function r() {
        return "u" > typeof window && window.dubAnalytics
    }
    e.s(["Analytics", 0, function(e) {
        return (0, t.useEffect)(() => {
            ! function(e) {
                var t, r, n, a, i, o;
                if (!("u" > typeof window)) return;
                o = "dubAnalytics", (i = window)[o] = i[o] || function() {
                    (i[o].q = i[o].q || []).push(arguments)
                }, ["trackClick", "trackLead", "trackSale"].forEach(function(e) {
                    i[o][e] = function() {
                        (i[o].q = i[o].q || []).push([e, ...Array.from(arguments)])
                    }
                });
                let s = "https://www.dubcdn.com/analytics/script",
                    u = [];
                (null == (t = e.domainsConfig) ? void 0 : t.site) && u.push("site-visit"), (null == (r = e.domainsConfig) ? void 0 : r.outbound) && u.push("outbound-domains"), e.publishableKey && u.push("conversion-tracking");
                let l = (null == (n = e.scriptProps) ? void 0 : n.src) || (u.length > 0 ? `${s}.${u.join(".")}.js` : `${s}.js`);
                if (document.head.querySelector(`script[src*="${l}"]`)) return;
                let c = document.createElement("script");
                if (c.src = l, c.defer = (null == (a = e.scriptProps) ? void 0 : a.defer) ? ? !0, c.setAttribute("data-sdkn", "@dub/analytics"), c.setAttribute("data-sdkv", "0.0.32"), e.apiHost && c.setAttribute("data-api-host", e.apiHost), e.publishableKey && c.setAttribute("data-publishable-key", e.publishableKey), e.domainsConfig && c.setAttribute("data-domains", JSON.stringify(e.domainsConfig)), e.shortDomain && c.setAttribute("data-short-domain", e.shortDomain), e.attributionModel && c.setAttribute("data-attribution-model", e.attributionModel), e.cookieOptions && Object.keys(e.cookieOptions).length > 0 && c.setAttribute("data-cookie-options", JSON.stringify(e.cookieOptions)), e.queryParam && c.setAttribute("data-query-param", e.queryParam), e.queryParams && c.setAttribute("data-query-params", JSON.stringify(e.queryParams)), e.scriptProps) {
                    let {
                        src: t,
                        ...r
                    } = e.scriptProps;
                    Object.assign(c, r)
                }
                c.onerror = () => {
                    console.log(`[Dub Web Analytics] failed to load script from ${l}.`)
                }, document.head.appendChild(c)
            }(e)
        }, [e]), null
    }, "useAnalytics", 0, function() {
        let [e, n] = (0, t.useState)({
            partner: null,
            discount: null
        }), a = (0, t.useCallback)(() => {
            r() && window.dubAnalytics("ready", () => {
                let {
                    partner: e = null,
                    discount: t = null
                } = window.DubAnalytics || {};
                n({
                    partner: e,
                    discount: t
                })
            })
        }, []), i = (0, t.useCallback)(e => {
            r() && window.dubAnalytics.trackClick(e)
        }, []), o = (0, t.useCallback)(e => {
            r() && window.dubAnalytics.trackLead(e)
        }, []), s = (0, t.useCallback)(e => {
            r() && window.dubAnalytics.trackSale(e)
        }, []);
        return (0, t.useEffect)(() => {
            a()
        }, [a]), { ...e,
            trackClick: i,
            trackLead: o,
            trackSale: s
        }
    }], 671876);
    var n = e.i(284553),
        a = e.i(932864);

    function i() {
        return false
    }

    function o(e) {
        return RegExp(`/${e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}(?=[/?#]|$)`)
    }

    function s(e) {
        return e.startsWith("http://") || e.startsWith("https://") || e.startsWith("/") ? e : `/${e}`
    }

    function u(e) {
        (0, t.useEffect)(() => {
            var t;
            e.beforeSend && (null == (t = window.si) || t.call(window, "beforeSend", e.beforeSend))
        }, [e.beforeSend]);
        let r = (0, t.useRef)(null);
        return (0, t.useEffect)(() => {
            if (!r.current) {
                let t = function(e = {}, t) {
                    var r;
                    if (!("u" > typeof window) || null === e.route) return null;
                    window.si || (window.si = function(...e) {
                        window.siq = window.siq || [], window.siq.push(e)
                    });
                    let {
                        beforeSend: n,
                        src: a,
                        dataset: o
                    } = function(e, t) {
                        var r, n;
                        let a = e;
                        if (t) try {
                            a = { ...null == (r = JSON.parse(t)) ? void 0 : r.speedInsights,
                                ...e
                            }
                        } catch {}
                        let o = {
                            sdkn: "@vercel/speed-insights" + (a.framework ? `/${a.framework}` : ""),
                            sdkv: "2.0.0"
                        };
                        return a.sampleRate && (o.sampleRate = a.sampleRate.toString()), a.route && (o.route = a.route), i() && !1 === a.debug && (o.debug = "false"), a.dsn && (o.dsn = a.dsn), a.endpoint ? o.endpoint = s(a.endpoint) : a.basePath && (o.endpoint = s(`${a.basePath}/speed-insights/vitals`)), {
                            src: (n = a).scriptSrc ? s(n.scriptSrc) : i() ? "https://va.vercel-scripts.com/v1/speed-insights/script.debug.js" : n.dsn ? "https://va.vercel-scripts.com/v1/speed-insights/script.js" : n.basePath ? s(`${n.basePath}/speed-insights/script.js`) : "/_vercel/speed-insights/script.js",
                            beforeSend: a.beforeSend,
                            dataset: o
                        }
                    }(e, t);
                    if (document.head.querySelector(`script[src*="${a}"]`)) return null;
                    n && (null == (r = window.si) || r.call(window, "beforeSend", n));
                    let u = document.createElement("script");
                    for (let [e, t] of (u.src = a, u.defer = !0, Object.entries(o))) u.dataset[e] = t;
                    return u.onerror = () => {
                        console.log(`[Vercel Speed Insights] Failed to load script from ${a}. Please check if any content blockers are enabled and try again.`)
                    }, document.head.appendChild(u), {
                        setRoute: e => {
                            u.dataset.route = e ? ? void 0
                        }
                    }
                }({
                    framework: e.framework ? ? "react",
                    basePath: e.basePath ? ? function() {
                        if (void 0 !== n.default && void 0 !== n.default.env) return n.default.env.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH
                    }(),
                    ...e
                }, e.configString ? ? function() {
                    if (void 0 !== n.default && void 0 !== n.default.env) return n.default.env.REACT_APP_VERCEL_OBSERVABILITY_CLIENT_CONFIG
                }());
                t && (r.current = t.setRoute)
            }
        }, [e]), (0, t.useEffect)(() => {
            r.current && e.route && r.current(e.route)
        }, [e.route]), null
    }

    function l(e) {
        let r = (() => {
            let e = (0, a.useParams)(),
                t = (0, a.useSearchParams)() || new URLSearchParams,
                r = (0, a.usePathname)();
            if (!e) return null;
            let n = Object.keys(e).length ? e : Object.fromEntries(t.entries());
            if (!r || !n) return r;
            let i = r;
            try {
                let e = Object.entries(n);
                for (let [t, r] of e)
                    if (!Array.isArray(r)) {
                        let e = o(r);
                        e.test(i) && (i = i.replace(e, `/[${t}]`))
                    }
                for (let [t, r] of e)
                    if (Array.isArray(r)) {
                        let e = o(r.join("/"));
                        e.test(i) && (i = i.replace(e, `/[...${t}]`))
                    }
                return i
            } catch {
                return r
            }
        })();
        return t.default.createElement(u, {
            route: r,
            ...e,
            framework: "next",
            basePath: function() {
                if (void 0 !== n.default && void 0 !== n.default.env) return n.default.env.NEXT_PUBLIC_VERCEL_OBSERVABILITY_BASEPATH
            }(),
            configString: function() {
                if (void 0 !== n.default && void 0 !== n.default.env) return '{"analytics":{"scriptSrc":"3638e9a6ec54ae4a/script.js","viewEndpoint":"3638e9a6ec54ae4a/view","eventEndpoint":"3638e9a6ec54ae4a/event","sessionEndpoint":"3638e9a6ec54ae4a/session"},"speedInsights":{"scriptSrc":"bcdfa74a30d42b7b/script.js","endpoint":"bcdfa74a30d42b7b/vitals"}}'
            }()
        })
    }
    e.s(["SpeedInsights", 0, function(e) {
        return t.default.createElement(t.Suspense, {
            fallback: null
        }, t.default.createElement(l, { ...e
        }))
    }], 439716)
}, 919249, (e, t, r) => {
    "use strict";
    Object.defineProperty(r, "__esModule", {
        value: !0
    }), Object.defineProperty(r, "LoadableContext", {
        enumerable: !0,
        get: function() {
            return n
        }
    });
    let n = e.r(2879)._(e.r(416340)).default.createContext(null)
}, 318583, (e, t, r) => {
    "use strict";
    Object.defineProperty(r, "__esModule", {
        value: !0
    }), Object.defineProperty(r, "default", {
        enumerable: !0,
        get: function() {
            return f
        }
    });
    let n = e.r(2879)._(e.r(416340)),
        a = e.r(919249),
        i = [],
        o = [],
        s = !1;

    function u(e) {
        let t = e(),
            r = {
                loading: !0,
                loaded: null,
                error: null
            };
        return r.promise = t.then(e => (r.loading = !1, r.loaded = e, e)).catch(e => {
            throw r.loading = !1, r.error = e, e
        }), r
    }
    class l {
        constructor(e, t) {
            this._loadFn = e, this._opts = t, this._callbacks = new Set, this._delay = null, this._timeout = null, this.retry()
        }
        promise() {
            return this._res.promise
        }
        retry() {
            this._clearTimeouts(), this._res = this._loadFn(this._opts.loader), this._state = {
                pastDelay: !1,
                timedOut: !1
            };
            let {
                _res: e,
                _opts: t
            } = this;
            e.loading && ("number" == typeof t.delay && (0 === t.delay ? this._state.pastDelay = !0 : this._delay = setTimeout(() => {
                this._update({
                    pastDelay: !0
                })
            }, t.delay)), "number" == typeof t.timeout && (this._timeout = setTimeout(() => {
                this._update({
                    timedOut: !0
                })
            }, t.timeout))), this._res.promise.then(() => {
                this._update({}), this._clearTimeouts()
            }).catch(e => {
                this._update({}), this._clearTimeouts()
            }), this._update({})
        }
        _update(e) {
            this._state = { ...this._state,
                error: this._res.error,
                loaded: this._res.loaded,
                loading: this._res.loading,
                ...e
            }, this._callbacks.forEach(e => e())
        }
        _clearTimeouts() {
            clearTimeout(this._delay), clearTimeout(this._timeout)
        }
        getCurrentValue() {
            return this._state
        }
        subscribe(e) {
            return this._callbacks.add(e), () => {
                this._callbacks.delete(e)
            }
        }
    }

    function c(t) {
        return function(t, r) {
            let u = Object.assign({
                    loader: null,
                    loading: null,
                    delay: 200,
                    timeout: null,
                    webpack: null,
                    modules: null
                }, r),
                c = null;

            function d() {
                if (!c) {
                    let e = new l(t, u);
                    c = {
                        getCurrentValue: e.getCurrentValue.bind(e),
                        subscribe: e.subscribe.bind(e),
                        retry: e.retry.bind(e),
                        promise: e.promise.bind(e)
                    }
                }
                return c.promise()
            }
            if ("u" < typeof window && i.push(d), !s && "u" > typeof window) {
                let t = u.webpack && "function" == typeof e.t.resolveWeak ? u.webpack() : u.modules;
                t && o.push(e => {
                    for (let r of t)
                        if (e.includes(r)) return d()
                })
            }

            function f(e, t) {
                let r;
                d(), (r = n.default.useContext(a.LoadableContext)) && Array.isArray(u.modules) && u.modules.forEach(e => {
                    r(e)
                });
                let i = n.default.useSyncExternalStore(c.subscribe, c.getCurrentValue, c.getCurrentValue);
                return n.default.useImperativeHandle(t, () => ({
                    retry: c.retry
                }), []), n.default.useMemo(() => {
                    var t;
                    return i.loading || i.error ? n.default.createElement(u.loading, {
                        isLoading: i.loading,
                        pastDelay: i.pastDelay,
                        timedOut: i.timedOut,
                        error: i.error,
                        retry: c.retry
                    }) : i.loaded ? n.default.createElement((t = i.loaded) && t.default ? t.default : t, e) : null
                }, [e, i])
            }
            return f.preload = () => d(), f.displayName = "LoadableComponent", n.default.forwardRef(f)
        }(u, t)
    }

    function d(e, t) {
        let r = [];
        for (; e.length;) {
            let n = e.pop();
            r.push(n(t))
        }
        return Promise.all(r).then(() => {
            if (e.length) return d(e, t)
        })
    }
    c.preloadAll = () => new Promise((e, t) => {
        d(i).then(e, t)
    }), c.preloadReady = (e = []) => new Promise(t => {
        let r = () => (s = !0, t());
        d(o, e).then(r, r)
    }), "u" > typeof window && (window.__NEXT_PRELOADREADY = c.preloadReady);
    let f = c
}, 628882, (e, t, r) => {
    "use strict";
    Object.defineProperty(r, "__esModule", {
        value: !0
    });
    var n = {
        default: function() {
            return d
        },
        noSSR: function() {
            return c
        }
    };
    for (var a in n) Object.defineProperty(r, a, {
        enumerable: !0,
        get: n[a]
    });
    let i = e.r(2879),
        o = e.r(221628);
    e.r(416340);
    let s = i._(e.r(318583)),
        u = "u" < typeof window;

    function l(e) {
        return {
            default: e ? .default || e
        }
    }

    function c(e, t) {
        if (delete t.webpack, delete t.modules, !u) return e(t);
        let r = t.loading;
        return () => (0, o.jsx)(r, {
            error: null,
            isLoading: !0,
            pastDelay: !1,
            timedOut: !1
        })
    }

    function d(e, t) {
        let r = s.default,
            n = {
                loading: ({
                    error: e,
                    isLoading: t,
                    pastDelay: r
                }) => null
            };
        e instanceof Promise ? n.loader = () => e : "function" == typeof e ? n.loader = e : "object" == typeof e && (n = { ...n,
            ...e
        });
        let a = (n = { ...n,
            ...t
        }).loader;
        return (n.loadableGenerated && (n = { ...n,
            ...n.loadableGenerated
        }, delete n.loadableGenerated), "boolean" != typeof n.ssr || n.ssr) ? r({ ...n,
            loader: () => null != a ? a().then(l) : Promise.resolve(l(() => null))
        }) : (delete n.webpack, delete n.modules, c(r, n))
    }("function" == typeof r.default || "object" == typeof r.default && null !== r.default) && void 0 === r.default.__esModule && (Object.defineProperty(r.default, "__esModule", {
        value: !0
    }), Object.assign(r.default, r), t.exports = r.default)
}, 97271, (e, t, r) => {
    t.exports = e.r(628882)
}, 224470, 721066, e => {
    "use strict";
    e.i(284553);
    var t = e.i(631222);
    e.s(["BaseAnalyticsAdapter", 0, class {
        adapterEnabled;
        debug;
        testMode;
        adapterInitialized;
        get isInitialized() {
            return this.adapterInitialized
        }
        constructor(e = !1, r, n) {
            this.adapterEnabled = void 0 !== n ? n : "production" === t.VERCEL_ENV, this.debug = !!e, this.testMode = r ? ? !1, this.adapterInitialized = !1
        }
    }], 224470), e.s(["baseConfig", 0, {
        flushQueueSize: 30,
        flushIntervalMillis: 1e4,
        useBatch: !0,
        logLevel: 1,
        defaultTracking: {
            sessions: !0
        }
    }], 721066)
}, 601676, e => {
    "use strict";
    var t = e.i(284553),
        r = e.i(744788),
        n = e.i(53950),
        a = e.i(224470),
        i = e.i(721066),
        o = e.i(668122);
    let s = {
        [o.Events.OrderStatusPending]: .1,
        [o.Events.OrderStatusMatched]: .1,
        [o.Events.OrderStatusMined]: .1,
        [o.Events.OrderStatusConfirmed]: .1,
        [o.Events.OrderStatusFailed]: .1,
        [o.Events.OrderUIDetails]: .1,
        [o.Events.SearchNavbar]: .75,
        [o.Events.SearchHomepage]: .75
    };
    class u extends a.BaseAnalyticsAdapter {
        constructor() {
            super("true" === t.default.env.NEXT_PUBLIC_AMPLITUDE_DEBUG, "true" === t.default.env.NEXT_PUBLIC_AMPLITUDE_TEST_MODE, !0)
        }
        async initializeAdapter() {
            if (this.debug && n.logger.debug("[BrowserAmplitudeAnalyticsAdapter > initializeAdapter]", {
                    config: {
                        enabled: this.adapterEnabled,
                        debug: this.debug,
                        testMode: this.testMode
                    }
                }), this.adapterEnabled) {
                let t = (await e.A(411942).then(e => e.sessionReplayPlugin))(),
                    n = await e.A(785339);
                n.add(t), n.init(r.AMPLITUDE_API_KEY, void 0, { ...i.baseConfig,
                    serverUrl: "/_a/batch"
                }), this.adapterInitialized = !0
            }
        }
        async linkUser(t) {
            this.debug && n.logger.debug("[BrowserAmplitudeAnalyticsAdapter > linkUser]", {
                params: {
                    proxyAddress: t
                }
            }), this.adapterEnabled && (await e.A(785339)).setUserId(t)
        }
        async getDeviceId() {
            if (this.debug && n.logger.debug("[BrowserAmplitudeAnalyticsAdapter > getDeviceId]"), this.adapterEnabled) return (await e.A(785339)).getDeviceId()
        }
        async setUserProperty(t, r) {
            if (this.debug && n.logger.debug("[BrowserAmplitudeAnalyticsAdapter > setUserProperty]", {
                    name: t,
                    value: r
                }), this.adapterEnabled) {
                let n = await e.A(785339),
                    a = new n.Identify;
                a.set(t, r), n.identify(a)
            }
        }
        async trackEvent(t, r, a) {
            this.debug && n.logger.debug("[BrowserAmplitudeAnalyticsAdapter > trackEvent]", {
                    eventName: t,
                    params: r
                }),
                function(e, t, r) {
                    let n = s[e];
                    if (void 0 === n || n >= 1) return !0;
                    if (n <= 0) return !1;
                    let a = function(e, t) {
                        if (e && "object" == typeof e) {
                            let t = e.order_id ? ? e.orderId;
                            if ("string" == typeof t && t) return t;
                            let r = e.trade_id ? ? e.tradeId;
                            if ("string" == typeof r && r) return r;
                            let n = e.market_id ? ? e.marketId;
                            if ("string" == typeof n && n) return n
                        }
                        if ("string" == typeof t && t) return t
                    }(t, r);
                    return a ? function(e) {
                        let t = 0x811c9dc5;
                        for (let r = 0; r < e.length; r++) t ^= e.charCodeAt(r), t = Math.imul(t, 0x1000193);
                        return t >>> 0
                    }(a.toLowerCase()) / 0x100000000 < n : Math.random() < n
                }(t, r, a) && this.adapterEnabled && (await e.A(785339)).track(t, r, a ? {
                    user_id: a
                } : void 0)
        }
    }
    e.s(["BrowserAmplitudeAnalyticsAdapter", 0, u], 601676)
}, 90275, e => {
    "use strict";
    e.s(["BrowserAnalyticsAdapterEnum", 0, {
        GoogleAnalytics: "GoogleAnalytics",
        AmplitudeAnalytics: "AmplitudeAnalytics"
    }])
}, 305457, 134850, 636357, 222550, 867487, 85439, e => {
    "use strict";
    let t;
    var r, n = e.i(221628),
        a = e.i(999061),
        i = e.i(671876),
        o = e.i(249785),
        s = e.i(439716),
        u = e.i(97271),
        l = e.i(294781),
        c = e.i(416340),
        d = e.i(601676),
        f = e.i(90275),
        p = e.i(284553),
        m = e.i(976338),
        g = e.i(53950),
        h = ((r = h || {}).CLICK = "click", r.METRIC = "metric", r.ONBOARDING = "onboarding", r.TRADE = "trade", r.TRANSACTION = "transaction", r.DEPOSIT = "deposit", r.USER_GOAL = "userGoal", r);
    e.s(["GAEventAction", () => h], 134850);
    var b = e.i(224470);
    class y extends b.BaseAnalyticsAdapter {
        userProperties = {};
        constructor() {
            super("true" === p.default.env.NEXT_PUBLIC_GA_DEBUG)
        }
        sendData(e) {
            (0, m.sendGTMEvent)(e)
        }
        sendEvent(e, t) {
            this.sendData({ ...t,
                event: e
            })
        }
        initializeAdapter() {
            this.debug && g.logger.debug("[GoogleAnalyticsAdapter > initializeAdapter]", {
                config: {
                    enabled: this.adapterEnabled,
                    debug: this.debug,
                    testMode: this.testMode
                }
            }), this.adapterEnabled && (this.adapterInitialized = !0)
        }
        linkUser(e) {
            this.debug && g.logger.debug("[GoogleAnalyticsAdapter > linkUser]", {
                params: {
                    proxyAddress: e
                },
                config: {
                    enabled: this.adapterEnabled,
                    debug: this.debug,
                    testMode: this.testMode
                }
            }), this.adapterEnabled && (this.sendData({
                user_id: e
            }), this.setUserProperty("user_id", e))
        }
        setUserProperties(e) {
            this.debug && g.logger.debug("[GoogleAnalyticsAdapter > setUserProperties]", {
                properties: e,
                config: {
                    enabled: this.adapterEnabled,
                    debug: this.debug,
                    testMode: this.testMode
                }
            }), this.adapterEnabled && (Object.assign(this.userProperties, e), this.sendData({
                user_properties: e
            }))
        }
        setUserProperty(e, t) {
            this.setUserProperties({
                [e]: t
            })
        }
        trackGA4Event(e, t) {
            if (this.debug && g.logger.debug("[GoogleAnalyticsAdapter > trackGA4Event]", {
                    params: {
                        eventName: e,
                        params: t
                    },
                    config: {
                        enabled: this.adapterEnabled,
                        debug: this.debug,
                        testMode: this.testMode
                    }
                }), this.adapterEnabled) {
                let r = { ...t,
                    ...this.userProperties
                };
                this.sendEvent(e, r)
            }
        }
        trackEvent(e, t) {
            if (this.debug && g.logger.debug("[GoogleAnalyticsAdapter > trackEvent]", {
                    params: {
                        optionsOrName: e,
                        params: t
                    },
                    config: {
                        enabled: this.adapterEnabled,
                        debug: this.debug,
                        testMode: this.testMode
                    }
                }), this.adapterEnabled)
                if ("string" == typeof e) this.sendEvent(e, t);
                else {
                    let {
                        action: t,
                        category: r,
                        label: n,
                        value: a,
                        nonInteraction: i
                    } = e;
                    this.sendEvent(t, {
                        event_category: r,
                        event_label: n,
                        value: a,
                        non_interaction: i
                    })
                }
        }
        trackMetric(e, t, r) {
            this.debug && g.logger.debug("[GoogleAnalyticsAdapter > trackMetric]", {
                params: {
                    name: e,
                    value: t,
                    nonInteraction: r
                },
                config: {
                    enabled: this.adapterEnabled,
                    debug: this.debug,
                    testMode: this.testMode
                }
            }), this.adapterEnabled && this.trackEvent(h.METRIC, {
                event_name: e,
                event_value: t,
                nonInteraction: r
            })
        }
        trackClickEvent(e) {
            this.debug && g.logger.debug("[GoogleAnalyticsAdapter > trackClickEvent]", {
                params: {
                    elementName: e
                },
                config: {
                    enabled: this.adapterEnabled,
                    debug: this.debug,
                    testMode: this.testMode
                }
            }), this.adapterEnabled && this.trackEvent(h.CLICK, {
                element_name: e
            })
        }
        trackPageView(e) {
            this.debug && g.logger.debug("[GoogleAnalyticsAdapter > trackPageView]", {
                params: {
                    url: e
                },
                config: {
                    enabled: this.adapterEnabled,
                    debug: this.debug,
                    testMode: this.testMode
                }
            }), this.adapterEnabled && this.sendEvent("page_view", {
                page_path: e,
                page_location: window.location.href
            })
        }
    }
    var _ = e.i(722045);
    let E = "pm_referral_attribution",
        v = e => e.trim().slice(0, 64),
        S = "pm_referral_attribution",
        w = "PM_FBC";

    function R(e) {
        let t = e.split(".");
        if (t.length < 4 || "fb" !== t[0]) return;
        let r = Number(t[2]);
        return Number.isFinite(r) && r > 0 ? r : void 0
    }

    function O(e) {
        let t = R(e);
        return void 0 !== t && Date.now() - t < 7776e6
    }

    function P(e) {
        return `fb.1.${Date.now()}.${e}`
    }

    function C(e, t) {
        try {
            t ? .skipCookieWrite || _.default.set("_fbc", e, {
                path: "/",
                expires: 90
            }), window.localStorage ? .setItem(w, e)
        } catch {}
    }
    let k = () => {
            let e, t = _.default.get("_fbc"),
                r = function() {
                    try {
                        let e = window.localStorage ? .getItem(w);
                        if (e && O(e)) return e
                    } catch {}
                }();
            if (t && O(t) && r) {
                let n = R(t) ? ? 0;
                e = (R(r) ? ? 0) > n ? r : t
            } else e = t && O(t) ? t : r;
            return {
                fbc: e || void 0,
                fbp: _.default.get("_fbp") || void 0
            }
        },
        A = (e, t) => {
            let r = v(e);
            if (r) {
                t ? .skipCookieWrite || _.default.set(E, r, {
                    expires: 30,
                    path: "/",
                    sameSite: "lax"
                });
                try {
                    window.localStorage ? .setItem(S, JSON.stringify({
                        code: r,
                        ts: Date.now()
                    }))
                } catch {}
            }
        };
    e.s(["buildFbc", 0, P, "getCookie", 0, e => _.default.get(e), "getMetaPixelCookies", 0, k, "getRedditPixelCookies", 0, () => ({
        uuid: _.default.get("_rdt_uuid") || void 0
    }), "getReferralAttributionCookie", 0, () => {
        let e = _.default.get(E);
        if (e) return e;
        try {
            let e = window.localStorage ? .getItem(S);
            if (!e) return;
            let t = JSON.parse(e);
            if ("object" == typeof t && t.code && "number" == typeof t.ts) {
                if (Date.now() - t.ts < 2592e6) return t.code;
                window.localStorage ? .removeItem(S);
                return
            }
            if ("string" == typeof t) return t;
            return
        } catch {
            return
        }
    }, "getSnapchatPixelCookies", 0, () => ({
        sc_cookie1: _.default.get("_scid") || void 0
    }), "getTikTokPixelCookies", 0, () => ({
        ttp: _.default.get("_ttp") || void 0
    }), "isFbcFresh", 0, O, "setFallbackFbc", 0, C, "setReferralAttributionCookie", 0, A], 636357);
    let T = "UTM_PARAMETERS",
        j = () => window.localStorage ? .getItem(T) !== null ? JSON.parse(String(localStorage.getItem(T))) : {},
        M = e => {
            window.localStorage ? .setItem(T, JSON.stringify(e))
        };
    e.s(["getLSUTMParameters", 0, j, "setLSUTMParameters", 0, M], 222550);
    let x = e.A(309935).then(e => {
            t = e.AnalyticsBrowser.load({
                writeKey: "13c96cb84f404fdd65f8"
            })
        }),
        D = async (e, r = {}) => {
            try {
                if (await x, !t) return;
                let n = j(),
                    a = k(),
                    i = "u" > typeof navigator ? navigator.userAgent : void 0,
                    o = { ...r
                    },
                    s = {
                        utm_source: n.utm_source,
                        utm_medium: n.utm_medium,
                        utm_campaign: n.utm_campaign,
                        utm_content: n.utm_content,
                        utm_term: n.utm_term,
                        fbclid: n.fbclid,
                        fbc: a.fbc,
                        fbp: a.fbp,
                        user_agent: i
                    };
                Object.entries(s).forEach(([e, t]) => {
                    void 0 !== t && void 0 === o[e] && (o[e] = t)
                }), t.identify(e, { ...o
                })
            } catch {}
        },
        I = async (e, r) => {
            try {
                if (await x, !t) return;
                t.track(e, r)
            } catch {}
        },
        N = async () => {
            try {
                if (await x, !t) return;
                t.page()
            } catch {}
        };
    e.s(["identifyUser", 0, D, "trackEvent", 0, I, "trackPage", 0, N], 867487);
    var L = e.i(348320),
        U = e.i(473765);
    let B = null,
        $ = 0,
        H = null;

    function F() {
        return U.isBrowser ? performance.memory ? ? null : null
    }

    function G() {
        let e, t, r, n, a, i = F();
        if (!i) return;
        let s = (t = Math.round(i.usedJSHeapSize / 1024 / 1024), r = Math.round(i.totalJSHeapSize / 1024 / 1024), n = Math.round(i.jsHeapSizeLimit / 1024 / 1024), a = Number((i.usedJSHeapSize / i.jsHeapSizeLimit * 100).toFixed(1)), {
                usedJSHeapSize: i.usedJSHeapSize,
                totalJSHeapSize: i.totalJSHeapSize,
                jsHeapSizeLimit: i.jsHeapSizeLimit,
                usedMB: t,
                totalMB: r,
                limitMB: n,
                usagePercent: a
            }),
            u = s.usedJSHeapSize > 0x80000000,
            l = s.usagePercent / 100 > .8;
        if (!u && !l) {
            $ = 0, H = null;
            return
        }
        let c = Date.now();
        if (!(null === H || c >= H)) return;
        $++, H = c + 6e4, e = l && u ? "relative_threshold" : u ? "absolute_threshold" : "relative_threshold";
        let d = {
                usedMB: s.usedMB,
                totalMB: s.totalMB,
                limitMB: s.limitMB,
                usagePercent: s.usagePercent,
                deviceMemoryGB: navigator.deviceMemory ? ? null,
                visibilityState: document.visibilityState,
                sessionDurationMs: Math.round(performance.now()),
                nthAlertInARow: $
            },
            f = 200 * Math.floor(d.usedMB / 200),
            p = `${f}-${f+200}MB`;
        (0, o.captureMessage)("absolute_threshold" === e ? `High memory usage: ${d.usedMB}MB, minute #${$} in a row (exceeded 2 GB)` : `High memory usage: ${d.usedMB}MB, minute #${$} in a row (exceeded 80% of heap limit)`, {
            level: "warning",
            tags: {
                memory_alert_reason: e,
                memory_bucket: p,
                visibility_state: d.visibilityState
            },
            extra: d
        }), (0, L.sendGroundcoverEvent)("absolute_threshold" === e ? "high_memory_exceeded_2gb" : "high_memory_exceeded_80pct", d)
    }

    function W() {
        B && (clearInterval(B), B = null), $ = 0, H = null
    }
    let X = "pm_tid",
        z = /^[A-Za-z0-9]{7,8}$/,
        V = /^[A-Za-z0-9]{7}$/,
        q = p.default.env.NEXT_PUBLIC_DUB_DOMAIN ? ? "poly.market",
        Y = () => {
            let e = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
            return Array.from({
                length: 8
            }, () => e[Math.floor(Math.random() * e.length)]).join("")
        },
        K = () => ((() => {
            let e, t, r = (0, a.c)(4),
                {
                    trackClick: n
                } = (0, i.useAnalytics)(),
                o = (0, l.useRouter)();
            r[0] !== o || r[1] !== n ? (e = () => {
                let e;
                (!o || o.isReady) && (e = window.location.hash.slice(1), (z.test(e) ? e : null) && (async () => {
                    let e, t = (e = window.location.hash.slice(1), V.test(e) ? e : null);
                    if (t) {
                        n({
                            domain: q,
                            key: t
                        });
                        try {
                            let e = await fetch(`/api/share/link-info?key=${t}`),
                                r = await e.json();
                            r.tenantId && n({
                                domain: q,
                                key: r.tenantId
                            })
                        } catch {}
                    }
                    setTimeout(() => {
                        o ? o.replace({
                            pathname: o.pathname,
                            query: o.query
                        }, void 0, {
                            shallow: !0
                        }) : window.history.replaceState(window.history.state, "", window.location.pathname + window.location.search)
                    }, 100)
                })())
            }, t = [o, n], r[0] = o, r[1] = n, r[2] = e, r[3] = t) : (e = r[2], t = r[3]), (0, c.useEffect)(e, t)
        })(), null);
    e.s(["LinkTidTracker", 0, K, "SHORT_LINK_SLUG_REGEX", 0, V, "applyTidToUrl", 0, e => {
        let t = (() => {
                try {
                    let e = (() => {
                        try {
                            let e = sessionStorage.getItem(X);
                            return e && z.test(e) ? e : null
                        } catch {
                            return null
                        }
                    })();
                    if (e) return e;
                    let t = Y();
                    return sessionStorage.setItem(X, t), t
                } catch {
                    return Y()
                }
            })(),
            {
                hash: r
            } = new URL(e);
        return r ? e : `${e}#${t}`
    }, "getStoredShortLinkSlug", 0, () => {
        try {
            let e = sessionStorage.getItem(X);
            return e && V.test(e) ? e : null
        } catch {
            return null
        }
    }, "setStoredTid", 0, e => {
        try {
            z.test(e) && sessionStorage.setItem(X, e)
        } catch {}
    }], 85439);
    let J = (0, u.default)(() => e.A(521514), {
            loadableGenerated: {
                modules: [71406]
            },
            ssr: !1
        }),
        Q = (0, c.createContext)({});

    function Z() {
        return {
            pathname: window.location.pathname,
            asPath: `${window.location.pathname}${window.location.search}`
        }
    }
    let ee = async e => {
        await Promise.all(Object.values(e).map(e => e.initializeAdapter()));
        let t = new URL(window.location.href).searchParams.get("via"),
            r = {
                referrer: document.referrer || "direct",
                url: window.location.href
            };
        if (t && (r.via = t), t) {
            let e = 0,
                t = setInterval(() => {
                    if (e++, document.cookie.includes("dub_id=") || document.cookie.includes("dclid=") || document.cookie.includes("dub_partner_data=") || e >= 20) {
                        let e;
                        clearInterval(t), (e = new URL(window.location.href)).searchParams.has("via") && (e.searchParams.delete("via"), window.history.replaceState(window.history.state, "", e.toString()))
                    }
                }, 250)
        }
    };

    function et() {
        return {
            [f.BrowserAnalyticsAdapterEnum.GoogleAnalytics]: new y,
            [f.BrowserAnalyticsAdapterEnum.AmplitudeAnalytics]: new d.BrowserAmplitudeAnalyticsAdapter
        }
    }

    function er(e) {
        return e.startsWith("pm_trade_redirect_params=")
    }

    function en() {
        let e = new URL(window.location.href);
        if (e.searchParams.has("via")) return;
        let t = document.cookie.split("; ").find(er);
        if (!t) return;
        let r = t.substring(25);
        try {
            let t = new URLSearchParams(decodeURIComponent(r)).get("via");
            t && (e.searchParams.set("via", t), window.history.replaceState(window.history.state, "", e.toString()))
        } catch {}
    }

    function ea() {
        return U.isBrowser && !B && F() && (G(), B = setInterval(G, 5e3)), W
    }
    e.s(["AnalyticsContextProvider", 0, e => {
        let t, r, u, d, p, m, h, b, y, S, w, R, T = (0, a.c)(23),
            {
                children: x,
                enableThirdPartyAnalytics: D
            } = e,
            L = void 0 === D || D,
            U = (0, c.useRef)(!1),
            B = function() {
                let e, t, r, n = (0, a.c)(6),
                    i = (0, l.useRouter)(),
                    [o, s] = (0, c.useState)(Z);
                n[0] !== i ? (e = () => {
                    if (i) return;
                    let e = () => s(Z());
                    return e(), window.addEventListener("popstate", e), () => window.removeEventListener("popstate", e)
                }, t = [i], n[0] = i, n[1] = e, n[2] = t) : (e = n[1], t = n[2]), (0, c.useEffect)(e, t), i ? .pathname, i ? .asPath;
                let u = i ? .pathname ? ? o.pathname,
                    d = i ? .asPath ? ? o.asPath;
                return n[3] !== u || n[4] !== d ? (r = {
                    pathname: u,
                    asPath: d
                }, n[3] = u, n[4] = d, n[5] = r) : r = n[5], r
            }(),
            [$] = (0, c.useState)(et);
        T[0] === Symbol.for("react.memo_cache_sentinel") ? (t = [], T[0] = t) : t = T[0], (0, c.useLayoutEffect)(en, t), T[1] !== $ || T[2] !== B.pathname ? (r = () => {
            B.pathname && (async () => {
                let e = U.current;
                U.current = !0, e || await ee($), $[f.BrowserAnalyticsAdapterEnum.GoogleAnalytics].trackPageView(window.location.pathname), await N()
            })()
        }, T[1] = $, T[2] = B.pathname, T[3] = r) : r = T[3], T[4] !== $ || T[5] !== B.asPath || T[6] !== B.pathname ? (u = [$, B.pathname, B.asPath], T[4] = $, T[5] = B.asPath, T[6] = B.pathname, T[7] = u) : u = T[7], (0, c.useEffect)(r, u), T[8] !== $ ? (d = (...e) => ((e, t, r) => {
            let n = t ? ? "";
            e[f.BrowserAnalyticsAdapterEnum.GoogleAnalytics].linkUser(n), e[f.BrowserAnalyticsAdapterEnum.AmplitudeAnalytics].linkUser(n), (0, o.setUser)({
                id: n
            }), g.logger.setUser({
                id: n,
                auth_type: r
            })
        })($, ...e), T[8] = $, T[9] = d) : d = T[9], T[10] !== $ || T[11] !== d ? (p = {
            initializeUserSession: d,
            adapters: $
        }, T[10] = $, T[11] = d, T[12] = p) : p = T[12];
        let H = p;
        return R = (0, l.useRouter)(), (0, c.useEffect)(() => {
            let e, t;
            if (R && !R.isReady) return;
            let r = new URL(window.location.href),
                n = e => R ? .query[e] ? ? r.searchParams.get(e),
                a = n("dub_id"),
                i = n("utm_source"),
                o = n("utm_medium"),
                s = n("utm_campaign"),
                u = n("utm_content"),
                l = n("utm_term"),
                c = n("utmTerm"),
                d = n("utm_id"),
                f = n("campaign_id"),
                p = n("ad_id"),
                m = n("fbclid"),
                g = n("r"),
                h = n("via"),
                b = "string" == typeof l && l || "string" == typeof c && c || void 0;
            if (!(a || i || o || s || u || l || c || d || f || p || m || g || h)) return;
            if (g && "string" == typeof g) {
                let e = v(g);
                e && A(e, {
                    skipCookieWrite: _.default.get(E) === e
                })
            }
            a && "string" == typeof a && _.default.set("dub_id", a, {
                path: "/"
            });
            let y = i || o || s || u || l || c || d || f || p || m;
            if (m && "string" == typeof m) {
                let e = _.default.get("_fbc"),
                    t = e ? .split(".").slice(3).join("."),
                    r = !e || !O(e) || t !== m;
                C(!r && e ? e : P(m), {
                    skipCookieWrite: !r
                })
            }
            if (y) {
                let e = { ...j(),
                    ...i && {
                        utm_source: String(i)
                    },
                    ...o && {
                        utm_medium: String(o)
                    },
                    ...s && {
                        utm_campaign: String(s)
                    },
                    ...u && {
                        utm_content: String(u)
                    },
                    ...b && {
                        utm_term: String(b)
                    },
                    ...d && {
                        utm_id: String(d)
                    },
                    ...f && {
                        campaign_id: String(f)
                    },
                    ...p && {
                        ad_id: String(p)
                    },
                    ...m && {
                        fbclid: String(m)
                    }
                };
                M(e);
                let t = k();
                I("marketingParams", { ...e,
                    pathname: R ? .pathname ? ? r.pathname,
                    fbc: t.fbc,
                    fbp: t.fbp
                })
            }
            let S = () => {
                let e = new URL(window.location.href);
                for (let t of ["dub_id", "utm_source", "utm_medium", "utm_campaign", "utm_content", "utm_term", "utmTerm", "utm_id", "campaign_id", "ad_id", "fbclid", "r", "via"]) e.searchParams.delete(t);
                let t = e.pathname + e.search;
                R ? R.replace(t, void 0, {
                    shallow: !0
                }) : window.history.replaceState(window.history.state, "", t)
            };
            if (a && "string" == typeof a) {
                let t = 0;
                e = setInterval(() => {
                    t++, (document.cookie.includes("dclid=") || document.cookie.includes("dub_partner_data=") || t >= 20) && (clearInterval(e), S())
                }, 250)
            } else t = setTimeout(S, 100);
            return () => {
                e && clearInterval(e), t && clearTimeout(t)
            }
        }, [R]), T[13] === Symbol.for("react.memo_cache_sentinel") ? (m = [], T[13] = m) : m = T[13], (0, c.useEffect)(ea, m), T[14] === Symbol.for("react.memo_cache_sentinel") ? (h = (0, n.jsx)(K, {}), T[14] = h) : h = T[14], T[15] !== L ? (b = L && (0, n.jsx)(J, {}), T[15] = L, T[16] = b) : b = T[16], T[17] === Symbol.for("react.memo_cache_sentinel") ? (y = (0, n.jsx)(s.SpeedInsights, {
            sampleRate: .1
        }), T[17] = y) : y = T[17], T[18] === Symbol.for("react.memo_cache_sentinel") ? (S = (0, n.jsx)(i.Analytics, {
            apiHost: "/_proxy/dub",
            domainsConfig: {
                refer: "poly.market"
            },
            scriptProps: {
                src: "/_proxy/dub/script.js"
            }
        }), T[18] = S) : S = T[18], T[19] !== x || T[20] !== b || T[21] !== H ? (w = (0, n.jsxs)(Q.Provider, {
            value: H,
            children: [h, b, y, S, x]
        }), T[19] = x, T[20] = b, T[21] = H, T[22] = w) : w = T[22], w
    }, "useAmplitudeAnalytics", 0, () => (0, c.useContext)(Q).adapters[f.BrowserAnalyticsAdapterEnum.AmplitudeAnalytics], "useAnalyticsContext", 0, () => (0, c.useContext)(Q), "useGoogleAnalytics", 0, () => (0, c.useContext)(Q).adapters[f.BrowserAnalyticsAdapterEnum.GoogleAnalytics]], 305457)
}]);

//# debugId=c5e77d99-14d8-3474-36c4-53241b777cbc