Your Name 1912bcd25b
Some checks failed
Lint / build (20) (push) Has been cancelled
Playwright Tests / test (push) Has been cancelled
chore: sync all remaining local workspace changes
2026-05-08 11:26:57 +08:00

69 lines
2.3 KiB
JavaScript

/*
* Extracted from browser-delivered Turbopack chunk: ffa5de913d3f001d.98ff1c0dc5.js
* Module id: 186174
* For reading/searching only; this factory depends on the original Turbopack runtime.
*/
const moduleFactory = (e, t, r) => {
"use strict";
Object.defineProperty(r, "__esModule", { value: !0 }),
Object.defineProperty(r, "handleMutable", {
enumerable: !0,
get: function () {
return l;
},
});
let n = e.r(375211);
function a(e) {
return void 0 !== e;
}
function l(e, t) {
let r = t.shouldScroll ?? !0,
l = e.previousNextUrl,
u = e.nextUrl;
if (a(t.patchedTree)) {
let r = (0, n.computeChangedPath)(e.tree, t.patchedTree);
r ? ((l = u), (u = r)) : u || (u = e.canonicalUrl);
}
return {
canonicalUrl: t.canonicalUrl ?? e.canonicalUrl,
renderedSearch: t.renderedSearch ?? e.renderedSearch,
pushRef: {
pendingPush: a(t.pendingPush) ? t.pendingPush : e.pushRef.pendingPush,
mpaNavigation: a(t.mpaNavigation)
? t.mpaNavigation
: e.pushRef.mpaNavigation,
preserveCustomHistoryState: a(t.preserveCustomHistoryState)
? t.preserveCustomHistoryState
: e.pushRef.preserveCustomHistoryState,
},
focusAndScrollRef: {
apply:
!!r && (!!a(t?.scrollableSegments) || e.focusAndScrollRef.apply),
onlyHashChange: t.onlyHashChange || !1,
hashFragment: r
? t.hashFragment && "" !== t.hashFragment
? decodeURIComponent(t.hashFragment.slice(1))
: e.focusAndScrollRef.hashFragment
: null,
segmentPaths: r
? (t?.scrollableSegments ?? e.focusAndScrollRef.segmentPaths)
: [],
},
cache: t.cache ? t.cache : e.cache,
tree: a(t.patchedTree) ? t.patchedTree : e.tree,
nextUrl: u,
previousNextUrl: l,
debugInfo: t.collectedDebugInfo ?? null,
};
}
("function" == typeof r.default ||
("object" == typeof r.default && null !== r.default)) &&
void 0 === r.default.__esModule &&
(Object.defineProperty(r.default, "__esModule", { value: !0 }),
Object.assign(r.default, r),
(t.exports = r.default));
};
export default moduleFactory;