-
-
Save gaearon/6ce1f86577a55a738f2319fcdaa90892 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(self.webpackChunk_N_E = self.webpackChunk_N_E || []).push([ | |
[179], | |
{ | |
37: function () { | |
"trimStart" in String.prototype || | |
(String.prototype.trimStart = String.prototype.trimLeft), | |
"trimEnd" in String.prototype || | |
(String.prototype.trimEnd = String.prototype.trimRight), | |
"description" in Symbol.prototype || | |
Object.defineProperty(Symbol.prototype, "description", { | |
configurable: !0, | |
get: function () { | |
var e = /\((.*)\)/.exec(this.toString()); | |
return e ? e[1] : void 0; | |
}, | |
}), | |
Array.prototype.flat || | |
((Array.prototype.flat = function (e, t) { | |
return ( | |
(t = this.concat.apply([], this)), | |
e > 1 && t.some(Array.isArray) ? t.flat(e - 1) : t | |
); | |
}), | |
(Array.prototype.flatMap = function (e, t) { | |
return this.map(e, t).flat(); | |
})), | |
Promise.prototype.finally || | |
(Promise.prototype.finally = function (e) { | |
if ("function" != typeof e) return this.then(e, e); | |
var t = this.constructor || Promise; | |
return this.then( | |
function (r) { | |
return t.resolve(e()).then(function () { | |
return r; | |
}); | |
}, | |
function (r) { | |
return t.resolve(e()).then(function () { | |
throw r; | |
}); | |
} | |
); | |
}); | |
}, | |
1831: function (e, t) { | |
"use strict"; | |
function r(e, t) { | |
return null != t && | |
"undefined" !== typeof Symbol && | |
t[Symbol.hasInstance] | |
? !!t[Symbol.hasInstance](e) | |
: e instanceof t; | |
} | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
(t.default = function () { | |
var e = null; | |
return { | |
mountedInstances: new Set(), | |
updateHead: function (t) { | |
var r = (e = Promise.resolve().then(function () { | |
if (r === e) { | |
e = null; | |
var n = {}; | |
t.forEach(function (e) { | |
if ("link" === e.type && e.props["data-optimized-fonts"]) { | |
if ( | |
document.querySelector( | |
'style[data-href="'.concat(e.props["data-href"], '"]') | |
) | |
) | |
return; | |
(e.props.href = e.props["data-href"]), | |
(e.props["data-href"] = void 0); | |
} | |
var t = n[e.type] || []; | |
t.push(e), (n[e.type] = t); | |
}); | |
var i = n.title ? n.title[0] : null, | |
u = ""; | |
if (i) { | |
var c = i.props.children; | |
u = | |
"string" === typeof c | |
? c | |
: Array.isArray(c) | |
? c.join("") | |
: ""; | |
} | |
u !== document.title && (document.title = u), | |
["meta", "base", "link", "style", "script"].forEach( | |
function (e) { | |
!(function (e, t) { | |
var r = document.getElementsByTagName("head")[0], | |
n = r.querySelector("meta[name=next-head-count]"); | |
0; | |
for ( | |
var i = Number(n.content), | |
u = [], | |
c = 0, | |
l = n.previousElementSibling; | |
c < i; | |
c++, | |
l = | |
(null === l || void 0 === l | |
? void 0 | |
: l.previousElementSibling) || null | |
) { | |
var s; | |
(null === l || | |
void 0 === l || | |
null === (s = l.tagName) || | |
void 0 === s | |
? void 0 | |
: s.toLowerCase()) === e && u.push(l); | |
} | |
var f = t.map(o).filter(function (e) { | |
for (var t = 0, r = u.length; t < r; t++) { | |
if (a(u[t], e)) return u.splice(t, 1), !1; | |
} | |
return !0; | |
}); | |
u.forEach(function (e) { | |
var t; | |
return null === (t = e.parentNode) || void 0 === t | |
? void 0 | |
: t.removeChild(e); | |
}), | |
f.forEach(function (e) { | |
return r.insertBefore(e, n); | |
}), | |
(n.content = (i - u.length + f.length).toString()); | |
})(e, n[e] || []); | |
} | |
); | |
} | |
})); | |
}, | |
}; | |
}), | |
(t.isEqualNode = a), | |
(t.DOMAttributeNames = void 0); | |
var n = { | |
acceptCharset: "accept-charset", | |
className: "class", | |
htmlFor: "for", | |
httpEquiv: "http-equiv", | |
noModule: "noModule", | |
}; | |
function o(e) { | |
var t = e.type, | |
r = e.props, | |
o = document.createElement(t); | |
for (var a in r) | |
if ( | |
r.hasOwnProperty(a) && | |
"children" !== a && | |
"dangerouslySetInnerHTML" !== a && | |
void 0 !== r[a] | |
) { | |
var i = n[a] || a.toLowerCase(); | |
"script" !== t || | |
("async" !== i && "defer" !== i && "noModule" !== i) | |
? o.setAttribute(i, r[a]) | |
: (o[i] = !!r[a]); | |
} | |
var u = r.children, | |
c = r.dangerouslySetInnerHTML; | |
return ( | |
c | |
? (o.innerHTML = c.__html || "") | |
: u && | |
(o.textContent = | |
"string" === typeof u ? u : Array.isArray(u) ? u.join("") : ""), | |
o | |
); | |
} | |
function a(e, t) { | |
if (r(e, HTMLElement) && r(t, HTMLElement)) { | |
var n = t.getAttribute("nonce"); | |
if (n && !e.getAttribute("nonce")) { | |
var o = t.cloneNode(!0); | |
return ( | |
o.setAttribute("nonce", ""), | |
(o.nonce = n), | |
n === e.nonce && e.isEqualNode(o) | |
); | |
} | |
} | |
return e.isEqualNode(t); | |
} | |
(t.DOMAttributeNames = n), | |
("function" === typeof t.default || | |
("object" === typeof t.default && null !== t.default)) && | |
"undefined" === typeof t.default.__esModule && | |
(Object.defineProperty(t.default, "__esModule", { value: !0 }), | |
Object.assign(t.default, t), | |
(e.exports = t.default)); | |
}, | |
4534: function (e, t, r) { | |
"use strict"; | |
var n, | |
o = (n = r(4051)) && n.__esModule ? n : { default: n }; | |
function a(e, t) { | |
(null == t || t > e.length) && (t = e.length); | |
for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r]; | |
return n; | |
} | |
function i(e, t) { | |
if (!(e instanceof t)) | |
throw new TypeError("Cannot call a class as a function"); | |
} | |
function u(e, t) { | |
for (var r = 0; r < t.length; r++) { | |
var n = t[r]; | |
(n.enumerable = n.enumerable || !1), | |
(n.configurable = !0), | |
"value" in n && (n.writable = !0), | |
Object.defineProperty(e, n.key, n); | |
} | |
} | |
function c(e) { | |
return (c = Object.setPrototypeOf | |
? Object.getPrototypeOf | |
: function (e) { | |
return e.__proto__ || Object.getPrototypeOf(e); | |
})(e); | |
} | |
function l() { | |
if ("function" !== typeof WeakMap) return null; | |
var e = new WeakMap(); | |
return ( | |
(l = function () { | |
return e; | |
}), | |
e | |
); | |
} | |
function s(e, t) { | |
return !t || ("object" !== d(t) && "function" !== typeof t) | |
? (function (e) { | |
if (void 0 === e) | |
throw new ReferenceError( | |
"this hasn't been initialised - super() hasn't been called" | |
); | |
return e; | |
})(e) | |
: t; | |
} | |
function f(e, t) { | |
return (f = | |
Object.setPrototypeOf || | |
function (e, t) { | |
return (e.__proto__ = t), e; | |
})(e, t); | |
} | |
function p(e, t) { | |
return ( | |
(function (e) { | |
if (Array.isArray(e)) return e; | |
})(e) || | |
(function (e, t) { | |
var r = | |
null == e | |
? null | |
: ("undefined" !== typeof Symbol && e[Symbol.iterator]) || | |
e["@@iterator"]; | |
if (null != r) { | |
var n, | |
o, | |
a = [], | |
i = !0, | |
u = !1; | |
try { | |
for ( | |
r = r.call(e); | |
!(i = (n = r.next()).done) && | |
(a.push(n.value), !t || a.length !== t); | |
i = !0 | |
); | |
} catch (c) { | |
(u = !0), (o = c); | |
} finally { | |
try { | |
i || null == r.return || r.return(); | |
} finally { | |
if (u) throw o; | |
} | |
} | |
return a; | |
} | |
})(e, t) || | |
(function (e, t) { | |
if (!e) return; | |
if ("string" === typeof e) return a(e, t); | |
var r = Object.prototype.toString.call(e).slice(8, -1); | |
"Object" === r && e.constructor && (r = e.constructor.name); | |
if ("Map" === r || "Set" === r) return Array.from(r); | |
if ( | |
"Arguments" === r || | |
/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) | |
) | |
return a(e, t); | |
})(e, t) || | |
(function () { | |
throw new TypeError( | |
"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." | |
); | |
})() | |
); | |
} | |
var d = function (e) { | |
return e && "undefined" !== typeof Symbol && e.constructor === Symbol | |
? "symbol" | |
: typeof e; | |
}; | |
function h(e) { | |
var t = (function () { | |
if ("undefined" === typeof Reflect || !Reflect.construct) return !1; | |
if (Reflect.construct.sham) return !1; | |
if ("function" === typeof Proxy) return !0; | |
try { | |
return ( | |
Boolean.prototype.valueOf.call( | |
Reflect.construct(Boolean, [], function () {}) | |
), | |
!0 | |
); | |
} catch (e) { | |
return !1; | |
} | |
})(); | |
return function () { | |
var r, | |
n = c(e); | |
if (t) { | |
var o = c(this).constructor; | |
r = Reflect.construct(n, arguments, o); | |
} else r = n.apply(this, arguments); | |
return s(this, r); | |
}; | |
} | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
(t.initialize = function () { | |
return J.apply(this, arguments); | |
}), | |
(t.hydrate = function (e) { | |
return Z.apply(this, arguments); | |
}), | |
(t.emitter = t.router = t.version = void 0), | |
r(37); | |
var y = (function (e) { | |
if (e && e.__esModule) return e; | |
var t = {}; | |
if (null != e) | |
for (var r in e) | |
if (Object.prototype.hasOwnProperty.call(e, r)) { | |
var n = | |
Object.defineProperty && Object.getOwnPropertyDescriptor | |
? Object.getOwnPropertyDescriptor(e, r) | |
: {}; | |
n.get || n.set ? Object.defineProperty(t, r, n) : (t[r] = e[r]); | |
} | |
return (t.default = e), t; | |
})(r(7294)), | |
v = r(4664), | |
m = I(r(8550)), | |
g = r(2692), | |
b = r(1003), | |
_ = r(6238), | |
w = r(4919), | |
P = r(6949), | |
S = r(670), | |
x = r(7345), | |
O = I(r(1831)), | |
E = I(r(976)), | |
j = I(r(659)), | |
A = r(8483), | |
R = r(880), | |
k = r(676), | |
C = (r(2129), r(8730)); | |
function M(e, t, r, n, o, a, i) { | |
try { | |
var u = e[a](i), | |
c = u.value; | |
} catch (l) { | |
return void r(l); | |
} | |
u.done ? t(c) : Promise.resolve(c).then(n, o); | |
} | |
function T(e) { | |
return function () { | |
var t = this, | |
r = arguments; | |
return new Promise(function (n, o) { | |
var a = e.apply(t, r); | |
function i(e) { | |
M(a, n, o, i, u, "next", e); | |
} | |
function u(e) { | |
M(a, n, o, i, u, "throw", e); | |
} | |
i(void 0); | |
}); | |
}; | |
} | |
function L(e, t, r) { | |
return ( | |
t in e | |
? Object.defineProperty(e, t, { | |
value: r, | |
enumerable: !0, | |
configurable: !0, | |
writable: !0, | |
}) | |
: (e[t] = r), | |
e | |
); | |
} | |
function I(e) { | |
return e && e.__esModule ? e : { default: e }; | |
} | |
function N(e) { | |
for ( | |
var t = arguments, | |
r = function (r) { | |
var n = null != t[r] ? t[r] : {}, | |
o = Object.keys(n); | |
"function" === typeof Object.getOwnPropertySymbols && | |
(o = o.concat( | |
Object.getOwnPropertySymbols(n).filter(function (e) { | |
return Object.getOwnPropertyDescriptor(n, e).enumerable; | |
}) | |
)), | |
o.forEach(function (t) { | |
L(e, t, n[t]); | |
}); | |
}, | |
n = 1; | |
n < arguments.length; | |
n++ | |
) | |
r(n); | |
return e; | |
} | |
var D, | |
U = r(745); | |
(t.version = "12.1.7-canary.11"), (t.router = D); | |
var F = m.default(); | |
t.emitter = F; | |
var q, | |
H, | |
W, | |
B, | |
z, | |
$, | |
G, | |
V, | |
X, | |
Q = function (e) { | |
return [].slice.call(e); | |
}, | |
Y = void 0, | |
K = (function (e) { | |
!(function (e, t) { | |
if ("function" !== typeof t && null !== t) | |
throw new TypeError( | |
"Super expression must either be null or a function" | |
); | |
(e.prototype = Object.create(t && t.prototype, { | |
constructor: { value: e, writable: !0, configurable: !0 }, | |
})), | |
t && f(e, t); | |
})(a, e); | |
var t, | |
r, | |
n, | |
o = h(a); | |
function a() { | |
return i(this, a), o.apply(this, arguments); | |
} | |
return ( | |
(t = a), | |
(r = [ | |
{ | |
key: "componentDidCatch", | |
value: function (e, t) { | |
this.props.fn(e, t); | |
}, | |
}, | |
{ | |
key: "componentDidMount", | |
value: function () { | |
this.scrollToHash(), | |
D.isSsr && | |
"/404" !== q.page && | |
"/_error" !== q.page && | |
(q.isFallback || | |
(q.nextExport && | |
(_.isDynamicRoute(D.pathname) || location.search, | |
1)) || | |
(q.props && q.props.__N_SSG && (location.search, 1))) && | |
D.replace( | |
D.pathname + | |
"?" + | |
String( | |
w.assign( | |
w.urlQueryToSearchParams(D.query), | |
new URLSearchParams(location.search) | |
) | |
), | |
H, | |
{ _h: 1, shallow: !q.isFallback } | |
); | |
}, | |
}, | |
{ | |
key: "componentDidUpdate", | |
value: function () { | |
this.scrollToHash(); | |
}, | |
}, | |
{ | |
key: "scrollToHash", | |
value: function () { | |
var e = location.hash; | |
if ((e = e && e.substring(1))) { | |
var t = document.getElementById(e); | |
t && | |
setTimeout(function () { | |
return t.scrollIntoView(); | |
}, 0); | |
} | |
}, | |
}, | |
{ | |
key: "render", | |
value: function () { | |
return this.props.children; | |
}, | |
}, | |
]) && u(t.prototype, r), | |
n && u(t, n), | |
a | |
); | |
})(y.default.Component); | |
function J() { | |
return ( | |
(J = T( | |
o.default.mark(function e() { | |
var t, | |
n, | |
a = arguments; | |
return o.default.wrap(function (e) { | |
for (;;) | |
switch ((e.prev = e.next)) { | |
case 0: | |
return ( | |
a.length > 0 && void 0 !== a[0] ? a[0] : {}, | |
(q = JSON.parse( | |
document.getElementById("__NEXT_DATA__").textContent | |
)), | |
(window.__NEXT_DATA__ = q), | |
(Y = q.defaultLocale), | |
(t = q.assetPrefix || ""), | |
(r.p = "".concat(t, "/_next/")), | |
P.setConfig({ | |
serverRuntimeConfig: {}, | |
publicRuntimeConfig: q.runtimeConfig || {}, | |
}), | |
(H = S.getURL()), | |
b.hasBasePath(H) && (H = b.delBasePath(H)), | |
q.scriptLoader && | |
(0, r(3573).initScriptLoader)(q.scriptLoader), | |
(W = new E.default(q.buildId, t)), | |
(n = function (e) { | |
var t = p(e, 2), | |
r = t[0], | |
n = t[1]; | |
return W.routeLoader.onEntrypoint(r, n); | |
}), | |
window.__NEXT_P && | |
window.__NEXT_P.map(function (e) { | |
return setTimeout(function () { | |
return n(e); | |
}, 0); | |
}), | |
(window.__NEXT_P = []), | |
(window.__NEXT_P.push = n), | |
((z = O.default()).getIsSsr = function () { | |
return D.isSsr; | |
}), | |
(B = document.getElementById("__next")), | |
e.abrupt("return", { assetPrefix: t }) | |
); | |
case 21: | |
case "end": | |
return e.stop(); | |
} | |
}, e); | |
}) | |
)), | |
J.apply(this, arguments) | |
); | |
} | |
function Z() { | |
return (Z = T( | |
o.default.mark(function e(r) { | |
var n, a, i, u, c, l; | |
return o.default.wrap( | |
function (e) { | |
for (;;) | |
switch ((e.prev = e.next)) { | |
case 0: | |
return ( | |
(n = q.err), | |
(e.prev = 1), | |
(e.next = 4), | |
W.routeLoader.whenEntrypoint("/_app") | |
); | |
case 4: | |
if (!("error" in (a = e.sent))) { | |
e.next = 7; | |
break; | |
} | |
throw a.error; | |
case 7: | |
(i = a.component), | |
(u = a.exports), | |
(G = i), | |
u && | |
u.reportWebVitals && | |
(V = function (e) { | |
var t, | |
r = e.id, | |
n = e.name, | |
o = e.startTime, | |
a = e.value, | |
i = e.duration, | |
c = e.entryType, | |
l = e.entries, | |
s = "" | |
.concat(Date.now(), "-") | |
.concat( | |
Math.floor(8999999999999 * Math.random()) + | |
1e12 | |
); | |
l && l.length && (t = l[0].startTime); | |
var f = { | |
id: r || s, | |
name: n, | |
startTime: o || t, | |
value: null == a ? i : a, | |
label: | |
"mark" === c || "measure" === c | |
? "custom" | |
: "web-vital", | |
}; | |
u.reportWebVitals(f); | |
}), | |
(e.next = 14); | |
break; | |
case 14: | |
return ( | |
(e.next = 16), W.routeLoader.whenEntrypoint(q.page) | |
); | |
case 16: | |
e.t0 = e.sent; | |
case 17: | |
if (!("error" in (c = e.t0))) { | |
e.next = 20; | |
break; | |
} | |
throw c.error; | |
case 20: | |
(X = c.component), (e.next = 25); | |
break; | |
case 25: | |
e.next = 30; | |
break; | |
case 27: | |
(e.prev = 27), | |
(e.t1 = e.catch(1)), | |
(n = k.getProperError(e.t1)); | |
case 30: | |
if (!window.__NEXT_PRELOADREADY) { | |
e.next = 34; | |
break; | |
} | |
return ( | |
(e.next = 34), window.__NEXT_PRELOADREADY(q.dynamicIds) | |
); | |
case 34: | |
if ( | |
((t.router = D = | |
R.createRouter(q.page, q.query, H, { | |
initialProps: q.props, | |
pageLoader: W, | |
App: G, | |
Component: X, | |
wrapApp: fe, | |
err: n, | |
isFallback: Boolean(q.isFallback), | |
subscription: function (e, t, r) { | |
return ee( | |
Object.assign({}, e, { App: t, scroll: r }) | |
); | |
}, | |
locale: q.locale, | |
locales: q.locales, | |
defaultLocale: Y, | |
domainLocales: q.domainLocales, | |
isPreview: q.isPreview, | |
isRsc: q.rsc, | |
})), | |
(l = { | |
App: G, | |
initial: !0, | |
Component: X, | |
props: q.props, | |
err: n, | |
}), | |
!(null === r || void 0 === r ? void 0 : r.beforeRender)) | |
) { | |
e.next = 39; | |
break; | |
} | |
return (e.next = 39), r.beforeRender(); | |
case 39: | |
ee(l); | |
case 40: | |
case "end": | |
return e.stop(); | |
} | |
}, | |
e, | |
null, | |
[[1, 27]] | |
); | |
}) | |
)).apply(this, arguments); | |
} | |
function ee(e) { | |
return te.apply(this, arguments); | |
} | |
function te() { | |
return (te = T( | |
o.default.mark(function e(t) { | |
var r; | |
return o.default.wrap( | |
function (e) { | |
for (;;) | |
switch ((e.prev = e.next)) { | |
case 0: | |
if (!t.err) { | |
e.next = 4; | |
break; | |
} | |
return (e.next = 3), re(t); | |
case 3: | |
return e.abrupt("return"); | |
case 4: | |
return (e.prev = 4), (e.next = 7), pe(t); | |
case 7: | |
e.next = 17; | |
break; | |
case 9: | |
if ( | |
((e.prev = 9), | |
(e.t0 = e.catch(4)), | |
!(r = k.getProperError(e.t0)).cancelled) | |
) { | |
e.next = 14; | |
break; | |
} | |
throw r; | |
case 14: | |
return (e.next = 17), re(N({}, t, { err: r })); | |
case 17: | |
case "end": | |
return e.stop(); | |
} | |
}, | |
e, | |
null, | |
[[4, 9]] | |
); | |
}) | |
)).apply(this, arguments); | |
} | |
function re(e) { | |
var t = e.App, | |
n = e.err; | |
return ( | |
console.error(n), | |
console.error( | |
"A client-side exception has occurred, see here for more info: https://nextjs.org/docs/messages/client-side-exception-occurred" | |
), | |
W.loadPage("/_error") | |
.then(function (e) { | |
var t = e.page, | |
n = e.styleSheets; | |
return (null === se || void 0 === se ? void 0 : se.Component) === | |
t | |
? Promise.resolve() | |
.then(function () { | |
return (function (e) { | |
if (e && e.__esModule) return e; | |
if ( | |
null === e || | |
("object" !== typeof e && "function" !== typeof e) | |
) | |
return { default: e }; | |
var t = l(); | |
if (t && t.has(e)) return t.get(e); | |
var r = {}, | |
n = | |
Object.defineProperty && | |
Object.getOwnPropertyDescriptor; | |
for (var o in e) | |
if (Object.prototype.hasOwnProperty.call(e, o)) { | |
var a = n | |
? Object.getOwnPropertyDescriptor(e, o) | |
: null; | |
a && (a.get || a.set) | |
? Object.defineProperty(r, o, a) | |
: (r[o] = e[o]); | |
} | |
return (r.default = e), t && t.set(e, r), r; | |
})(r(67)); | |
}) | |
.then(function (e) { | |
return { ErrorComponent: e.default, styleSheets: [] }; | |
}) | |
: { ErrorComponent: t, styleSheets: n }; | |
}) | |
.then(function (r) { | |
var o = r.ErrorComponent, | |
a = r.styleSheets, | |
i = fe(t), | |
u = { | |
Component: o, | |
AppTree: i, | |
router: D, | |
ctx: { | |
err: n, | |
pathname: q.page, | |
query: q.query, | |
asPath: H, | |
AppTree: i, | |
}, | |
}; | |
return Promise.resolve( | |
e.props ? e.props : S.loadGetInitialProps(t, u) | |
).then(function (t) { | |
return pe( | |
N({}, e, { err: n, Component: o, styleSheets: a, props: t }) | |
); | |
}); | |
}) | |
); | |
} | |
var ne = null, | |
oe = !0; | |
function ae() { | |
S.ST && | |
(performance.mark("afterHydrate"), | |
performance.measure( | |
"Next.js-before-hydration", | |
"navigationStart", | |
"beforeRender" | |
), | |
performance.measure( | |
"Next.js-hydration", | |
"beforeRender", | |
"afterHydrate" | |
), | |
V && performance.getEntriesByName("Next.js-hydration").forEach(V), | |
ue()); | |
} | |
function ie() { | |
if (S.ST) { | |
performance.mark("afterRender"); | |
var e = performance.getEntriesByName("routeChange", "mark"); | |
e.length && | |
(performance.measure( | |
"Next.js-route-change-to-render", | |
e[0].name, | |
"beforeRender" | |
), | |
performance.measure( | |
"Next.js-render", | |
"beforeRender", | |
"afterRender" | |
), | |
V && | |
(performance.getEntriesByName("Next.js-render").forEach(V), | |
performance | |
.getEntriesByName("Next.js-route-change-to-render") | |
.forEach(V)), | |
ue(), | |
["Next.js-route-change-to-render", "Next.js-render"].forEach( | |
function (e) { | |
return performance.clearMeasures(e); | |
} | |
)); | |
} | |
} | |
function ue() { | |
["beforeRender", "afterHydrate", "afterRender", "routeChange"].forEach( | |
function (e) { | |
return performance.clearMarks(e); | |
} | |
); | |
} | |
function ce(e) { | |
var t = e.children; | |
return y.default.createElement( | |
K, | |
{ | |
fn: function (e) { | |
return re({ App: G, err: e }).catch(function (e) { | |
return console.error("Error rendering page: ", e); | |
}); | |
}, | |
}, | |
y.default.createElement( | |
g.RouterContext.Provider, | |
{ value: R.makePublicRouterInstance(D) }, | |
y.default.createElement( | |
v.HeadManagerContext.Provider, | |
{ value: z }, | |
y.default.createElement( | |
C.ImageConfigContext.Provider, | |
{ | |
value: { | |
deviceSizes: [640, 750, 828, 1080, 1200, 1920, 2048, 3840], | |
imageSizes: [16, 32, 48, 64, 96, 128, 256, 384], | |
path: "/_next/image", | |
loader: "default", | |
experimentalLayoutRaw: !1, | |
}, | |
}, | |
t | |
) | |
) | |
) | |
); | |
} | |
function le(e, t) { | |
return y.default.createElement(e, Object.assign({}, t)); | |
} | |
var se, | |
fe = function (e) { | |
return function (t) { | |
var r = N({}, t, { Component: X, err: q.err, router: D }); | |
return y.default.createElement(ce, null, le(e, r)); | |
}; | |
}; | |
function pe(e) { | |
var t = function () { | |
l(); | |
}, | |
r = e.App, | |
n = e.Component, | |
o = e.props, | |
a = e.err, | |
i = e.__N_RSC, | |
u = "initial" in e ? void 0 : e.styleSheets; | |
n = n || se.Component; | |
var c = N({}, (o = o || se.props), { | |
Component: !!i ? undefined : n, | |
err: a, | |
router: D, | |
}); | |
se = c; | |
var l, | |
s = !1, | |
f = new Promise(function (e, t) { | |
$ && $(), | |
(l = function () { | |
($ = null), e(); | |
}), | |
($ = function () { | |
(s = !0), ($ = null); | |
var e = new Error("Cancel rendering route"); | |
(e.cancelled = !0), t(e); | |
}); | |
}); | |
!(function () { | |
if (!u) return !1; | |
var e = Q(document.querySelectorAll("style[data-n-href]")), | |
t = new Set( | |
e.map(function (e) { | |
return e.getAttribute("data-n-href"); | |
}) | |
), | |
r = document.querySelector("noscript[data-n-css]"), | |
n = | |
null === r || void 0 === r | |
? void 0 | |
: r.getAttribute("data-n-css"); | |
u.forEach(function (e) { | |
var r = e.href, | |
o = e.text; | |
if (!t.has(r)) { | |
var a = document.createElement("style"); | |
a.setAttribute("data-n-href", r), | |
a.setAttribute("media", "x"), | |
n && a.setAttribute("nonce", n), | |
document.head.appendChild(a), | |
a.appendChild(document.createTextNode(o)); | |
} | |
}); | |
})(); | |
var p = y.default.createElement( | |
y.default.Fragment, | |
null, | |
y.default.createElement(he, { | |
callback: function () { | |
if (u && !s) { | |
for ( | |
var t = new Set( | |
u.map(function (e) { | |
return e.href; | |
}) | |
), | |
r = Q(document.querySelectorAll("style[data-n-href]")), | |
n = r.map(function (e) { | |
return e.getAttribute("data-n-href"); | |
}), | |
o = 0; | |
o < n.length; | |
++o | |
) | |
t.has(n[o]) | |
? r[o].removeAttribute("media") | |
: r[o].setAttribute("media", "x"); | |
var a = document.querySelector("noscript[data-n-css]"); | |
a && | |
u.forEach(function (e) { | |
var t = e.href, | |
r = document.querySelector( | |
'style[data-n-href="'.concat(t, '"]') | |
); | |
r && (a.parentNode.insertBefore(r, a.nextSibling), (a = r)); | |
}), | |
Q(document.querySelectorAll("link[data-n-p]")).forEach( | |
function (e) { | |
e.parentNode.removeChild(e); | |
} | |
); | |
} | |
e.scroll && window.scrollTo(e.scroll.x, e.scroll.y); | |
}, | |
}), | |
y.default.createElement( | |
ce, | |
null, | |
le(r, c), | |
y.default.createElement( | |
x.Portal, | |
{ type: "next-route-announcer" }, | |
y.default.createElement(A.RouteAnnouncer, null) | |
) | |
) | |
); | |
return ( | |
(function (e, t) { | |
S.ST && performance.mark("beforeRender"); | |
var r = t(oe ? ae : ie); | |
ne | |
? (0, y.default.startTransition)(function () { | |
ne.render(r); | |
}) | |
: ((ne = U.hydrateRoot(e, r)), (oe = !1)); | |
})(B, function (e) { | |
return y.default.createElement(de, { callbacks: [e, t] }, p); | |
}), | |
f | |
); | |
} | |
function de(e) { | |
var t = e.callbacks, | |
r = e.children; | |
return ( | |
y.default.useLayoutEffect( | |
function () { | |
return t.forEach(function (e) { | |
return e(); | |
}); | |
}, | |
[t] | |
), | |
y.default.useEffect(function () { | |
j.default(V); | |
}, []), | |
r | |
); | |
} | |
function he(e) { | |
var t = e.callback; | |
return ( | |
y.default.useLayoutEffect( | |
function () { | |
return t(); | |
}, | |
[t] | |
), | |
null | |
); | |
} | |
("function" === typeof t.default || | |
("object" === typeof t.default && null !== t.default)) && | |
"undefined" === typeof t.default.__esModule && | |
(Object.defineProperty(t.default, "__esModule", { value: !0 }), | |
Object.assign(t.default, t), | |
(e.exports = t.default)); | |
}, | |
1783: function (e, t, r) { | |
"use strict"; | |
var n = r(4534); | |
(window.next = { | |
version: n.version, | |
get router() { | |
return n.router; | |
}, | |
emitter: n.emitter, | |
}), | |
n | |
.initialize({}) | |
.then(function () { | |
return n.hydrate(); | |
}) | |
.catch(console.error), | |
("function" === typeof t.default || | |
("object" === typeof t.default && null !== t.default)) && | |
"undefined" === typeof t.default.__esModule && | |
(Object.defineProperty(t.default, "__esModule", { value: !0 }), | |
Object.assign(t.default, t), | |
(e.exports = t.default)); | |
}, | |
2700: function (e, t) { | |
"use strict"; | |
function r(e) { | |
return e.endsWith("/") && "/" !== e ? e.slice(0, -1) : e; | |
} | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
(t.removePathTrailingSlash = r), | |
(t.normalizePathTrailingSlash = void 0); | |
var n = r; | |
(t.normalizePathTrailingSlash = n), | |
("function" === typeof t.default || | |
("object" === typeof t.default && null !== t.default)) && | |
"undefined" === typeof t.default.__esModule && | |
(Object.defineProperty(t.default, "__esModule", { value: !0 }), | |
Object.assign(t.default, t), | |
(e.exports = t.default)); | |
}, | |
976: function (e, t, r) { | |
"use strict"; | |
function n(e, t) { | |
for (var r = 0; r < t.length; r++) { | |
var n = t[r]; | |
(n.enumerable = n.enumerable || !1), | |
(n.configurable = !0), | |
"value" in n && (n.writable = !0), | |
Object.defineProperty(e, n.key, n); | |
} | |
} | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
(t.default = void 0); | |
var o, | |
a = r(1003), | |
i = (o = r(7929)) && o.__esModule ? o : { default: o }, | |
u = r(6238), | |
c = r(2864), | |
l = r(2700), | |
s = r(2497); | |
var f = (function () { | |
function e(t, r) { | |
!(function (e, t) { | |
if (!(e instanceof t)) | |
throw new TypeError("Cannot call a class as a function"); | |
})(this, e), | |
(this.routeLoader = s.createRouteLoader(r)), | |
(this.buildId = t), | |
(this.assetPrefix = r), | |
(this.promisedSsgManifest = new Promise(function (e) { | |
window.__SSG_MANIFEST | |
? e(window.__SSG_MANIFEST) | |
: (window.__SSG_MANIFEST_CB = function () { | |
e(window.__SSG_MANIFEST); | |
}); | |
})); | |
} | |
var t, r, o; | |
return ( | |
(t = e), | |
(r = [ | |
{ | |
key: "getPageList", | |
value: function () { | |
return s.getClientBuildManifest().then(function (e) { | |
return e.sortedPages; | |
}); | |
}, | |
}, | |
{ | |
key: "getMiddlewareList", | |
value: function () { | |
return s.getMiddlewareManifest(); | |
}, | |
}, | |
{ | |
key: "getDataHref", | |
value: function (e) { | |
var t = e.href, | |
r = e.asPath, | |
n = e.ssg, | |
o = e.flight, | |
s = e.locale, | |
f = this, | |
p = c.parseRelativeUrl(t), | |
d = p.pathname, | |
h = p.query, | |
y = p.search, | |
v = c.parseRelativeUrl(r).pathname, | |
m = (function (e) { | |
if ("/" !== e[0]) | |
throw new Error( | |
'Route name should start with a "/", got "'.concat( | |
e, | |
'"' | |
) | |
); | |
return "/" === e ? e : e.replace(/\/$/, ""); | |
})(d), | |
g = function (e) { | |
if (o) return e + y + (y ? "&" : "?") + "__flight__=1"; | |
var t = i.default( | |
l.removePathTrailingSlash(a.addLocale(e, s)), | |
".json" | |
); | |
return a.addBasePath( | |
"/_next/data/" | |
.concat(f.buildId) | |
.concat(t) | |
.concat(n ? "" : y), | |
!0 | |
); | |
}, | |
b = u.isDynamicRoute(m), | |
_ = b ? a.interpolateAs(d, v, h).result : ""; | |
return b ? _ && g(_) : g(m); | |
}, | |
}, | |
{ | |
key: "_isSsg", | |
value: function (e) { | |
return this.promisedSsgManifest.then(function (t) { | |
return t.has(e); | |
}); | |
}, | |
}, | |
{ | |
key: "loadPage", | |
value: function (e) { | |
return this.routeLoader.loadRoute(e).then(function (e) { | |
if ("component" in e) | |
return { | |
page: e.component, | |
mod: e.exports, | |
styleSheets: e.styles.map(function (e) { | |
return { href: e.href, text: e.content }; | |
}), | |
}; | |
throw e.error; | |
}); | |
}, | |
}, | |
{ | |
key: "prefetch", | |
value: function (e) { | |
return this.routeLoader.prefetch(e); | |
}, | |
}, | |
]) && n(t.prototype, r), | |
o && n(t, o), | |
e | |
); | |
})(); | |
(t.default = f), | |
("function" === typeof t.default || | |
("object" === typeof t.default && null !== t.default)) && | |
"undefined" === typeof t.default.__esModule && | |
(Object.defineProperty(t.default, "__esModule", { value: !0 }), | |
Object.assign(t.default, t), | |
(e.exports = t.default)); | |
}, | |
659: function (e, t, r) { | |
"use strict"; | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
(t.default = void 0); | |
var n, | |
o = r(8745), | |
a = (location.href, !1); | |
function i(e) { | |
n && n(e); | |
} | |
(t.default = function (e) { | |
(n = e), | |
a || | |
((a = !0), | |
o.getCLS(i), | |
o.getFID(i), | |
o.getFCP(i), | |
o.getLCP(i), | |
o.getTTFB(i)); | |
}), | |
("function" === typeof t.default || | |
("object" === typeof t.default && null !== t.default)) && | |
"undefined" === typeof t.default.__esModule && | |
(Object.defineProperty(t.default, "__esModule", { value: !0 }), | |
Object.assign(t.default, t), | |
(e.exports = t.default)); | |
}, | |
7345: function (e, t, r) { | |
"use strict"; | |
function n(e, t) { | |
(null == t || t > e.length) && (t = e.length); | |
for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r]; | |
return n; | |
} | |
function o(e, t) { | |
return ( | |
(function (e) { | |
if (Array.isArray(e)) return e; | |
})(e) || | |
(function (e, t) { | |
var r = | |
null == e | |
? null | |
: ("undefined" !== typeof Symbol && e[Symbol.iterator]) || | |
e["@@iterator"]; | |
if (null != r) { | |
var n, | |
o, | |
a = [], | |
i = !0, | |
u = !1; | |
try { | |
for ( | |
r = r.call(e); | |
!(i = (n = r.next()).done) && | |
(a.push(n.value), !t || a.length !== t); | |
i = !0 | |
); | |
} catch (c) { | |
(u = !0), (o = c); | |
} finally { | |
try { | |
i || null == r.return || r.return(); | |
} finally { | |
if (u) throw o; | |
} | |
} | |
return a; | |
} | |
})(e, t) || | |
(function (e, t) { | |
if (!e) return; | |
if ("string" === typeof e) return n(e, t); | |
var r = Object.prototype.toString.call(e).slice(8, -1); | |
"Object" === r && e.constructor && (r = e.constructor.name); | |
if ("Map" === r || "Set" === r) return Array.from(r); | |
if ( | |
"Arguments" === r || | |
/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) | |
) | |
return n(e, t); | |
})(e, t) || | |
(function () { | |
throw new TypeError( | |
"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." | |
); | |
})() | |
); | |
} | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
(t.Portal = void 0); | |
var a, | |
i = (a = r(7294)) && a.__esModule ? a : { default: a }, | |
u = r(3935); | |
(t.Portal = function (e) { | |
var t = e.children, | |
r = e.type, | |
n = i.default.useRef(null), | |
a = o(i.default.useState(), 2)[1]; | |
return ( | |
i.default.useEffect( | |
function () { | |
return ( | |
(n.current = document.createElement(r)), | |
document.body.appendChild(n.current), | |
a({}), | |
function () { | |
n.current && document.body.removeChild(n.current); | |
} | |
); | |
}, | |
[r] | |
), | |
n.current ? u.createPortal(t, n.current) : null | |
); | |
}), | |
("function" === typeof t.default || | |
("object" === typeof t.default && null !== t.default)) && | |
"undefined" === typeof t.default.__esModule && | |
(Object.defineProperty(t.default, "__esModule", { value: !0 }), | |
Object.assign(t.default, t), | |
(e.exports = t.default)); | |
}, | |
4686: function (e, t) { | |
"use strict"; | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
(t.cancelIdleCallback = t.requestIdleCallback = void 0); | |
var r = | |
("undefined" !== typeof self && | |
self.requestIdleCallback && | |
self.requestIdleCallback.bind(window)) || | |
function (e) { | |
var t = Date.now(); | |
return setTimeout(function () { | |
e({ | |
didTimeout: !1, | |
timeRemaining: function () { | |
return Math.max(0, 50 - (Date.now() - t)); | |
}, | |
}); | |
}, 1); | |
}; | |
t.requestIdleCallback = r; | |
var n = | |
("undefined" !== typeof self && | |
self.cancelIdleCallback && | |
self.cancelIdleCallback.bind(window)) || | |
function (e) { | |
return clearTimeout(e); | |
}; | |
(t.cancelIdleCallback = n), | |
("function" === typeof t.default || | |
("object" === typeof t.default && null !== t.default)) && | |
"undefined" === typeof t.default.__esModule && | |
(Object.defineProperty(t.default, "__esModule", { value: !0 }), | |
Object.assign(t.default, t), | |
(e.exports = t.default)); | |
}, | |
8483: function (e, t, r) { | |
"use strict"; | |
function n(e, t) { | |
(null == t || t > e.length) && (t = e.length); | |
for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r]; | |
return n; | |
} | |
function o(e, t) { | |
return ( | |
(function (e) { | |
if (Array.isArray(e)) return e; | |
})(e) || | |
(function (e, t) { | |
var r = | |
null == e | |
? null | |
: ("undefined" !== typeof Symbol && e[Symbol.iterator]) || | |
e["@@iterator"]; | |
if (null != r) { | |
var n, | |
o, | |
a = [], | |
i = !0, | |
u = !1; | |
try { | |
for ( | |
r = r.call(e); | |
!(i = (n = r.next()).done) && | |
(a.push(n.value), !t || a.length !== t); | |
i = !0 | |
); | |
} catch (c) { | |
(u = !0), (o = c); | |
} finally { | |
try { | |
i || null == r.return || r.return(); | |
} finally { | |
if (u) throw o; | |
} | |
} | |
return a; | |
} | |
})(e, t) || | |
(function (e, t) { | |
if (!e) return; | |
if ("string" === typeof e) return n(e, t); | |
var r = Object.prototype.toString.call(e).slice(8, -1); | |
"Object" === r && e.constructor && (r = e.constructor.name); | |
if ("Map" === r || "Set" === r) return Array.from(r); | |
if ( | |
"Arguments" === r || | |
/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) | |
) | |
return n(e, t); | |
})(e, t) || | |
(function () { | |
throw new TypeError( | |
"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." | |
); | |
})() | |
); | |
} | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
(t.RouteAnnouncer = c), | |
(t.default = void 0); | |
var a, | |
i = (a = r(7294)) && a.__esModule ? a : { default: a }, | |
u = r(880); | |
function c() { | |
var e = u.useRouter().asPath, | |
t = o(i.default.useState(""), 2), | |
r = t[0], | |
n = t[1], | |
a = i.default.useRef(e); | |
return ( | |
i.default.useEffect( | |
function () { | |
if (a.current !== e) | |
if (((a.current = e), document.title)) n(document.title); | |
else { | |
var t, | |
r = document.querySelector("h1"), | |
o = | |
null !== | |
(t = | |
null === r || void 0 === r ? void 0 : r.innerText) && | |
void 0 !== t | |
? t | |
: null === r || void 0 === r | |
? void 0 | |
: r.textContent; | |
n(o || e); | |
} | |
}, | |
[e] | |
), | |
i.default.createElement( | |
"p", | |
{ | |
"aria-live": "assertive", | |
id: "__next-route-announcer__", | |
role: "alert", | |
style: { | |
border: 0, | |
clip: "rect(0 0 0 0)", | |
height: "1px", | |
margin: "-1px", | |
overflow: "hidden", | |
padding: 0, | |
position: "absolute", | |
width: "1px", | |
whiteSpace: "nowrap", | |
wordWrap: "normal", | |
}, | |
}, | |
r | |
) | |
); | |
} | |
var l = c; | |
(t.default = l), | |
("function" === typeof t.default || | |
("object" === typeof t.default && null !== t.default)) && | |
"undefined" === typeof t.default.__esModule && | |
(Object.defineProperty(t.default, "__esModule", { value: !0 }), | |
Object.assign(t.default, t), | |
(e.exports = t.default)); | |
}, | |
2497: function (e, t, r) { | |
"use strict"; | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
(t.markAssetError = s), | |
(t.isAssetError = function (e) { | |
return e && l in e; | |
}), | |
(t.getClientBuildManifest = p), | |
(t.getMiddlewareManifest = function () { | |
if (self.__MIDDLEWARE_MANIFEST) | |
return Promise.resolve(self.__MIDDLEWARE_MANIFEST); | |
return f( | |
new Promise(function (e) { | |
var t = self.__MIDDLEWARE_MANIFEST_CB; | |
self.__MIDDLEWARE_MANIFEST_CB = function () { | |
e(self.__MIDDLEWARE_MANIFEST), t && t(); | |
}; | |
}), | |
i, | |
s(new Error("Failed to load client middleware manifest")) | |
); | |
}), | |
(t.createRouteLoader = function (e) { | |
var t = function (e) { | |
var t = o.get(e.toString()); | |
return ( | |
t || | |
(document.querySelector('script[src^="'.concat(e, '"]')) | |
? Promise.resolve() | |
: (o.set( | |
e.toString(), | |
(t = (function (e, t) { | |
return new Promise(function (r, n) { | |
((t = document.createElement("script")).onload = r), | |
(t.onerror = function () { | |
return n( | |
s( | |
new Error("Failed to load script: ".concat(e)) | |
) | |
); | |
}), | |
(t.crossOrigin = void 0), | |
(t.src = e), | |
document.body.appendChild(t); | |
}); | |
})(e)) | |
), | |
t)) | |
); | |
}, | |
r = function (e) { | |
var t = l.get(e); | |
return ( | |
t || | |
(l.set( | |
e, | |
(t = fetch(e) | |
.then(function (t) { | |
if (!t.ok) | |
throw new Error( | |
"Failed to load stylesheet: ".concat(e) | |
); | |
return t.text().then(function (t) { | |
return { href: e, content: t }; | |
}); | |
}) | |
.catch(function (e) { | |
throw s(e); | |
})) | |
), | |
t) | |
); | |
}, | |
n = new Map(), | |
o = new Map(), | |
l = new Map(), | |
p = new Map(); | |
return { | |
whenEntrypoint: function (e) { | |
return u(e, n); | |
}, | |
onEntrypoint: function (e, t) { | |
(t | |
? Promise.resolve() | |
.then(function () { | |
return t(); | |
}) | |
.then( | |
function (e) { | |
return { component: (e && e.default) || e, exports: e }; | |
}, | |
function (e) { | |
return { error: e }; | |
} | |
) | |
: Promise.resolve(void 0) | |
).then(function (t) { | |
var r = n.get(e); | |
r && "resolve" in r | |
? t && (n.set(e, t), r.resolve(t)) | |
: (t ? n.set(e, t) : n.delete(e), p.delete(e)); | |
}); | |
}, | |
loadRoute: function (o, a) { | |
var c = this; | |
return u(o, p, function () { | |
var u = c; | |
return f( | |
d(e, o) | |
.then(function (e) { | |
var a = e.scripts, | |
i = e.css; | |
return Promise.all([ | |
n.has(o) ? [] : Promise.all(a.map(t)), | |
Promise.all(i.map(r)), | |
]); | |
}) | |
.then(function (e) { | |
return u.whenEntrypoint(o).then(function (t) { | |
return { entrypoint: t, styles: e[1] }; | |
}); | |
}), | |
i, | |
s(new Error("Route did not complete loading: ".concat(o))) | |
) | |
.then(function (e) { | |
var t = e.entrypoint, | |
r = e.styles, | |
n = Object.assign({ styles: r }, t); | |
return "error" in t ? t : n; | |
}) | |
.catch(function (e) { | |
if (a) throw e; | |
return { error: e }; | |
}) | |
.finally(function () {}); | |
}); | |
}, | |
prefetch: function (t) { | |
var r, | |
n = this; | |
return (r = navigator.connection) && | |
(r.saveData || /2g/.test(r.effectiveType)) | |
? Promise.resolve() | |
: d(e, t) | |
.then(function (e) { | |
return Promise.all( | |
c | |
? e.scripts.map(function (e) { | |
return ( | |
(t = e.toString()), | |
(r = "script"), | |
new Promise(function (e, o) { | |
var a = '\n link[rel="prefetch"][href^="' | |
.concat( | |
t, | |
'"],\n link[rel="preload"][href^="' | |
) | |
.concat(t, '"],\n script[src^="') | |
.concat(t, '"]'); | |
if (document.querySelector(a)) return e(); | |
(n = document.createElement("link")), | |
r && (n.as = r), | |
(n.rel = "prefetch"), | |
(n.crossOrigin = void 0), | |
(n.onload = e), | |
(n.onerror = o), | |
(n.href = t), | |
document.head.appendChild(n); | |
}) | |
); | |
var t, r, n; | |
}) | |
: [] | |
); | |
}) | |
.then(function () { | |
var e = n; | |
a.requestIdleCallback(function () { | |
return e.loadRoute(t, !0).catch(function () {}); | |
}); | |
}) | |
.catch(function () {}); | |
}, | |
}; | |
}); | |
(n = r(7929)) && n.__esModule; | |
var n, | |
o = r(5407), | |
a = r(4686); | |
var i = 3800; | |
function u(e, t, r) { | |
var n, | |
o = t.get(e); | |
if (o) return "future" in o ? o.future : Promise.resolve(o); | |
var a = new Promise(function (e) { | |
n = e; | |
}); | |
return ( | |
t.set(e, (o = { resolve: n, future: a })), | |
r | |
? r() | |
.then(function (e) { | |
return n(e), e; | |
}) | |
.catch(function (r) { | |
throw (t.delete(e), r); | |
}) | |
: a | |
); | |
} | |
var c = (function (e) { | |
try { | |
return ( | |
(e = document.createElement("link")), | |
(!!window.MSInputMethodContext && !!document.documentMode) || | |
e.relList.supports("prefetch") | |
); | |
} catch (t) { | |
return !1; | |
} | |
})(); | |
var l = Symbol("ASSET_LOAD_ERROR"); | |
function s(e) { | |
return Object.defineProperty(e, l, {}); | |
} | |
function f(e, t, r) { | |
return new Promise(function (n, o) { | |
var i = !1; | |
e | |
.then(function (e) { | |
(i = !0), n(e); | |
}) | |
.catch(o), | |
a.requestIdleCallback(function () { | |
return setTimeout(function () { | |
i || o(r); | |
}, t); | |
}); | |
}); | |
} | |
function p() { | |
return self.__BUILD_MANIFEST | |
? Promise.resolve(self.__BUILD_MANIFEST) | |
: f( | |
new Promise(function (e) { | |
var t = self.__BUILD_MANIFEST_CB; | |
self.__BUILD_MANIFEST_CB = function () { | |
e(self.__BUILD_MANIFEST), t && t(); | |
}; | |
}), | |
i, | |
s(new Error("Failed to load client build manifest")) | |
); | |
} | |
function d(e, t) { | |
return p().then(function (r) { | |
if (!(t in r)) | |
throw s(new Error("Failed to lookup route: ".concat(t))); | |
var n = r[t].map(function (t) { | |
return e + "/_next/" + encodeURI(t); | |
}); | |
return { | |
scripts: n | |
.filter(function (e) { | |
return e.endsWith(".js"); | |
}) | |
.map(function (e) { | |
return o.__unsafeCreateTrustedScriptURL(e); | |
}), | |
css: n.filter(function (e) { | |
return e.endsWith(".css"); | |
}), | |
}; | |
}); | |
} | |
("function" === typeof t.default || | |
("object" === typeof t.default && null !== t.default)) && | |
"undefined" === typeof t.default.__esModule && | |
(Object.defineProperty(t.default, "__esModule", { value: !0 }), | |
Object.assign(t.default, t), | |
(e.exports = t.default)); | |
}, | |
880: function (e, t, r) { | |
"use strict"; | |
function n(e, t) { | |
(null == t || t > e.length) && (t = e.length); | |
for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r]; | |
return n; | |
} | |
function o() { | |
if ("undefined" === typeof Reflect || !Reflect.construct) return !1; | |
if (Reflect.construct.sham) return !1; | |
if ("function" === typeof Proxy) return !0; | |
try { | |
return ( | |
Date.prototype.toString.call( | |
Reflect.construct(Date, [], function () {}) | |
), | |
!0 | |
); | |
} catch (e) { | |
return !1; | |
} | |
} | |
function a(e, t, r) { | |
return (a = o() | |
? Reflect.construct | |
: function (e, t, r) { | |
var n = [null]; | |
n.push.apply(n, t); | |
var o = new (Function.bind.apply(e, n))(); | |
return r && i(o, r.prototype), o; | |
}).apply(null, arguments); | |
} | |
function i(e, t) { | |
return (i = | |
Object.setPrototypeOf || | |
function (e, t) { | |
return (e.__proto__ = t), e; | |
})(e, t); | |
} | |
function u(e) { | |
return ( | |
(function (e) { | |
if (Array.isArray(e)) return n(e); | |
})(e) || | |
(function (e) { | |
if ( | |
("undefined" !== typeof Symbol && null != e[Symbol.iterator]) || | |
null != e["@@iterator"] | |
) | |
return Array.from(e); | |
})(e) || | |
(function (e, t) { | |
if (!e) return; | |
if ("string" === typeof e) return n(e, t); | |
var r = Object.prototype.toString.call(e).slice(8, -1); | |
"Object" === r && e.constructor && (r = e.constructor.name); | |
if ("Map" === r || "Set" === r) return Array.from(r); | |
if ( | |
"Arguments" === r || | |
/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) | |
) | |
return n(e, t); | |
})(e) || | |
(function () { | |
throw new TypeError( | |
"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." | |
); | |
})() | |
); | |
} | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
Object.defineProperty(t, "Router", { | |
enumerable: !0, | |
get: function () { | |
return l.default; | |
}, | |
}), | |
Object.defineProperty(t, "withRouter", { | |
enumerable: !0, | |
get: function () { | |
return p.default; | |
}, | |
}), | |
(t.useRouter = function () { | |
return c.default.useContext(s.RouterContext); | |
}), | |
(t.createRouter = function () { | |
for (var e = arguments.length, t = new Array(e), r = 0; r < e; r++) | |
t[r] = arguments[r]; | |
return ( | |
(h.router = a(l.default, u(t))), | |
h.readyCallbacks.forEach(function (e) { | |
return e(); | |
}), | |
(h.readyCallbacks = []), | |
h.router | |
); | |
}), | |
(t.makePublicRouterInstance = function (e) { | |
var t = e, | |
r = {}, | |
n = !0, | |
o = !1, | |
a = void 0; | |
try { | |
for ( | |
var i, c = y[Symbol.iterator](); | |
!(n = (i = c.next()).done); | |
n = !0 | |
) { | |
var s = i.value; | |
"object" !== typeof t[s] | |
? (r[s] = t[s]) | |
: (r[s] = Object.assign(Array.isArray(t[s]) ? [] : {}, t[s])); | |
} | |
} catch (f) { | |
(o = !0), (a = f); | |
} finally { | |
try { | |
n || null == c.return || c.return(); | |
} finally { | |
if (o) throw a; | |
} | |
} | |
return ( | |
(r.events = l.default.events), | |
v.forEach(function (e) { | |
r[e] = function () { | |
for ( | |
var r = arguments.length, n = new Array(r), o = 0; | |
o < r; | |
o++ | |
) | |
n[o] = arguments[o]; | |
var a; | |
return (a = t)[e].apply(a, u(n)); | |
}; | |
}), | |
r | |
); | |
}), | |
(t.default = void 0); | |
var c = d(r(7294)), | |
l = d(r(1003)), | |
s = r(2692), | |
f = d(r(676)), | |
p = d(r(9977)); | |
function d(e) { | |
return e && e.__esModule ? e : { default: e }; | |
} | |
var h = { | |
router: null, | |
readyCallbacks: [], | |
ready: function (e) { | |
if (this.router) return e(); | |
this.readyCallbacks.push(e); | |
}, | |
}, | |
y = [ | |
"pathname", | |
"route", | |
"query", | |
"asPath", | |
"components", | |
"isFallback", | |
"basePath", | |
"locale", | |
"locales", | |
"defaultLocale", | |
"isReady", | |
"isPreview", | |
"isLocaleDomain", | |
"domainLocales", | |
], | |
v = ["push", "replace", "reload", "back", "prefetch", "beforePopState"]; | |
function m() { | |
if (!h.router) { | |
throw new Error( | |
'No router instance found.\nYou should only use "next/router" on the client side of your app.\n' | |
); | |
} | |
return h.router; | |
} | |
Object.defineProperty(h, "events", { | |
get: function () { | |
return l.default.events; | |
}, | |
}), | |
y.forEach(function (e) { | |
Object.defineProperty(h, e, { | |
get: function () { | |
return m()[e]; | |
}, | |
}); | |
}), | |
v.forEach(function (e) { | |
h[e] = function () { | |
for (var t = arguments.length, r = new Array(t), n = 0; n < t; n++) | |
r[n] = arguments[n]; | |
var o, | |
a = m(); | |
return (o = a)[e].apply(o, u(r)); | |
}; | |
}), | |
[ | |
"routeChangeStart", | |
"beforeHistoryChange", | |
"routeChangeComplete", | |
"routeChangeError", | |
"hashChangeStart", | |
"hashChangeComplete", | |
].forEach(function (e) { | |
h.ready(function () { | |
l.default.events.on(e, function () { | |
for ( | |
var t = arguments.length, r = new Array(t), n = 0; | |
n < t; | |
n++ | |
) | |
r[n] = arguments[n]; | |
var o = "on" | |
.concat(e.charAt(0).toUpperCase()) | |
.concat(e.substring(1)), | |
a = h; | |
if (a[o]) | |
try { | |
var i; | |
(i = a)[o].apply(i, u(r)); | |
} catch (c) { | |
console.error( | |
"Error when running the Router event: ".concat(o) | |
), | |
console.error( | |
f.default(c) | |
? "".concat(c.message, "\n").concat(c.stack) | |
: c + "" | |
); | |
} | |
}); | |
}); | |
}); | |
var g = h; | |
(t.default = g), | |
("function" === typeof t.default || | |
("object" === typeof t.default && null !== t.default)) && | |
"undefined" === typeof t.default.__esModule && | |
(Object.defineProperty(t.default, "__esModule", { value: !0 }), | |
Object.assign(t.default, t), | |
(e.exports = t.default)); | |
}, | |
3573: function (e, t, r) { | |
"use strict"; | |
function n(e, t) { | |
(null == t || t > e.length) && (t = e.length); | |
for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r]; | |
return n; | |
} | |
function o(e, t) { | |
return ( | |
(function (e) { | |
if (Array.isArray(e)) return e; | |
})(e) || | |
(function (e, t) { | |
var r = | |
null == e | |
? null | |
: ("undefined" !== typeof Symbol && e[Symbol.iterator]) || | |
e["@@iterator"]; | |
if (null != r) { | |
var n, | |
o, | |
a = [], | |
i = !0, | |
u = !1; | |
try { | |
for ( | |
r = r.call(e); | |
!(i = (n = r.next()).done) && | |
(a.push(n.value), !t || a.length !== t); | |
i = !0 | |
); | |
} catch (c) { | |
(u = !0), (o = c); | |
} finally { | |
try { | |
i || null == r.return || r.return(); | |
} finally { | |
if (u) throw o; | |
} | |
} | |
return a; | |
} | |
})(e, t) || | |
i(e, t) || | |
(function () { | |
throw new TypeError( | |
"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." | |
); | |
})() | |
); | |
} | |
function a(e) { | |
return ( | |
(function (e) { | |
if (Array.isArray(e)) return n(e); | |
})(e) || | |
(function (e) { | |
if ( | |
("undefined" !== typeof Symbol && null != e[Symbol.iterator]) || | |
null != e["@@iterator"] | |
) | |
return Array.from(e); | |
})(e) || | |
i(e) || | |
(function () { | |
throw new TypeError( | |
"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." | |
); | |
})() | |
); | |
} | |
function i(e, t) { | |
if (e) { | |
if ("string" === typeof e) return n(e, t); | |
var r = Object.prototype.toString.call(e).slice(8, -1); | |
return ( | |
"Object" === r && e.constructor && (r = e.constructor.name), | |
"Map" === r || "Set" === r | |
? Array.from(r) | |
: "Arguments" === r || | |
/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) | |
? n(e, t) | |
: void 0 | |
); | |
} | |
} | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
(t.handleClientScriptLoad = g), | |
(t.initScriptLoader = function (e) { | |
e.forEach(g), | |
a(document.querySelectorAll('[data-nscript="beforeInteractive"]')) | |
.concat( | |
a( | |
document.querySelectorAll('[data-nscript="beforePageRender"]') | |
) | |
) | |
.forEach(function (e) { | |
var t = e.id || e.getAttribute("src"); | |
y.add(t); | |
}); | |
}), | |
(t.default = void 0); | |
var u = (function (e) { | |
if (e && e.__esModule) return e; | |
var t = {}; | |
if (null != e) | |
for (var r in e) | |
if (Object.prototype.hasOwnProperty.call(e, r)) { | |
var n = | |
Object.defineProperty && Object.getOwnPropertyDescriptor | |
? Object.getOwnPropertyDescriptor(e, r) | |
: {}; | |
n.get || n.set ? Object.defineProperty(t, r, n) : (t[r] = e[r]); | |
} | |
return (t.default = e), t; | |
})(r(7294)), | |
c = r(4664), | |
l = r(1831), | |
s = r(4686); | |
function f(e, t, r) { | |
return ( | |
t in e | |
? Object.defineProperty(e, t, { | |
value: r, | |
enumerable: !0, | |
configurable: !0, | |
writable: !0, | |
}) | |
: (e[t] = r), | |
e | |
); | |
} | |
function p(e) { | |
for ( | |
var t = arguments, | |
r = function (r) { | |
var n = null != t[r] ? t[r] : {}, | |
o = Object.keys(n); | |
"function" === typeof Object.getOwnPropertySymbols && | |
(o = o.concat( | |
Object.getOwnPropertySymbols(n).filter(function (e) { | |
return Object.getOwnPropertyDescriptor(n, e).enumerable; | |
}) | |
)), | |
o.forEach(function (t) { | |
f(e, t, n[t]); | |
}); | |
}, | |
n = 1; | |
n < arguments.length; | |
n++ | |
) | |
r(n); | |
return e; | |
} | |
function d(e, t) { | |
if (null == e) return {}; | |
var r, | |
n, | |
o = (function (e, t) { | |
if (null == e) return {}; | |
var r, | |
n, | |
o = {}, | |
a = Object.keys(e); | |
for (n = 0; n < a.length; n++) | |
(r = a[n]), t.indexOf(r) >= 0 || (o[r] = e[r]); | |
return o; | |
})(e, t); | |
if (Object.getOwnPropertySymbols) { | |
var a = Object.getOwnPropertySymbols(e); | |
for (n = 0; n < a.length; n++) | |
(r = a[n]), | |
t.indexOf(r) >= 0 || | |
(Object.prototype.propertyIsEnumerable.call(e, r) && | |
(o[r] = e[r])); | |
} | |
return o; | |
} | |
var h = new Map(), | |
y = new Set(), | |
v = [ | |
"onLoad", | |
"dangerouslySetInnerHTML", | |
"children", | |
"onError", | |
"strategy", | |
], | |
m = function (e) { | |
var t = e.src, | |
r = e.id, | |
n = e.onLoad, | |
a = void 0 === n ? function () {} : n, | |
i = e.dangerouslySetInnerHTML, | |
u = e.children, | |
c = void 0 === u ? "" : u, | |
s = e.strategy, | |
f = void 0 === s ? "afterInteractive" : s, | |
p = e.onError, | |
d = r || t; | |
if (!d || !y.has(d)) { | |
if (h.has(t)) return y.add(d), void h.get(t).then(a, p); | |
var m = document.createElement("script"), | |
g = new Promise(function (e, t) { | |
m.addEventListener("load", function (t) { | |
e(), a && a.call(this, t); | |
}), | |
m.addEventListener("error", function (e) { | |
t(e); | |
}); | |
}).catch(function (e) { | |
p && p(e); | |
}); | |
t && h.set(t, g), | |
y.add(d), | |
i | |
? (m.innerHTML = i.__html || "") | |
: c | |
? (m.textContent = | |
"string" === typeof c | |
? c | |
: Array.isArray(c) | |
? c.join("") | |
: "") | |
: t && (m.src = t); | |
var b = !0, | |
_ = !1, | |
w = void 0; | |
try { | |
for ( | |
var P, S = Object.entries(e)[Symbol.iterator](); | |
!(b = (P = S.next()).done); | |
b = !0 | |
) { | |
var x = o(P.value, 2), | |
O = x[0], | |
E = x[1]; | |
if (void 0 !== E && !v.includes(O)) { | |
var j = l.DOMAttributeNames[O] || O.toLowerCase(); | |
m.setAttribute(j, E); | |
} | |
} | |
} catch (A) { | |
(_ = !0), (w = A); | |
} finally { | |
try { | |
b || null == S.return || S.return(); | |
} finally { | |
if (_) throw w; | |
} | |
} | |
"worker" === f && m.setAttribute("type", "text/partytown"), | |
m.setAttribute("data-nscript", f), | |
document.body.appendChild(m); | |
} | |
}; | |
function g(e) { | |
var t = e.strategy; | |
"lazyOnload" === (void 0 === t ? "afterInteractive" : t) | |
? window.addEventListener("load", function () { | |
s.requestIdleCallback(function () { | |
return m(e); | |
}); | |
}) | |
: m(e); | |
} | |
var b = function (e) { | |
var t = e.src, | |
r = void 0 === t ? "" : t, | |
n = e.onLoad, | |
o = void 0 === n ? function () {} : n, | |
a = e.strategy, | |
i = void 0 === a ? "afterInteractive" : a, | |
l = e.onError, | |
f = d(e, ["src", "onLoad", "strategy", "onError"]), | |
h = u.useContext(c.HeadManagerContext), | |
v = h.updateScripts, | |
g = h.scripts, | |
b = h.getIsSsr; | |
return ( | |
u.useEffect( | |
function () { | |
"afterInteractive" === i | |
? m(e) | |
: "lazyOnload" === i && | |
(function (e) { | |
"complete" === document.readyState | |
? s.requestIdleCallback(function () { | |
return m(e); | |
}) | |
: window.addEventListener("load", function () { | |
s.requestIdleCallback(function () { | |
return m(e); | |
}); | |
}); | |
})(e); | |
}, | |
[e, i] | |
), | |
("beforeInteractive" !== i && "worker" !== i) || | |
(v | |
? ((g[i] = (g[i] || []).concat([ | |
p({ src: r, onLoad: o, onError: l }, f), | |
])), | |
v(g)) | |
: b && b() | |
? y.add(f.id || r) | |
: b && !b() && m(e)), | |
null | |
); | |
}; | |
(t.default = b), | |
("function" === typeof t.default || | |
("object" === typeof t.default && null !== t.default)) && | |
"undefined" === typeof t.default.__esModule && | |
(Object.defineProperty(t.default, "__esModule", { value: !0 }), | |
Object.assign(t.default, t), | |
(e.exports = t.default)); | |
}, | |
2129: function (e, t, r) { | |
"use strict"; | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
(t.useRefreshRoot = function () { | |
return n.useContext(o); | |
}), | |
(t.RefreshContext = void 0); | |
var n = r(7294), | |
o = n.createContext(function (e) {}); | |
(t.RefreshContext = o), | |
("function" === typeof t.default || | |
("object" === typeof t.default && null !== t.default)) && | |
"undefined" === typeof t.default.__esModule && | |
(Object.defineProperty(t.default, "__esModule", { value: !0 }), | |
Object.assign(t.default, t), | |
(e.exports = t.default)); | |
}, | |
5407: function (e, t) { | |
"use strict"; | |
var r; | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
(t.__unsafeCreateTrustedScriptURL = function (e) { | |
var t; | |
return ( | |
(null === | |
(t = (function () { | |
var e; | |
"undefined" === typeof r && | |
(r = | |
(null === (e = window.trustedTypes) || void 0 === e | |
? void 0 | |
: e.createPolicy("nextjs", { | |
createHTML: function (e) { | |
return e; | |
}, | |
createScript: function (e) { | |
return e; | |
}, | |
createScriptURL: function (e) { | |
return e; | |
}, | |
})) || null); | |
return r; | |
})()) || void 0 === t | |
? void 0 | |
: t.createScriptURL(e)) || e | |
); | |
}), | |
("function" === typeof t.default || | |
("object" === typeof t.default && null !== t.default)) && | |
"undefined" === typeof t.default.__esModule && | |
(Object.defineProperty(t.default, "__esModule", { value: !0 }), | |
Object.assign(t.default, t), | |
(e.exports = t.default)); | |
}, | |
9977: function (e, t, r) { | |
"use strict"; | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
(t.default = function (e) { | |
var t = function (t) { | |
return o.default.createElement( | |
e, | |
Object.assign({ router: a.useRouter() }, t) | |
); | |
}; | |
(t.getInitialProps = e.getInitialProps), | |
(t.origGetInitialProps = e.origGetInitialProps), | |
!1; | |
return t; | |
}); | |
var n, | |
o = (n = r(7294)) && n.__esModule ? n : { default: n }, | |
a = r(880); | |
("function" === typeof t.default || | |
("object" === typeof t.default && null !== t.default)) && | |
"undefined" === typeof t.default.__esModule && | |
(Object.defineProperty(t.default, "__esModule", { value: !0 }), | |
Object.assign(t.default, t), | |
(e.exports = t.default)); | |
}, | |
67: function (e, t, r) { | |
"use strict"; | |
function n(e, t) { | |
if (!(e instanceof t)) | |
throw new TypeError("Cannot call a class as a function"); | |
} | |
function o(e, t) { | |
for (var r = 0; r < t.length; r++) { | |
var n = t[r]; | |
(n.enumerable = n.enumerable || !1), | |
(n.configurable = !0), | |
"value" in n && (n.writable = !0), | |
Object.defineProperty(e, n.key, n); | |
} | |
} | |
function a(e) { | |
return (a = Object.setPrototypeOf | |
? Object.getPrototypeOf | |
: function (e) { | |
return e.__proto__ || Object.getPrototypeOf(e); | |
})(e); | |
} | |
function i(e, t) { | |
return !t || ("object" !== c(t) && "function" !== typeof t) | |
? (function (e) { | |
if (void 0 === e) | |
throw new ReferenceError( | |
"this hasn't been initialised - super() hasn't been called" | |
); | |
return e; | |
})(e) | |
: t; | |
} | |
function u(e, t) { | |
return (u = | |
Object.setPrototypeOf || | |
function (e, t) { | |
return (e.__proto__ = t), e; | |
})(e, t); | |
} | |
var c = function (e) { | |
return e && "undefined" !== typeof Symbol && e.constructor === Symbol | |
? "symbol" | |
: typeof e; | |
}; | |
function l(e) { | |
var t = (function () { | |
if ("undefined" === typeof Reflect || !Reflect.construct) return !1; | |
if (Reflect.construct.sham) return !1; | |
if ("function" === typeof Proxy) return !0; | |
try { | |
return ( | |
Boolean.prototype.valueOf.call( | |
Reflect.construct(Boolean, [], function () {}) | |
), | |
!0 | |
); | |
} catch (e) { | |
return !1; | |
} | |
})(); | |
return function () { | |
var r, | |
n = a(e); | |
if (t) { | |
var o = a(this).constructor; | |
r = Reflect.construct(n, arguments, o); | |
} else r = n.apply(this, arguments); | |
return i(this, r); | |
}; | |
} | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
(t.default = void 0); | |
var s = p(r(7294)), | |
f = p(r(3121)); | |
function p(e) { | |
return e && e.__esModule ? e : { default: e }; | |
} | |
var d = { | |
400: "Bad Request", | |
404: "This page could not be found", | |
405: "Method Not Allowed", | |
500: "Internal Server Error", | |
}; | |
function h(e) { | |
var t = e.res, | |
r = e.err; | |
return { | |
statusCode: t && t.statusCode ? t.statusCode : r ? r.statusCode : 404, | |
}; | |
} | |
var y = (function (e) { | |
!(function (e, t) { | |
if ("function" !== typeof t && null !== t) | |
throw new TypeError( | |
"Super expression must either be null or a function" | |
); | |
(e.prototype = Object.create(t && t.prototype, { | |
constructor: { value: e, writable: !0, configurable: !0 }, | |
})), | |
t && u(e, t); | |
})(c, e); | |
var t, | |
r, | |
a, | |
i = l(c); | |
function c() { | |
return n(this, c), i.apply(this, arguments); | |
} | |
return ( | |
(t = c), | |
(r = [ | |
{ | |
key: "render", | |
value: function () { | |
var e = this.props, | |
t = e.statusCode, | |
r = e.withDarkMode, | |
n = void 0 === r || r, | |
o = | |
this.props.title || | |
d[t] || | |
"An unexpected error has occurred"; | |
return s.default.createElement( | |
"div", | |
{ style: v.error }, | |
s.default.createElement( | |
f.default, | |
null, | |
s.default.createElement( | |
"title", | |
null, | |
t | |
? "".concat(t, ": ").concat(o) | |
: "Application error: a client-side exception has occurred" | |
) | |
), | |
s.default.createElement( | |
"div", | |
null, | |
s.default.createElement("style", { | |
dangerouslySetInnerHTML: { | |
__html: | |
"\n body { margin: 0; color: #000; background: #fff; }\n .next-error-h1 {\n border-right: 1px solid rgba(0, 0, 0, .3);\n }\n \n ".concat( | |
n | |
? "@media (prefers-color-scheme: dark) {\n body { color: #fff; background: #000; }\n .next-error-h1 {\n border-right: 1px solid rgba(255, 255, 255, .3);\n }\n }" | |
: "" | |
), | |
}, | |
}), | |
t | |
? s.default.createElement( | |
"h1", | |
{ className: "next-error-h1", style: v.h1 }, | |
t | |
) | |
: null, | |
s.default.createElement( | |
"div", | |
{ style: v.desc }, | |
s.default.createElement( | |
"h2", | |
{ style: v.h2 }, | |
this.props.title || t | |
? o | |
: s.default.createElement( | |
s.default.Fragment, | |
null, | |
"Application error: a client-side exception has occurred (see the browser console for more information)" | |
), | |
"." | |
) | |
) | |
) | |
); | |
}, | |
}, | |
]) && o(t.prototype, r), | |
a && o(t, a), | |
c | |
); | |
})(s.default.Component); | |
(t.default = y), | |
(y.displayName = "ErrorPage"), | |
(y.getInitialProps = h), | |
(y.origGetInitialProps = h); | |
var v = { | |
error: { | |
fontFamily: | |
'-apple-system, BlinkMacSystemFont, Roboto, "Segoe UI", "Fira Sans", Avenir, "Helvetica Neue", "Lucida Grande", sans-serif', | |
height: "100vh", | |
textAlign: "center", | |
display: "flex", | |
flexDirection: "column", | |
alignItems: "center", | |
justifyContent: "center", | |
}, | |
desc: { | |
display: "inline-block", | |
textAlign: "left", | |
lineHeight: "49px", | |
height: "49px", | |
verticalAlign: "middle", | |
}, | |
h1: { | |
display: "inline-block", | |
margin: 0, | |
marginRight: "20px", | |
padding: "10px 23px 10px 0", | |
fontSize: "24px", | |
fontWeight: 500, | |
verticalAlign: "top", | |
}, | |
h2: { | |
fontSize: "14px", | |
fontWeight: "normal", | |
lineHeight: "inherit", | |
margin: 0, | |
padding: 0, | |
}, | |
}; | |
}, | |
610: function (e, t, r) { | |
"use strict"; | |
var n; | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
(t.AmpStateContext = void 0); | |
var o = ( | |
(n = r(7294)) && n.__esModule ? n : { default: n } | |
).default.createContext({}); | |
t.AmpStateContext = o; | |
}, | |
1686: function (e, t, r) { | |
"use strict"; | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
(t.isInAmpMode = i), | |
(t.useAmp = function () { | |
return i(o.default.useContext(a.AmpStateContext)); | |
}); | |
var n, | |
o = (n = r(7294)) && n.__esModule ? n : { default: n }, | |
a = r(610); | |
function i() { | |
var e = | |
arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : {}, | |
t = e.ampFirst, | |
r = void 0 !== t && t, | |
n = e.hybrid, | |
o = void 0 !== n && n, | |
a = e.hasQuery, | |
i = void 0 !== a && a; | |
return r || (o && i); | |
} | |
("function" === typeof t.default || | |
("object" === typeof t.default && null !== t.default)) && | |
"undefined" === typeof t.default.__esModule && | |
(Object.defineProperty(t.default, "__esModule", { value: !0 }), | |
Object.assign(t.default, t), | |
(e.exports = t.default)); | |
}, | |
8659: function (e, t) { | |
"use strict"; | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
(t.escapeStringRegexp = function (e) { | |
if (r.test(e)) return e.replace(n, "\\$&"); | |
return e; | |
}); | |
var r = /[|\\{}()[\]^$+*?.-]/, | |
n = /[|\\{}()[\]^$+*?.-]/g; | |
}, | |
4664: function (e, t, r) { | |
"use strict"; | |
var n; | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
(t.HeadManagerContext = void 0); | |
var o = ( | |
(n = r(7294)) && n.__esModule ? n : { default: n } | |
).default.createContext({}); | |
t.HeadManagerContext = o; | |
}, | |
3121: function (e, t, r) { | |
"use strict"; | |
function n(e, t, r) { | |
return ( | |
t in e | |
? Object.defineProperty(e, t, { | |
value: r, | |
enumerable: !0, | |
configurable: !0, | |
writable: !0, | |
}) | |
: (e[t] = r), | |
e | |
); | |
} | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
(t.defaultHead = s), | |
(t.default = void 0); | |
var o, | |
a = (function (e) { | |
if (e && e.__esModule) return e; | |
var t = {}; | |
if (null != e) | |
for (var r in e) | |
if (Object.prototype.hasOwnProperty.call(e, r)) { | |
var n = | |
Object.defineProperty && Object.getOwnPropertyDescriptor | |
? Object.getOwnPropertyDescriptor(e, r) | |
: {}; | |
n.get || n.set ? Object.defineProperty(t, r, n) : (t[r] = e[r]); | |
} | |
return (t.default = e), t; | |
})(r(7294)), | |
i = (o = r(1436)) && o.__esModule ? o : { default: o }, | |
u = r(610), | |
c = r(4664), | |
l = r(1686); | |
r(670); | |
function s() { | |
var e = arguments.length > 0 && void 0 !== arguments[0] && arguments[0], | |
t = [a.default.createElement("meta", { charSet: "utf-8" })]; | |
return ( | |
e || | |
t.push( | |
a.default.createElement("meta", { | |
name: "viewport", | |
content: "width=device-width", | |
}) | |
), | |
t | |
); | |
} | |
function f(e, t) { | |
return "string" === typeof t || "number" === typeof t | |
? e | |
: t.type === a.default.Fragment | |
? e.concat( | |
a.default.Children.toArray(t.props.children).reduce(function ( | |
e, | |
t | |
) { | |
return "string" === typeof t || "number" === typeof t | |
? e | |
: e.concat(t); | |
}, | |
[]) | |
) | |
: e.concat(t); | |
} | |
var p = ["name", "httpEquiv", "charSet", "itemProp"]; | |
function d(e, t) { | |
return e | |
.reduce(function (e, t) { | |
var r = a.default.Children.toArray(t.props.children); | |
return e.concat(r); | |
}, []) | |
.reduce(f, []) | |
.reverse() | |
.concat(s(t.inAmpMode).reverse()) | |
.filter( | |
(function () { | |
var e = new Set(), | |
t = new Set(), | |
r = new Set(), | |
n = {}; | |
return function (o) { | |
var a = !0, | |
i = !1; | |
if ( | |
o.key && | |
"number" !== typeof o.key && | |
o.key.indexOf("$") > 0 | |
) { | |
i = !0; | |
var u = o.key.slice(o.key.indexOf("$") + 1); | |
e.has(u) ? (a = !1) : e.add(u); | |
} | |
switch (o.type) { | |
case "title": | |
case "base": | |
t.has(o.type) ? (a = !1) : t.add(o.type); | |
break; | |
case "meta": | |
for (var c = 0, l = p.length; c < l; c++) { | |
var s = p[c]; | |
if (o.props.hasOwnProperty(s)) | |
if ("charSet" === s) r.has(s) ? (a = !1) : r.add(s); | |
else { | |
var f = o.props[s], | |
d = n[s] || new Set(); | |
("name" === s && i) || !d.has(f) | |
? (d.add(f), (n[s] = d)) | |
: (a = !1); | |
} | |
} | |
} | |
return a; | |
}; | |
})() | |
) | |
.reverse() | |
.map(function (e, r) { | |
var o = e.key || r; | |
if ( | |
!t.inAmpMode && | |
"link" === e.type && | |
e.props.href && | |
[ | |
"https://fonts.googleapis.com/css", | |
"https://use.typekit.net/", | |
].some(function (t) { | |
return e.props.href.startsWith(t); | |
}) | |
) { | |
var i = (function (e) { | |
for (var t = 1; t < arguments.length; t++) { | |
var r = null != arguments[t] ? arguments[t] : {}, | |
o = Object.keys(r); | |
"function" === typeof Object.getOwnPropertySymbols && | |
(o = o.concat( | |
Object.getOwnPropertySymbols(r).filter(function (e) { | |
return Object.getOwnPropertyDescriptor(r, e).enumerable; | |
}) | |
)), | |
o.forEach(function (t) { | |
n(e, t, r[t]); | |
}); | |
} | |
return e; | |
})({}, e.props || {}); | |
return ( | |
(i["data-href"] = i.href), | |
(i.href = void 0), | |
(i["data-optimized-fonts"] = !0), | |
a.default.cloneElement(e, i) | |
); | |
} | |
return a.default.cloneElement(e, { key: o }); | |
}); | |
} | |
var h = function (e) { | |
var t = e.children, | |
r = a.useContext(u.AmpStateContext), | |
n = a.useContext(c.HeadManagerContext); | |
return a.default.createElement( | |
i.default, | |
{ | |
reduceComponentsToState: d, | |
headManager: n, | |
inAmpMode: l.isInAmpMode(r), | |
}, | |
t | |
); | |
}; | |
(t.default = h), | |
("function" === typeof t.default || | |
("object" === typeof t.default && null !== t.default)) && | |
"undefined" === typeof t.default.__esModule && | |
(Object.defineProperty(t.default, "__esModule", { value: !0 }), | |
Object.assign(t.default, t), | |
(e.exports = t.default)); | |
}, | |
4769: function (e, t) { | |
"use strict"; | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
(t.normalizeLocalePath = function (e, t) { | |
var r, | |
n = e.split("/"); | |
return ( | |
(t || []).some(function (t) { | |
return ( | |
!(!n[1] || n[1].toLowerCase() !== t.toLowerCase()) && | |
((r = t), n.splice(1, 1), (e = n.join("/") || "/"), !0) | |
); | |
}), | |
{ pathname: e, detectedLocale: r } | |
); | |
}); | |
}, | |
8730: function (e, t, r) { | |
"use strict"; | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
(t.ImageConfigContext = void 0); | |
var n, | |
o = (n = r(7294)) && n.__esModule ? n : { default: n }, | |
a = r(139); | |
var i = o.default.createContext(a.imageConfigDefault); | |
t.ImageConfigContext = i; | |
}, | |
139: function (e, t) { | |
"use strict"; | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
(t.imageConfigDefault = t.VALID_LOADERS = void 0); | |
t.VALID_LOADERS = ["default", "imgix", "cloudinary", "akamai", "custom"]; | |
t.imageConfigDefault = { | |
deviceSizes: [640, 750, 828, 1080, 1200, 1920, 2048, 3840], | |
imageSizes: [16, 32, 48, 64, 96, 128, 256, 384], | |
path: "/_next/image", | |
loader: "default", | |
domains: [], | |
disableStaticImages: !1, | |
minimumCacheTTL: 60, | |
formats: ["image/webp"], | |
dangerouslyAllowSVG: !1, | |
contentSecurityPolicy: "script-src 'none'; frame-src 'none'; sandbox;", | |
}; | |
}, | |
2849: function (e, t) { | |
"use strict"; | |
function r(e) { | |
return Object.prototype.toString.call(e); | |
} | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
(t.getObjectClassLabel = r), | |
(t.isPlainObject = function (e) { | |
if ("[object Object]" !== r(e)) return !1; | |
var t = Object.getPrototypeOf(e); | |
return null === t || t === Object.prototype; | |
}); | |
}, | |
8550: function (e, t) { | |
"use strict"; | |
function r(e, t) { | |
(null == t || t > e.length) && (t = e.length); | |
for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r]; | |
return n; | |
} | |
function n(e) { | |
return ( | |
(function (e) { | |
if (Array.isArray(e)) return r(e); | |
})(e) || | |
(function (e) { | |
if ( | |
("undefined" !== typeof Symbol && null != e[Symbol.iterator]) || | |
null != e["@@iterator"] | |
) | |
return Array.from(e); | |
})(e) || | |
(function (e, t) { | |
if (!e) return; | |
if ("string" === typeof e) return r(e, t); | |
var n = Object.prototype.toString.call(e).slice(8, -1); | |
"Object" === n && e.constructor && (n = e.constructor.name); | |
if ("Map" === n || "Set" === n) return Array.from(n); | |
if ( | |
"Arguments" === n || | |
/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) | |
) | |
return r(e, t); | |
})(e) || | |
(function () { | |
throw new TypeError( | |
"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." | |
); | |
})() | |
); | |
} | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
(t.default = function () { | |
var e = Object.create(null); | |
return { | |
on: function (t, r) { | |
(e[t] || (e[t] = [])).push(r); | |
}, | |
off: function (t, r) { | |
e[t] && e[t].splice(e[t].indexOf(r) >>> 0, 1); | |
}, | |
emit: function (t) { | |
for ( | |
var r = arguments.length, | |
o = new Array(r > 1 ? r - 1 : 0), | |
a = 1; | |
a < r; | |
a++ | |
) | |
o[a - 1] = arguments[a]; | |
(e[t] || []).slice().map(function (e) { | |
e.apply(void 0, n(o)); | |
}); | |
}, | |
}; | |
}); | |
}, | |
6301: function (e, t, r) { | |
"use strict"; | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
(t.denormalizePagePath = function (e) { | |
var t = o.normalizePathSep(e); | |
return t.startsWith("/index/") && !n.isDynamicRoute(t) | |
? t.slice(6) | |
: "/index" !== t | |
? t | |
: "/"; | |
}); | |
var n = r(8588), | |
o = r(9997); | |
}, | |
9997: function (e, t) { | |
"use strict"; | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
(t.normalizePathSep = function (e) { | |
return e.replace(/\\/g, "/"); | |
}); | |
}, | |
2692: function (e, t, r) { | |
"use strict"; | |
var n; | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
(t.RouterContext = void 0); | |
var o = ( | |
(n = r(7294)) && n.__esModule ? n : { default: n } | |
).default.createContext(null); | |
t.RouterContext = o; | |
}, | |
1003: function (e, t, r) { | |
"use strict"; | |
var n, | |
o = (n = r(4051)) && n.__esModule ? n : { default: n }; | |
function a(e, t) { | |
(null == t || t > e.length) && (t = e.length); | |
for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r]; | |
return n; | |
} | |
function i(e, t, r, n, o, a, i) { | |
try { | |
var u = e[a](i), | |
c = u.value; | |
} catch (l) { | |
return void r(l); | |
} | |
u.done ? t(c) : Promise.resolve(c).then(n, o); | |
} | |
function u(e) { | |
return function () { | |
var t = this, | |
r = arguments; | |
return new Promise(function (n, o) { | |
var a = e.apply(t, r); | |
function u(e) { | |
i(a, n, o, u, c, "next", e); | |
} | |
function c(e) { | |
i(a, n, o, u, c, "throw", e); | |
} | |
u(void 0); | |
}); | |
}; | |
} | |
function c(e, t) { | |
for (var r = 0; r < t.length; r++) { | |
var n = t[r]; | |
(n.enumerable = n.enumerable || !1), | |
(n.configurable = !0), | |
"value" in n && (n.writable = !0), | |
Object.defineProperty(e, n.key, n); | |
} | |
} | |
function l(e, t, r) { | |
return ( | |
t in e | |
? Object.defineProperty(e, t, { | |
value: r, | |
enumerable: !0, | |
configurable: !0, | |
writable: !0, | |
}) | |
: (e[t] = r), | |
e | |
); | |
} | |
function s(e) { | |
for (var t = 1; t < arguments.length; t++) { | |
var r = null != arguments[t] ? arguments[t] : {}, | |
n = Object.keys(r); | |
"function" === typeof Object.getOwnPropertySymbols && | |
(n = n.concat( | |
Object.getOwnPropertySymbols(r).filter(function (e) { | |
return Object.getOwnPropertyDescriptor(r, e).enumerable; | |
}) | |
)), | |
n.forEach(function (t) { | |
l(e, t, r[t]); | |
}); | |
} | |
return e; | |
} | |
function f(e, t) { | |
return ( | |
(function (e) { | |
if (Array.isArray(e)) return e; | |
})(e) || | |
(function (e, t) { | |
var r = | |
null == e | |
? null | |
: ("undefined" !== typeof Symbol && e[Symbol.iterator]) || | |
e["@@iterator"]; | |
if (null != r) { | |
var n, | |
o, | |
a = [], | |
i = !0, | |
u = !1; | |
try { | |
for ( | |
r = r.call(e); | |
!(i = (n = r.next()).done) && | |
(a.push(n.value), !t || a.length !== t); | |
i = !0 | |
); | |
} catch (c) { | |
(u = !0), (o = c); | |
} finally { | |
try { | |
i || null == r.return || r.return(); | |
} finally { | |
if (u) throw o; | |
} | |
} | |
return a; | |
} | |
})(e, t) || | |
(function (e, t) { | |
if (!e) return; | |
if ("string" === typeof e) return a(e, t); | |
var r = Object.prototype.toString.call(e).slice(8, -1); | |
"Object" === r && e.constructor && (r = e.constructor.name); | |
if ("Map" === r || "Set" === r) return Array.from(r); | |
if ( | |
"Arguments" === r || | |
/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) | |
) | |
return a(e, t); | |
})(e, t) || | |
(function () { | |
throw new TypeError( | |
"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." | |
); | |
})() | |
); | |
} | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
(t.getDomainLocale = function (e, t, r, n) { | |
return !1; | |
}), | |
(t.addLocale = R), | |
(t.delLocale = k), | |
(t.hasBasePath = M), | |
(t.addBasePath = T), | |
(t.delBasePath = L), | |
(t.isLocalURL = I), | |
(t.interpolateAs = N), | |
(t.resolveHref = U), | |
(t.createKey = $), | |
(t.default = void 0); | |
var p = r(2700), | |
d = r(2497), | |
h = r(3573), | |
y = (function (e) { | |
if (e && e.__esModule) return e; | |
var t = {}; | |
if (null != e) | |
for (var r in e) | |
if (Object.prototype.hasOwnProperty.call(e, r)) { | |
var n = | |
Object.defineProperty && Object.getOwnPropertyDescriptor | |
? Object.getOwnPropertyDescriptor(e, r) | |
: {}; | |
n.get || n.set ? Object.defineProperty(t, r, n) : (t[r] = e[r]); | |
} | |
return (t.default = e), t; | |
})(r(676)), | |
v = r(6301), | |
m = r(4769), | |
g = j(r(8550)), | |
b = r(670), | |
_ = r(6238), | |
w = r(2864), | |
P = r(4919), | |
S = j(r(7980)), | |
x = r(3156), | |
O = r(4903), | |
E = r(7795); | |
function j(e) { | |
return e && e.__esModule ? e : { default: e }; | |
} | |
function A() { | |
return Object.assign(new Error("Route Cancelled"), { cancelled: !0 }); | |
} | |
function R(e, t, r) { | |
return e; | |
} | |
function k(e, t) { | |
return e; | |
} | |
function C(e) { | |
var t = e.indexOf("?"), | |
r = e.indexOf("#"); | |
return (t > -1 || r > -1) && (e = e.substring(0, t > -1 ? t : r)), e; | |
} | |
function M(e) { | |
return (function (e, t) { | |
return (e = C(e)) === t || e.startsWith(t + "/"); | |
})(e, ""); | |
} | |
function T(e, t) { | |
return (function (e, t) { | |
if (!e.startsWith("/") || !t) return e; | |
var r = C(e); | |
return ( | |
p.normalizePathTrailingSlash("".concat(t).concat(r)) + | |
e.slice(r.length) | |
); | |
})(e, ""); | |
} | |
function L(e) { | |
return ( | |
(e = e.slice("".length)).startsWith("/") || (e = "/".concat(e)), e | |
); | |
} | |
function I(e) { | |
if (!b.isAbsoluteUrl(e)) return !0; | |
try { | |
var t = b.getLocationOrigin(), | |
r = new URL(e, t); | |
return r.origin === t && M(r.pathname); | |
} catch (n) { | |
return !1; | |
} | |
} | |
function N(e, t, r) { | |
var n = "", | |
o = O.getRouteRegex(e), | |
a = o.groups, | |
i = (t !== e ? x.getRouteMatcher(o)(t) : "") || r; | |
n = e; | |
var u = Object.keys(a); | |
return ( | |
u.every(function (e) { | |
var t = i[e] || "", | |
r = a[e], | |
o = r.repeat, | |
u = r.optional, | |
c = "[".concat(o ? "..." : "").concat(e, "]"); | |
return ( | |
u && (c = "".concat(t ? "" : "/", "[").concat(c, "]")), | |
o && !Array.isArray(t) && (t = [t]), | |
(u || e in i) && | |
(n = | |
n.replace( | |
c, | |
o | |
? t | |
.map(function (e) { | |
return encodeURIComponent(e); | |
}) | |
.join("/") | |
: encodeURIComponent(t) | |
) || "/") | |
); | |
}) || (n = ""), | |
{ params: u, result: n } | |
); | |
} | |
function D(e, t) { | |
var r = {}; | |
return ( | |
Object.keys(e).forEach(function (n) { | |
t.includes(n) || (r[n] = e[n]); | |
}), | |
r | |
); | |
} | |
function U(e, t, r) { | |
var n, | |
o = "string" === typeof t ? t : E.formatWithValidation(t), | |
a = o.match(/^[a-zA-Z]{1,}:\/\//), | |
i = a ? o.slice(a[0].length) : o; | |
if ((i.split("?")[0] || "").match(/(\/\/|\\)/)) { | |
console.error( | |
"Invalid href passed to next/router: ".concat( | |
o, | |
", repeated forward-slashes (//) or backslashes \\ are not valid in the href" | |
) | |
); | |
var u = b.normalizeRepeatedSlashes(i); | |
o = (a ? a[0] : "") + u; | |
} | |
if (!I(o)) return r ? [o] : o; | |
try { | |
n = new URL(o.startsWith("#") ? e.asPath : e.pathname, "http://n"); | |
} catch (v) { | |
n = new URL("/", "http://n"); | |
} | |
try { | |
var c = new URL(o, n); | |
c.pathname = p.normalizePathTrailingSlash(c.pathname); | |
var l = ""; | |
if (_.isDynamicRoute(c.pathname) && c.searchParams && r) { | |
var s = P.searchParamsToUrlQuery(c.searchParams), | |
f = N(c.pathname, c.pathname, s), | |
d = f.result, | |
h = f.params; | |
d && | |
(l = E.formatWithValidation({ | |
pathname: d, | |
hash: c.hash, | |
query: D(s, h), | |
})); | |
} | |
var y = | |
c.origin === n.origin ? c.href.slice(c.origin.length) : c.href; | |
return r ? [y, l || y] : y; | |
} catch (m) { | |
return r ? [o] : o; | |
} | |
} | |
function F(e) { | |
var t = b.getLocationOrigin(); | |
return e.startsWith(t) ? e.substring(t.length) : e; | |
} | |
function q(e, t, r) { | |
var n = f(U(e, t, !0), 2), | |
o = n[0], | |
a = n[1], | |
i = b.getLocationOrigin(), | |
u = o.startsWith(i), | |
c = a && a.startsWith(i); | |
(o = F(o)), (a = a ? F(a) : a); | |
var l = u ? o : T(o), | |
s = r ? F(U(e, r)) : a || o; | |
return { url: l, as: c ? s : T(s) }; | |
} | |
function H(e, t) { | |
var r = p.removePathTrailingSlash(v.denormalizePagePath(e)); | |
return "/404" === r || "/_error" === r | |
? e | |
: (t.includes(r) || | |
t.some(function (t) { | |
if (_.isDynamicRoute(t) && O.getRouteRegex(t).re.test(r)) | |
return (e = t), !0; | |
}), | |
p.removePathTrailingSlash(e)); | |
} | |
var W = Symbol("SSG_DATA_NOT_FOUND"); | |
function B(e, t, r) { | |
return fetch(e, { credentials: "same-origin" }).then(function (n) { | |
if (!n.ok) { | |
if (t > 1 && n.status >= 500) return B(e, t - 1, r); | |
if (404 === n.status) | |
return n.json().then(function (e) { | |
if (e.notFound) return { notFound: W }; | |
throw new Error("Failed to load static props"); | |
}); | |
throw new Error("Failed to load static props"); | |
} | |
return r.text ? n.text() : n.json(); | |
}); | |
} | |
function z(e, t, r, n, o) { | |
var a = new URL(e, window.location.href).href; | |
return void 0 !== n[a] | |
? n[a] | |
: (n[a] = B(e, t ? 3 : 1, { text: r }) | |
.catch(function (e) { | |
throw (t || d.markAssetError(e), e); | |
}) | |
.then(function (e) { | |
return o || delete n[a], e; | |
}) | |
.catch(function (e) { | |
throw (delete n[a], e); | |
})); | |
} | |
function $() { | |
return Math.random().toString(36).slice(2, 10); | |
} | |
var G = (function () { | |
function e(t, r, n, o) { | |
var a = o.initialProps, | |
i = o.pageLoader, | |
u = o.App, | |
c = o.wrapApp, | |
l = o.Component, | |
s = o.err, | |
f = o.subscription, | |
d = o.isFallback, | |
h = o.locale, | |
y = (o.locales, o.defaultLocale, o.domainLocales, o.isPreview), | |
v = o.isRsc, | |
m = this; | |
!(function (e, t) { | |
if (!(e instanceof t)) | |
throw new TypeError("Cannot call a class as a function"); | |
})(this, e), | |
(this.sdc = {}), | |
(this.sdr = {}), | |
(this.sde = {}), | |
(this._key = $()), | |
(this.onPopState = function (e) { | |
var t = e.state; | |
if (t) { | |
if (t.__N) { | |
var r = t.url, | |
n = t.as, | |
o = t.options, | |
a = t.key; | |
m._key = a; | |
var i = w.parseRelativeUrl(r).pathname; | |
(m.isSsr && n === T(m.asPath) && i === T(m.pathname)) || | |
(m._bps && !m._bps(t)) || | |
m.change( | |
"replaceState", | |
r, | |
n, | |
Object.assign({}, o, { | |
shallow: o.shallow && m._shallow, | |
locale: o.locale || m.defaultLocale, | |
}), | |
undefined | |
); | |
} | |
} else { | |
var u = m.pathname, | |
c = m.query; | |
m.changeState( | |
"replaceState", | |
E.formatWithValidation({ pathname: T(u), query: c }), | |
b.getURL() | |
); | |
} | |
}); | |
var g = p.removePathTrailingSlash(t); | |
(this.components = {}), | |
"/_error" !== t && | |
(this.components[g] = { | |
Component: l, | |
initial: !0, | |
props: a, | |
err: s, | |
__N_SSG: a && a.__N_SSG, | |
__N_SSP: a && a.__N_SSP, | |
__N_RSC: !!v, | |
}), | |
(this.components["/_app"] = { Component: u, styleSheets: [] }), | |
(this.events = e.events), | |
(this.pageLoader = i); | |
var P = _.isDynamicRoute(t) && self.__NEXT_DATA__.autoExport; | |
if ( | |
((this.basePath = ""), | |
(this.sub = f), | |
(this.clc = null), | |
(this._wrapApp = c), | |
(this.isSsr = !0), | |
(this.isLocaleDomain = !1), | |
(this.isReady = !!( | |
self.__NEXT_DATA__.gssp || | |
self.__NEXT_DATA__.gip || | |
(self.__NEXT_DATA__.appGip && !self.__NEXT_DATA__.gsp) || | |
(!P && self.location.search, 0) | |
)), | |
(this.state = { | |
route: g, | |
pathname: t, | |
query: r, | |
asPath: P ? t : n, | |
isPreview: !!y, | |
locale: void 0, | |
isFallback: d, | |
}), | |
!n.startsWith("//")) | |
) { | |
var S = { locale: h }; | |
(S._shouldResolveHref = n !== t), | |
this.changeState( | |
"replaceState", | |
E.formatWithValidation({ pathname: T(t), query: r }), | |
b.getURL(), | |
S | |
); | |
} | |
window.addEventListener("popstate", this.onPopState); | |
} | |
var t, r, n; | |
return ( | |
(t = e), | |
(r = [ | |
{ | |
key: "reload", | |
value: function () { | |
window.location.reload(); | |
}, | |
}, | |
{ | |
key: "back", | |
value: function () { | |
window.history.back(); | |
}, | |
}, | |
{ | |
key: "push", | |
value: function (e, t) { | |
var r, | |
n = | |
arguments.length > 2 && void 0 !== arguments[2] | |
? arguments[2] | |
: {}; | |
return ( | |
(e = (r = q(this, e, t)).url), | |
(t = r.as), | |
this.change("pushState", e, t, n) | |
); | |
}, | |
}, | |
{ | |
key: "replace", | |
value: function (e, t) { | |
var r, | |
n = | |
arguments.length > 2 && void 0 !== arguments[2] | |
? arguments[2] | |
: {}; | |
return ( | |
(e = (r = q(this, e, t)).url), | |
(t = r.as), | |
this.change("replaceState", e, t, n) | |
); | |
}, | |
}, | |
{ | |
key: "change", | |
value: function (t, r, n, a, i) { | |
var c = this; | |
return u( | |
o.default.mark(function u() { | |
var l, | |
v, | |
m, | |
g, | |
P, | |
j, | |
A, | |
U, | |
F, | |
B, | |
z, | |
$, | |
G, | |
V, | |
X, | |
Q, | |
Y, | |
K, | |
J, | |
Z, | |
ee, | |
te, | |
re, | |
ne, | |
oe, | |
ae, | |
ie, | |
ue, | |
ce, | |
le, | |
se, | |
fe, | |
pe, | |
de, | |
he, | |
ye, | |
ve, | |
me, | |
ge, | |
be, | |
_e, | |
we, | |
Pe, | |
Se, | |
xe, | |
Oe, | |
Ee; | |
return o.default.wrap( | |
function (o) { | |
for (;;) | |
switch ((o.prev = o.next)) { | |
case 0: | |
if (I(r)) { | |
o.next = 3; | |
break; | |
} | |
return ( | |
(window.location.href = r), | |
o.abrupt("return", !1) | |
); | |
case 3: | |
(l = | |
a._h || a._shouldResolveHref || C(r) === C(n)), | |
(v = s({}, c.state)), | |
a._h && (c.isReady = !0), | |
(m = v.locale), | |
(o.next = 19); | |
break; | |
case 19: | |
if ( | |
(a._h || (c.isSsr = !1), | |
b.ST && performance.mark("routeChange"), | |
(g = a.shallow), | |
(P = void 0 !== g && g), | |
(j = a.scroll), | |
(A = void 0 === j || j), | |
(U = { shallow: P }), | |
c._inFlightRoute && | |
c.abortComponentLoad(c._inFlightRoute, U), | |
(n = T( | |
R(M(n) ? L(n) : n, a.locale, c.defaultLocale) | |
)), | |
(F = k(M(n) ? L(n) : n, v.locale)), | |
(c._inFlightRoute = n), | |
(B = m !== v.locale), | |
a._h || !c.onlyAHashChange(F) || B) | |
) { | |
o.next = 44; | |
break; | |
} | |
return ( | |
(v.asPath = F), | |
e.events.emit("hashChangeStart", n, U), | |
c.changeState( | |
t, | |
r, | |
n, | |
s({}, a, { scroll: !1 }) | |
), | |
A && c.scrollToHash(F), | |
(o.prev = 33), | |
(o.next = 36), | |
c.set(v, c.components[v.route], null) | |
); | |
case 36: | |
o.next = 42; | |
break; | |
case 38: | |
throw ( | |
((o.prev = 38), | |
(o.t0 = o.catch(33)), | |
y.default(o.t0) && | |
o.t0.cancelled && | |
e.events.emit("routeChangeError", o.t0, F, U), | |
o.t0) | |
); | |
case 42: | |
return ( | |
e.events.emit("hashChangeComplete", n, U), | |
o.abrupt("return", !0) | |
); | |
case 44: | |
return ( | |
(z = w.parseRelativeUrl(r)), | |
($ = z.pathname), | |
(G = z.query), | |
(o.prev = 47), | |
(o.t1 = f), | |
(o.next = 52), | |
Promise.all([ | |
c.pageLoader.getPageList(), | |
d.getClientBuildManifest(), | |
c.pageLoader.getMiddlewareList(), | |
]) | |
); | |
case 52: | |
(o.t2 = o.sent), | |
(Q = (0, o.t1)(o.t2, 2)), | |
(V = Q[0]), | |
(Y = Q[1]), | |
(X = Y.__rewrites), | |
(o.next = 63); | |
break; | |
case 59: | |
return ( | |
(o.prev = 59), | |
(o.t3 = o.catch(47)), | |
(window.location.href = n), | |
o.abrupt("return", !1) | |
); | |
case 63: | |
if ( | |
(c.urlIsNew(F) || B || (t = "replaceState"), | |
(K = n), | |
($ = $ ? p.removePathTrailingSlash(L($)) : $), | |
!l || "/_error" === $) | |
) { | |
o.next = 78; | |
break; | |
} | |
if ( | |
((a._shouldResolveHref = !0), | |
!n.startsWith("/")) | |
) { | |
o.next = 77; | |
break; | |
} | |
if ( | |
!(J = S.default( | |
T(R(F, v.locale)), | |
V, | |
X, | |
G, | |
function (e) { | |
return H(e, V); | |
}, | |
c.locales | |
)).externalDest | |
) { | |
o.next = 73; | |
break; | |
} | |
return ( | |
(location.href = n), o.abrupt("return", !0) | |
); | |
case 73: | |
(K = J.asPath), | |
J.matchedPage && | |
J.resolvedHref && | |
(($ = J.resolvedHref), | |
(z.pathname = T($)), | |
(r = E.formatWithValidation(z))), | |
(o.next = 78); | |
break; | |
case 77: | |
(z.pathname = H($, V)), | |
z.pathname !== $ && | |
(($ = z.pathname), | |
(z.pathname = T($)), | |
(r = E.formatWithValidation(z))); | |
case 78: | |
if (I(n)) { | |
o.next = 83; | |
break; | |
} | |
o.next = 81; | |
break; | |
case 81: | |
return ( | |
(window.location.href = n), | |
o.abrupt("return", !1) | |
); | |
case 83: | |
if ( | |
((K = k(L(K), v.locale)), | |
(a.shallow && 1 !== a._h) || | |
(1 === a._h && | |
!_.isDynamicRoute( | |
p.removePathTrailingSlash($) | |
))) | |
) { | |
o.next = 104; | |
break; | |
} | |
return ( | |
(o.next = 87), | |
c._preflightRequest({ | |
as: n, | |
cache: !0, | |
pages: V, | |
pathname: $, | |
query: G, | |
locale: v.locale, | |
isPreview: v.isPreview, | |
}) | |
); | |
case 87: | |
if ("rewrite" !== (Z = o.sent).type) { | |
o.next = 92; | |
break; | |
} | |
(G = s({}, G, Z.parsedAs.query)), | |
(K = Z.asPath), | |
($ = Z.resolvedHref), | |
(z.pathname = Z.resolvedHref), | |
(r = E.formatWithValidation(z)), | |
(o.next = 104); | |
break; | |
case 92: | |
if ("redirect" !== Z.type || !Z.newAs) { | |
o.next = 96; | |
break; | |
} | |
return o.abrupt( | |
"return", | |
c.change(t, Z.newUrl, Z.newAs, a) | |
); | |
case 96: | |
if ("redirect" !== Z.type || !Z.destination) { | |
o.next = 101; | |
break; | |
} | |
return ( | |
(window.location.href = Z.destination), | |
o.abrupt("return", new Promise(function () {})) | |
); | |
case 101: | |
if ( | |
"refresh" !== Z.type || | |
n === window.location.pathname | |
) { | |
o.next = 104; | |
break; | |
} | |
return ( | |
(window.location.href = n), | |
o.abrupt("return", new Promise(function () {})) | |
); | |
case 104: | |
if ( | |
((ee = p.removePathTrailingSlash($)), | |
!_.isDynamicRoute(ee)) | |
) { | |
o.next = 120; | |
break; | |
} | |
if ( | |
((te = w.parseRelativeUrl(K)), | |
(re = te.pathname), | |
(ne = O.getRouteRegex(ee)), | |
(oe = x.getRouteMatcher(ne)(re)), | |
(ie = (ae = ee === re) ? N(ee, re, G) : {}), | |
oe && (!ae || ie.result)) | |
) { | |
o.next = 119; | |
break; | |
} | |
if ( | |
!( | |
(ue = Object.keys(ne.groups).filter(function ( | |
e | |
) { | |
return !G[e]; | |
})).length > 0 | |
) | |
) { | |
o.next = 117; | |
break; | |
} | |
throw new Error( | |
(ae | |
? "The provided `href` (" | |
.concat( | |
r, | |
") value is missing query values (" | |
) | |
.concat( | |
ue.join(", "), | |
") to be interpolated properly. " | |
) | |
: "The provided `as` value (" | |
.concat( | |
re, | |
") is incompatible with the `href` value (" | |
) | |
.concat(ee, "). ")) + | |
"Read more: https://nextjs.org/docs/messages/".concat( | |
ae | |
? "href-interpolation-failed" | |
: "incompatible-href-as" | |
) | |
); | |
case 117: | |
o.next = 120; | |
break; | |
case 119: | |
ae | |
? (n = E.formatWithValidation( | |
Object.assign({}, te, { | |
pathname: ie.result, | |
query: D(G, ie.params), | |
}) | |
)) | |
: Object.assign(G, oe); | |
case 120: | |
return ( | |
e.events.emit("routeChangeStart", n, U), | |
(o.prev = 121), | |
(o.next = 125), | |
c.getRouteInfo( | |
ee, | |
$, | |
G, | |
n, | |
K, | |
U, | |
v.locale, | |
v.isPreview | |
) | |
); | |
case 125: | |
if ( | |
((se = o.sent), | |
(fe = se.error), | |
(pe = se.props), | |
(de = se.__N_SSG), | |
(he = se.__N_SSP), | |
(ye = se.Component) && | |
ye.unstable_scriptLoader && | |
[] | |
.concat(ye.unstable_scriptLoader()) | |
.forEach(function (e) { | |
h.handleClientScriptLoad(e.props); | |
}), | |
(!de && !he) || !pe) | |
) { | |
o.next = 155; | |
break; | |
} | |
if (!pe.pageProps || !pe.pageProps.__N_REDIRECT) { | |
o.next = 140; | |
break; | |
} | |
if ( | |
((a.locale = !1), | |
!(ve = pe.pageProps.__N_REDIRECT).startsWith( | |
"/" | |
) || !1 === pe.pageProps.__N_REDIRECT_BASE_PATH) | |
) { | |
o.next = 138; | |
break; | |
} | |
return ( | |
((me = w.parseRelativeUrl(ve)).pathname = H( | |
me.pathname, | |
V | |
)), | |
(ge = q(c, ve, ve)), | |
(be = ge.url), | |
(_e = ge.as), | |
o.abrupt("return", c.change(t, be, _e, a)) | |
); | |
case 138: | |
return ( | |
(window.location.href = ve), | |
o.abrupt("return", new Promise(function () {})) | |
); | |
case 140: | |
if ( | |
((v.isPreview = !!pe.__N_PREVIEW), | |
pe.notFound !== W) | |
) { | |
o.next = 155; | |
break; | |
} | |
return ( | |
(o.prev = 143), | |
(o.next = 146), | |
c.fetchComponent("/404") | |
); | |
case 146: | |
(we = "/404"), (o.next = 152); | |
break; | |
case 149: | |
(o.prev = 149), | |
(o.t4 = o.catch(143)), | |
(we = "/_error"); | |
case 152: | |
return ( | |
(o.next = 154), | |
c.getRouteInfo( | |
we, | |
we, | |
G, | |
n, | |
K, | |
{ shallow: !1 }, | |
v.locale, | |
v.isPreview | |
) | |
); | |
case 154: | |
se = o.sent; | |
case 155: | |
return ( | |
e.events.emit("beforeHistoryChange", n, U), | |
c.changeState(t, r, n, a), | |
a._h && | |
"/_error" === $ && | |
500 === | |
(null === (ce = self.__NEXT_DATA__.props) || | |
void 0 === ce || | |
null === (le = ce.pageProps) || | |
void 0 === le | |
? void 0 | |
: le.statusCode) && | |
(null === pe || void 0 === pe | |
? void 0 | |
: pe.pageProps) && | |
(pe.pageProps.statusCode = 500), | |
(Pe = a.shallow && v.route === ee), | |
(xe = | |
null !== (Se = a.scroll) && void 0 !== Se | |
? Se | |
: !Pe), | |
(Oe = xe ? { x: 0, y: 0 } : null), | |
(o.next = 164), | |
c | |
.set( | |
s({}, v, { | |
route: ee, | |
pathname: $, | |
query: G, | |
asPath: F, | |
isFallback: !1, | |
}), | |
se, | |
null !== i && void 0 !== i ? i : Oe | |
) | |
.catch(function (e) { | |
if (!e.cancelled) throw e; | |
fe = fe || e; | |
}) | |
); | |
case 164: | |
if (!fe) { | |
o.next = 167; | |
break; | |
} | |
throw ( | |
(e.events.emit("routeChangeError", fe, F, U), | |
fe) | |
); | |
case 167: | |
return ( | |
e.events.emit("routeChangeComplete", n, U), | |
(Ee = /#.+$/), | |
xe && Ee.test(n) && c.scrollToHash(n), | |
o.abrupt("return", !0) | |
); | |
case 174: | |
if ( | |
((o.prev = 174), | |
(o.t5 = o.catch(121)), | |
!y.default(o.t5) || !o.t5.cancelled) | |
) { | |
o.next = 178; | |
break; | |
} | |
return o.abrupt("return", !1); | |
case 178: | |
throw o.t5; | |
case 179: | |
case "end": | |
return o.stop(); | |
} | |
}, | |
u, | |
null, | |
[ | |
[33, 38], | |
[47, 59], | |
[121, 174], | |
[143, 149], | |
] | |
); | |
}) | |
)(); | |
}, | |
}, | |
{ | |
key: "changeState", | |
value: function (e, t, r) { | |
var n = | |
arguments.length > 3 && void 0 !== arguments[3] | |
? arguments[3] | |
: {}; | |
("pushState" === e && b.getURL() === r) || | |
((this._shallow = n.shallow), | |
window.history[e]( | |
{ | |
url: t, | |
as: r, | |
options: n, | |
__N: !0, | |
key: (this._key = "pushState" !== e ? this._key : $()), | |
}, | |
"", | |
r | |
)); | |
}, | |
}, | |
{ | |
key: "handleRouteInfoError", | |
value: function (t, r, n, a, i, c) { | |
var l = this; | |
return u( | |
o.default.mark(function u() { | |
var s, f, p, h; | |
return o.default.wrap( | |
function (o) { | |
for (;;) | |
switch ((o.prev = o.next)) { | |
case 0: | |
if (!t.cancelled) { | |
o.next = 2; | |
break; | |
} | |
throw t; | |
case 2: | |
if (!d.isAssetError(t) && !c) { | |
o.next = 6; | |
break; | |
} | |
throw ( | |
(e.events.emit("routeChangeError", t, a, i), | |
(window.location.href = a), | |
A()) | |
); | |
case 6: | |
if ( | |
((o.prev = 6), | |
"undefined" !== typeof s && | |
"undefined" !== typeof f) | |
) { | |
o.next = 18; | |
break; | |
} | |
return (o.next = 14), l.fetchComponent("/_error"); | |
case 14: | |
(p = o.sent), (s = p.page), (f = p.styleSheets); | |
case 18: | |
if ( | |
(h = { | |
props: void 0, | |
Component: s, | |
styleSheets: f, | |
err: t, | |
error: t, | |
}).props | |
) { | |
o.next = 30; | |
break; | |
} | |
return ( | |
(o.prev = 20), | |
(o.next = 23), | |
l.getInitialProps(s, { | |
err: t, | |
pathname: r, | |
query: n, | |
}) | |
); | |
case 23: | |
(h.props = o.sent), (o.next = 30); | |
break; | |
case 26: | |
(o.prev = 26), | |
(o.t0 = o.catch(20)), | |
console.error( | |
"Error in error page `getInitialProps`: ", | |
o.t0 | |
), | |
(h.props = {}); | |
case 30: | |
return o.abrupt("return", h); | |
case 33: | |
return ( | |
(o.prev = 33), | |
(o.t1 = o.catch(6)), | |
o.abrupt( | |
"return", | |
l.handleRouteInfoError( | |
y.default(o.t1) | |
? o.t1 | |
: new Error(o.t1 + ""), | |
r, | |
n, | |
a, | |
i, | |
!0 | |
) | |
) | |
); | |
case 36: | |
case "end": | |
return o.stop(); | |
} | |
}, | |
u, | |
null, | |
[ | |
[6, 33], | |
[20, 26], | |
] | |
); | |
}) | |
)(); | |
}, | |
}, | |
{ | |
key: "getRouteInfo", | |
value: function (e, t, r, n, a, i, c, l) { | |
var s = this; | |
return u( | |
o.default.mark(function u() { | |
var f, p, d, h, v, m, g, b, _, w, P, S; | |
return o.default.wrap( | |
function (o) { | |
for (;;) | |
switch ((o.prev = o.next)) { | |
case 0: | |
if ( | |
((o.prev = 0), | |
(f = s.components[e]), | |
!i.shallow || !f || s.route !== e) | |
) { | |
o.next = 4; | |
break; | |
} | |
return o.abrupt("return", f); | |
case 4: | |
if ( | |
((p = void 0), | |
f && !("initial" in f) && (p = f), | |
(o.t0 = p), | |
o.t0) | |
) { | |
o.next = 11; | |
break; | |
} | |
return ( | |
(o.next = 10), | |
s.fetchComponent(e).then(function (e) { | |
return { | |
Component: e.page, | |
styleSheets: e.styleSheets, | |
__N_SSG: e.mod.__N_SSG, | |
__N_SSP: e.mod.__N_SSP, | |
__N_RSC: !!e.mod.__next_rsc__, | |
}; | |
}) | |
); | |
case 10: | |
o.t0 = o.sent; | |
case 11: | |
(d = o.t0), | |
(h = d.Component), | |
(v = d.__N_SSG), | |
(m = d.__N_SSP), | |
(g = d.__N_RSC), | |
(o.next = 17); | |
break; | |
case 17: | |
return ( | |
(_ = m && g), | |
(v || m || g) && | |
(b = s.pageLoader.getDataHref({ | |
href: E.formatWithValidation({ | |
pathname: t, | |
query: r, | |
}), | |
asPath: a, | |
ssg: v, | |
flight: _, | |
locale: c, | |
})), | |
(o.next = 22), | |
s._getData(function () { | |
return (v || m || g) && !_ | |
? z( | |
b, | |
s.isSsr, | |
!1, | |
v ? s.sdc : s.sdr, | |
!!v && !l | |
) | |
: s.getInitialProps(h, { | |
pathname: t, | |
query: r, | |
asPath: n, | |
locale: c, | |
locales: s.locales, | |
defaultLocale: s.defaultLocale, | |
}); | |
}) | |
); | |
case 22: | |
if (((w = o.sent), !g)) { | |
o.next = 32; | |
break; | |
} | |
if (!_) { | |
o.next = 31; | |
break; | |
} | |
return ( | |
(o.next = 27), | |
s._getData(function () { | |
return s._getFlightData(b); | |
}) | |
); | |
case 27: | |
(P = o.sent.data), | |
(w.pageProps = Object.assign(w.pageProps, { | |
__flight__: P, | |
})), | |
(o.next = 32); | |
break; | |
case 31: | |
(S = w.__flight__), | |
(w.pageProps = Object.assign({}, w.pageProps, { | |
__flight__: S, | |
})); | |
case 32: | |
return ( | |
(d.props = w), | |
(s.components[e] = d), | |
o.abrupt("return", d) | |
); | |
case 37: | |
return ( | |
(o.prev = 37), | |
(o.t1 = o.catch(0)), | |
o.abrupt( | |
"return", | |
s.handleRouteInfoError( | |
y.getProperError(o.t1), | |
t, | |
r, | |
n, | |
i | |
) | |
) | |
); | |
case 40: | |
case "end": | |
return o.stop(); | |
} | |
}, | |
u, | |
null, | |
[[0, 37]] | |
); | |
}) | |
)(); | |
}, | |
}, | |
{ | |
key: "set", | |
value: function (e, t, r) { | |
return ( | |
(this.state = e), | |
this.sub(t, this.components["/_app"].Component, r) | |
); | |
}, | |
}, | |
{ | |
key: "beforePopState", | |
value: function (e) { | |
this._bps = e; | |
}, | |
}, | |
{ | |
key: "onlyAHashChange", | |
value: function (e) { | |
if (!this.asPath) return !1; | |
var t = f(this.asPath.split("#"), 2), | |
r = t[0], | |
n = t[1], | |
o = f(e.split("#"), 2), | |
a = o[0], | |
i = o[1]; | |
return !(!i || r !== a || n !== i) || (r === a && n !== i); | |
}, | |
}, | |
{ | |
key: "scrollToHash", | |
value: function (e) { | |
var t = f(e.split("#"), 2)[1], | |
r = void 0 === t ? "" : t; | |
if ("" !== r && "top" !== r) { | |
var n = decodeURIComponent(r), | |
o = document.getElementById(n); | |
if (o) o.scrollIntoView(); | |
else { | |
var a = document.getElementsByName(n)[0]; | |
a && a.scrollIntoView(); | |
} | |
} else window.scrollTo(0, 0); | |
}, | |
}, | |
{ | |
key: "urlIsNew", | |
value: function (e) { | |
return this.asPath !== e; | |
}, | |
}, | |
{ | |
key: "prefetch", | |
value: function (e) { | |
var t = | |
arguments.length > 1 && void 0 !== arguments[1] | |
? arguments[1] | |
: e, | |
r = | |
arguments.length > 2 && void 0 !== arguments[2] | |
? arguments[2] | |
: {}, | |
n = this; | |
return u( | |
o.default.mark(function a() { | |
var i, u, c, l, f, h, y, v, m, g; | |
return o.default.wrap(function (o) { | |
for (;;) | |
switch ((o.prev = o.next)) { | |
case 0: | |
return ( | |
(i = w.parseRelativeUrl(e)), | |
(u = i.pathname), | |
(c = i.query), | |
(o.next = 5), | |
n.pageLoader.getPageList() | |
); | |
case 5: | |
if (((l = o.sent), (f = t), !t.startsWith("/"))) { | |
o.next = 22; | |
break; | |
} | |
return (o.next = 12), d.getClientBuildManifest(); | |
case 12: | |
if ( | |
((y = o.sent), | |
(h = y.__rewrites), | |
!(v = S.default( | |
T(R(t, n.locale)), | |
l, | |
h, | |
i.query, | |
function (e) { | |
return H(e, l); | |
}, | |
n.locales | |
)).externalDest) | |
) { | |
o.next = 18; | |
break; | |
} | |
return o.abrupt("return"); | |
case 18: | |
(f = k(L(v.asPath), n.locale)), | |
v.matchedPage && | |
v.resolvedHref && | |
((u = v.resolvedHref), | |
(i.pathname = u), | |
(e = E.formatWithValidation(i))), | |
(o.next = 23); | |
break; | |
case 22: | |
(i.pathname = H(i.pathname, l)), | |
i.pathname !== u && | |
((u = i.pathname), | |
(i.pathname = u), | |
(e = E.formatWithValidation(i))); | |
case 23: | |
o.next = 25; | |
break; | |
case 25: | |
return ( | |
(o.next = 27), | |
n._preflightRequest({ | |
as: T(t), | |
cache: !0, | |
pages: l, | |
pathname: u, | |
query: c, | |
locale: n.locale, | |
isPreview: n.isPreview, | |
}) | |
); | |
case 27: | |
return ( | |
"rewrite" === (m = o.sent).type && | |
((i.pathname = m.resolvedHref), | |
(u = m.resolvedHref), | |
(c = s({}, c, m.parsedAs.query)), | |
(f = m.asPath), | |
(e = E.formatWithValidation(i))), | |
(g = p.removePathTrailingSlash(u)), | |
(o.next = 32), | |
Promise.all([ | |
n.pageLoader._isSsg(g).then(function (t) { | |
return ( | |
!!t && | |
z( | |
n.pageLoader.getDataHref({ | |
href: e, | |
asPath: f, | |
ssg: !0, | |
locale: | |
"undefined" !== typeof r.locale | |
? r.locale | |
: n.locale, | |
}), | |
!1, | |
!1, | |
n.sdc, | |
!0 | |
) | |
); | |
}), | |
n.pageLoader[ | |
r.priority ? "loadPage" : "prefetch" | |
](g), | |
]) | |
); | |
case 32: | |
case "end": | |
return o.stop(); | |
} | |
}, a); | |
}) | |
)(); | |
}, | |
}, | |
{ | |
key: "fetchComponent", | |
value: function (e) { | |
var t = this; | |
return u( | |
o.default.mark(function r() { | |
var n, a, i, u; | |
return o.default.wrap( | |
function (r) { | |
for (;;) | |
switch ((r.prev = r.next)) { | |
case 0: | |
return ( | |
(n = !1), | |
(a = t.clc = | |
function () { | |
n = !0; | |
}), | |
(i = function () { | |
if (n) { | |
var r = new Error( | |
'Abort fetching component for route: "'.concat( | |
e, | |
'"' | |
) | |
); | |
throw ((r.cancelled = !0), r); | |
} | |
a === t.clc && (t.clc = null); | |
}), | |
(r.prev = 3), | |
(r.next = 6), | |
t.pageLoader.loadPage(e) | |
); | |
case 6: | |
return (u = r.sent), i(), r.abrupt("return", u); | |
case 11: | |
throw ( | |
((r.prev = 11), (r.t0 = r.catch(3)), i(), r.t0) | |
); | |
case 15: | |
case "end": | |
return r.stop(); | |
} | |
}, | |
r, | |
null, | |
[[3, 11]] | |
); | |
}) | |
)(); | |
}, | |
}, | |
{ | |
key: "_getData", | |
value: function (e) { | |
var t = this, | |
r = !1, | |
n = function () { | |
r = !0; | |
}; | |
return ( | |
(this.clc = n), | |
e().then(function (e) { | |
if ((n === t.clc && (t.clc = null), r)) { | |
var o = new Error("Loading initial props cancelled"); | |
throw ((o.cancelled = !0), o); | |
} | |
return e; | |
}) | |
); | |
}, | |
}, | |
{ | |
key: "_getFlightData", | |
value: function (e) { | |
return z(e, !0, !0, this.sdc, !1).then(function (e) { | |
return { data: e }; | |
}); | |
}, | |
}, | |
{ | |
key: "_preflightRequest", | |
value: function (e) { | |
var t = this; | |
return u( | |
o.default.mark(function r() { | |
var n, a, i, u, c, l, s, d, h, y, v, g; | |
return o.default.wrap( | |
function (r) { | |
for (;;) | |
switch ((r.prev = r.next)) { | |
case 0: | |
return ( | |
(n = C(e.as)), | |
(a = k(M(n) ? L(n) : n, e.locale)), | |
(r.next = 4), | |
t.pageLoader.getMiddlewareList() | |
); | |
case 4: | |
if ( | |
r.sent.some(function (e) { | |
var t = f(e, 2), | |
r = t[0], | |
n = t[1]; | |
return x.getRouteMatcher( | |
O.getMiddlewareRegex(r, { catchAll: !n }) | |
)(a); | |
}) | |
) { | |
r.next = 8; | |
break; | |
} | |
return r.abrupt("return", { type: "next" }); | |
case 8: | |
return ( | |
(i = R(e.as, e.locale)), | |
(r.prev = 10), | |
(r.next = 13), | |
t._getPreflightData({ | |
preflightHref: i, | |
shouldCache: e.cache, | |
isPreview: e.isPreview, | |
}) | |
); | |
case 13: | |
(u = r.sent), (r.next = 19); | |
break; | |
case 16: | |
return ( | |
(r.prev = 16), | |
(r.t0 = r.catch(10)), | |
r.abrupt("return", { | |
type: "redirect", | |
destination: e.as, | |
}) | |
); | |
case 19: | |
if (!u.rewrite) { | |
r.next = 28; | |
break; | |
} | |
if (u.rewrite.startsWith("/")) { | |
r.next = 22; | |
break; | |
} | |
return r.abrupt("return", { | |
type: "redirect", | |
destination: e.as, | |
}); | |
case 22: | |
return ( | |
(c = w.parseRelativeUrl( | |
m.normalizeLocalePath( | |
M(u.rewrite) ? L(u.rewrite) : u.rewrite, | |
t.locales | |
).pathname | |
)), | |
(l = p.removePathTrailingSlash(c.pathname)), | |
e.pages.includes(l) | |
? ((s = !0), (d = l)) | |
: (d = H(l, e.pages)) !== c.pathname && | |
e.pages.includes(d) && | |
(s = !0), | |
r.abrupt("return", { | |
type: "rewrite", | |
asPath: c.pathname, | |
parsedAs: c, | |
matchedPage: s, | |
resolvedHref: d, | |
}) | |
); | |
case 28: | |
if (!u.redirect) { | |
r.next = 34; | |
break; | |
} | |
if (!u.redirect.startsWith("/")) { | |
r.next = 33; | |
break; | |
} | |
return ( | |
(h = p.removePathTrailingSlash( | |
m.normalizeLocalePath( | |
M(u.redirect) ? L(u.redirect) : u.redirect, | |
t.locales | |
).pathname | |
)), | |
(y = q(t, h, h)), | |
(v = y.url), | |
(g = y.as), | |
r.abrupt("return", { | |
type: "redirect", | |
newUrl: v, | |
newAs: g, | |
}) | |
); | |
case 33: | |
return r.abrupt("return", { | |
type: "redirect", | |
destination: u.redirect, | |
}); | |
case 34: | |
if (!u.refresh || u.ssr) { | |
r.next = 36; | |
break; | |
} | |
return r.abrupt("return", { type: "refresh" }); | |
case 36: | |
return r.abrupt("return", { type: "next" }); | |
case 37: | |
case "end": | |
return r.stop(); | |
} | |
}, | |
r, | |
null, | |
[[10, 16]] | |
); | |
}) | |
)(); | |
}, | |
}, | |
{ | |
key: "_getPreflightData", | |
value: function (e) { | |
var t = this, | |
r = e.preflightHref, | |
n = e.shouldCache, | |
o = void 0 !== n && n, | |
a = e.isPreview, | |
i = new URL(r, window.location.href).href; | |
return !a && o && this.sde[i] | |
? Promise.resolve(this.sde[i]) | |
: fetch(r, { | |
method: "HEAD", | |
credentials: "same-origin", | |
headers: { "x-middleware-preflight": "1" }, | |
}) | |
.then(function (e) { | |
if (!e.ok) | |
throw new Error("Failed to preflight request"); | |
return { | |
cache: e.headers.get("x-middleware-cache"), | |
redirect: e.headers.get("Location"), | |
refresh: e.headers.has("x-middleware-refresh"), | |
rewrite: e.headers.get("x-middleware-rewrite"), | |
ssr: !!e.headers.get("x-middleware-ssr"), | |
}; | |
}) | |
.then(function (e) { | |
return o && "no-cache" !== e.cache && (t.sde[i] = e), e; | |
}) | |
.catch(function (e) { | |
throw (delete t.sde[i], e); | |
}); | |
}, | |
}, | |
{ | |
key: "getInitialProps", | |
value: function (e, t) { | |
var r = this.components["/_app"].Component, | |
n = this._wrapApp(r); | |
return ( | |
(t.AppTree = n), | |
b.loadGetInitialProps(r, { | |
AppTree: n, | |
Component: e, | |
router: this, | |
ctx: t, | |
}) | |
); | |
}, | |
}, | |
{ | |
key: "abortComponentLoad", | |
value: function (t, r) { | |
this.clc && | |
(e.events.emit("routeChangeError", A(), t, r), | |
this.clc(), | |
(this.clc = null)); | |
}, | |
}, | |
{ | |
key: "route", | |
get: function () { | |
return this.state.route; | |
}, | |
}, | |
{ | |
key: "pathname", | |
get: function () { | |
return this.state.pathname; | |
}, | |
}, | |
{ | |
key: "query", | |
get: function () { | |
return this.state.query; | |
}, | |
}, | |
{ | |
key: "asPath", | |
get: function () { | |
return this.state.asPath; | |
}, | |
}, | |
{ | |
key: "locale", | |
get: function () { | |
return this.state.locale; | |
}, | |
}, | |
{ | |
key: "isFallback", | |
get: function () { | |
return this.state.isFallback; | |
}, | |
}, | |
{ | |
key: "isPreview", | |
get: function () { | |
return this.state.isPreview; | |
}, | |
}, | |
]), | |
r && c(t.prototype, r), | |
n && c(t, n), | |
e | |
); | |
})(); | |
(t.default = G), (G.events = g.default()); | |
}, | |
7795: function (e, t, r) { | |
"use strict"; | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
(t.formatUrl = a), | |
(t.formatWithValidation = function (e) { | |
0; | |
return a(e); | |
}), | |
(t.urlObjectKeys = void 0); | |
var n = (function (e) { | |
if (e && e.__esModule) return e; | |
var t = {}; | |
if (null != e) | |
for (var r in e) | |
if (Object.prototype.hasOwnProperty.call(e, r)) { | |
var n = | |
Object.defineProperty && Object.getOwnPropertyDescriptor | |
? Object.getOwnPropertyDescriptor(e, r) | |
: {}; | |
n.get || n.set ? Object.defineProperty(t, r, n) : (t[r] = e[r]); | |
} | |
return (t.default = e), t; | |
})(r(4919)); | |
var o = /https?|ftp|gopher|file/; | |
function a(e) { | |
var t = e.auth, | |
r = e.hostname, | |
a = e.protocol || "", | |
i = e.pathname || "", | |
u = e.hash || "", | |
c = e.query || "", | |
l = !1; | |
(t = t ? encodeURIComponent(t).replace(/%3A/i, ":") + "@" : ""), | |
e.host | |
? (l = t + e.host) | |
: r && | |
((l = t + (~r.indexOf(":") ? "[".concat(r, "]") : r)), | |
e.port && (l += ":" + e.port)), | |
c && | |
"object" === typeof c && | |
(c = String(n.urlQueryToSearchParams(c))); | |
var s = e.search || (c && "?".concat(c)) || ""; | |
return ( | |
a && !a.endsWith(":") && (a += ":"), | |
e.slashes || ((!a || o.test(a)) && !1 !== l) | |
? ((l = "//" + (l || "")), i && "/" !== i[0] && (i = "/" + i)) | |
: l || (l = ""), | |
u && "#" !== u[0] && (u = "#" + u), | |
s && "?" !== s[0] && (s = "?" + s), | |
(i = i.replace(/[?#]/g, encodeURIComponent)), | |
(s = s.replace("#", "%23")), | |
"".concat(a).concat(l).concat(i).concat(s).concat(u) | |
); | |
} | |
t.urlObjectKeys = [ | |
"auth", | |
"hash", | |
"host", | |
"hostname", | |
"href", | |
"path", | |
"pathname", | |
"port", | |
"protocol", | |
"query", | |
"search", | |
"slashes", | |
]; | |
}, | |
7929: function (e, t) { | |
"use strict"; | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
(t.default = function (e) { | |
var t = | |
arguments.length > 1 && void 0 !== arguments[1] | |
? arguments[1] | |
: "", | |
r = | |
"/" === e | |
? "/index" | |
: /^\/index(\/|$)/.test(e) | |
? "/index".concat(e) | |
: "".concat(e); | |
return r + t; | |
}); | |
}, | |
8588: function (e, t, r) { | |
"use strict"; | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
Object.defineProperty(t, "getSortedRoutes", { | |
enumerable: !0, | |
get: function () { | |
return n.getSortedRoutes; | |
}, | |
}), | |
Object.defineProperty(t, "isDynamicRoute", { | |
enumerable: !0, | |
get: function () { | |
return o.isDynamicRoute; | |
}, | |
}); | |
var n = r(566), | |
o = r(6238); | |
}, | |
6238: function (e, t) { | |
"use strict"; | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
(t.isDynamicRoute = function (e) { | |
return r.test(e); | |
}); | |
var r = /\/\[[^/]+?\](?=\/|$)/; | |
}, | |
2864: function (e, t, r) { | |
"use strict"; | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
(t.parseRelativeUrl = function (e, t) { | |
var r = new URL(n.getLocationOrigin()), | |
a = t | |
? new URL(t, r) | |
: e.startsWith(".") | |
? new URL(window.location.href) | |
: r, | |
i = new URL(e, a), | |
u = i.pathname, | |
c = i.searchParams, | |
l = i.search, | |
s = i.hash, | |
f = i.href; | |
if (i.origin !== r.origin) | |
throw new Error( | |
"invariant: invalid relative URL, router received ".concat(e) | |
); | |
return { | |
pathname: u, | |
query: o.searchParamsToUrlQuery(c), | |
search: l, | |
hash: s, | |
href: f.slice(r.origin.length), | |
}; | |
}); | |
var n = r(670), | |
o = r(4919); | |
}, | |
7253: function (e, t, r) { | |
"use strict"; | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
(t.parseUrl = function (e) { | |
if (e.startsWith("/")) return o.parseRelativeUrl(e); | |
var t = new URL(e); | |
return { | |
hash: t.hash, | |
hostname: t.hostname, | |
href: t.href, | |
pathname: t.pathname, | |
port: t.port, | |
protocol: t.protocol, | |
query: n.searchParamsToUrlQuery(t.searchParams), | |
search: t.search, | |
}; | |
}); | |
var n = r(4919), | |
o = r(2864); | |
}, | |
7127: function (e, t, r) { | |
"use strict"; | |
function n(e, t, r) { | |
return ( | |
t in e | |
? Object.defineProperty(e, t, { | |
value: r, | |
enumerable: !0, | |
configurable: !0, | |
writable: !0, | |
}) | |
: (e[t] = r), | |
e | |
); | |
} | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
(t.getPathMatch = function (e, t) { | |
var r = [], | |
a = o.pathToRegexp(e, r, { | |
delimiter: "/", | |
sensitive: !1, | |
strict: null === t || void 0 === t ? void 0 : t.strict, | |
}), | |
i = o.regexpToFunction( | |
(null === t || void 0 === t ? void 0 : t.regexModifier) | |
? new RegExp(t.regexModifier(a.source), a.flags) | |
: a, | |
r | |
); | |
return function (e, o) { | |
var a = null != e && i(e); | |
if (!a) return !1; | |
if (null === t || void 0 === t ? void 0 : t.removeUnnamedParams) { | |
var u = !0, | |
c = !1, | |
l = void 0; | |
try { | |
for ( | |
var s, f = r[Symbol.iterator](); | |
!(u = (s = f.next()).done); | |
u = !0 | |
) { | |
var p = s.value; | |
"number" === typeof p.name && delete a.params[p.name]; | |
} | |
} catch (d) { | |
(c = !0), (l = d); | |
} finally { | |
try { | |
u || null == f.return || f.return(); | |
} finally { | |
if (c) throw l; | |
} | |
} | |
} | |
return (function (e) { | |
for (var t = 1; t < arguments.length; t++) { | |
var r = null != arguments[t] ? arguments[t] : {}, | |
o = Object.keys(r); | |
"function" === typeof Object.getOwnPropertySymbols && | |
(o = o.concat( | |
Object.getOwnPropertySymbols(r).filter(function (e) { | |
return Object.getOwnPropertyDescriptor(r, e).enumerable; | |
}) | |
)), | |
o.forEach(function (t) { | |
n(e, t, r[t]); | |
}); | |
} | |
return e; | |
})({}, o, a.params); | |
}; | |
}); | |
var o = r(4329); | |
}, | |
7327: function (e, t, r) { | |
"use strict"; | |
function n(e, t) { | |
(null == t || t > e.length) && (t = e.length); | |
for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r]; | |
return n; | |
} | |
function o(e, t, r) { | |
return ( | |
t in e | |
? Object.defineProperty(e, t, { | |
value: r, | |
enumerable: !0, | |
configurable: !0, | |
writable: !0, | |
}) | |
: (e[t] = r), | |
e | |
); | |
} | |
function a(e) { | |
for (var t = 1; t < arguments.length; t++) { | |
var r = null != arguments[t] ? arguments[t] : {}, | |
n = Object.keys(r); | |
"function" === typeof Object.getOwnPropertySymbols && | |
(n = n.concat( | |
Object.getOwnPropertySymbols(r).filter(function (e) { | |
return Object.getOwnPropertyDescriptor(r, e).enumerable; | |
}) | |
)), | |
n.forEach(function (t) { | |
o(e, t, r[t]); | |
}); | |
} | |
return e; | |
} | |
function i(e, t) { | |
return ( | |
(function (e) { | |
if (Array.isArray(e)) return e; | |
})(e) || | |
(function (e, t) { | |
var r = | |
null == e | |
? null | |
: ("undefined" !== typeof Symbol && e[Symbol.iterator]) || | |
e["@@iterator"]; | |
if (null != r) { | |
var n, | |
o, | |
a = [], | |
i = !0, | |
u = !1; | |
try { | |
for ( | |
r = r.call(e); | |
!(i = (n = r.next()).done) && | |
(a.push(n.value), !t || a.length !== t); | |
i = !0 | |
); | |
} catch (c) { | |
(u = !0), (o = c); | |
} finally { | |
try { | |
i || null == r.return || r.return(); | |
} finally { | |
if (u) throw o; | |
} | |
} | |
return a; | |
} | |
})(e, t) || | |
(function (e, t) { | |
if (!e) return; | |
if ("string" === typeof e) return n(e, t); | |
var r = Object.prototype.toString.call(e).slice(8, -1); | |
"Object" === r && e.constructor && (r = e.constructor.name); | |
if ("Map" === r || "Set" === r) return Array.from(r); | |
if ( | |
"Arguments" === r || | |
/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) | |
) | |
return n(e, t); | |
})(e, t) || | |
(function () { | |
throw new TypeError( | |
"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." | |
); | |
})() | |
); | |
} | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
(t.matchHas = function (e, t, r) { | |
var n = {}; | |
if ( | |
t.every(function (t) { | |
var o, | |
a = t.key; | |
switch (t.type) { | |
case "header": | |
(a = a.toLowerCase()), (o = e.headers[a]); | |
break; | |
case "cookie": | |
o = e.cookies[t.key]; | |
break; | |
case "query": | |
o = r[a]; | |
break; | |
case "host": | |
var i = ( | |
(null === e || void 0 === e ? void 0 : e.headers) || {} | |
).host; | |
o = | |
null === i || void 0 === i | |
? void 0 | |
: i.split(":")[0].toLowerCase(); | |
} | |
if (!t.value && o) | |
return ( | |
(n[ | |
(function (e) { | |
for (var t = "", r = 0; r < e.length; r++) { | |
var n = e.charCodeAt(r); | |
((n > 64 && n < 91) || (n > 96 && n < 123)) && | |
(t += e[r]); | |
} | |
return t; | |
})(a) | |
] = o), | |
!0 | |
); | |
if (o) { | |
var u = new RegExp("^".concat(t.value, "$")), | |
c = Array.isArray(o) ? o.slice(-1)[0].match(u) : o.match(u); | |
if (c) | |
return ( | |
Array.isArray(c) && | |
(c.groups | |
? Object.keys(c.groups).forEach(function (e) { | |
n[e] = c.groups[e]; | |
}) | |
: "host" === t.type && c[0] && (n.host = c[0])), | |
!0 | |
); | |
} | |
return !1; | |
}) | |
) | |
return n; | |
return !1; | |
}), | |
(t.compileNonPath = s), | |
(t.prepareDestination = function (e) { | |
var t = Object.assign({}, e.query); | |
delete t.__nextLocale, delete t.__nextDefaultLocale; | |
var r = e.destination, | |
n = !0, | |
o = !1, | |
p = void 0; | |
try { | |
for ( | |
var d, h = Object.keys(a({}, e.params, t))[Symbol.iterator](); | |
!(n = (d = h.next()).done); | |
n = !0 | |
) { | |
var y = d.value; | |
(v = y), | |
(r = r.replace( | |
new RegExp(":".concat(c.escapeStringRegexp(v)), "g"), | |
"__ESC_COLON_".concat(v) | |
)); | |
} | |
} catch ($) { | |
(o = !0), (p = $); | |
} finally { | |
try { | |
n || null == h.return || h.return(); | |
} finally { | |
if (o) throw p; | |
} | |
} | |
var v; | |
var m = l.parseUrl(r), | |
g = m.query, | |
b = f("".concat(m.pathname).concat(m.hash || "")), | |
_ = f(m.hostname || ""), | |
w = [], | |
P = []; | |
u.pathToRegexp(b, w), u.pathToRegexp(_, P); | |
var S = []; | |
w.forEach(function (e) { | |
return S.push(e.name); | |
}), | |
P.forEach(function (e) { | |
return S.push(e.name); | |
}); | |
var x = u.compile(b, { validate: !1 }), | |
O = u.compile(_, { validate: !1 }), | |
E = !0, | |
j = !1, | |
A = void 0; | |
try { | |
for ( | |
var R, k = Object.entries(g)[Symbol.iterator](); | |
!(E = (R = k.next()).done); | |
E = !0 | |
) { | |
var C = i(R.value, 2), | |
M = C[0], | |
T = C[1]; | |
Array.isArray(T) | |
? (g[M] = T.map(function (t) { | |
return s(f(t), e.params); | |
})) | |
: (g[M] = s(f(T), e.params)); | |
} | |
} catch ($) { | |
(j = !0), (A = $); | |
} finally { | |
try { | |
E || null == k.return || k.return(); | |
} finally { | |
if (j) throw A; | |
} | |
} | |
var L, | |
I = Object.keys(e.params).filter(function (e) { | |
return "nextInternalLocale" !== e; | |
}); | |
if ( | |
e.appendParamsToQuery && | |
!I.some(function (e) { | |
return S.includes(e); | |
}) | |
) { | |
var N = !0, | |
D = !1, | |
U = void 0; | |
try { | |
for ( | |
var F, q = I[Symbol.iterator](); | |
!(N = (F = q.next()).done); | |
N = !0 | |
) { | |
var H = F.value; | |
H in g || (g[H] = e.params[H]); | |
} | |
} catch ($) { | |
(D = !0), (U = $); | |
} finally { | |
try { | |
N || null == q.return || q.return(); | |
} finally { | |
if (D) throw U; | |
} | |
} | |
} | |
try { | |
var W = i((L = x(e.params)).split("#"), 2), | |
B = W[0], | |
z = W[1]; | |
(m.hostname = O(e.params)), | |
(m.pathname = B), | |
(m.hash = "".concat(z ? "#" : "").concat(z || "")), | |
delete m.search; | |
} catch ($) { | |
if ($.message.match(/Expected .*? to not repeat, but got an array/)) | |
throw new Error( | |
"To use a multi-match in the destination you must add `*` at the end of the param name to signify it should repeat. https://nextjs.org/docs/messages/invalid-multi-match" | |
); | |
throw $; | |
} | |
return ( | |
(m.query = a({}, t, m.query)), | |
{ newUrl: L, destQuery: g, parsedDestination: m } | |
); | |
}); | |
var u = r(4329), | |
c = r(8659), | |
l = r(7253); | |
function s(e, t) { | |
if (!e.includes(":")) return e; | |
var r = !0, | |
n = !1, | |
o = void 0; | |
try { | |
for ( | |
var a, i = Object.keys(t)[Symbol.iterator](); | |
!(r = (a = i.next()).done); | |
r = !0 | |
) { | |
var c = a.value; | |
e.includes(":".concat(c)) && | |
(e = e | |
.replace( | |
new RegExp(":".concat(c, "\\*"), "g"), | |
":".concat(c, "--ESCAPED_PARAM_ASTERISKS") | |
) | |
.replace( | |
new RegExp(":".concat(c, "\\?"), "g"), | |
":".concat(c, "--ESCAPED_PARAM_QUESTION") | |
) | |
.replace( | |
new RegExp(":".concat(c, "\\+"), "g"), | |
":".concat(c, "--ESCAPED_PARAM_PLUS") | |
) | |
.replace( | |
new RegExp(":".concat(c, "(?!\\w)"), "g"), | |
"--ESCAPED_PARAM_COLON".concat(c) | |
)); | |
} | |
} catch (l) { | |
(n = !0), (o = l); | |
} finally { | |
try { | |
r || null == i.return || i.return(); | |
} finally { | |
if (n) throw o; | |
} | |
} | |
return ( | |
(e = e | |
.replace(/(:|\*|\?|\+|\(|\)|\{|\})/g, "\\$1") | |
.replace(/--ESCAPED_PARAM_PLUS/g, "+") | |
.replace(/--ESCAPED_PARAM_COLON/g, ":") | |
.replace(/--ESCAPED_PARAM_QUESTION/g, "?") | |
.replace(/--ESCAPED_PARAM_ASTERISKS/g, "*")), | |
u.compile("/".concat(e), { validate: !1 })(t).slice(1) | |
); | |
} | |
function f(e) { | |
return e.replace(/__ESC_COLON_/gi, ":"); | |
} | |
}, | |
4919: function (e, t) { | |
"use strict"; | |
function r(e, t) { | |
(null == t || t > e.length) && (t = e.length); | |
for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r]; | |
return n; | |
} | |
function n(e, t) { | |
return ( | |
(function (e) { | |
if (Array.isArray(e)) return e; | |
})(e) || | |
(function (e, t) { | |
var r = | |
null == e | |
? null | |
: ("undefined" !== typeof Symbol && e[Symbol.iterator]) || | |
e["@@iterator"]; | |
if (null != r) { | |
var n, | |
o, | |
a = [], | |
i = !0, | |
u = !1; | |
try { | |
for ( | |
r = r.call(e); | |
!(i = (n = r.next()).done) && | |
(a.push(n.value), !t || a.length !== t); | |
i = !0 | |
); | |
} catch (c) { | |
(u = !0), (o = c); | |
} finally { | |
try { | |
i || null == r.return || r.return(); | |
} finally { | |
if (u) throw o; | |
} | |
} | |
return a; | |
} | |
})(e, t) || | |
(function (e, t) { | |
if (!e) return; | |
if ("string" === typeof e) return r(e, t); | |
var n = Object.prototype.toString.call(e).slice(8, -1); | |
"Object" === n && e.constructor && (n = e.constructor.name); | |
if ("Map" === n || "Set" === n) return Array.from(n); | |
if ( | |
"Arguments" === n || | |
/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) | |
) | |
return r(e, t); | |
})(e, t) || | |
(function () { | |
throw new TypeError( | |
"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." | |
); | |
})() | |
); | |
} | |
function o(e) { | |
return "string" === typeof e || | |
("number" === typeof e && !isNaN(e)) || | |
"boolean" === typeof e | |
? String(e) | |
: ""; | |
} | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
(t.searchParamsToUrlQuery = function (e) { | |
var t = {}; | |
return ( | |
e.forEach(function (e, r) { | |
"undefined" === typeof t[r] | |
? (t[r] = e) | |
: Array.isArray(t[r]) | |
? t[r].push(e) | |
: (t[r] = [t[r], e]); | |
}), | |
t | |
); | |
}), | |
(t.urlQueryToSearchParams = function (e) { | |
var t = new URLSearchParams(); | |
return ( | |
Object.entries(e).forEach(function (e) { | |
var r = n(e, 2), | |
a = r[0], | |
i = r[1]; | |
Array.isArray(i) | |
? i.forEach(function (e) { | |
return t.append(a, o(e)); | |
}) | |
: t.set(a, o(i)); | |
}), | |
t | |
); | |
}), | |
(t.assign = function (e) { | |
for ( | |
var t = arguments.length, r = new Array(t > 1 ? t - 1 : 0), n = 1; | |
n < t; | |
n++ | |
) | |
r[n - 1] = arguments[n]; | |
return ( | |
r.forEach(function (t) { | |
Array.from(t.keys()).forEach(function (t) { | |
return e.delete(t); | |
}), | |
t.forEach(function (t, r) { | |
return e.append(r, t); | |
}); | |
}), | |
e | |
); | |
}); | |
}, | |
12: function (e, t) { | |
"use strict"; | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
(t.removeTrailingSlash = function (e) { | |
return e.replace(/\/$/, "") || "/"; | |
}); | |
}, | |
7980: function (e, t, r) { | |
"use strict"; | |
function n(e, t) { | |
(null == t || t > e.length) && (t = e.length); | |
for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r]; | |
return n; | |
} | |
function o(e) { | |
return ( | |
(function (e) { | |
if (Array.isArray(e)) return e; | |
})(e) || | |
(function (e) { | |
if ( | |
("undefined" !== typeof Symbol && null != e[Symbol.iterator]) || | |
null != e["@@iterator"] | |
) | |
return Array.from(e); | |
})(e) || | |
(function (e, t) { | |
if (!e) return; | |
if ("string" === typeof e) return n(e, t); | |
var r = Object.prototype.toString.call(e).slice(8, -1); | |
"Object" === r && e.constructor && (r = e.constructor.name); | |
if ("Map" === r || "Set" === r) return Array.from(r); | |
if ( | |
"Arguments" === r || | |
/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) | |
) | |
return n(e, t); | |
})(e, i) || | |
(function () { | |
throw new TypeError( | |
"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." | |
); | |
})() | |
); | |
} | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
(t.default = function (e, t, r, n, i, p) { | |
for ( | |
var d, | |
h = !1, | |
y = !1, | |
v = s.parseRelativeUrl(e), | |
m = c.removePathTrailingSlash( | |
l.normalizeLocalePath(f.delBasePath(v.pathname), p).pathname | |
), | |
g = function (r) { | |
var s = a.getPathMatch(r.source, { | |
removeUnnamedParams: !0, | |
strict: !0, | |
})(v.pathname); | |
if (r.has && s) { | |
var g = u.matchHas( | |
{ | |
headers: { host: document.location.hostname }, | |
cookies: document.cookie | |
.split("; ") | |
.reduce(function (e, t) { | |
var r = o(t.split("=")), | |
n = r[0], | |
a = r.slice(1); | |
return (e[n] = a.join("=")), e; | |
}, {}), | |
}, | |
r.has, | |
v.query | |
); | |
g ? Object.assign(s, g) : (s = !1); | |
} | |
if (s) { | |
if (!r.destination) return (y = !0), !0; | |
var b = u.prepareDestination({ | |
appendParamsToQuery: !0, | |
destination: r.destination, | |
params: s, | |
query: n, | |
}); | |
if ( | |
((v = b.parsedDestination), | |
(e = b.newUrl), | |
Object.assign(n, b.parsedDestination.query), | |
(m = c.removePathTrailingSlash( | |
l.normalizeLocalePath(f.delBasePath(e), p).pathname | |
)), | |
t.includes(m)) | |
) | |
return (h = !0), (d = m), !0; | |
if ((d = i(m)) !== e && t.includes(d)) return (h = !0), !0; | |
} | |
}, | |
b = !1, | |
_ = 0; | |
_ < r.beforeFiles.length; | |
_++ | |
) | |
g(r.beforeFiles[_]); | |
if (!(h = t.includes(m))) { | |
if (!b) | |
for (var w = 0; w < r.afterFiles.length; w++) | |
if (g(r.afterFiles[w])) { | |
b = !0; | |
break; | |
} | |
if ((b || ((d = i(m)), (h = t.includes(d)), (b = h)), !b)) | |
for (var P = 0; P < r.fallback.length; P++) | |
if (g(r.fallback[P])) { | |
b = !0; | |
break; | |
} | |
} | |
return { | |
asPath: e, | |
parsedAs: v, | |
matchedPage: h, | |
resolvedHref: d, | |
externalDest: y, | |
}; | |
}); | |
var a = r(7127), | |
u = r(7327), | |
c = r(2700), | |
l = r(4769), | |
s = r(2864), | |
f = r(1003); | |
}, | |
3156: function (e, t, r) { | |
"use strict"; | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
(t.getRouteMatcher = function (e) { | |
var t = e.re, | |
r = e.groups; | |
return function (e) { | |
var o = t.exec(e); | |
if (!o) return !1; | |
var a = function (e) { | |
try { | |
return decodeURIComponent(e); | |
} catch (t) { | |
throw new n.DecodeError("failed to decode param"); | |
} | |
}, | |
i = {}; | |
return ( | |
Object.keys(r).forEach(function (e) { | |
var t = r[e], | |
n = o[t.pos]; | |
void 0 !== n && | |
(i[e] = ~n.indexOf("/") | |
? n.split("/").map(function (e) { | |
return a(e); | |
}) | |
: t.repeat | |
? [a(n)] | |
: a(n)); | |
}), | |
i | |
); | |
}; | |
}); | |
var n = r(670); | |
}, | |
4903: function (e, t, r) { | |
"use strict"; | |
function n(e, t, r) { | |
return ( | |
t in e | |
? Object.defineProperty(e, t, { | |
value: r, | |
enumerable: !0, | |
configurable: !0, | |
writable: !0, | |
}) | |
: (e[t] = r), | |
e | |
); | |
} | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
(t.getRouteRegex = i), | |
(t.getNamedRouteRegex = function (e) { | |
var t = c(e); | |
return (function (e) { | |
for (var t = 1; t < arguments.length; t++) { | |
var r = null != arguments[t] ? arguments[t] : {}, | |
o = Object.keys(r); | |
"function" === typeof Object.getOwnPropertySymbols && | |
(o = o.concat( | |
Object.getOwnPropertySymbols(r).filter(function (e) { | |
return Object.getOwnPropertyDescriptor(r, e).enumerable; | |
}) | |
)), | |
o.forEach(function (t) { | |
n(e, t, r[t]); | |
}); | |
} | |
return e; | |
})({}, i(e), { | |
namedRegex: "^".concat(t.namedParameterizedRoute, "(?:/)?$"), | |
routeKeys: t.routeKeys, | |
}); | |
}), | |
(t.getMiddlewareRegex = function (e, t) { | |
var r = u(e), | |
n = r.parameterizedRoute, | |
o = r.groups, | |
a = (null !== t && void 0 !== t ? t : {}).catchAll, | |
i = void 0 === a || a; | |
if ("/" === n) { | |
return { | |
groups: {}, | |
re: new RegExp("^/".concat(i ? "(?!_next).*" : "", "$")), | |
}; | |
} | |
var c = i ? "(?:(/.*)?)" : ""; | |
return { groups: o, re: new RegExp("^".concat(n).concat(c, "$")) }; | |
}), | |
(t.getNamedMiddlewareRegex = function (e, t) { | |
var r = u(e).parameterizedRoute, | |
n = t.catchAll, | |
o = void 0 === n || n; | |
if ("/" === r) { | |
return { namedRegex: "^/".concat(o ? "(?!_next).*" : "", "$") }; | |
} | |
var a = c(e).namedParameterizedRoute, | |
i = o ? "(?:(/.*)?)" : ""; | |
return { namedRegex: "^".concat(a).concat(i, "$") }; | |
}); | |
var o = r(8659), | |
a = r(12); | |
function i(e) { | |
var t = u(e), | |
r = t.parameterizedRoute, | |
n = t.groups; | |
return { re: new RegExp("^".concat(r, "(?:/)?$")), groups: n }; | |
} | |
function u(e) { | |
var t = a.removeTrailingSlash(e).slice(1).split("/"), | |
r = {}, | |
n = 1; | |
return { | |
parameterizedRoute: t | |
.map(function (e) { | |
if (e.startsWith("[") && e.endsWith("]")) { | |
var t = l(e.slice(1, -1)), | |
a = t.key, | |
i = t.optional, | |
u = t.repeat; | |
return ( | |
(r[a] = { pos: n++, repeat: u, optional: i }), | |
u ? (i ? "(?:/(.+?))?" : "/(.+?)") : "/([^/]+?)" | |
); | |
} | |
return "/".concat(o.escapeStringRegexp(e)); | |
}) | |
.join(""), | |
groups: r, | |
}; | |
} | |
function c(e) { | |
var t = a.removeTrailingSlash(e).slice(1).split("/"), | |
r = (function () { | |
var e = 97, | |
t = 1; | |
return function () { | |
for (var r = "", n = 0; n < t; n++) | |
(r += String.fromCharCode(e)), ++e > 122 && (t++, (e = 97)); | |
return r; | |
}; | |
})(), | |
n = {}; | |
return { | |
namedParameterizedRoute: t | |
.map(function (e) { | |
if (e.startsWith("[") && e.endsWith("]")) { | |
var t = l(e.slice(1, -1)), | |
a = t.key, | |
i = t.optional, | |
u = t.repeat, | |
c = a.replace(/\W/g, ""), | |
s = !1; | |
return ( | |
(0 === c.length || c.length > 30) && (s = !0), | |
isNaN(parseInt(c.slice(0, 1))) || (s = !0), | |
s && (c = r()), | |
(n[c] = a), | |
u | |
? i | |
? "(?:/(?<".concat(c, ">.+?))?") | |
: "/(?<".concat(c, ">.+?)") | |
: "/(?<".concat(c, ">[^/]+?)") | |
); | |
} | |
return "/".concat(o.escapeStringRegexp(e)); | |
}) | |
.join(""), | |
routeKeys: n, | |
}; | |
} | |
function l(e) { | |
var t = e.startsWith("[") && e.endsWith("]"); | |
t && (e = e.slice(1, -1)); | |
var r = e.startsWith("..."); | |
return r && (e = e.slice(3)), { key: e, repeat: r, optional: t }; | |
} | |
}, | |
566: function (e, t) { | |
"use strict"; | |
function r(e, t) { | |
(null == t || t > e.length) && (t = e.length); | |
for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r]; | |
return n; | |
} | |
function n(e, t) { | |
for (var r = 0; r < t.length; r++) { | |
var n = t[r]; | |
(n.enumerable = n.enumerable || !1), | |
(n.configurable = !0), | |
"value" in n && (n.writable = !0), | |
Object.defineProperty(e, n.key, n); | |
} | |
} | |
function o(e) { | |
return ( | |
(function (e) { | |
if (Array.isArray(e)) return r(e); | |
})(e) || | |
(function (e) { | |
if ( | |
("undefined" !== typeof Symbol && null != e[Symbol.iterator]) || | |
null != e["@@iterator"] | |
) | |
return Array.from(e); | |
})(e) || | |
(function (e, t) { | |
if (!e) return; | |
if ("string" === typeof e) return r(e, t); | |
var n = Object.prototype.toString.call(e).slice(8, -1); | |
"Object" === n && e.constructor && (n = e.constructor.name); | |
if ("Map" === n || "Set" === n) return Array.from(n); | |
if ( | |
"Arguments" === n || | |
/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) | |
) | |
return r(e, t); | |
})(e) || | |
(function () { | |
throw new TypeError( | |
"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." | |
); | |
})() | |
); | |
} | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
(t.getSortedRoutes = function (e) { | |
var t = new a(); | |
return ( | |
e.forEach(function (e) { | |
return t.insert(e); | |
}), | |
t.smoosh() | |
); | |
}); | |
var a = (function () { | |
function e() { | |
!(function (e, t) { | |
if (!(e instanceof t)) | |
throw new TypeError("Cannot call a class as a function"); | |
})(this, e), | |
(this.placeholder = !0), | |
(this.children = new Map()), | |
(this.slugName = null), | |
(this.restSlugName = null), | |
(this.optionalRestSlugName = null); | |
} | |
var t, r, a; | |
return ( | |
(t = e), | |
(r = [ | |
{ | |
key: "insert", | |
value: function (e) { | |
this._insert(e.split("/").filter(Boolean), [], !1); | |
}, | |
}, | |
{ | |
key: "smoosh", | |
value: function () { | |
return this._smoosh(); | |
}, | |
}, | |
{ | |
key: "_smoosh", | |
value: function () { | |
var e = | |
arguments.length > 0 && void 0 !== arguments[0] | |
? arguments[0] | |
: "/", | |
t = this, | |
r = o(this.children.keys()).sort(); | |
null !== this.slugName && r.splice(r.indexOf("[]"), 1), | |
null !== this.restSlugName && r.splice(r.indexOf("[...]"), 1), | |
null !== this.optionalRestSlugName && | |
r.splice(r.indexOf("[[...]]"), 1); | |
var n, | |
a, | |
i, | |
u = r | |
.map(function (r) { | |
return t.children | |
.get(r) | |
._smoosh("".concat(e).concat(r, "/")); | |
}) | |
.reduce(function (e, t) { | |
return o(e).concat(o(t)); | |
}, []); | |
if ( | |
(null !== this.slugName && | |
(n = u).push.apply( | |
n, | |
o( | |
this.children | |
.get("[]") | |
._smoosh( | |
"".concat(e, "[").concat(this.slugName, "]/") | |
) | |
) | |
), | |
!this.placeholder) | |
) { | |
var c = "/" === e ? "/" : e.slice(0, -1); | |
if (null != this.optionalRestSlugName) | |
throw new Error( | |
'You cannot define a route with the same specificity as a optional catch-all route ("' | |
.concat(c, '" and "') | |
.concat(c, "[[...") | |
.concat(this.optionalRestSlugName, ']]").') | |
); | |
u.unshift(c); | |
} | |
return ( | |
null !== this.restSlugName && | |
(a = u).push.apply( | |
a, | |
o( | |
this.children | |
.get("[...]") | |
._smoosh( | |
"".concat(e, "[...").concat(this.restSlugName, "]/") | |
) | |
) | |
), | |
null !== this.optionalRestSlugName && | |
(i = u).push.apply( | |
i, | |
o( | |
this.children | |
.get("[[...]]") | |
._smoosh( | |
"" | |
.concat(e, "[[...") | |
.concat(this.optionalRestSlugName, "]]/") | |
) | |
) | |
), | |
u | |
); | |
}, | |
}, | |
{ | |
key: "_insert", | |
value: function (t, r, n) { | |
if (0 !== t.length) { | |
if (n) | |
throw new Error( | |
"Catch-all must be the last part of the URL." | |
); | |
var o = t[0]; | |
if (o.startsWith("[") && o.endsWith("]")) { | |
var a = function (e, t) { | |
if (null !== e && e !== t) | |
throw new Error( | |
"You cannot use different slug names for the same dynamic path ('" | |
.concat(e, "' !== '") | |
.concat(t, "').") | |
); | |
r.forEach(function (e) { | |
if (e === t) | |
throw new Error( | |
'You cannot have the same slug name "'.concat( | |
t, | |
'" repeat within a single dynamic path' | |
) | |
); | |
if (e.replace(/\W/g, "") === o.replace(/\W/g, "")) | |
throw new Error( | |
'You cannot have the slug names "' | |
.concat(e, '" and "') | |
.concat( | |
t, | |
'" differ only by non-word symbols within a single dynamic path' | |
) | |
); | |
}), | |
r.push(t); | |
}, | |
i = o.slice(1, -1), | |
u = !1; | |
if ( | |
(i.startsWith("[") && | |
i.endsWith("]") && | |
((i = i.slice(1, -1)), (u = !0)), | |
i.startsWith("...") && ((i = i.substring(3)), (n = !0)), | |
i.startsWith("[") || i.endsWith("]")) | |
) | |
throw new Error( | |
"Segment names may not start or end with extra brackets ('".concat( | |
i, | |
"')." | |
) | |
); | |
if (i.startsWith(".")) | |
throw new Error( | |
"Segment names may not start with erroneous periods ('".concat( | |
i, | |
"')." | |
) | |
); | |
if (n) | |
if (u) { | |
if (null != this.restSlugName) | |
throw new Error( | |
'You cannot use both an required and optional catch-all route at the same level ("[...' | |
.concat(this.restSlugName, ']" and "') | |
.concat(t[0], '" ).') | |
); | |
a(this.optionalRestSlugName, i), | |
(this.optionalRestSlugName = i), | |
(o = "[[...]]"); | |
} else { | |
if (null != this.optionalRestSlugName) | |
throw new Error( | |
'You cannot use both an optional and required catch-all route at the same level ("[[...' | |
.concat(this.optionalRestSlugName, ']]" and "') | |
.concat(t[0], '").') | |
); | |
a(this.restSlugName, i), | |
(this.restSlugName = i), | |
(o = "[...]"); | |
} | |
else { | |
if (u) | |
throw new Error( | |
'Optional route parameters are not yet supported ("'.concat( | |
t[0], | |
'").' | |
) | |
); | |
a(this.slugName, i), (this.slugName = i), (o = "[]"); | |
} | |
} | |
this.children.has(o) || this.children.set(o, new e()), | |
this.children.get(o)._insert(t.slice(1), r, n); | |
} else this.placeholder = !1; | |
}, | |
}, | |
]), | |
r && n(t.prototype, r), | |
a && n(t, a), | |
e | |
); | |
})(); | |
}, | |
6949: function (e, t) { | |
"use strict"; | |
var r; | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
(t.setConfig = function (e) { | |
r = e; | |
}), | |
(t.default = void 0); | |
t.default = function () { | |
return r; | |
}; | |
}, | |
1436: function (e, t, r) { | |
"use strict"; | |
function n(e, t) { | |
(null == t || t > e.length) && (t = e.length); | |
for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r]; | |
return n; | |
} | |
function o(e) { | |
if (void 0 === e) | |
throw new ReferenceError( | |
"this hasn't been initialised - super() hasn't been called" | |
); | |
return e; | |
} | |
function a(e, t) { | |
for (var r = 0; r < t.length; r++) { | |
var n = t[r]; | |
(n.enumerable = n.enumerable || !1), | |
(n.configurable = !0), | |
"value" in n && (n.writable = !0), | |
Object.defineProperty(e, n.key, n); | |
} | |
} | |
function i(e) { | |
return (i = Object.setPrototypeOf | |
? Object.getPrototypeOf | |
: function (e) { | |
return e.__proto__ || Object.getPrototypeOf(e); | |
})(e); | |
} | |
function u(e, t) { | |
return !t || ("object" !== s(t) && "function" !== typeof t) ? o(e) : t; | |
} | |
function c(e, t) { | |
return (c = | |
Object.setPrototypeOf || | |
function (e, t) { | |
return (e.__proto__ = t), e; | |
})(e, t); | |
} | |
function l(e) { | |
return ( | |
(function (e) { | |
if (Array.isArray(e)) return n(e); | |
})(e) || | |
(function (e) { | |
if ( | |
("undefined" !== typeof Symbol && null != e[Symbol.iterator]) || | |
null != e["@@iterator"] | |
) | |
return Array.from(e); | |
})(e) || | |
(function (e, t) { | |
if (!e) return; | |
if ("string" === typeof e) return n(e, t); | |
var r = Object.prototype.toString.call(e).slice(8, -1); | |
"Object" === r && e.constructor && (r = e.constructor.name); | |
if ("Map" === r || "Set" === r) return Array.from(r); | |
if ( | |
"Arguments" === r || | |
/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) | |
) | |
return n(e, t); | |
})(e) || | |
(function () { | |
throw new TypeError( | |
"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." | |
); | |
})() | |
); | |
} | |
var s = function (e) { | |
return e && "undefined" !== typeof Symbol && e.constructor === Symbol | |
? "symbol" | |
: typeof e; | |
}; | |
function f(e) { | |
var t = (function () { | |
if ("undefined" === typeof Reflect || !Reflect.construct) return !1; | |
if (Reflect.construct.sham) return !1; | |
if ("function" === typeof Proxy) return !0; | |
try { | |
return ( | |
Boolean.prototype.valueOf.call( | |
Reflect.construct(Boolean, [], function () {}) | |
), | |
!0 | |
); | |
} catch (e) { | |
return !1; | |
} | |
})(); | |
return function () { | |
var r, | |
n = i(e); | |
if (t) { | |
var o = i(this).constructor; | |
r = Reflect.construct(n, arguments, o); | |
} else r = n.apply(this, arguments); | |
return u(this, r); | |
}; | |
} | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
(t.default = void 0); | |
var p = (function (e) { | |
if (e && e.__esModule) return e; | |
var t = {}; | |
if (null != e) | |
for (var r in e) | |
if (Object.prototype.hasOwnProperty.call(e, r)) { | |
var n = | |
Object.defineProperty && Object.getOwnPropertyDescriptor | |
? Object.getOwnPropertyDescriptor(e, r) | |
: {}; | |
n.get || n.set ? Object.defineProperty(t, r, n) : (t[r] = e[r]); | |
} | |
return (t.default = e), t; | |
})(r(7294)); | |
var d = (function (e) { | |
!(function (e, t) { | |
if ("function" !== typeof t && null !== t) | |
throw new TypeError( | |
"Super expression must either be null or a function" | |
); | |
(e.prototype = Object.create(t && t.prototype, { | |
constructor: { value: e, writable: !0, configurable: !0 }, | |
})), | |
t && c(e, t); | |
})(i, e); | |
var t, | |
r, | |
n, | |
o = f(i); | |
function i(e) { | |
var t; | |
return ( | |
(function (e, t) { | |
if (!(e instanceof t)) | |
throw new TypeError("Cannot call a class as a function"); | |
})(this, i), | |
((t = o.call(this, e)).emitChange = function () { | |
t._hasHeadManager && | |
t.props.headManager.updateHead( | |
t.props.reduceComponentsToState( | |
l(t.props.headManager.mountedInstances), | |
t.props | |
) | |
); | |
}), | |
(t._hasHeadManager = | |
t.props.headManager && t.props.headManager.mountedInstances), | |
t | |
); | |
} | |
return ( | |
(t = i), | |
(r = [ | |
{ | |
key: "componentDidMount", | |
value: function () { | |
this._hasHeadManager && | |
this.props.headManager.mountedInstances.add(this), | |
this.emitChange(); | |
}, | |
}, | |
{ | |
key: "componentDidUpdate", | |
value: function () { | |
this.emitChange(); | |
}, | |
}, | |
{ | |
key: "componentWillUnmount", | |
value: function () { | |
this._hasHeadManager && | |
this.props.headManager.mountedInstances.delete(this), | |
this.emitChange(); | |
}, | |
}, | |
{ | |
key: "render", | |
value: function () { | |
return null; | |
}, | |
}, | |
]) && a(t.prototype, r), | |
n && a(t, n), | |
i | |
); | |
})(p.Component); | |
t.default = d; | |
}, | |
670: function (e, t, r) { | |
"use strict"; | |
var n, | |
o = (n = r(4051)) && n.__esModule ? n : { default: n }; | |
function a(e, t) { | |
(null == t || t > e.length) && (t = e.length); | |
for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r]; | |
return n; | |
} | |
function i(e, t, r, n, o, a, i) { | |
try { | |
var u = e[a](i), | |
c = u.value; | |
} catch (l) { | |
return void r(l); | |
} | |
u.done ? t(c) : Promise.resolve(c).then(n, o); | |
} | |
function u(e) { | |
return function () { | |
var t = this, | |
r = arguments; | |
return new Promise(function (n, o) { | |
var a = e.apply(t, r); | |
function u(e) { | |
i(a, n, o, u, c, "next", e); | |
} | |
function c(e) { | |
i(a, n, o, u, c, "throw", e); | |
} | |
u(void 0); | |
}); | |
}; | |
} | |
function c(e, t) { | |
if (!(e instanceof t)) | |
throw new TypeError("Cannot call a class as a function"); | |
} | |
function l() { | |
if ("undefined" === typeof Reflect || !Reflect.construct) return !1; | |
if (Reflect.construct.sham) return !1; | |
if ("function" === typeof Proxy) return !0; | |
try { | |
return ( | |
Date.prototype.toString.call( | |
Reflect.construct(Date, [], function () {}) | |
), | |
!0 | |
); | |
} catch (e) { | |
return !1; | |
} | |
} | |
function s(e, t, r) { | |
return (s = l() | |
? Reflect.construct | |
: function (e, t, r) { | |
var n = [null]; | |
n.push.apply(n, t); | |
var o = new (Function.bind.apply(e, n))(); | |
return r && h(o, r.prototype), o; | |
}).apply(null, arguments); | |
} | |
function f(e) { | |
return (f = Object.setPrototypeOf | |
? Object.getPrototypeOf | |
: function (e) { | |
return e.__proto__ || Object.getPrototypeOf(e); | |
})(e); | |
} | |
function p(e, t) { | |
if ("function" !== typeof t && null !== t) | |
throw new TypeError( | |
"Super expression must either be null or a function" | |
); | |
(e.prototype = Object.create(t && t.prototype, { | |
constructor: { value: e, writable: !0, configurable: !0 }, | |
})), | |
t && h(e, t); | |
} | |
function d(e, t) { | |
return !t || ("object" !== v(t) && "function" !== typeof t) | |
? (function (e) { | |
if (void 0 === e) | |
throw new ReferenceError( | |
"this hasn't been initialised - super() hasn't been called" | |
); | |
return e; | |
})(e) | |
: t; | |
} | |
function h(e, t) { | |
return (h = | |
Object.setPrototypeOf || | |
function (e, t) { | |
return (e.__proto__ = t), e; | |
})(e, t); | |
} | |
function y(e) { | |
return ( | |
(function (e) { | |
if (Array.isArray(e)) return a(e); | |
})(e) || | |
(function (e) { | |
if ( | |
("undefined" !== typeof Symbol && null != e[Symbol.iterator]) || | |
null != e["@@iterator"] | |
) | |
return Array.from(e); | |
})(e) || | |
(function (e, t) { | |
if (!e) return; | |
if ("string" === typeof e) return a(e, t); | |
var r = Object.prototype.toString.call(e).slice(8, -1); | |
"Object" === r && e.constructor && (r = e.constructor.name); | |
if ("Map" === r || "Set" === r) return Array.from(r); | |
if ( | |
"Arguments" === r || | |
/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) | |
) | |
return a(e, t); | |
})(e) || | |
(function () { | |
throw new TypeError( | |
"Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method." | |
); | |
})() | |
); | |
} | |
var v = function (e) { | |
return e && "undefined" !== typeof Symbol && e.constructor === Symbol | |
? "symbol" | |
: typeof e; | |
}; | |
function m(e) { | |
var t = "function" === typeof Map ? new Map() : void 0; | |
return ( | |
(m = function (e) { | |
if ( | |
null === e || | |
((r = e), | |
-1 === Function.toString.call(r).indexOf("[native code]")) | |
) | |
return e; | |
var r; | |
if ("function" !== typeof e) | |
throw new TypeError( | |
"Super expression must either be null or a function" | |
); | |
if ("undefined" !== typeof t) { | |
if (t.has(e)) return t.get(e); | |
t.set(e, n); | |
} | |
function n() { | |
return s(e, arguments, f(this).constructor); | |
} | |
return ( | |
(n.prototype = Object.create(e.prototype, { | |
constructor: { | |
value: n, | |
enumerable: !1, | |
writable: !0, | |
configurable: !0, | |
}, | |
})), | |
h(n, e) | |
); | |
}), | |
m(e) | |
); | |
} | |
function g(e) { | |
var t = (function () { | |
if ("undefined" === typeof Reflect || !Reflect.construct) return !1; | |
if (Reflect.construct.sham) return !1; | |
if ("function" === typeof Proxy) return !0; | |
try { | |
return ( | |
Boolean.prototype.valueOf.call( | |
Reflect.construct(Boolean, [], function () {}) | |
), | |
!0 | |
); | |
} catch (e) { | |
return !1; | |
} | |
})(); | |
return function () { | |
var r, | |
n = f(e); | |
if (t) { | |
var o = f(this).constructor; | |
r = Reflect.construct(n, arguments, o); | |
} else r = n.apply(this, arguments); | |
return d(this, r); | |
}; | |
} | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
(t.execOnce = function (e) { | |
var t, | |
r = !1; | |
return function () { | |
for (var n = arguments.length, o = new Array(n), a = 0; a < n; a++) | |
o[a] = arguments[a]; | |
return r || ((r = !0), (t = e.apply(void 0, y(o)))), t; | |
}; | |
}), | |
(t.getLocationOrigin = _), | |
(t.getURL = function () { | |
var e = window.location.href, | |
t = _(); | |
return e.substring(t.length); | |
}), | |
(t.getDisplayName = w), | |
(t.isResSent = P), | |
(t.normalizeRepeatedSlashes = function (e) { | |
var t = e.split("?"); | |
return ( | |
t[0].replace(/\\/g, "/").replace(/\/\/+/g, "/") + | |
(t[1] ? "?".concat(t.slice(1).join("?")) : "") | |
); | |
}), | |
(t.loadGetInitialProps = S), | |
(t.ST = t.SP = t.warnOnce = t.isAbsoluteUrl = void 0); | |
var b = /^[a-zA-Z][a-zA-Z\d+\-.]*?:/; | |
function _() { | |
var e = window.location, | |
t = e.protocol, | |
r = e.hostname, | |
n = e.port; | |
return "" | |
.concat(t, "//") | |
.concat(r) | |
.concat(n ? ":" + n : ""); | |
} | |
function w(e) { | |
return "string" === typeof e ? e : e.displayName || e.name || "Unknown"; | |
} | |
function P(e) { | |
return e.finished || e.headersSent; | |
} | |
function S(e, t) { | |
return x.apply(this, arguments); | |
} | |
function x() { | |
return (x = u( | |
o.default.mark(function e(t, r) { | |
var n, a, i; | |
return o.default.wrap(function (e) { | |
for (;;) | |
switch ((e.prev = e.next)) { | |
case 0: | |
e.next = 5; | |
break; | |
case 5: | |
if ( | |
((n = r.res || (r.ctx && r.ctx.res)), t.getInitialProps) | |
) { | |
e.next = 13; | |
break; | |
} | |
if (!r.ctx || !r.Component) { | |
e.next = 12; | |
break; | |
} | |
return (e.next = 10), S(r.Component, r.ctx); | |
case 10: | |
return ( | |
(e.t0 = e.sent), e.abrupt("return", { pageProps: e.t0 }) | |
); | |
case 12: | |
return e.abrupt("return", {}); | |
case 13: | |
return (e.next = 15), t.getInitialProps(r); | |
case 15: | |
if (((a = e.sent), !n || !P(n))) { | |
e.next = 18; | |
break; | |
} | |
return e.abrupt("return", a); | |
case 18: | |
if (a) { | |
e.next = 21; | |
break; | |
} | |
throw ( | |
((i = '"' | |
.concat( | |
w(t), | |
'.getInitialProps()" should resolve to an object. But found "' | |
) | |
.concat(a, '" instead.')), | |
new Error(i)) | |
); | |
case 21: | |
return e.abrupt("return", a); | |
case 23: | |
case "end": | |
return e.stop(); | |
} | |
}, e); | |
}) | |
)).apply(this, arguments); | |
} | |
t.isAbsoluteUrl = function (e) { | |
return b.test(e); | |
}; | |
t.warnOnce = function (e) {}; | |
var O = "undefined" !== typeof performance; | |
t.SP = O; | |
var E = | |
O && | |
"function" === typeof performance.mark && | |
"function" === typeof performance.measure; | |
t.ST = E; | |
var j = (function (e) { | |
p(r, e); | |
var t = g(r); | |
function r() { | |
return c(this, r), t.apply(this, arguments); | |
} | |
return r; | |
})(m(Error)); | |
t.DecodeError = j; | |
var A = (function (e) { | |
p(r, e); | |
var t = g(r); | |
function r() { | |
return c(this, r), t.apply(this, arguments); | |
} | |
return r; | |
})(m(Error)); | |
t.NormalizeError = A; | |
}, | |
4329: function (e, t) { | |
"use strict"; | |
function r(e, t) { | |
void 0 === t && (t = {}); | |
for ( | |
var r = (function (e) { | |
for (var t = [], r = 0; r < e.length; ) { | |
var n = e[r]; | |
if ("*" !== n && "+" !== n && "?" !== n) | |
if ("\\" !== n) | |
if ("{" !== n) | |
if ("}" !== n) | |
if (":" !== n) | |
if ("(" !== n) | |
t.push({ type: "CHAR", index: r, value: e[r++] }); | |
else { | |
var o = 1, | |
a = ""; | |
if ("?" === e[(u = r + 1)]) | |
throw new TypeError( | |
'Pattern cannot start with "?" at ' + u | |
); | |
for (; u < e.length; ) | |
if ("\\" !== e[u]) { | |
if (")" === e[u]) { | |
if (0 === --o) { | |
u++; | |
break; | |
} | |
} else if ( | |
"(" === e[u] && | |
(o++, "?" !== e[u + 1]) | |
) | |
throw new TypeError( | |
"Capturing groups are not allowed at " + u | |
); | |
a += e[u++]; | |
} else a += e[u++] + e[u++]; | |
if (o) | |
throw new TypeError("Unbalanced pattern at " + r); | |
if (!a) | |
throw new TypeError("Missing pattern at " + r); | |
t.push({ type: "PATTERN", index: r, value: a }), | |
(r = u); | |
} | |
else { | |
for (var i = "", u = r + 1; u < e.length; ) { | |
var c = e.charCodeAt(u); | |
if ( | |
!( | |
(c >= 48 && c <= 57) || | |
(c >= 65 && c <= 90) || | |
(c >= 97 && c <= 122) || | |
95 === c | |
) | |
) | |
break; | |
i += e[u++]; | |
} | |
if (!i) | |
throw new TypeError( | |
"Missing parameter name at " + r | |
); | |
t.push({ type: "NAME", index: r, value: i }), (r = u); | |
} | |
else t.push({ type: "CLOSE", index: r, value: e[r++] }); | |
else t.push({ type: "OPEN", index: r, value: e[r++] }); | |
else | |
t.push({ type: "ESCAPED_CHAR", index: r++, value: e[r++] }); | |
else t.push({ type: "MODIFIER", index: r, value: e[r++] }); | |
} | |
return t.push({ type: "END", index: r, value: "" }), t; | |
})(e), | |
n = t.prefixes, | |
o = void 0 === n ? "./" : n, | |
i = "[^" + a(t.delimiter || "/#?") + "]+?", | |
u = [], | |
c = 0, | |
l = 0, | |
s = "", | |
f = function (e) { | |
if (l < r.length && r[l].type === e) return r[l++].value; | |
}, | |
p = function (e) { | |
var t = f(e); | |
if (void 0 !== t) return t; | |
var n = r[l], | |
o = n.type, | |
a = n.index; | |
throw new TypeError( | |
"Unexpected " + o + " at " + a + ", expected " + e | |
); | |
}, | |
d = function () { | |
for (var e, t = ""; (e = f("CHAR") || f("ESCAPED_CHAR")); ) | |
t += e; | |
return t; | |
}; | |
l < r.length; | |
) { | |
var h = f("CHAR"), | |
y = f("NAME"), | |
v = f("PATTERN"); | |
if (y || v) { | |
var m = h || ""; | |
-1 === o.indexOf(m) && ((s += m), (m = "")), | |
s && (u.push(s), (s = "")), | |
u.push({ | |
name: y || c++, | |
prefix: m, | |
suffix: "", | |
pattern: v || i, | |
modifier: f("MODIFIER") || "", | |
}); | |
} else { | |
var g = h || f("ESCAPED_CHAR"); | |
if (g) s += g; | |
else if ((s && (u.push(s), (s = "")), f("OPEN"))) { | |
m = d(); | |
var b = f("NAME") || "", | |
_ = f("PATTERN") || "", | |
w = d(); | |
p("CLOSE"), | |
u.push({ | |
name: b || (_ ? c++ : ""), | |
pattern: b && !_ ? i : _, | |
prefix: m, | |
suffix: w, | |
modifier: f("MODIFIER") || "", | |
}); | |
} else p("END"); | |
} | |
} | |
return u; | |
} | |
function n(e, t) { | |
void 0 === t && (t = {}); | |
var r = i(t), | |
n = t.encode, | |
o = | |
void 0 === n | |
? function (e) { | |
return e; | |
} | |
: n, | |
a = t.validate, | |
u = void 0 === a || a, | |
c = e.map(function (e) { | |
if ("object" === typeof e) | |
return new RegExp("^(?:" + e.pattern + ")$", r); | |
}); | |
return function (t) { | |
for (var r = "", n = 0; n < e.length; n++) { | |
var a = e[n]; | |
if ("string" !== typeof a) { | |
var i = t ? t[a.name] : void 0, | |
l = "?" === a.modifier || "*" === a.modifier, | |
s = "*" === a.modifier || "+" === a.modifier; | |
if (Array.isArray(i)) { | |
if (!s) | |
throw new TypeError( | |
'Expected "' + a.name + '" to not repeat, but got an array' | |
); | |
if (0 === i.length) { | |
if (l) continue; | |
throw new TypeError( | |
'Expected "' + a.name + '" to not be empty' | |
); | |
} | |
for (var f = 0; f < i.length; f++) { | |
var p = o(i[f], a); | |
if (u && !c[n].test(p)) | |
throw new TypeError( | |
'Expected all "' + | |
a.name + | |
'" to match "' + | |
a.pattern + | |
'", but got "' + | |
p + | |
'"' | |
); | |
r += a.prefix + p + a.suffix; | |
} | |
} else if ("string" !== typeof i && "number" !== typeof i) { | |
if (!l) { | |
var d = s ? "an array" : "a string"; | |
throw new TypeError('Expected "' + a.name + '" to be ' + d); | |
} | |
} else { | |
p = o(String(i), a); | |
if (u && !c[n].test(p)) | |
throw new TypeError( | |
'Expected "' + | |
a.name + | |
'" to match "' + | |
a.pattern + | |
'", but got "' + | |
p + | |
'"' | |
); | |
r += a.prefix + p + a.suffix; | |
} | |
} else r += a; | |
} | |
return r; | |
}; | |
} | |
function o(e, t, r) { | |
void 0 === r && (r = {}); | |
var n = r.decode, | |
o = | |
void 0 === n | |
? function (e) { | |
return e; | |
} | |
: n; | |
return function (r) { | |
var n = e.exec(r); | |
if (!n) return !1; | |
for ( | |
var a = n[0], | |
i = n.index, | |
u = Object.create(null), | |
c = function (e) { | |
if (void 0 === n[e]) return "continue"; | |
var r = t[e - 1]; | |
"*" === r.modifier || "+" === r.modifier | |
? (u[r.name] = n[e] | |
.split(r.prefix + r.suffix) | |
.map(function (e) { | |
return o(e, r); | |
})) | |
: (u[r.name] = o(n[e], r)); | |
}, | |
l = 1; | |
l < n.length; | |
l++ | |
) | |
c(l); | |
return { path: a, index: i, params: u }; | |
}; | |
} | |
function a(e) { | |
return e.replace(/([.+*?=^!:${}()[\]|/\\])/g, "\\$1"); | |
} | |
function i(e) { | |
return e && e.sensitive ? "" : "i"; | |
} | |
function u(e, t, r) { | |
void 0 === r && (r = {}); | |
for ( | |
var n = r.strict, | |
o = void 0 !== n && n, | |
u = r.start, | |
c = void 0 === u || u, | |
l = r.end, | |
s = void 0 === l || l, | |
f = r.encode, | |
p = | |
void 0 === f | |
? function (e) { | |
return e; | |
} | |
: f, | |
d = "[" + a(r.endsWith || "") + "]|$", | |
h = "[" + a(r.delimiter || "/#?") + "]", | |
y = c ? "^" : "", | |
v = 0, | |
m = e; | |
v < m.length; | |
v++ | |
) { | |
var g = m[v]; | |
if ("string" === typeof g) y += a(p(g)); | |
else { | |
var b = a(p(g.prefix)), | |
_ = a(p(g.suffix)); | |
if (g.pattern) | |
if ((t && t.push(g), b || _)) | |
if ("+" === g.modifier || "*" === g.modifier) { | |
var w = "*" === g.modifier ? "?" : ""; | |
y += | |
"(?:" + | |
b + | |
"((?:" + | |
g.pattern + | |
")(?:" + | |
_ + | |
b + | |
"(?:" + | |
g.pattern + | |
"))*)" + | |
_ + | |
")" + | |
w; | |
} else | |
y += "(?:" + b + "(" + g.pattern + ")" + _ + ")" + g.modifier; | |
else y += "(" + g.pattern + ")" + g.modifier; | |
else y += "(?:" + b + _ + ")" + g.modifier; | |
} | |
} | |
if (s) o || (y += h + "?"), (y += r.endsWith ? "(?=" + d + ")" : "$"); | |
else { | |
var P = e[e.length - 1], | |
S = | |
"string" === typeof P | |
? h.indexOf(P[P.length - 1]) > -1 | |
: void 0 === P; | |
o || (y += "(?:" + h + "(?=" + d + "))?"), | |
S || (y += "(?=" + h + "|" + d + ")"); | |
} | |
return new RegExp(y, i(r)); | |
} | |
function c(e, t, n) { | |
return e instanceof RegExp | |
? (function (e, t) { | |
if (!t) return e; | |
var r = e.source.match(/\((?!\?)/g); | |
if (r) | |
for (var n = 0; n < r.length; n++) | |
t.push({ | |
name: n, | |
prefix: "", | |
suffix: "", | |
modifier: "", | |
pattern: "", | |
}); | |
return e; | |
})(e, t) | |
: Array.isArray(e) | |
? (function (e, t, r) { | |
var n = e.map(function (e) { | |
return c(e, t, r).source; | |
}); | |
return new RegExp("(?:" + n.join("|") + ")", i(r)); | |
})(e, t, n) | |
: (function (e, t, n) { | |
return u(r(e, n), t, n); | |
})(e, t, n); | |
} | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
(t.parse = r), | |
(t.compile = function (e, t) { | |
return n(r(e, t), t); | |
}), | |
(t.tokensToFunction = n), | |
(t.match = function (e, t) { | |
var r = []; | |
return o(c(e, r, t), r, t); | |
}), | |
(t.regexpToFunction = o), | |
(t.tokensToRegexp = u), | |
(t.pathToRegexp = c); | |
}, | |
4051: function (e) { | |
var t = (function (e) { | |
"use strict"; | |
var t, | |
r = Object.prototype, | |
n = r.hasOwnProperty, | |
o = "function" === typeof Symbol ? Symbol : {}, | |
a = o.iterator || "@@iterator", | |
i = o.asyncIterator || "@@asyncIterator", | |
u = o.toStringTag || "@@toStringTag"; | |
function c(e, t, r, n) { | |
var o = t && t.prototype instanceof y ? t : y, | |
a = Object.create(o.prototype), | |
i = new j(n || []); | |
return ( | |
(a._invoke = (function (e, t, r) { | |
var n = s; | |
return function (o, a) { | |
if (n === p) throw new Error("Generator is already running"); | |
if (n === d) { | |
if ("throw" === o) throw a; | |
return R(); | |
} | |
for (r.method = o, r.arg = a; ; ) { | |
var i = r.delegate; | |
if (i) { | |
var u = x(i, r); | |
if (u) { | |
if (u === h) continue; | |
return u; | |
} | |
} | |
if ("next" === r.method) r.sent = r._sent = r.arg; | |
else if ("throw" === r.method) { | |
if (n === s) throw ((n = d), r.arg); | |
r.dispatchException(r.arg); | |
} else "return" === r.method && r.abrupt("return", r.arg); | |
n = p; | |
var c = l(e, t, r); | |
if ("normal" === c.type) { | |
if (((n = r.done ? d : f), c.arg === h)) continue; | |
return { value: c.arg, done: r.done }; | |
} | |
"throw" === c.type && | |
((n = d), (r.method = "throw"), (r.arg = c.arg)); | |
} | |
}; | |
})(e, r, i)), | |
a | |
); | |
} | |
function l(e, t, r) { | |
try { | |
return { type: "normal", arg: e.call(t, r) }; | |
} catch (n) { | |
return { type: "throw", arg: n }; | |
} | |
} | |
e.wrap = c; | |
var s = "suspendedStart", | |
f = "suspendedYield", | |
p = "executing", | |
d = "completed", | |
h = {}; | |
function y() {} | |
function v() {} | |
function m() {} | |
var g = {}; | |
g[a] = function () { | |
return this; | |
}; | |
var b = Object.getPrototypeOf, | |
_ = b && b(b(A([]))); | |
_ && _ !== r && n.call(_, a) && (g = _); | |
var w = (m.prototype = y.prototype = Object.create(g)); | |
function P(e) { | |
["next", "throw", "return"].forEach(function (t) { | |
e[t] = function (e) { | |
return this._invoke(t, e); | |
}; | |
}); | |
} | |
function S(e, t) { | |
function r(o, a, i, u) { | |
var c = l(e[o], e, a); | |
if ("throw" !== c.type) { | |
var s = c.arg, | |
f = s.value; | |
return f && "object" === typeof f && n.call(f, "__await") | |
? t.resolve(f.__await).then( | |
function (e) { | |
r("next", e, i, u); | |
}, | |
function (e) { | |
r("throw", e, i, u); | |
} | |
) | |
: t.resolve(f).then( | |
function (e) { | |
(s.value = e), i(s); | |
}, | |
function (e) { | |
return r("throw", e, i, u); | |
} | |
); | |
} | |
u(c.arg); | |
} | |
var o; | |
this._invoke = function (e, n) { | |
function a() { | |
return new t(function (t, o) { | |
r(e, n, t, o); | |
}); | |
} | |
return (o = o ? o.then(a, a) : a()); | |
}; | |
} | |
function x(e, r) { | |
var n = e.iterator[r.method]; | |
if (n === t) { | |
if (((r.delegate = null), "throw" === r.method)) { | |
if ( | |
e.iterator.return && | |
((r.method = "return"), | |
(r.arg = t), | |
x(e, r), | |
"throw" === r.method) | |
) | |
return h; | |
(r.method = "throw"), | |
(r.arg = new TypeError( | |
"The iterator does not provide a 'throw' method" | |
)); | |
} | |
return h; | |
} | |
var o = l(n, e.iterator, r.arg); | |
if ("throw" === o.type) | |
return ( | |
(r.method = "throw"), (r.arg = o.arg), (r.delegate = null), h | |
); | |
var a = o.arg; | |
return a | |
? a.done | |
? ((r[e.resultName] = a.value), | |
(r.next = e.nextLoc), | |
"return" !== r.method && ((r.method = "next"), (r.arg = t)), | |
(r.delegate = null), | |
h) | |
: a | |
: ((r.method = "throw"), | |
(r.arg = new TypeError("iterator result is not an object")), | |
(r.delegate = null), | |
h); | |
} | |
function O(e) { | |
var t = { tryLoc: e[0] }; | |
1 in e && (t.catchLoc = e[1]), | |
2 in e && ((t.finallyLoc = e[2]), (t.afterLoc = e[3])), | |
this.tryEntries.push(t); | |
} | |
function E(e) { | |
var t = e.completion || {}; | |
(t.type = "normal"), delete t.arg, (e.completion = t); | |
} | |
function j(e) { | |
(this.tryEntries = [{ tryLoc: "root" }]), | |
e.forEach(O, this), | |
this.reset(!0); | |
} | |
function A(e) { | |
if (e) { | |
var r = e[a]; | |
if (r) return r.call(e); | |
if ("function" === typeof e.next) return e; | |
if (!isNaN(e.length)) { | |
var o = -1, | |
i = function r() { | |
for (; ++o < e.length; ) | |
if (n.call(e, o)) return (r.value = e[o]), (r.done = !1), r; | |
return (r.value = t), (r.done = !0), r; | |
}; | |
return (i.next = i); | |
} | |
} | |
return { next: R }; | |
} | |
function R() { | |
return { value: t, done: !0 }; | |
} | |
return ( | |
(v.prototype = w.constructor = m), | |
(m.constructor = v), | |
(m[u] = v.displayName = "GeneratorFunction"), | |
(e.isGeneratorFunction = function (e) { | |
var t = "function" === typeof e && e.constructor; | |
return ( | |
!!t && | |
(t === v || "GeneratorFunction" === (t.displayName || t.name)) | |
); | |
}), | |
(e.mark = function (e) { | |
return ( | |
Object.setPrototypeOf | |
? Object.setPrototypeOf(e, m) | |
: ((e.__proto__ = m), u in e || (e[u] = "GeneratorFunction")), | |
(e.prototype = Object.create(w)), | |
e | |
); | |
}), | |
(e.awrap = function (e) { | |
return { __await: e }; | |
}), | |
P(S.prototype), | |
(S.prototype[i] = function () { | |
return this; | |
}), | |
(e.AsyncIterator = S), | |
(e.async = function (t, r, n, o, a) { | |
void 0 === a && (a = Promise); | |
var i = new S(c(t, r, n, o), a); | |
return e.isGeneratorFunction(r) | |
? i | |
: i.next().then(function (e) { | |
return e.done ? e.value : i.next(); | |
}); | |
}), | |
P(w), | |
(w[u] = "Generator"), | |
(w[a] = function () { | |
return this; | |
}), | |
(w.toString = function () { | |
return "[object Generator]"; | |
}), | |
(e.keys = function (e) { | |
var t = []; | |
for (var r in e) t.push(r); | |
return ( | |
t.reverse(), | |
function r() { | |
for (; t.length; ) { | |
var n = t.pop(); | |
if (n in e) return (r.value = n), (r.done = !1), r; | |
} | |
return (r.done = !0), r; | |
} | |
); | |
}), | |
(e.values = A), | |
(j.prototype = { | |
constructor: j, | |
reset: function (e) { | |
if ( | |
((this.prev = 0), | |
(this.next = 0), | |
(this.sent = this._sent = t), | |
(this.done = !1), | |
(this.delegate = null), | |
(this.method = "next"), | |
(this.arg = t), | |
this.tryEntries.forEach(E), | |
!e) | |
) | |
for (var r in this) | |
"t" === r.charAt(0) && | |
n.call(this, r) && | |
!isNaN(+r.slice(1)) && | |
(this[r] = t); | |
}, | |
stop: function () { | |
this.done = !0; | |
var e = this.tryEntries[0].completion; | |
if ("throw" === e.type) throw e.arg; | |
return this.rval; | |
}, | |
dispatchException: function (e) { | |
if (this.done) throw e; | |
var r = this; | |
function o(n, o) { | |
return ( | |
(u.type = "throw"), | |
(u.arg = e), | |
(r.next = n), | |
o && ((r.method = "next"), (r.arg = t)), | |
!!o | |
); | |
} | |
for (var a = this.tryEntries.length - 1; a >= 0; --a) { | |
var i = this.tryEntries[a], | |
u = i.completion; | |
if ("root" === i.tryLoc) return o("end"); | |
if (i.tryLoc <= this.prev) { | |
var c = n.call(i, "catchLoc"), | |
l = n.call(i, "finallyLoc"); | |
if (c && l) { | |
if (this.prev < i.catchLoc) return o(i.catchLoc, !0); | |
if (this.prev < i.finallyLoc) return o(i.finallyLoc); | |
} else if (c) { | |
if (this.prev < i.catchLoc) return o(i.catchLoc, !0); | |
} else { | |
if (!l) | |
throw new Error("try statement without catch or finally"); | |
if (this.prev < i.finallyLoc) return o(i.finallyLoc); | |
} | |
} | |
} | |
}, | |
abrupt: function (e, t) { | |
for (var r = this.tryEntries.length - 1; r >= 0; --r) { | |
var o = this.tryEntries[r]; | |
if ( | |
o.tryLoc <= this.prev && | |
n.call(o, "finallyLoc") && | |
this.prev < o.finallyLoc | |
) { | |
var a = o; | |
break; | |
} | |
} | |
a && | |
("break" === e || "continue" === e) && | |
a.tryLoc <= t && | |
t <= a.finallyLoc && | |
(a = null); | |
var i = a ? a.completion : {}; | |
return ( | |
(i.type = e), | |
(i.arg = t), | |
a | |
? ((this.method = "next"), (this.next = a.finallyLoc), h) | |
: this.complete(i) | |
); | |
}, | |
complete: function (e, t) { | |
if ("throw" === e.type) throw e.arg; | |
return ( | |
"break" === e.type || "continue" === e.type | |
? (this.next = e.arg) | |
: "return" === e.type | |
? ((this.rval = this.arg = e.arg), | |
(this.method = "return"), | |
(this.next = "end")) | |
: "normal" === e.type && t && (this.next = t), | |
h | |
); | |
}, | |
finish: function (e) { | |
for (var t = this.tryEntries.length - 1; t >= 0; --t) { | |
var r = this.tryEntries[t]; | |
if (r.finallyLoc === e) | |
return this.complete(r.completion, r.afterLoc), E(r), h; | |
} | |
}, | |
catch: function (e) { | |
for (var t = this.tryEntries.length - 1; t >= 0; --t) { | |
var r = this.tryEntries[t]; | |
if (r.tryLoc === e) { | |
var n = r.completion; | |
if ("throw" === n.type) { | |
var o = n.arg; | |
E(r); | |
} | |
return o; | |
} | |
} | |
throw new Error("illegal catch attempt"); | |
}, | |
delegateYield: function (e, r, n) { | |
return ( | |
(this.delegate = { iterator: A(e), resultName: r, nextLoc: n }), | |
"next" === this.method && (this.arg = t), | |
h | |
); | |
}, | |
}), | |
e | |
); | |
})(e.exports); | |
try { | |
regeneratorRuntime = t; | |
} catch (r) { | |
Function("r", "regeneratorRuntime = r")(t); | |
} | |
}, | |
8745: function (e) { | |
!(function () { | |
var t = { | |
106: function (e, t) { | |
!(function (e) { | |
"use strict"; | |
var t, | |
r, | |
n, | |
o, | |
a = function (e, t) { | |
return { | |
name: e, | |
value: void 0 === t ? -1 : t, | |
delta: 0, | |
entries: [], | |
id: "v2-" | |
.concat(Date.now(), "-") | |
.concat(Math.floor(8999999999999 * Math.random()) + 1e12), | |
}; | |
}, | |
i = function (e, t) { | |
try { | |
if (PerformanceObserver.supportedEntryTypes.includes(e)) { | |
if ( | |
"first-input" === e && | |
!("PerformanceEventTiming" in self) | |
) | |
return; | |
var r = new PerformanceObserver(function (e) { | |
return e.getEntries().map(t); | |
}); | |
return r.observe({ type: e, buffered: !0 }), r; | |
} | |
} catch (e) {} | |
}, | |
u = function (e, t) { | |
var r = function r(n) { | |
("pagehide" !== n.type && | |
"hidden" !== document.visibilityState) || | |
(e(n), | |
t && | |
(removeEventListener("visibilitychange", r, !0), | |
removeEventListener("pagehide", r, !0))); | |
}; | |
addEventListener("visibilitychange", r, !0), | |
addEventListener("pagehide", r, !0); | |
}, | |
c = function (e) { | |
addEventListener( | |
"pageshow", | |
function (t) { | |
t.persisted && e(t); | |
}, | |
!0 | |
); | |
}, | |
l = function (e, t, r) { | |
var n; | |
return function (o) { | |
t.value >= 0 && | |
(o || r) && | |
((t.delta = t.value - (n || 0)), | |
(t.delta || void 0 === n) && ((n = t.value), e(t))); | |
}; | |
}, | |
s = -1, | |
f = function () { | |
return "hidden" === document.visibilityState ? 0 : 1 / 0; | |
}, | |
p = function () { | |
u(function (e) { | |
var t = e.timeStamp; | |
s = t; | |
}, !0); | |
}, | |
d = function () { | |
return ( | |
s < 0 && | |
((s = f()), | |
p(), | |
c(function () { | |
setTimeout(function () { | |
(s = f()), p(); | |
}, 0); | |
})), | |
{ | |
get firstHiddenTime() { | |
return s; | |
}, | |
} | |
); | |
}, | |
h = function (e, t) { | |
var r, | |
n = d(), | |
o = a("FCP"), | |
u = function (e) { | |
"first-contentful-paint" === e.name && | |
(f && f.disconnect(), | |
e.startTime < n.firstHiddenTime && | |
((o.value = e.startTime), o.entries.push(e), r(!0))); | |
}, | |
s = | |
performance.getEntriesByName && | |
performance.getEntriesByName("first-contentful-paint")[0], | |
f = s ? null : i("paint", u); | |
(s || f) && | |
((r = l(e, o, t)), | |
s && u(s), | |
c(function (n) { | |
(o = a("FCP")), | |
(r = l(e, o, t)), | |
requestAnimationFrame(function () { | |
requestAnimationFrame(function () { | |
(o.value = performance.now() - n.timeStamp), r(!0); | |
}); | |
}); | |
})); | |
}, | |
y = !1, | |
v = -1, | |
m = { passive: !0, capture: !0 }, | |
g = new Date(), | |
b = function (e, o) { | |
t || | |
((t = o), | |
(r = e), | |
(n = new Date()), | |
P(removeEventListener), | |
_()); | |
}, | |
_ = function () { | |
if (r >= 0 && r < n - g) { | |
var e = { | |
entryType: "first-input", | |
name: t.type, | |
target: t.target, | |
cancelable: t.cancelable, | |
startTime: t.timeStamp, | |
processingStart: t.timeStamp + r, | |
}; | |
o.forEach(function (t) { | |
t(e); | |
}), | |
(o = []); | |
} | |
}, | |
w = function (e) { | |
if (e.cancelable) { | |
var t = | |
(e.timeStamp > 1e12 ? new Date() : performance.now()) - | |
e.timeStamp; | |
"pointerdown" == e.type | |
? (function (e, t) { | |
var r = function () { | |
b(e, t), o(); | |
}, | |
n = function () { | |
o(); | |
}, | |
o = function () { | |
removeEventListener("pointerup", r, m), | |
removeEventListener("pointercancel", n, m); | |
}; | |
addEventListener("pointerup", r, m), | |
addEventListener("pointercancel", n, m); | |
})(t, e) | |
: b(t, e); | |
} | |
}, | |
P = function (e) { | |
["mousedown", "keydown", "touchstart", "pointerdown"].forEach( | |
function (t) { | |
return e(t, w, m); | |
} | |
); | |
}, | |
S = new Set(); | |
(e.getCLS = function (e, t) { | |
y || | |
(h(function (e) { | |
v = e.value; | |
}), | |
(y = !0)); | |
var r, | |
n = function (t) { | |
v > -1 && e(t); | |
}, | |
o = a("CLS", 0), | |
s = 0, | |
f = [], | |
p = function (e) { | |
if (!e.hadRecentInput) { | |
var t = f[0], | |
n = f[f.length - 1]; | |
s && | |
e.startTime - n.startTime < 1e3 && | |
e.startTime - t.startTime < 5e3 | |
? ((s += e.value), f.push(e)) | |
: ((s = e.value), (f = [e])), | |
s > o.value && ((o.value = s), (o.entries = f), r()); | |
} | |
}, | |
d = i("layout-shift", p); | |
d && | |
((r = l(n, o, t)), | |
u(function () { | |
d.takeRecords().map(p), r(!0); | |
}), | |
c(function () { | |
(s = 0), (v = -1), (o = a("CLS", 0)), (r = l(n, o, t)); | |
})); | |
}), | |
(e.getFCP = h), | |
(e.getFID = function (e, n) { | |
var s, | |
f = d(), | |
p = a("FID"), | |
h = function (e) { | |
e.startTime < f.firstHiddenTime && | |
((p.value = e.processingStart - e.startTime), | |
p.entries.push(e), | |
s(!0)); | |
}, | |
y = i("first-input", h); | |
(s = l(e, p, n)), | |
y && | |
u(function () { | |
y.takeRecords().map(h), y.disconnect(); | |
}, !0), | |
y && | |
c(function () { | |
var i; | |
(p = a("FID")), | |
(s = l(e, p, n)), | |
(o = []), | |
(r = -1), | |
(t = null), | |
P(addEventListener), | |
(i = h), | |
o.push(i), | |
_(); | |
}); | |
}), | |
(e.getLCP = function (e, t) { | |
var r, | |
n = d(), | |
o = a("LCP"), | |
s = function (e) { | |
var t = e.startTime; | |
t < n.firstHiddenTime && | |
((o.value = t), o.entries.push(e)), | |
r(); | |
}, | |
f = i("largest-contentful-paint", s); | |
if (f) { | |
r = l(e, o, t); | |
var p = function () { | |
S.has(o.id) || | |
(f.takeRecords().map(s), | |
f.disconnect(), | |
S.add(o.id), | |
r(!0)); | |
}; | |
["keydown", "click"].forEach(function (e) { | |
addEventListener(e, p, { once: !0, capture: !0 }); | |
}), | |
u(p, !0), | |
c(function (n) { | |
(o = a("LCP")), | |
(r = l(e, o, t)), | |
requestAnimationFrame(function () { | |
requestAnimationFrame(function () { | |
(o.value = performance.now() - n.timeStamp), | |
S.add(o.id), | |
r(!0); | |
}); | |
}); | |
}); | |
} | |
}), | |
(e.getTTFB = function (e) { | |
var t, | |
r = a("TTFB"); | |
(t = function () { | |
try { | |
var t = | |
performance.getEntriesByType("navigation")[0] || | |
(function () { | |
var e = performance.timing, | |
t = { entryType: "navigation", startTime: 0 }; | |
for (var r in e) | |
"navigationStart" !== r && | |
"toJSON" !== r && | |
(t[r] = Math.max(e[r] - e.navigationStart, 0)); | |
return t; | |
})(); | |
if (((r.value = r.delta = t.responseStart), r.value < 0)) | |
return; | |
(r.entries = [t]), e(r); | |
} catch (e) {} | |
}), | |
"complete" === document.readyState | |
? setTimeout(t, 0) | |
: addEventListener("pageshow", t); | |
}), | |
Object.defineProperty(e, "__esModule", { value: !0 }); | |
})(t); | |
}, | |
}; | |
"undefined" !== typeof __nccwpck_require__ && | |
(__nccwpck_require__.ab = "//"); | |
var r = {}; | |
t[106](0, r), (e.exports = r); | |
})(); | |
}, | |
676: function (e, t, r) { | |
"use strict"; | |
Object.defineProperty(t, "__esModule", { value: !0 }), | |
(t.default = o), | |
(t.getProperError = function (e) { | |
if (o(e)) return e; | |
0; | |
return new Error(n.isPlainObject(e) ? JSON.stringify(e) : e + ""); | |
}); | |
var n = r(2849); | |
function o(e) { | |
return ( | |
"object" === typeof e && null !== e && "name" in e && "message" in e | |
); | |
} | |
}, | |
}, | |
function (e) { | |
e.O(0, [774], function () { | |
return (t = 1783), e((e.s = t)); | |
var t; | |
}); | |
var t = e.O(); | |
_N_E = t; | |
}, | |
]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment