var E=Object.defineProperty,f=Object.defineProperties;var w=Object.getOwnPropertyDescriptors;var n=Object.getOwnPropertySymbols;var I=Object.prototype.hasOwnProperty,h=Object.prototype.propertyIsEnumerable;var d=(e,r,t)=>r in e?E(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,m=(e,r)=>{for(var t in r||(r={}))I.call(r,t)&&d(e,t,r[t]);if(n)for(var t of n(r))h.call(r,t)&&d(e,t,r[t]);return e},p=(e,r)=>f(e,w(r));import{_ as s,l as T,g as U,d as g,R as i,m as R,a as v}from"./index.c6944236.js";import{q as u,s as _,x as l}from"./vendor.e6eaca24.js";const c=g(async e=>{const r=Number(e.params.userId);if(!r)throw new i(R("user_edit.errors.NO_SUCH_USER"));const{requestError:t,response:o}=await v.user.getUserMeta({userId:r});if(t)throw new i(t,{showRefresh:!0,showBack:!0});if(o.error)throw new i(R(`user_edit.errors.${o.error}`));const a=e.originalUrl.split("/");return a[1]="u",a[2]=o.meta.username,l(a.join("/"))});var P={groups:u(()=>s(()=>import("./GroupsPage.204779e8.js"),["assets/GroupsPage.204779e8.js","assets/GroupsPage.4b2a0f03.css","assets/vendor.e6eaca24.js","assets/index.c6944236.js","assets/index.6a4b7b90.css","assets/useAsyncCallbackPending.bf7bbf90.js","assets/UserLink.eec3c14e.js","assets/UserAvatar.acd4ab4e.js","assets/lodash.default.91c04a21.js","assets/UserSearch.2e1d12f5.js","assets/UserSearch.643979f5.css","assets/PreviewSearch.7b29c032.js","assets/PreviewSearch.fdac37e5.css","assets/onEnterPress.b56e5f51.js","assets/validators.ad4c624c.js"])),user:_({"/:userId":_(p(m({},T({edit:l(e=>`/user/${e.params.userId}/edit/profile`)})),{"/edit/:type":c,"/":c}))}),u:_({"/:username":U(()=>s(()=>import("./UserPage.467a20c5.js"),["assets/UserPage.467a20c5.js","assets/UserPage.339d5cc3.css","assets/vendor.e6eaca24.js","assets/index.c6944236.js","assets/index.6a4b7b90.css","assets/fixChineseSpace.759a763a.js","assets/UserAvatar.acd4ab4e.js","assets/lodash.default.91c04a21.js","assets/validators.ad4c624c.js","assets/MarkdownContent.1e1566a9.js","assets/MarkdownContent.3c836f7a.css","assets/v4.90f1a8cc.js","assets/CodeBox.16e9a888.js","assets/CodeBox.0b3c197d.css"]),"byUsername"),"/:username/edit/:type":u(()=>s(()=>import("./UserEditPage.66f2d9f8.js").then(function(e){return e.U}),["assets/UserEditPage.66f2d9f8.js","assets/UserEditPage.f3865e78.css","assets/index.c6944236.js","assets/index.6a4b7b90.css","assets/vendor.e6eaca24.js","assets/validators.ad4c624c.js","assets/v4.90f1a8cc.js"])),"/":u(()=>s(()=>import("./UsersPage.aef3a9ca.js"),["assets/UsersPage.aef3a9ca.js","assets/UsersPage.89905b6d.css","assets/vendor.e6eaca24.js","assets/index.c6944236.js","assets/index.6a4b7b90.css","assets/Pagination.3d9a4d43.js","assets/Pagination.7f9463d0.css","assets/UserLink.eec3c14e.js","assets/UserSearch.2e1d12f5.js","assets/UserSearch.643979f5.css","assets/UserAvatar.acd4ab4e.js","assets/lodash.default.91c04a21.js","assets/PreviewSearch.7b29c032.js","assets/PreviewSearch.fdac37e5.css","assets/onEnterPress.b56e5f51.js","assets/MarkdownContent.1e1566a9.js","assets/MarkdownContent.3c836f7a.css","assets/v4.90f1a8cc.js","assets/CodeBox.16e9a888.js","assets/CodeBox.0b3c197d.css"]))})};export{P as default};
