147 lines
3.8 KiB
JavaScript
147 lines
3.8 KiB
JavaScript
/*
|
|
* Extracted from browser-delivered Turbopack chunk: a3e5634aaf3cd51c.d183579820.js
|
|
* Module id: 911861
|
|
* For reading/searching only; this factory depends on the original Turbopack runtime.
|
|
*/
|
|
|
|
const moduleFactory = (e, t, r) => {
|
|
"use strict";
|
|
Object.defineProperty(r, "__esModule", { value: !0 });
|
|
var n = {
|
|
DecodeError: function () {
|
|
return y;
|
|
},
|
|
MiddlewareNotFoundError: function () {
|
|
return P;
|
|
},
|
|
MissingStaticPage: function () {
|
|
return C;
|
|
},
|
|
NormalizeError: function () {
|
|
return E;
|
|
},
|
|
PageNotFoundError: function () {
|
|
return v;
|
|
},
|
|
SP: function () {
|
|
return m;
|
|
},
|
|
ST: function () {
|
|
return g;
|
|
},
|
|
WEB_VITALS: function () {
|
|
return i;
|
|
},
|
|
execOnce: function () {
|
|
return a;
|
|
},
|
|
getDisplayName: function () {
|
|
return f;
|
|
},
|
|
getLocationOrigin: function () {
|
|
return u;
|
|
},
|
|
getURL: function () {
|
|
return c;
|
|
},
|
|
isAbsoluteUrl: function () {
|
|
return s;
|
|
},
|
|
isResSent: function () {
|
|
return h;
|
|
},
|
|
loadGetInitialProps: function () {
|
|
return p;
|
|
},
|
|
normalizeRepeatedSlashes: function () {
|
|
return d;
|
|
},
|
|
stringifyError: function () {
|
|
return M;
|
|
},
|
|
};
|
|
for (var o in n) Object.defineProperty(r, o, { enumerable: !0, get: n[o] });
|
|
let i = ["CLS", "FCP", "FID", "INP", "LCP", "TTFB"];
|
|
function a(e) {
|
|
let t,
|
|
r = !1;
|
|
return (...n) => (r || ((r = !0), (t = e(...n))), t);
|
|
}
|
|
let l = /^[a-zA-Z][a-zA-Z\d+\-.]*?:/,
|
|
s = (e) => l.test(e);
|
|
function u() {
|
|
let { protocol: e, hostname: t, port: r } = window.location;
|
|
return `${e}//${t}${r ? ":" + r : ""}`;
|
|
}
|
|
function c() {
|
|
let { href: e } = window.location,
|
|
t = u();
|
|
return e.substring(t.length);
|
|
}
|
|
function f(e) {
|
|
return "string" == typeof e ? e : e.displayName || e.name || "Unknown";
|
|
}
|
|
function h(e) {
|
|
return e.finished || e.headersSent;
|
|
}
|
|
function d(e) {
|
|
let t = e.split("?");
|
|
return (
|
|
t[0].replace(/\\/g, "/").replace(/\/\/+/g, "/") +
|
|
(t[1] ? `?${t.slice(1).join("?")}` : "")
|
|
);
|
|
}
|
|
async function p(e, t) {
|
|
let r = t.res || (t.ctx && t.ctx.res);
|
|
if (!e.getInitialProps)
|
|
return t.ctx && t.Component
|
|
? { pageProps: await p(t.Component, t.ctx) }
|
|
: {};
|
|
let n = await e.getInitialProps(t);
|
|
if (r && h(r)) return n;
|
|
if (!n)
|
|
throw Object.defineProperty(
|
|
Error(
|
|
`"${f(e)}.getInitialProps()" should resolve to an object. But found "${n}" instead.`,
|
|
),
|
|
"__NEXT_ERROR_CODE",
|
|
{ value: "E394", enumerable: !1, configurable: !0 },
|
|
);
|
|
return n;
|
|
}
|
|
let m = "u" > typeof performance,
|
|
g =
|
|
m &&
|
|
["mark", "measure", "getEntriesByName"].every(
|
|
(e) => "function" == typeof performance[e],
|
|
);
|
|
class y extends Error {}
|
|
class E extends Error {}
|
|
class v extends Error {
|
|
constructor(e) {
|
|
super(),
|
|
(this.code = "ENOENT"),
|
|
(this.name = "PageNotFoundError"),
|
|
(this.message = `Cannot find module for page: ${e}`);
|
|
}
|
|
}
|
|
class C extends Error {
|
|
constructor(e, t) {
|
|
super(),
|
|
(this.message = `Failed to load static file for page: ${e} ${t}`);
|
|
}
|
|
}
|
|
class P extends Error {
|
|
constructor() {
|
|
super(),
|
|
(this.code = "ENOENT"),
|
|
(this.message = "Cannot find the middleware module");
|
|
}
|
|
}
|
|
function M(e) {
|
|
return JSON.stringify({ message: e.message, stack: e.stack });
|
|
}
|
|
};
|
|
|
|
export default moduleFactory;
|