PageSourceSearch

https://www.upma.cn/_next/static/chunks/53e28a6ecd5e6697.js

js upma.cn collected 2026-10-06 13:15:35 UTC 29,639 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,343946,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"warnOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},986462,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={assign:function(){return o},searchParamsToUrlQuery:function(){return s},urlQueryToSearchParams:function(){return l}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});function s(e){let t={};for(let[r,n]of e.entries()){let e=t[r];void 0===e?t[r]=n:Array.isArray(e)?e.push(n):t[r]=[e,n]}return t}function a(e){return"string"==typeof e?e:("number"!=typeof e||isNaN(e))&&"boolean"!=typeof e?"":String(e)}function l(e){let t=new URLSearchParams;for(let[r,n]of Object.entries(e))if(Array.isArray(n))for(let e of n)t.append(r,a(e));else t.set(r,a(n));return t}function o(e,...t){for(let r of t){for(let t of r.keys())e.delete(t);for(let[t,n]of r.entries())e.append(t,n)}return e}},133860,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={formatUrl:function(){return l},formatWithValidation:function(){return c},urlObjectKeys:function(){return o}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let s=e.r(744066)._(e.r(986462)),a=/https?|ftp|gopher|file/;function l(e){let{auth:t,hostname:r}=e,n=e.protocol||"",i=e.pathname||"",l=e.hash||"",o=e.query||"",c=!1;t=t?encodeURIComponent(t).replace(/%3A/i,":")+"@":"",e.host?c=t+e.host:r&&(c=t+(~r.indexOf(":")?`[${r}]`:r),e.port&&(c+=":"+e.port)),o&&"object"==typeof o&&(o=String(s.urlQueryToSearchParams(o)));let u=e.search||o&&`?${o}`||"";return n&&!n.endsWith(":")&&(n+=":"),e.slashes||(!n||a.test(n))&&!1!==c?(c="//"+(c||""),i&&"/"!==i[0]&&(i="/"+i)):c||(c=""),l&&"#"!==l[0]&&(l="#"+l),u&&"?"!==u[0]&&(u="?"+u),i=i.replace(/[?#]/g,encodeURIComponent),u=u.replace("#","%23"),`${n}${c}${i}${u}${l}`}let o=["auth","hash","host","hostname","href","path","pathname","port","protocol","query","search","slashes"];function c(e){return l(e)}},504357,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return i}});let n=e.r(900778);function i(e,t){let r=(0,n.useRef)(null),i=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=i.current;t&&(i.current=null,t())}else e&&(r.current=s(e,n)),t&&(i.current=s(t,n))},[e,t])}function s(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(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)},969775,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={DecodeError:function(){return g},MiddlewareNotFoundError:function(){return j},MissingStaticPage:function(){return v},NormalizeError:function(){return y},PageNotFoundError:function(){return b},SP:function(){return m},ST:function(){return x},WEB_VITALS:function(){return s},execOnce:function(){return a},getDisplayName:function(){return d},getLocationOrigin:function(){return c},getURL:function(){return u},isAbsoluteUrl:function(){return o},isResSent:function(){return f},loadGetInitialProps:function(){return h},normalizeRepeatedSlashes:function(){return p},stringifyError:function(){return w}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let s=["CLS","FCP","FID","INP","LCP","TTFB"];function a(e){let t,r=!1;return(...n)=>(r||(r=!0,t=e(...n)),t)}let l=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,o=e=>l.test(e);function c(){let{protocol:e,hostname:t,port:r}=window.location;return`${e}//${t}${r?":"+r:""}`}function u(){let{href:e}=window.location,t=c();return e.substring(t.length)}function d(e){return"string"==typeof e?e:e.displayName||e.name||"Unknown"}function f(e){return e.finished||e.headersSent}function p(e){let t=e.split("?");return t[0].replace(/\\/g,"/").replace(/\/\/+/g,"/")+(t[1]?`?${t.slice(1).join("?")}`:"")}async function h(e,t){let r=t.res||t.ctx&&t.ctx.res;if(!e.getInitialProps)return t.ctx&&t.Component?{pageProps:await h(t.Component,t.ctx)}:{};let n=await e.getInitialProps(t);if(r&&f(r))return n;if(!n)throw Object.defineProperty(Error(`"${d(e)}.getInitialProps()" should resolve to an object. But found "${n}
1" instead.`),"__NEXT_ERROR_CODE",{value:"E394",enumerable:!1,configurable:!0});return n}let m="undefined"!=typeof performance,x=m&&["mark","measure","getEntriesByName"].every(e=>"function"==typeof performance[e]);class g extends Error{}class y extends Error{}class b extends Error{constructor(e){super(),this.code="ENOENT",this.name="PageNotFoundError",this.message=`Cannot find module for page: ${e}`}}class v extends Error{constructor(e,t){super(),this.message=`Failed to load static file for page: ${e} ${t}`}}class j extends Error{constructor(){super(),this.code="ENOENT",this.message="Cannot find the middleware module"}}function w(e){return JSON.stringify({message:e.message,stack:e.stack})}},298869,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"isLocalURL",{enumerable:!0,get:function(){return s}});let n=e.r(969775),i=e.r(606125);function s(e){if(!(0,n.isAbsoluteUrl)(e))return!0;try{let t=(0,n.getLocationOrigin)(),r=new URL(e,t);return r.origin===t&&(0,i.hasBasePath)(r.pathname)}catch(e){return!1}}},437034,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"errorOnce",{enumerable:!0,get:function(){return n}});let n=e=>{}},8331,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return g},useLinkStatus:function(){return b}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let s=e.r(744066),a=e.r(980506),l=s._(e.r(900778)),o=e.r(133860),c=e.r(540992),u=e.r(504357),d=e.r(969775),f=e.r(789810);e.r(343946);let p=e.r(797689),h=e.r(298869),m=e.r(225797);function x(e){return"string"==typeof e?e:(0,o.formatUrl)(e)}function g(t){var r;let n,i,s,[o,g]=(0,l.useOptimistic)(p.IDLE_LINK_STATUS),b=(0,l.useRef)(null),{href:v,as:j,children:w,prefetch:N=null,passHref:C,replace:_,shallow:z,scroll:k,onClick:S,onMouseEnter:E,onTouchStart:P,legacyBehavior:O=!1,onNavigate:$,ref:A,unstable_dynamicOnHover:I,...T}=t;n=w,O&&("string"==typeof n||"number"==typeof n)&&(n=(0,a.jsx)("a",{children:n}));let L=l.default.useContext(c.AppRouterContext),R=!1!==N,U=!1!==N?null===(r=N)||"auto"===r?m.FetchStrategy.PPR:m.FetchStrategy.Full:m.FetchStrategy.PPR,{href:M,as:F}=l.default.useMemo(()=>{let e=x(v);return{href:e,as:j?x(j):e}},[v,j]);if(O){if(n?.$$typeof===Symbol.for("react.lazy"))throw Object.defineProperty(Error("`<Link legacyBehavior>` received a direct child that is either a Server Component, or JSX that was loaded with React.lazy(). This is not supported. Either remove legacyBehavior, or make the direct child a Client Component that renders the Link's `<a>` tag."),"__NEXT_ERROR_CODE",{value:"E863",enumerable:!1,configurable:!0});i=l.default.Children.only(n)}let B=O?i&&"object"==typeof i&&i.ref:A,W=l.default.useCallback(e=>(null!==L&&(b.current=(0,p.mountLinkInstance)(e,M,L,U,R,g)),()=>{b.current&&((0,p.unmountLinkForCurrentNavigation)(b.current),b.current=null),(0,p.unmountPrefetchableInstance)(e)}),[R,M,L,U,g]),D={ref:(0,u.useMergedRef)(W,B),onClick(t){O||"function"!=typeof S||S(t),O&&i.props&&"function"==typeof i.props.onClick&&i.props.onClick(t),!L||t.defaultPrevented||function(t,r,n,i,s,a,o){if("undefined"!=typeof window){let c,{nodeName:u}=t.currentTarget;if("A"===u.toUpperCase()&&((c=t.currentTarget.getAttribute("target"))&&"_self"!==c||t.metaKey||t.ctrlKey||t.shiftKey||t.altKey||t.nativeEvent&&2===t.nativeEvent.which)||t.currentTarget.hasAttribute("download"))return;if(!(0,h.isLocalURL)(r)){s&&(t.preventDefault(),location.replace(r));return}if(t.preventDefault(),o){let e=!1;if(o({preventDefault:()=>{e=!0}}),e)return}let{dispatchNavigateAction:d}=e.r(415355);l.default.startTransition(()=>{d(n||r,s?"replace":"push",a??!0,i.current)})}}(t,M,F,b,_,k,$)},onMouseEnter(e){O||"function"!=typeof E||E(e),O&&i.props&&"function"==typeof i.props.onMouseEnter&&i.props.onMouseEnter(e),L&&R&&(0,p.onNavigationIntent)(e.currentTarget,!0===I)},onTouchStart:function(e){O||"function"!=typeof P||P(e),O&&i.props&&"function"==typeof i.props.onTouchStart&&i.props.onTouchStart(e),L&&R&&(0,p.onNavigationIntent)(e.currentTarget,!0===I)}};return(0,d.isAbsoluteUrl)(F)?D.href=F:O&&!C&&("a"!==i.type||"href"in i.props)||(D.href=(0,f.addBasePath)(F)),s=O?l.default.cloneElement(i,D):(0,a.jsx)("a",{...T,...D,children:n}),(0,a.jsx)(y.Provider,{value:o,children:s})}e.r(437034);let y=(0,l.createContext)(p.IDLE_LINK_STATUS),b=()=>(0,l.useContext)(y);("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esMo
1dule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},158294,(e,t,r)=>{t.exports=e.r(456984)},550521,e=>{"use strict";var t=e.i(980506),r=e.i(900778),n=e.i(515647),i=e.i(659674);let s=(0,r.memo)(e=>{let{size:s=200,warnMeg:a,claimProjectId:l,callbackUrl:o,referralCode:c}=e,u=window.location.pathname,d=window.location.search,f=window.location.hash,p=encodeURIComponent(encodeURIComponent(JSON.stringify({w_t:void 0,callbackUrl:(0,i.getSafeInternalPath)(o||u+d+f),claimProjectId:l,referralCode:c||void 0}))),h=(0,r.useMemo)(()=>(0,n.getWechatLoginHref)({self_redirect:!1,appid:n.WECHAT_LOGIN_CONFIG.appId,scope:"snsapi_login",redirect_uri:encodeURIComponent(n.WECHAT_LOGIN_CONFIG.callbackUrl),stylelite:1,state:p}),[p]),m=(0,r.useMemo)(()=>s/160,[s]);return(0,t.jsxs)("div",{className:"flex flex-col justify-center items-center overflow-hidden rounded-xl bg-white pl-2.5 pt-2.5",style:{width:s,height:s},children:[a&&(0,t.jsx)("div",{className:"absolute inset-0 bg-white/90 z-20 flex items-center justify-center p-4",children:(0,t.jsx)("p",{className:"text-center text-red-500 font-bold text-sm",children:a})}),(0,t.jsx)("iframe",{title:"WeChat Login",style:{width:"166px",height:"166px",transform:`scale(${m})`,transformOrigin:"center center",border:"none"},src:h,scrolling:"no",frameBorder:"0",allow:"local-network-access"})]})});e.s(["default",0,s])},659674,e=>{"use strict";let t="http://localhost";function r(e,n="/dashboard"){if(!e||!e.startsWith("/")||e.startsWith("//"))return n;try{let r=new URL(e,t);if(r.origin!==t||"/auth/callback"===r.pathname)return n;return`${r.pathname}${r.search}${r.hash}`}catch{return n}}e.s(["getSafeInternalPath",()=>r])},471118,e=>{"use strict";var t=e.i(327171),r=e.i(900778);let n="aliyun-captcha-script",i="g0x8o8",s=e=>{if(!e)return null;if("string"==typeof e){let t=e.trim();if(!t)return null;if(t.startsWith("{")||t.startsWith("["))try{return s(JSON.parse(t))}catch{}return t}if("object"!=typeof e)return null;let t=[e],r=new Set;for(;t.length>0;){let e=t.shift();if(!e||"object"!=typeof e||r.has(e))continue;r.add(e);let n=e.captchaVerifyParam||e.captcha_verify_param||e.verifyParam||e.verify_param;if("string"==typeof n&&n.trim())return n.trim();Object.values(e).forEach(e=>{e&&("object"==typeof e||"string"==typeof e)&&t.push(e)})}return null};function a(e){let[a,l]=(0,r.useState)(!1),o=(0,r.useRef)(null),c=(0,r.useRef)(null),u=(0,r.useRef)(0),d=(0,r.useRef)(null),f=(0,r.useId)().replace(/:/g,""),p=e?.key?`${e.key}-${f}`:f,h=`aliyun-captcha-btn-${p}`,m=`aliyun-captcha-elem-${p}`,x=(0,r.useCallback)(()=>{d.current&&(clearTimeout(d.current),d.current=null)},[]),g=(0,r.useCallback)(e=>{if(x(),u.current=0,!o.current)return;let t=o.current;o.current=null,t(e)},[x]),y=(0,r.useCallback)(()=>{if(o.current){if(u.current+=1,1===u.current){x(),d.current=setTimeout(()=>{o.current&&g(null)},2e4);return}g(null)}},[x,g]);return(0,r.useEffect)(()=>{window.AliyunCaptchaConfig={region:"cn",prefix:i};let e=document.getElementById(n);if(e){if(window.initAliyunCaptcha)setTimeout(()=>l(!0),0);else{let t=setInterval(()=>{window.initAliyunCaptcha&&(clearInterval(t),l(!0))},50),r=()=>l(!0);return e.addEventListener("load",r),()=>{clearInterval(t),e.removeEventListener("load",r)}}return}let t=document.createElement("script");t.id=n,t.src="https://o.alicdn.com/captcha-frontend/aliyunCaptcha/AliyunCaptcha.js",t.async=!0,t.onload=()=>l(!0),document.body.appendChild(t)},[]),(0,r.useEffect)(()=>{if(!a||!window.initAliyunCaptcha||c.current)return;let e=document.createElement("button");e.id=h,e.style.cssText="position:fixed;top:0;left:0;width:1px;height:1px;opacity:0.01;z-index:9999;border:none;padding:0;margin:0;overflow:hidden;pointer-events:auto;",document.body.appendChild(e);let r=document.createElement("div");r.id=m,r.style.display="none",document.body.appendChild(r);let n=t.default.env.NEXT_PUBLIC_ALIYUN_CAPTCHA_SCENE_ID||"1vs1cu7t";try{window.initAliyunCaptcha({SceneId:n,prefix:i,mode:"popup",element:`#${m}`,button:`#${h}`,success:e=>{g(s(e))},fail:()=>{y()},error:()=>{y()},getInstance:e=>{c.current=e}})}catch(e){console.error(e)}return()=>{x(),u.current=0,o.current=null,document.getElementById(h)?.remove(),document.getElementById(m)?.remove(),c.current=null}},[a,h,m,x,y,g]),{verify:(0,r.useCallback)(async()=>
1{if(!c.current)for(let e=0;e<30&&(await new Promise(e=>setTimeout(e,100)),!c.current);e++);return c.current?new Promise(e=>{x(),u.current=0,o.current&&o.current(null),o.current=t=>{x(),u.current=0,e(t)},"function"==typeof c.current?.reload?c.current.reload():c.current?.reset?.(),setTimeout(()=>{document.getElementById(h)?.click()},100),setTimeout(()=>{if(!o.current)return;x(),u.current=0;let e=o.current;if(o.current=null,e){let t=c.current;t?.hide?.(),e(null)}},3e4)}):(console.error("Aliyun Captcha instance not ready"),null)},[h,x]),isReady:a}}e.s(["useAliyunCaptcha",()=>a])},515647,e=>{"use strict";var t=e.i(548590);let r={appId:"wx4507c48833f0c6a9",callbackUrl:`${t.API_BASE.replace(/\/+$/,"")}/auth/wechat/callback`};function n(e){let t="default";!0===e.self_redirect?t="true":!1===e.self_redirect&&(t="false");let r=`https://open.weixin.qq.com/connect/qrconnect?appid=${e.appid}&scope=${e.scope}&redirect_uri=${e.redirect_uri}&state=${e.state}&login_type=jssdk&self_redirect=${t}&styletype=${e.styletype||""}&sizetype=${e.sizetype||""}&bgcolor=${e.bgcolor||""}&rst=${e.rst||""}&ts=${e.ts??Date.now()}`;return e.style&&(r+=`&style=${e.style}`),e.href&&(r+=`&href=${e.href}`),"en"===e.lang&&(r+="&lang=en"),1===e.stylelite&&(r+="&stylelite=1"),0===e.fast_login&&(r+="&fast_login=0"),r}e.s(["WECHAT_LOGIN_CONFIG",0,r,"getWechatLoginHref",()=>n])},185361,e=>{"use strict";var t=e.i(900778);let r=e=>{let t=e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,r)=>r?r.toUpperCase():t.toLowerCase());return t.charAt(0).toUpperCase()+t.slice(1)},n=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim();var i={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let s=(0,t.forwardRef)(({color:e="currentColor",size:r=24,strokeWidth:s=2,absoluteStrokeWidth:a,className:l="",children:o,iconNode:c,...u},d)=>(0,t.createElement)("svg",{ref:d,...i,width:r,height:r,stroke:e,strokeWidth:a?24*Number(s)/Number(r):s,className:n("lucide",l),...!o&&!(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0})(u)&&{"aria-hidden":"true"},...u},[...c.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(o)?o:[o]])),a=(e,i)=>{let a=(0,t.forwardRef)(({className:a,...l},o)=>(0,t.createElement)(s,{ref:o,iconNode:i,className:n(`lucide-${r(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,`lucide-${e}`,a),...l}));return a.displayName=r(e),a};e.s(["default",()=>a],185361)},806964,e=>{"use strict";var t=e.i(980506);function r({className:e="",showText:r=!0,size:n="md",variant:i="dark"}){let s="lg"===n?48:"sm"===n?24:32,a=r?5*s:s;return(0,t.jsxs)("svg",{width:a,height:s,viewBox:r?"0 0 160 40":"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e,"aria-label":"上码 Logo",children:[(0,t.jsxs)("defs",{children:[(0,t.jsxs)("linearGradient",{id:"circle_bg",x1:"0",y1:"0",x2:"40",y2:"40",gradientUnits:"userSpaceOnUse",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#1e1b4b"})," ",(0,t.jsx)("stop",{offset:"100%",stopColor:"#2e1065"})," "]}),(0,t.jsxs)("linearGradient",{id:"triangle_gradient",x1:"20",y1:"10",x2:"20",y2:"32",gradientUnits:"userSpaceOnUse",children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#6366f1"})," ",(0,t.jsx)("stop",{offset:"50%",stopColor:"#8b5cf6"})," ",(0,t.jsx)("stop",{offset:"100%",stopColor:"#ec4899"})," "]}),(0,t.jsx)("linearGradient",{id:`${i}_text_gradient`,x1:"0",y1:"0",x2:"0",y2:"100%",gradientUnits:"userSpaceOnUse",children:"dark"===i?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#dedede"}),(0,t.jsx)("stop",{offset:"100%",stopColor:"#a0aec0"})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("stop",{offset:"0%",stopColor:"#1f2937"})," ",(0,t.jsx)("stop",{offset:"100%",stopColor:"#4b5563"})," "]})}),(0,t.jsx)("filter",{id:"text_shadow",x:"-20%",y:"-20%",width:"140%",height:"140%",children:(0,t.jsx)("feDropShadow",{dx:"0",dy:"1",stdDeviation:"1",floodColor:"#000000",floodOpacity:"dark"===i?.5:.1})})]}),(0,t.jsxs)("g",{children:[(0,t.jsx)("circle",{cx:"20",cy:"20",r:"20",fill:"url(#circle_bg)"}),(0,t.jsx)("circle",{cx:"20",cy:"20",r:"19",stroke:"white",strokeOpacity:"0.1",strokeWidth:"1"}),(0,t.jsx)("path",{d:"M20 11L30 29H10L20 11Z",fill:"url(#triangle_gradient)",className:"drop-shadow-sm"})]}),r&&(0,t.jsxs)("g",{transform:"translate(48, 0)",children:[(0,t.jsx)("text",{x:"0",y:"29",fill:`url(#${i}
1_text_gradient)`,filter:"url(#text_shadow)",fontSize:"24",fontWeight:"900",fontFamily:"PingFang SC, Microsoft YaHei, system-ui, sans-serif",letterSpacing:"0.02em",children:"上码"}),(0,t.jsxs)("g",{transform:"translate(54, 0)",children:[(0,t.jsx)("text",{x:"0",y:"17",fill:"url(#triangle_gradient)",fontSize:"12",fontWeight:"900",fontFamily:"Manrope, Inter, system-ui, sans-serif",letterSpacing:"0.1em",style:{textTransform:"uppercase"},children:"up"}),(0,t.jsxs)("text",{x:"0",y:"31",fontSize:"12",fontFamily:"Manrope, Inter, system-ui, sans-serif",fontWeight:"900",letterSpacing:"0.1em",children:[(0,t.jsx)("tspan",{fill:"url(#triangle_gradient)",style:{textTransform:"uppercase"},children:"ma"}),(0,t.jsx)("tspan",{fill:"dark"===i?"white":"#4b5563",fillOpacity:"dark"===i?"0.4":"1",fontWeight:"600",fontSize:"10",dx:"2",children:".cn"})]})]})]})]})}e.s(["default",()=>r])},422835,e=>{"use strict";let t=(0,e.i(185361).default)("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);e.s(["Loader2",()=>t],422835)},662805,e=>{"use strict";let t=(0,e.i(185361).default)("globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]);e.s(["Globe",()=>t],662805)},820933,e=>{"use strict";let t=(0,e.i(185361).default)("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);e.s(["ArrowLeft",()=>t],820933)},7284,e=>{"use strict";function t(){for(var e,t,r=0,n="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=function e(t){var r,n,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t)){var s=t.length;for(r=0;r<s;r++)t[r]&&(n=e(t[r]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}(e))&&(n&&(n+=" "),n+=t);return n}e.s(["clsx",()=>t,"default",0,t])},869325,e=>{"use strict";let t=(0,e.i(185361).default)("smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);e.s(["Smartphone",()=>t],869325)},13540,e=>{"use strict";let t=(0,e.i(185361).default)("key-round",[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]]);e.s(["KeyRound",()=>t],13540)},789954,e=>{"use strict";var t=e.i(980506),r=e.i(900778),n=e.i(158294),i=e.i(550521),s=e.i(907848),a=e.i(376193),l=e.i(471118),o=e.i(422835),c=e.i(869325),u=e.i(13540),d=e.i(820933),f=e.i(647163),p=e.i(8331),h=e.i(806964),m=e.i(659674),x=e.i(26503);function g({onSuccess:e,redirectUrl:n,className:g}){let{setUser:y}=(0,a.useUser)(),[b,v]=(0,r.useState)(!1),[j,w]=(0,r.useState)("phone"),[N,C]=(0,r.useState)(""),[_,z]=(0,r.useState)(""),[k,S]=(0,r.useState)(0),[E,P]=(0,r.useState)(""),[O,$]=(0,r.useState)(!0),[A,I]=(0,r.useState)(null),{verify:T}=(0,l.useAliyunCaptcha)();(0,r.useEffect)(()=>{if(k>0){let e=setTimeout(()=>S(k-1),1e3);return()=>clearTimeout(e)}},[k]),(0,r.useEffect)(()=>{I((0,x.getReferralCodeFromBrowser)())},[]);let L=async()=>{if(!N.match(/^1[3-9]\d{9}$/))return void P("请输入正确的手机号");if(!O)return void P("请先同意用户协议和隐私政策");P("");try{let e=await T();if(!e)return;v(!0),await s.authApi.sendCode(N,e),S(60)}catch{P("发送验证码失败,请稍后重试")}finally{v(!1)}},R=async t=>{if(t.preventDefault(),!O)return void P("请先同意用户协议和隐私政策");if(!N.match(/^1[3-9]\d{9}$/))return void P("请输入正确的手机号");if(6!==_.length)return void P("请输入6位验证码");P(""),v(!0);try{let t=await s.authApi.loginWithPhone(N,_,A);(0,x.clearReferralCodeFromBrowser)(),y(t.user),e?e():window.location.href=(0,m.getSafeInternalPath)(n)}catch{P("验证码错误或已过期"),v(!1)}};return(0,t.jsxs)("div",{className:(0,f.cn)("grid gap-6",g),children:[(0,t.jsxs)("div",{className:"text-center mb-2",children:[(0,t.jsx)("div",{className:"flex justify-center mb-6 scale-100 md:scale-110",children:(0,t.jsx)(h.default,{})}),(0,t.jsx)("h1",{className:"text-3xl font-bold text-white mb-2 tracking-tight",children:"phone"===j?"登录 / 注册":"微信扫码登录"}),(0,t.jsx)("p",{className:"text-gray-400 text-sm",children:"phone"===j?"未注册手机号验证后自动创建账户":'请使用微信"扫一扫"登录'})]}),"phone"===j?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{type:"button",onClick:()=>w("wechat"),disabled:b,className:"w-full h-11 bg-white hover:bg-zinc-100 border border-zinc-300 text-zinc-900 font-medium rounded-md flex items-center justify-center transition-colors shadow-sm",children:[(0,t.jsx)(()=>(0,t.jsx)("svg",{viewBox:"0 0 1024 1024",className:"mr-2 h-5 w-5",fill:"#07C160",children:(0,t.jsx)("path",{d:"M664.25 368.54c10.02 0 19.89 0.73 29.67 1.8-26.65-122.81-159.36-214.08-310.83-214.08-169.35 0-308.09 114.23-308.09 259.27 0 83.71 46.17 152.46 123.28 205.79l-30.81 91.73 107.69-53.46c38.56 7.54 69.46 15.31 107.92 15.31 9.66 0 19.23-0.47 28.75-1.22-6.03-20.37-9.52-41.72-9.52-63.86 0-133.19 115.58-241.28 261.94-241.28zM498.63 285.87c23.2 0 38.56 15.12 38.56 38.06 0 22.85-15.36 38.16-38.56 38.16-23.11 0-46.26-15.31-46.26-38.16 0-22.12 23.15-38.06 46.26-38.06zM283.02 362.09c-23.11 0-46.4-15.31-46.4-38.16 0-22.94 23.3-38.06 46.4-38.06 23.08 0 38.46 15.12 38.46 38.06 0 22.85-15.38 38.16-38.46 38.16zM945.45 606.15c0-121.89-123.26-221.24-261.68-221.24-146.58 0-262.02 99.35-262.02 221.24 0 122.07 115.44 221.2 262.02 221.2 30.67 0 61.62-7.61 92.42-15.26l84.51 45.79-23.18-76.17c61.85-55.87 107.93-116.75 107.93-185.56zM598.8 568c-15.33 0-30.81-15.1-30.81-30.5 0-15.2 15.48-30.48 30.81-30.48 23.3 0 38.56 15.29 38.56 30.48 0 15.4-15.26 30.5-38.56 30.5zM768.25 568c-15.21 0-30.6-15.1-30.6-30.5 0-15.2 15.38-30.48 30.6-30.48 23.11 0 38.56 15.29 38.56 30.48 0 15.4-15.45 30.5-38.56 30.5z"})}),{}),"使用微信一键登录"]}),(0,t.jsxs)("div",{className:"relative mb-4 hidden md:block",children:[(0,t.jsx)("div",{className:"absolute inset-0 flex items-center",children:(0,t.jsx)("div",{className:"w-full border-t border-white/5"})}),(0,t.jsx)("div",{className:"relative flex justify-center text-sm",children:(0,t.jsx)("span",{className:"px-4 bg-[#18181b] text-gray-500 text-xs font-medium",children:"或使用手机验证码"})})]}),E&&(0,t.jsx)("div",{className:"p-3 bg-red-500/10 border border-red-500/20 rounded-md text-red-400 text-xs text-center",children:E}),(0,t.jsxs)("form",{onSubmit:R,className:"grid gap-4",children:[(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)("label",{className:"text-sm font-medium text-zinc-300",children:"手机号码"}),(0,t.jsxs)("div",{className:"relative group",children:[(0,t.jsx)("div",{className:"absolute left-3 top-0 h-full flex items-center justify-center pointer-events-none",children:(0,t.jsx)("span",{className:"text-zinc-500 text-sm font-medium pr-2 border-r border-zinc-700",children:"+86"})}),(0,t.jsx)("input",{type:"tel",value:N,name:"phone",onChange:e=>C(e.target.value.replace(/\D/g,"").slice(0,11)),disabled:b,required:!0,placeholder:"请输入手机号",className:"w-full h-11 bg-zinc-800/50 border border-zinc-700 rounded-md py-2 pl-16 pr-10 text-sm text-white placeholder-zinc-500 focus:outline-none focus:ring-2 focus:ring-zinc-600 focus:border-transparent transition-all"}),(0,t.jsx)("div",{className:"absolute right-3 top-0 h-full flex items-center pointer-events-none text-zinc-500 transition-colors group-focus-within:text-zinc-300",children:(0,t.jsx)(c.Smartphone,{className:"h-4 w-4"})})]})]}),(0,t.jsxs)("div",{className:"grid gap-2",children:[(0,t.jsx)("label",{className:"text-sm font-medium text-zinc-300",children:"验证码"}),(0,t.jsxs)("div",{className:"flex gap-3",children:[(0,t.jsxs)("div",{className:"relative flex-1 group",children:[(0,t.jsx)("input",{type:"text",value:_,onCh
1ange:e=>z(e.target.value.replace(/\D/g,"").slice(0,6)),disabled:b,required:!0,maxLength:6,placeholder:"6位验证码",className:"w-full h-11 bg-zinc-800/50 border border-zinc-700 rounded-md py-2 pl-3 pr-10 text-sm font-mono tracking-widest text-white placeholder-zinc-500 focus:outline-none focus:ring-2 focus:ring-zinc-600 focus:border-transparent transition-all text-center"}),(0,t.jsx)("div",{className:"absolute right-3 top-0 h-full flex items-center pointer-events-none text-zinc-500 transition-colors group-focus-within:text-zinc-300",children:(0,t.jsx)(u.KeyRound,{className:"h-4 w-4"})})]}),(0,t.jsx)("button",{type:"button",onClick:L,disabled:k>0||b,className:"h-11 px-4 min-w-[100px] bg-zinc-800 hover:bg-zinc-700 text-zinc-200 text-sm font-medium rounded-md border border-zinc-700 transition-colors disabled:opacity-50 disabled:cursor-not-allowed whitespace-nowrap",children:k>0?`${k}s`:"获取验证码"})]})]}),(0,t.jsx)("button",{type:"submit",disabled:b,className:"w-full h-11 mt-2 bg-zinc-100 hover:bg-white text-zinc-900 font-bold rounded-md transition-all flex items-center justify-center disabled:opacity-70 shadow-sm hover:shadow-md",children:b?(0,t.jsx)(o.Loader2,{className:"mr-2 h-4 w-4 animate-spin"}):"登录 / 注册"}),(0,t.jsxs)("div",{className:"flex items-center gap-2 mt-2",children:[(0,t.jsx)("div",{className:"flex items-center h-5",children:(0,t.jsx)("input",{type:"checkbox",checked:O,onChange:e=>$(e.target.checked),id:"tos",className:"h-4 w-4 rounded border-zinc-600 bg-zinc-800/50 text-zinc-100 focus:ring-zinc-600 focus:ring-offset-zinc-900 cursor-pointer"})}),(0,t.jsxs)("label",{htmlFor:"tos",className:"text-xs text-zinc-500 leading-normal cursor-pointer select-none",children:["我已阅读并同意"," ",(0,t.jsx)(p.default,{href:"/legal/terms",className:"text-zinc-400 hover:text-zinc-200 underline transition-colors",children:"用户协议"})," ","和"," ",(0,t.jsx)(p.default,{href:"/legal/privacy",className:"text-zinc-400 hover:text-zinc-200 underline transition-colors",children:"隐私政策"})]})]})]})]}):(0,t.jsxs)("div",{className:"flex flex-col items-center animate-in fade-in zoom-in duration-300",children:[(0,t.jsx)("div",{className:"w-full flex justify-start mb-6",children:(0,t.jsxs)("button",{onClick:()=>w("phone"),className:"flex items-center text-sm text-zinc-400 hover:text-white transition-colors group",children:[(0,t.jsx)(d.ArrowLeft,{className:"h-4 w-4 mr-1 group-hover:-translate-x-1 transition-transform"}),"返回手机登录"]})}),(0,t.jsxs)("div",{className:"text-center mb-8",children:[(0,t.jsx)("h3",{className:"text-xl font-semibold text-white tracking-tight",children:"微信扫码登录"}),(0,t.jsx)("p",{className:"text-sm text-zinc-400 mt-2",children:'请使用微信"扫一扫"登录'})]}),(0,t.jsx)("div",{className:"bg-white p-3 rounded-2xl mb-8 shadow-xl shadow-black/20",children:(0,t.jsx)(i.default,{size:220,callbackUrl:n,referralCode:A})})]})]})}var y=e.i(662805);function b(){let e=(0,n.useSearchParams)(),r=(0,m.getSafeInternalPath)(e.get("callbackUrl"));return(0,t.jsx)("div",{className:"min-h-screen flex flex-col bg-zinc-900 text-white selection:bg-zinc-800",children:(0,t.jsxs)("div",{className:"flex-1 flex flex-col justify-center items-center p-4 sm:p-8 md:p-12 relative",children:[(0,t.jsx)("div",{className:"absolute inset-0 bg-[radial-gradient(circle_at_center,var(--tw-gradient-stops))] from-zinc-800/20 via-zinc-900/0 to-zinc-900/0 pointer-events-none"}),(0,t.jsx)("div",{className:"w-full max-w-[400px] z-10 relative",children:(0,t.jsx)(g,{redirectUrl:r,className:"w-full"})})]})})}function v(){return(0,t.jsx)(r.Suspense,{fallback:(0,t.jsx)("div",{className:"min-h-screen bg-zinc-900 flex items-center justify-center text-zinc-500",children:(0,t.jsx)(y.Globe,{className:"h-6 w-6 animate-spin"})}),children:(0,t.jsx)(b,{})})}e.s(["default",()=>v],789954)}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.