import { r as redirect } from './index-Djsj11qr.js';

function load({ url, params }) {
  const step = url.searchParams.get("step");
  const region = url.searchParams.get("region");
  const base = `/edit/${encodeURIComponent(params.agent)}/roleplay`;
  const qs = new URLSearchParams();
  if (step) qs.set("step", step);
  if (region) qs.set("region", region);
  redirect(307, qs.size ? `${base}?${qs.toString()}` : base);
}

var _page_ts = /*#__PURE__*/Object.freeze({
  __proto__: null,
  load: load
});

const index = 7;
const universal_id = "src/routes/edit/[agent]/+page.ts";
const imports = ["_app/immutable/nodes/7.CkeP1yO3.js","_app/immutable/chunks/hp4PFHFv.js","_app/immutable/chunks/BUApaBEI.js"];
const stylesheets = [];
const fonts = [];

export { fonts, imports, index, stylesheets, _page_ts as universal, universal_id };
//# sourceMappingURL=7-BixmjuY5.js.map
