38 lines
1.0 KiB
JavaScript
38 lines
1.0 KiB
JavaScript
/*
|
|
* Extracted from browser-delivered Turbopack chunk: 5d5b47876e53e564.da1ba52a93.js
|
|
* Module id: 39517
|
|
* 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, "parseUrl", {
|
|
enumerable: !0,
|
|
get: function () {
|
|
return a;
|
|
},
|
|
});
|
|
let n = e.r(228167),
|
|
o = e.r(107174);
|
|
function a(e) {
|
|
if (e.startsWith("/")) return (0, o.parseRelativeUrl)(e);
|
|
let t = new URL(e);
|
|
return {
|
|
hash: t.hash,
|
|
hostname: t.hostname,
|
|
href: t.href,
|
|
pathname: t.pathname,
|
|
port: t.port,
|
|
protocol: t.protocol,
|
|
query: (0, n.searchParamsToUrlQuery)(t.searchParams),
|
|
search: t.search,
|
|
origin: t.origin,
|
|
slashes:
|
|
"//" === t.href.slice(t.protocol.length, t.protocol.length + 2),
|
|
};
|
|
}
|
|
};
|
|
|
|
export default moduleFactory;
|