1"use strict";(self.rspackChunknewapi_web=self.rspackChunknewapi_web||[]).push([[1468],{96582(e,t,s){s.d(t,{us:()=>n,Zx:()=>i,Zf:()=>c,Cb:()=>o});var r=s(79015),a=s(47801);function n(e){let{className:t,...s}=e;return(0,r.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",className:(0,a.cn)("[&>path]:stroke-current",t),fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...s,children:[(0,r.jsx)("title",{children:"Discord"}),(0,r.jsx)("path",{strokeWidth:"0",d:"M0 0h24v24H0z",fill:"none"}),(0,r.jsx)("path",{d:"M8 12a1 1 0 1 0 2 0a1 1 0 0 0 -2 0"}),(0,r.jsx)("path",{d:"M14 12a1 1 0 1 0 2 0a1 1 0 0 0 -2 0"}),(0,r.jsx)("path",{d:"M15.5 17c0 1 1.5 3 2 3c1.5 0 2.833 -1.667 3.5 -3c.667 -1.667 .5 -5.833 -1.5 -11.5c-1.457 -1.015 -3 -1.34 -4.5 -1.5l-.972 1.923a11.913 11.913 0 0 0 -4.053 0l-.975 -1.923c-1.5 .16 -3.043 .485 -4.5 1.5c-2 5.667 -2.167 9.833 -1.5 11.5c.667 1.333 2 3 3.5 3c.5 0 2 -2 2 -3"}),(0,r.jsx)("path",{d:"M7 16.5c3.5 1 6.5 1 10 0"})]})}function i(e){let{className:t,...s}=e;return(0,r.jsxs)("svg",{role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",className:(0,a.cn)("[&>path]:stroke-current",t),fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",...s,children:[(0,r.jsx)("title",{children:"GitHub"}),(0,r.jsx)("path",{strokeWidth:"0",d:"M0 0h24v24H0z",fill:"none"}),(0,r.jsx)("path",{d:"M9 19c-4.3 1.4 -4.3 -2.5 -6 -3m12 5v-3.5c0 -1 .1 -1.4 -.5 -2c2.8 -.3 5.5 -1.4 5.5 -6a4.6 4.6 0 0 0 -1.3 -3.2a4.2 4.2 0 0 0 -.1 -3.2s-1.1 -.3 -3.5 1.3a12.3 12.3 0 0 0 -6.2 0c-2.4 -1.6 -3.5 -1.3 -3.5 -1.3a4.2 4.2 0 0 0 -.1 3.2a4.6 4.6 0 0 0 -1.3 3.2c0 4.6 2.7 5.7 5.5 6c-.6 .6 -.6 1.2 -.5 2v3.5"})]})}function c(e){let{className:t,...s}=e;return(0,r.jsxs)("svg",{role:"img",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",className:(0,a.cn)(t),...s,children:[(0,r.jsx)("title",{children:"LinuxDO"}),(0,r.jsxs)("g",{children:[(0,r.jsx)("path",{d:"M7.44 0h.13c.09 0 .19 0 .28 0h.43c.09 0 .18 0 .27 0h.25c.09 0 .17.03.26.08.15.03.29.06.44.08 1.97.38 3.78 1.47 4.95 3.11.04.06.09.12.13.18.67.96 1.15 2.11 1.3 3.28v.26c0 .15 0 .29 0 .44v.13c0 .09 0 .19 0 .28v.43c0 .09 0 .18 0 .27v.25c0 .09-.03.17-.08.26-.03.15-.06.29-.08.44-.38 1.97-1.47 3.78-3.11 4.95-.06.04-.12.09-.18.13-.96.67-2.11 1.15-3.28 1.3h-.26c-.15 0-.29 0-.44 0h-.13c-.09 0-.19 0-.28 0h-.43c-.09 0-.18 0-.27 0h-.25c-.09 0-.17-.03-.26-.08-.15-.03-.29-.06-.44-.08-1.97-.38-3.78-1.47-4.95-3.11L.59 12.6c-.67-.96-1.15-2.11-1.3-3.28v-.26c0-.15 0-.29 0-.44v-.13c0-.09 0-.19 0-.28v-.43c0-.09 0-.18 0-.27v-.25c0-.09.03-.17.08-.26.03-.15.06-.29.08-.44.38-1.97 1.47-3.78 3.11-4.95.06-.04.12-.09.18-.13C4.42.73 5.57.26 6.74.1c.26-.03.41-.1.7-.1Z",fill:"#efefef"}),(0,r.jsx)("path",{d:"M1.27 11.33h13.45c-.94 1.89-2.51 3.21-4.51 3.88-1.99.59-3.96.37-5.8-.57-1.25-.7-2.67-1.9-3.14-3.3Z",fill:"#feb005"}),(0,r.jsx)("path",{d:"M12.54 1.99c.87.7 1.82 1.59 2.18 2.68H1.27c.87-1.74 2.33-3.13 4.2-3.78 2.44-.79 5-.47 7.07 1.1Z",fill:"#1d1d1f"})]})]})}function o(e){let{className:t,...s}=e;return(0,r.jsxs)("svg",{role:"img",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",className:(0,a.cn)("fill-current",t),...s,children:[(0,r.jsx)("title",{children:"WeChat"}),(0,r.jsx)("path",{d:"M690.1 377.4c5.9 0 11.8.2 17.6.5C683.3 249.2 549.4 150.8 387.8 150.8 209 150.8 64 271.4 64 420.2c0 81.1 43.6 154.2 111.9 203.6 5.5 3.9 9.1 10.3 9.1 17.6 0 2.4-.5 4.6-1.1 6.9-5.5 20.3-14.2 52.8-14.6 54.3-.7 2.6-1.7 5.2-1.7 7.9 0 5.9 4.8 10.8 10.8 10.8 2.3 0 4.2-.9 6.2-2l70.9-40.9c5.3-3.1 11-5 17.2-5 3.2 0 6.4.5 9.5 1.4 33.1 9.5 68.8 14.8 105.7 14.8 6 0 11.9-.1 17.8-.4-7.1-21-10.9-43.1-10.9-66 0-135.8 132.2-245.8 295.3-245.8zm-194.3-86.5c23.8 0 43.2 19.3 43.2 43.1s-19.3 43.1-43.2 43.1c-23.8 0-43.2-19.3-43.2-43.1s19.4-43.1 43.2-43.1zm-215.9 86.2c-23.8 0-43.2-19.3-43.2-43.1s19.3-43.1 43.2-43.1 43.2 19.3 43.2 43.1-19.4 43.1-43.2 43.1z"}),(0,r.jsx)("path",{d:"M866.7 792.7c56.9-41.2 93.2-102 93.2-169.7 0-124-120.8-224.5-269.9-224.5-149 0-269.9 100.5-269.9 224.5S540.9 847.5 690 847.5c30.8 0 60.6-4.4 88.1-12.3 2.6-.8 5.2-1.2 7.9-1.2 5.2 0 9.9 1.6 14.3 4.1l59.1 34c1.7 1 3.3 1.7 5.2 1.7 2.4 0 4.7-.9 6.4-2.6 1.7-1.7 2.6-4 2.6-6.4 0-2.2-.9-4.4-1.4-6.6-.3-1.2-7.6-28.3-12.2-45.3-.5-1.9-.9-3.8-.9-5.7.1-5.9 3.1-11.2 7.6-14.5zm-266.5-205.5c-19.9 0-36-16.1-36-35.9s16.1-35.9 36-35.9 36 16.1 36 35.9c0 19.8-16.2 35.9-36 35.9zm179.9 0c-19.9 0-36-16.1-36-35.9s16.1-35.9 36-35.9 36 16.1 36 35.9c-.1 19.8-16.2 35.9-36 35.9z"})]})}},58419(e,t,s){var r=s(79015),a=s(71451),n=s(6487),i=s(65311),c=s(47801),o=s(73178),l=s(62724);function d(e){let{className:t,disabled:s,ref:d,...u}=e,[h,m]=i.useState(!1);
1return(0,r.jsxs)("div",{className:(0,c.cn)("relative rounded-md",t),children:[(0,r.jsx)(l.p,{type:h?"text":"password",ref:d,disabled:s,...u}),(0,r.jsx)(o.$,{type:"button",size:"icon",variant:"ghost",disabled:s,className:"text-muted-foreground absolute end-1 top-1/2 h-6 w-6 -translate-y-1/2 rounded-md",onClick:()=>m(e=>!e),"aria-label":"Toggle password visibility",children:h?(0,r.jsx)(a.A,{size:18,"aria-hidden":"true"}):(0,r.jsx)(n.A,{size:18,"aria-hidden":"true"})})]})}s.d(t,{y:()=>d})},37875(e,t,s){var r=s(79015),a=s(65311);function n(e){let{siteKey:t,onVerify:s,onExpire:n,className:i}=e,c=(0,a.useRef)(null);return(0,a.useEffect)(()=>{let e=()=>{if(c.current&&window.turnstile)try{window.turnstile.render(c.current,{sitekey:t,callback:e=>s(e),"error-callback":()=>n?.(),"expired-callback":()=>n?.()})}catch{}};if(window.turnstile)return void e();let r="cf-turnstile";if(document.getElementById(r))return;let a=document.createElement("script");a.id=r,a.src="https://challenges.cloudflare.com/turnstile/v0/api.js?render=explicit",a.async=!0,a.defer=!0,a.onload=()=>e(),document.head.appendChild(a)},[t,s,n]),(0,r.jsx)("div",{ref:c,className:i})}s.d(t,{X:()=>n})},31600(e,t,s){var r=s(25589);let a=r.Ik({username:r.Yj().min(1,"Please enter your username or email"),password:r.Yj().min(1,"Please enter your password")}),n=r.Ik({username:r.Yj().min(1,"Please enter your username"),email:r.Yj().optional(),password:r.Yj().min(1,"Please enter your password").min(8,"Password must be between 8 and 20 characters").max(20,"Password must be at most 20 characters long"),confirmPassword:r.Yj().min(1,"Please confirm your password")}).refine(e=>e.password===e.confirmPassword,{message:"Passwords don't match.",path:["confirmPassword"]}),i=r.Ik({email:r.Yj().email({message:"Please enter a valid email address"})}),c=r.Ik({otp:r.Yj().min(1,"Please enter a code.")});s.d(t,{},{GC:"oauth:binding:result",RW:/^[A-Z0-9]{4}-[A-Z0-9]{4}$/i,Ru:n,ar:i,bg:c,eX:/^\d{6}$/,ni:a})},65143(e,t,s){var r=s(63228);function a(e,t){return`https://github.com/login/oauth/authorize?client_id=${e}&state=${t}&scope=user:email`}function n(e,t){let s=new URL("https://discord.com/oauth2/authorize");return s.searchParams.set("client_id",e),s.searchParams.set("redirect_uri",`${window.location.origin}/oauth/discord`),s.searchParams.set("response_type","code"),s.searchParams.set("scope","identify+openid"),s.searchParams.set("state",t),s.toString()}function i(e,t,s){let r=new URL(e);return r.searchParams.set("client_id",t),r.searchParams.set("redirect_uri",`${window.location.origin}/oauth/oidc`),r.searchParams.set("response_type","code"),r.searchParams.set("scope","openid profile email"),r.searchParams.set("state",s),r.toString()}function c(e,t){return`https://connect.linux.do/oauth2/authorize?response_type=code&client_id=${e}&state=${t}`}async function o(){try{let e="/api/oauth/state",t=localStorage.getItem("aff");t&&t.length>0&&(e+=`?aff=${t}`);let s=await r.FH.get(e);if(s.data.success)return s.data.data;return null}catch(e){return console.error("Failed to get OAuth state:",e),null}}async function l(e){let t=await o();if(!t)return;let s=a(e,t);window.open(s,"_blank")}async function d(e){let t=await o();if(!t)return;let s=n(e,t);window.open(s,"_blank")}async function u(e,t){let s=await o();if(!s)return;let r=i(e,t,s);window.open(r,"_blank")}async function h(e){let t=await o();if(!t)return;let s=c(e,t);window.open(s,"_blank")}s.d(t,{J2:()=>u,Nc:()=>n,OK:()=>d,bc:()=>l,e_:()=>a,km:()=>i,vJ:()=>h,yp:()=>c})}}]);
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.