PageSourceSearch

https://yuzhiblue-newapi.hf.space/static/js/async/8983.499c3c1a62.js

js yuzhiblue-newapi.hf.space collected 2026-10-03 17:38:24 UTC 5,830 bytes, 1 lines download raw bytes

1"use strict";(self.rspackChunknewapi_web=self.rspackChunknewapi_web||[]).push([[8983],{76614(e,s,t){var a=t(72361),r=t(68413);function l(e){let{siteKey:s,onVerify:t,onExpire:l,className:n}=e,i=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let e=()=>{if(i.current&&window.turnstile)try{window.turnstile.render(i.current,{sitekey:s,callback:e=>t(e),"error-callback":()=>l?.(),"expired-callback":()=>l?.()})}catch{}};if(window.turnstile)return void e();let a="cf-turnstile";if(document.getElementById(a))return;let r=document.createElement("script");r.id=a,r.src="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit",r.async=!0,r.defer=!0,r.onload=()=>e(),document.head.appendChild(r)},[s,t,l]),(0,a.jsx)("div",{ref:i,className:n})}t.d(s,{X:()=>l})},60589(e,s,t){var a=t(72361),r=t(71114),l=t(6702),n=t(38610),i=t(18434);function c(e){let{children:s}=e,{t}=(0,l.Bd)(),{systemName:c,logo:o,loading:d}=(0,n.R)();return(0,a.jsxs)("div",{className:"relative grid h-svh max-w-none",children:[(0,a.jsxs)(r.N_,{to:"/",className:"absolute top-4 left-4 z-10 flex items-center gap-2 transition-opacity hover:opacity-80 sm:top-8 sm:left-8",children:[(0,a.jsx)("div",{className:"relative h-8 w-8",children:d?(0,a.jsx)(i.E,{className:"absolute inset-0 rounded-full"}):(0,a.jsx)("img",{src:o,alt:t("Logo"),className:"h-8 w-8 rounded-full object-cover"})}),d?(0,a.jsx)(i.E,{className:"h-6 w-24"}):(0,a.jsx)("h1",{className:"text-xl font-medium",children:c})]}),(0,a.jsx)("div",{className:"container flex items-center pt-16 sm:pt-0",children:(0,a.jsx)("div",{className:"mx-auto flex w-full flex-col justify-center space-y-2 px-4 py-8 sm:w-[480px] sm:p-8",children:s})})]})}t.d(s,{D:()=>c})},88901(e,s,t){var a=t(25732);let r=a.Ik({username:a.Yj().min(1,"Please enter your username or email"),password:a.Yj().min(1,"Please enter your password").min(8,"Password must be at least 8 characters long")}),l=a.Ik({username:a.Yj().min(1,"Please enter your username"),email:a.Yj().optional(),password:a.Yj().min(1,"Please enter your password").min(8,"Password must be at least 8 characters long").max(20,"Password must be at most 20 characters long"),confirmPassword:a.Yj().min(1,"Please confirm your password")}).refine(e=>e.password===e.confirmPassword,{message:"Passwords don't match.",path:["confirmPassword"]}),n=a.Ik({email:a.Yj().email({message:"Please enter a valid email address"})}),i=a.Ik({otp:a.Yj().min(1,"Please enter a code.")});t.d(s,{},{GC:"oauth:binding:result",RW:/^[A-Z0-9]{4}-[A-Z0-9]{4}$/i,Ru:l,ar:n,bg:i,eX:/^\d{6}$/,ni:r})},23973(e,s,t){var a=t(68413),r=t(19376),l=t(20598),n=t(30464);function i(){let{status:e}=(0,n.s)(),[s,t]=(0,a.useState)(""),i=!!(e?.turnstile_check&&e?.turnstile_site_key);return{isTurnstileEnabled:i,turnstileSiteKey:e?.turnstile_site_key||"",turnstileToken:s,setTurnstileToken:t,validateTurnstile:()=>!i||!!s||(l.oR.info(r.Ay.t("Please wait a moment, human check is initializing...")),!1)}}t.d(s,{A:()=>i})},36375(e,s,t){var a=t(68413);function r(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{initialSeconds:s=30,autoStart:t=!1}=e,[r,l]=(0,a.useState)(s),[n,i]=(0,a.useState)(t),c=(0,a.useRef)(null),o=(0,a.useCallback)(()=>{c.current&&(window.clearInterval(c.current),c.current=null)},[]),d=(0,a.useCallback)(()=>{o(),i(!1)},[o]),m=(0,a.useCallback)(e=>{l(e??s),i(!0),o(),c.current=window.setInterval(()=>{l(e=>e<=1?(o(),i(!1),s):e-1)},1e3)},[o,s]),u=(0,a.useCallback)(()=>{d(),l(s)},[s,d]);return(0,a.useEffect)(()=>()=>o(),[o]),{secondsLeft:r,isActive:n,start:m,stop:d,reset:u}}t.d(s,{L:()=>r})},42970(e,s,t){t.r(s),t.d(s,{component:()=>N});var a=t(72361),r=t(71114),l=t(6702),n=t(60589),i=t(68413),c=t(86832),o=t(48367),d=t(55724),m=t(84e3),u=t(20598),x=t(81204),f=t(36375),h=t(46775),p=t(97077),j=t(54023),w=t(76614),y=t(16272),v=t(88901),g=t(23973);function b(e){let{className:s,...t}=e,{t:r}=(0,l.Bd)(),[n,b]=(0,i.useState)(!1),{isTurnstileEnabled:N,turnstileSiteKey:k,turnstileToken:P,setTurnstileToken:R,validateTurnstile:S}=(0,g.A)(),{secondsLeft:_,isActive:C,start:E}=(0,f.L)({initialSeconds:30}),I=(0,c.mN)({resolver:(0,o.u)(v.ar),defaultValues:{email:""}}),Y=!N||!!P;async function A(e){if(S()){b(!0);try{let s=await (0,y.J1)(e.email,P);s?.success?(I.reset(),E(),u.oR.success(r("Reset email sent, please check your inbox"))):u.oR.error(s?.message||r("Failed to send reset email"))}catch(e){}finally{b(!1)}}}return(0,a.jsx)(p.lV,{...I,children:(0,a.jsxs)("form",{onSubmit:I.handleSubmit(A),className:(0,x.cn)("grid gap-2",s),...t,children:[(0,a.jsx)(p.zB,{control:I.control,name:"email",render:e=>{let{field:s}=e;return(0,a.jsxs)(p.eI,{children:[(0,a.jsx)(p.lR,{children:"Email"}),(0,a.jsx)(p.MJ,{children:(0,a.jsx)(j.p,{placeholder:"[email protected]",...s})}),(0,a.jsx)(p.C5,{})]})}}),(0,a.jsxs)(h.$,{type:"submit",className:"mt-2",disabled:n||C||!Y,children:[C?r("Resend ({{seconds}}s)",{seconds:_}):r("Send reset email"),n?(0,a.jsx)(d.A,{className:"animate-spin"}):(0,a.jsx)(m.A,{})]}),N&&(0,a.jsx)("div",{className:"mt-2",children:(0,a.jsx)(w.X,{siteKey:k,onVerify:R})})]})})}let N=function(){let{t:e}=(0,l.Bd)();return(0,a.jsx)(n.D,{children:(0,a.jsxs)("div",{className:"w-full space-y-8",children:[(0,a.jsxs)("div",{className:"space-y-3",children:[(0,a.jsx)("h2",{className:"text-center text-2xl font-semibold tracking-tight sm:text-left",children:e("Forgot password")}),(0,a.jsx)("p",{className:"text-muted-foreground text-left text-sm sm:text-base",children:e("Enter your registered email and we will send you a link to reset your password.")}),(0,a.jsxs)("p",{className:"text-muted-foreground text-left text-sm sm:text-base",children:[e("Don't have an account?")," ",(0,a.jsx)(r.N_,{to:"/sign-up",className:"hover:text-primary font-medium underline underline-offset-4",children:e("Sign up")}),"."]})]}),(0,a.jsx)(b,{className:"space-y-0"})]})})}}}]);

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.