diff --git a/assets/index-Dr8eK0XQ.js b/assets/index-CwaOopbD.js similarity index 99% rename from assets/index-Dr8eK0XQ.js rename to assets/index-CwaOopbD.js index e53816f7..a8b6e450 100644 --- a/assets/index-Dr8eK0XQ.js +++ b/assets/index-CwaOopbD.js @@ -410,4 +410,4 @@ Error generating stack: `+s.message+` }) `);const d={},g=new n.Events(d);return d.on("secondary-limit",l.onSecondaryRateLimit),d.on("rate-limit",l.onRateLimit),d.on("error",h=>e.log.warn("Error in throttling-plugin limit handler",h)),l.retryLimiter.on("failed",async function(h,y){const[x,S,T]=y.args,{pathname:O}=new URL(T.url,"http://github.test");if(!(O.startsWith("/graphql")&&h.status!==401||h.status===403))return;const p=~~S.retryCount;S.retryCount=p,T.request.retryCount=p;const{wantRetry:m,retryAfter:_=0}=await async function(){var R;if(/\bsecondary rate\b/i.test(h.message)){const C=Number(h.response.headers["retry-after"])||x.fallbackSecondaryRateRetryAfter;return{wantRetry:await g.trigger("secondary-limit",C,T,e,p),retryAfter:C}}if(h.response.headers!=null&&h.response.headers["x-ratelimit-remaining"]==="0"||(((R=h.response.data)==null?void 0:R.errors)??[]).some(C=>C.type==="RATE_LIMITED")){const C=new Date(~~h.response.headers["x-ratelimit-reset"]*1e3).getTime(),F=Math.max(Math.ceil((C-Date.now())/1e3)+1,0);return{wantRetry:await g.trigger("rate-limit",F,T,e,p),retryAfter:F}}return{}}();if(m)return S.retryCount++,_*x.retryAfterBaseValue}),e.hook.wrap("request",Rw.bind(null,l)),{}}wl.VERSION=jw;wl.triggersNotification=Ph;const Gw=Hr(pv);var Dw=function(t){return btoa(t)};const zt=us(Dw),Uw="4.1.0";function Lw(e){const t=e.clientType||"oauth-app",r=e.baseUrl||"https://github.com",n={clientType:t,allowSignup:e.allowSignup!==!1,clientId:e.clientId,login:e.login||null,redirectUrl:e.redirectUrl||null,state:e.state||Math.random().toString(36).substr(2),url:""};if(t==="oauth-app"){const o="scopes"in e?e.scopes:[];n.scopes=typeof o=="string"?o.split(/[,\s]+/).filter(Boolean):o}return n.url=Iw(`${r}/login/oauth/authorize`,n),n}function Iw(e,t){const r={allowSignup:"allow_signup",clientId:"client_id",login:"login",redirectUrl:"redirect_uri",scopes:"scope",state:"state"};let n=e;return Object.keys(r).filter(o=>t[o]!==null).filter(o=>o!=="scopes"?!0:t.clientType==="github-app"?!1:!Array.isArray(t[o])||t[o].length>0).map(o=>[r[o],`${t[o]}`]).forEach(([o,s],i)=>{n+=i===0?"?":"&",n+=`${o}=${encodeURIComponent(s)}`}),n}function Oh(e){const t=e.endpoint.DEFAULTS;return/^https:\/\/(api\.)?github\.com$/.test(t.baseUrl)?"https://github.com":t.baseUrl.replace("/api/v3","")}async function Os(e,t,r){const n={baseUrl:Oh(e),headers:{accept:"application/json"},...r},o=await e(t,n);if("error"in o.data){const s=new Kt(`${o.data.error_description} (${o.data.error}, ${o.data.error_uri})`,400,{request:e.endpoint.merge(t,n),headers:o.headers});throw s.response=o,s}return o}function zw({request:e=Ee,...t}){const r=Oh(e);return Lw({...t,baseUrl:r})}async function jh(e){const t=e.request||Ee,r=await Os(t,"POST /login/oauth/access_token",{client_id:e.clientId,client_secret:e.clientSecret,code:e.code,redirect_uri:e.redirectUrl}),n={clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:r.data.access_token,scopes:r.data.scope.split(/\s+/).filter(Boolean)};if(e.clientType==="github-app"){if("refresh_token"in r.data){const o=new Date(r.headers.date).getTime();n.refreshToken=r.data.refresh_token,n.expiresAt=gc(o,r.data.expires_in),n.refreshTokenExpiresAt=gc(o,r.data.refresh_token_expires_in)}delete n.scopes}return{...r,authentication:n}}function gc(e,t){return new Date(e+t*1e3).toISOString()}async function Rh(e){const t=e.request||Ee,r={client_id:e.clientId};return"scopes"in e&&Array.isArray(e.scopes)&&(r.scope=e.scopes.join(" ")),Os(t,"POST /login/device/code",r)}async function ya(e){const t=e.request||Ee,r=await Os(t,"POST /login/oauth/access_token",{client_id:e.clientId,device_code:e.code,grant_type:"urn:ietf:params:oauth:grant-type:device_code"}),n={clientType:e.clientType,clientId:e.clientId,token:r.data.access_token,scopes:r.data.scope.split(/\s+/).filter(Boolean)};if("clientSecret"in e&&(n.clientSecret=e.clientSecret),e.clientType==="github-app"){if("refresh_token"in r.data){const o=new Date(r.headers.date).getTime();n.refreshToken=r.data.refresh_token,n.expiresAt=yc(o,r.data.expires_in),n.refreshTokenExpiresAt=yc(o,r.data.refresh_token_expires_in)}delete n.scopes}return{...r,authentication:n}}function yc(e,t){return new Date(e+t*1e3).toISOString()}async function Ch(e){const r=await(e.request||Ee)("POST /applications/{client_id}/token",{headers:{authorization:`basic ${zt(`${e.clientId}:${e.clientSecret}`)}`},client_id:e.clientId,access_token:e.token}),n={clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:e.token,scopes:r.data.scopes};return r.data.expires_at&&(n.expiresAt=r.data.expires_at),e.clientType==="github-app"&&delete n.scopes,{...r,authentication:n}}async function Ah(e){const t=e.request||Ee,r=await Os(t,"POST /login/oauth/access_token",{client_id:e.clientId,client_secret:e.clientSecret,grant_type:"refresh_token",refresh_token:e.refreshToken}),n=new Date(r.headers.date).getTime(),o={clientType:"github-app",clientId:e.clientId,clientSecret:e.clientSecret,token:r.data.access_token,refreshToken:r.data.refresh_token,expiresAt:vc(n,r.data.expires_in),refreshTokenExpiresAt:vc(n,r.data.refresh_token_expires_in)};return{...r,authentication:o}}function vc(e,t){return new Date(e+t*1e3).toISOString()}async function $w(e){const{request:t,clientType:r,clientId:n,clientSecret:o,token:s,...i}=e,l=await(t||Ee)("POST /applications/{client_id}/token/scoped",{headers:{authorization:`basic ${zt(`${n}:${o}`)}`},client_id:n,access_token:s,...i}),d=Object.assign({clientType:r,clientId:n,clientSecret:o,token:l.data.token},l.data.expires_at?{expiresAt:l.data.expires_at}:{});return{...l,authentication:d}}async function Nh(e){const t=e.request||Ee,r=zt(`${e.clientId}:${e.clientSecret}`),n=await t("PATCH /applications/{client_id}/token",{headers:{authorization:`basic ${r}`},client_id:e.clientId,access_token:e.token}),o={clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:n.data.token,scopes:n.data.scopes};return n.data.expires_at&&(o.expiresAt=n.data.expires_at),e.clientType==="github-app"&&delete o.scopes,{...n,authentication:o}}async function Fh(e){const t=e.request||Ee,r=zt(`${e.clientId}:${e.clientSecret}`);return t("DELETE /applications/{client_id}/token",{headers:{authorization:`basic ${r}`},client_id:e.clientId,access_token:e.token})}async function Gh(e){const t=e.request||Ee,r=zt(`${e.clientId}:${e.clientSecret}`);return t("DELETE /applications/{client_id}/grant",{headers:{authorization:`basic ${r}`},client_id:e.clientId,access_token:e.token})}const Mw=Object.freeze(Object.defineProperty({__proto__:null,VERSION:Uw,checkToken:Ch,createDeviceCode:Rh,deleteAuthorization:Gh,deleteToken:Fh,exchangeDeviceCode:ya,exchangeWebFlowCode:jh,getWebFlowAuthorizationUrl:zw,refreshToken:Ah,resetToken:Nh,scopeToken:$w},Symbol.toStringTag,{value:"Module"}));async function Dh(e,t){const r=Bw(e,t.auth);if(r)return r;const{data:n}=await Rh({clientType:e.clientType,clientId:e.clientId,request:t.request||e.request,scopes:t.auth.scopes||e.scopes});await e.onVerification(n);const o=await va(t.request||e.request,e.clientId,e.clientType,n);return e.authentication=o,o}function Bw(e,t){if(t.refresh===!0||!e.authentication)return!1;if(e.clientType==="github-app")return e.authentication;const r=e.authentication,n=("scopes"in t&&t.scopes||e.scopes).join(" "),o=r.scopes.join(" ");return n===o?r:!1}async function wc(e){await new Promise(t=>setTimeout(t,e*1e3))}async function va(e,t,r,n){try{const o={clientId:t,request:e,code:n.device_code},{authentication:s}=r==="oauth-app"?await ya({...o,clientType:"oauth-app"}):await ya({...o,clientType:"github-app"});return{type:"token",tokenType:"oauth",...s}}catch(o){if(!o.response)throw o;const s=o.response.data.error;if(s==="authorization_pending")return await wc(n.interval),va(e,t,r,n);if(s==="slow_down")return await wc(n.interval+5),va(e,t,r,n);throw o}}async function qw(e,t){return Dh(e,{auth:t})}async function Ww(e,t,r,n){let o=t.endpoint.merge(r,n);if(/\/login\/(oauth\/access_token|device\/code)$/.test(o.url))return t(o);const{token:s}=await Dh(e,{request:t,auth:{type:"oauth"}});return o.headers.authorization=`token ${s}`,t(o)}var Hw="6.1.0";function Vw(e){const t=e.request||Ee.defaults({headers:{"user-agent":`octokit-auth-oauth-device.js/${Hw} ${It()}`}}),{request:r=t,...n}=e,o=e.clientType==="github-app"?{...n,clientType:"github-app",request:r}:{...n,clientType:"oauth-app",request:r,scopes:e.scopes||[]};if(!e.clientId)throw new Error('[@octokit/auth-oauth-device] "clientId" option must be set (https://github.com/octokit/auth-oauth-device.js#usage)');if(!e.onVerification)throw new Error('[@octokit/auth-oauth-device] "onVerification" option must be a function (https://github.com/octokit/auth-oauth-device.js#usage)');return Object.assign(qw.bind(null,o),{hook:Ww.bind(null,o)})}var Uh="4.1.0";async function Ec(e){if("code"in e.strategyOptions){const{authentication:t}=await jh({clientId:e.clientId,clientSecret:e.clientSecret,clientType:e.clientType,onTokenCreated:e.onTokenCreated,...e.strategyOptions,request:e.request});return{type:"token",tokenType:"oauth",...t}}if("onVerification"in e.strategyOptions){const r=await Vw({clientType:e.clientType,clientId:e.clientId,onTokenCreated:e.onTokenCreated,...e.strategyOptions,request:e.request})({type:"oauth"});return{clientSecret:e.clientSecret,...r}}if("token"in e.strategyOptions)return{type:"token",tokenType:"oauth",clientId:e.clientId,clientSecret:e.clientSecret,clientType:e.clientType,onTokenCreated:e.onTokenCreated,...e.strategyOptions};throw new Error("[@octokit/auth-oauth-user] Invalid strategy options")}async function wa(e,t={}){var n,o;if(e.authentication||(e.authentication=e.clientType==="oauth-app"?await Ec(e):await Ec(e)),e.authentication.invalid)throw new Error("[@octokit/auth-oauth-user] Token is invalid");const r=e.authentication;if("expiresAt"in r&&(t.type==="refresh"||new Date(r.expiresAt){throw s.status===404?(s.message=`Not found. May be due to lack of authentication. Reason: ${e}`,s):o0(s)?(s.message=`API rate limit exceeded. This maybe caused by the lack of authentication. Reason: ${e}`,s):i0(s)?(s.message=`You have triggered an abuse detection mechanism. This maybe caused by the lack of authentication. Reason: ${e}`,s):s.status===401?(s.message=`Unauthorized. "${o.method} ${o.url}" failed most likely due to lack of authentication. Reason: ${e}`,s):(s.status>=400&&s.status<500&&(s.message=s.message.replace(/\.?$/,`. May be caused by lack of authentication (${e}).`)),s)})}var l0=function(t){if(!t||!t.reason)throw new Error("[@octokit/auth-unauthenticated] No reason passed to createUnauthenticatedAuth");return Object.assign(n0.bind(null,t.reason),{hook:a0.bind(null,t.reason)})};const u0=Object.freeze(Object.defineProperty({__proto__:null,createUnauthenticatedAuth:l0},Symbol.toStringTag,{value:"Module"})),Ih=Hr(u0);var c0=Object.create,Rs=Object.defineProperty,d0=Object.getOwnPropertyDescriptor,p0=Object.getOwnPropertyNames,h0=Object.getPrototypeOf,f0=Object.prototype.hasOwnProperty,m0=(e,t)=>{for(var r in t)Rs(e,r,{get:t[r],enumerable:!0})},zh=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of p0(t))!f0.call(e,o)&&o!==r&&Rs(e,o,{get:()=>t[o],enumerable:!(n=d0(t,o))||n.enumerable});return e},$t=(e,t,r)=>(r=e!=null?c0(h0(e)):{},zh(!e||!e.__esModule?Rs(r,"default",{value:e,enumerable:!0}):r,e)),g0=e=>zh(Rs({},"__esModule",{value:!0}),e),$h={};m0($h,{OAuthApp:()=>K0,createAWSLambdaAPIGatewayV2Handler:()=>V0,createNodeMiddleware:()=>$0,createWebWorkerHandler:()=>q0,handleRequest:()=>Cs,sendNodeResponse:()=>Wh,unknownRouteResponse:()=>qh});var y0=g0($h),v0=Lh,Mh="6.1.0";function Bh(e,t,r){if(Array.isArray(t)){for(const n of t)Bh(e,n,r);return}e.eventHandlers[t]||(e.eventHandlers[t]=[]),e.eventHandlers[t].push(r)}var w0=r0,E0=Gw,x0=w0.Octokit.defaults({userAgent:`octokit-oauth-app.js/${Mh} ${(0,E0.getUserAgent)()}`}),_0=js;async function ft(e,t){const{name:r,action:n}=t;if(e.eventHandlers[`${r}.${n}`])for(const o of e.eventHandlers[`${r}.${n}`])await o(t);if(e.eventHandlers[r])for(const o of e.eventHandlers[r])await o(t)}async function k0(e,t){return e.octokit.auth({type:"oauth-user",...t,async factory(r){const n=new e.Octokit({authStrategy:_0.createOAuthUserAuth,auth:r}),o=await n.auth({type:"get"});return await ft(e,{name:"token",action:"created",token:o.token,scopes:o.scopes,authentication:o,octokit:n}),n}})}var T0=$t(dr);function S0(e,t){const r={clientId:e.clientId,request:e.octokit.request,...t,allowSignup:e.allowSignup??t.allowSignup,redirectUrl:t.redirectUrl??e.redirectUrl,scopes:t.scopes??e.defaultScopes};return T0.getWebFlowAuthorizationUrl({clientType:e.clientType,...r})}var b0=$t(Lh);async function P0(e,t){const r=await e.octokit.auth({type:"oauth-user",...t});return await ft(e,{name:"token",action:"created",token:r.token,scopes:r.scopes,authentication:r,octokit:new e.Octokit({authStrategy:b0.createOAuthUserAuth,auth:{clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:r.token,scopes:r.scopes,refreshToken:r.refreshToken,expiresAt:r.expiresAt,refreshTokenExpiresAt:r.refreshTokenExpiresAt}})}),{authentication:r}}var O0=$t(dr);async function j0(e,t){const r=await O0.checkToken({clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,request:e.octokit.request,...t});return Object.assign(r.authentication,{type:"token",tokenType:"oauth"}),r}var xc=$t(dr),_c=js;async function R0(e,t){const r={clientId:e.clientId,clientSecret:e.clientSecret,request:e.octokit.request,...t};if(e.clientType==="oauth-app"){const s=await xc.resetToken({clientType:"oauth-app",...r}),i=Object.assign(s.authentication,{type:"token",tokenType:"oauth"});return await ft(e,{name:"token",action:"reset",token:s.authentication.token,scopes:s.authentication.scopes||void 0,authentication:i,octokit:new e.Octokit({authStrategy:_c.createOAuthUserAuth,auth:{clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:s.authentication.token,scopes:s.authentication.scopes}})}),{...s,authentication:i}}const n=await xc.resetToken({clientType:"github-app",...r}),o=Object.assign(n.authentication,{type:"token",tokenType:"oauth"});return await ft(e,{name:"token",action:"reset",token:n.authentication.token,authentication:o,octokit:new e.Octokit({authStrategy:_c.createOAuthUserAuth,auth:{clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:n.authentication.token}})}),{...n,authentication:o}}var C0=$t(dr),A0=js;async function N0(e,t){if(e.clientType==="oauth-app")throw new Error("[@octokit/oauth-app] app.refreshToken() is not supported for OAuth Apps");const r=await C0.refreshToken({clientType:"github-app",clientId:e.clientId,clientSecret:e.clientSecret,request:e.octokit.request,refreshToken:t.refreshToken}),n=Object.assign(r.authentication,{type:"token",tokenType:"oauth"});return await ft(e,{name:"token",action:"refreshed",token:r.authentication.token,authentication:n,octokit:new e.Octokit({authStrategy:A0.createOAuthUserAuth,auth:{clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:r.authentication.token}})}),{...r,authentication:n}}var F0=$t(dr),G0=js;async function D0(e,t){if(e.clientType==="oauth-app")throw new Error("[@octokit/oauth-app] app.scopeToken() is not supported for OAuth Apps");const r=await F0.scopeToken({clientType:"github-app",clientId:e.clientId,clientSecret:e.clientSecret,request:e.octokit.request,...t}),n=Object.assign(r.authentication,{type:"token",tokenType:"oauth"});return await ft(e,{name:"token",action:"scoped",token:r.authentication.token,authentication:n,octokit:new e.Octokit({authStrategy:G0.createOAuthUserAuth,auth:{clientType:e.clientType,clientId:e.clientId,clientSecret:e.clientSecret,token:r.authentication.token}})}),{...r,authentication:n}}var kc=$t(dr),U0=Ih;async function L0(e,t){const r={clientId:e.clientId,clientSecret:e.clientSecret,request:e.octokit.request,...t},n=e.clientType==="oauth-app"?await kc.deleteToken({clientType:"oauth-app",...r}):await kc.deleteToken({clientType:"github-app",...r});return await ft(e,{name:"token",action:"deleted",token:t.token,octokit:new e.Octokit({authStrategy:U0.createUnauthenticatedAuth,auth:{reason:'Handling "token.deleted" event. The access for the token has been revoked.'}})}),n}var Tc=$t(dr),Sc=Ih;async function I0(e,t){const r={clientId:e.clientId,clientSecret:e.clientSecret,request:e.octokit.request,...t},n=e.clientType==="oauth-app"?await Tc.deleteAuthorization({clientType:"oauth-app",...r}):await Tc.deleteAuthorization({clientType:"github-app",...r});return await ft(e,{name:"token",action:"deleted",token:t.token,octokit:new e.Octokit({authStrategy:Sc.createUnauthenticatedAuth,auth:{reason:'Handling "token.deleted" event. The access for the token has been revoked.'}})}),await ft(e,{name:"authorization",action:"deleted",token:t.token,octokit:new e.Octokit({authStrategy:Sc.createUnauthenticatedAuth,auth:{reason:'Handling "authorization.deleted" event. The access for the app has been revoked.'}})}),n}function qh(e){return{status:404,headers:{"content-type":"application/json"},text:JSON.stringify({error:`Unknown route: ${e.method} ${e.url}`})}}async function Cs(e,{pathPrefix:t="/api/github/oauth"},r){var g,h,y,x,S,T;if(r.method==="OPTIONS")return{status:200,headers:{"access-control-allow-origin":"*","access-control-allow-methods":"*","access-control-allow-headers":"Content-Type, User-Agent, Authorization"}};let{pathname:n}=new URL(r.url,"http://localhost");if(!n.startsWith(`${t}/`))return;n=n.slice(t.length+1);const o=[r.method,n].join(" "),s={getLogin:"GET login",getCallback:"GET callback",createToken:"POST token",getToken:"GET token",patchToken:"PATCH token",patchRefreshToken:"PATCH refresh-token",scopeToken:"POST token/scoped",deleteToken:"DELETE token",deleteGrant:"DELETE grant"};if(!Object.values(s).includes(o))return qh(r);let i;try{const O=await r.text();i=O?JSON.parse(O):{}}catch{return{status:400,headers:{"content-type":"application/json","access-control-allow-origin":"*"},text:JSON.stringify({error:"[@octokit/oauth-app] request error"})}}const{searchParams:a}=new URL(r.url,"http://localhost"),l=Object.fromEntries(a),d=r.headers;try{if(o===s.getLogin){const{url:f}=e.getWebFlowAuthorizationUrl({state:l.state,scopes:l.scopes?l.scopes.split(","):void 0,allowSignup:l.allowSignup?l.allowSignup==="true":void 0,redirectUrl:l.redirectUrl});return{status:302,headers:{location:f}}}if(o===s.getCallback){if(l.error)throw new Error(`[@octokit/oauth-app] ${l.error} ${l.error_description}`);if(!l.code)throw new Error('[@octokit/oauth-app] "code" parameter is required');const{authentication:{token:f}}=await e.createToken({code:l.code});return{status:200,headers:{"content-type":"text/html"},text:`

Token created successfully

-

Your token is: ${f}. Copy it now as it cannot be shown again.

`}}if(o===s.createToken){const{code:f,redirectUrl:p}=i;if(!f)throw new Error('[@octokit/oauth-app] "code" parameter is required');const m=await e.createToken({code:f,redirectUrl:p});return delete m.authentication.clientSecret,{status:201,headers:{"content-type":"application/json","access-control-allow-origin":"*"},text:JSON.stringify(m)}}if(o===s.getToken){const f=(g=d.authorization)==null?void 0:g.substr(6);if(!f)throw new Error('[@octokit/oauth-app] "Authorization" header is required');const p=await e.checkToken({token:f});return delete p.authentication.clientSecret,{status:200,headers:{"content-type":"application/json","access-control-allow-origin":"*"},text:JSON.stringify(p)}}if(o===s.patchToken){const f=(h=d.authorization)==null?void 0:h.substr(6);if(!f)throw new Error('[@octokit/oauth-app] "Authorization" header is required');const p=await e.resetToken({token:f});return delete p.authentication.clientSecret,{status:200,headers:{"content-type":"application/json","access-control-allow-origin":"*"},text:JSON.stringify(p)}}if(o===s.patchRefreshToken){if(!((y=d.authorization)==null?void 0:y.substr(6)))throw new Error('[@octokit/oauth-app] "Authorization" header is required');const{refreshToken:p}=i;if(!p)throw new Error("[@octokit/oauth-app] refreshToken must be sent in request body");const m=await e.refreshToken({refreshToken:p});return delete m.authentication.clientSecret,{status:200,headers:{"content-type":"application/json","access-control-allow-origin":"*"},text:JSON.stringify(m)}}if(o===s.scopeToken){const f=(x=d.authorization)==null?void 0:x.substr(6);if(!f)throw new Error('[@octokit/oauth-app] "Authorization" header is required');const p=await e.scopeToken({token:f,...i});return delete p.authentication.clientSecret,{status:200,headers:{"content-type":"application/json","access-control-allow-origin":"*"},text:JSON.stringify(p)}}if(o===s.deleteToken){const f=(S=d.authorization)==null?void 0:S.substr(6);if(!f)throw new Error('[@octokit/oauth-app] "Authorization" header is required');return await e.deleteToken({token:f}),{status:204,headers:{"access-control-allow-origin":"*"}}}const O=(T=d.authorization)==null?void 0:T.substr(6);if(!O)throw new Error('[@octokit/oauth-app] "Authorization" header is required');return await e.deleteAuthorization({token:O}),{status:204,headers:{"access-control-allow-origin":"*"}}}catch(O){return{status:400,headers:{"content-type":"application/json","access-control-allow-origin":"*"},text:JSON.stringify({error:O.message})}}}function z0(e){const{method:t,url:r,headers:n}=e;async function o(){return await new Promise((i,a)=>{let l=[];e.on("error",a).on("data",d=>l.push(d)).on("end",()=>i(Buffer.concat(l).toString()))})}return{method:t,url:r,headers:n,text:o}}function Wh(e,t){t.writeHead(e.status,e.headers),t.end(e.text)}function $0(e,t={}){return async function(r,n,o){const s=await z0(r),i=await Cs(e,t,s);return i?(Wh(i,n),!0):(o==null||o(),!1)}}function M0(e){const t=Object.fromEntries(e.headers.entries());return{method:e.method,url:e.url,headers:t,text:()=>e.text()}}function B0(e){return new Response(e.text,{status:e.status,headers:e.headers})}function q0(e,t={}){return async function(r){const n=await M0(r),o=await Cs(e,t,n);return o?B0(o):void 0}}function W0(e){const{method:t}=e.requestContext.http;let r=e.rawPath;const{stage:n}=e.requestContext;r.startsWith("/"+n)&&(r=r.substring(n.length+1)),e.rawQueryString&&(r+="?"+e.rawQueryString);const o=e.headers;return{method:t,url:r,headers:o,text:async()=>e.body||""}}function H0(e){return{statusCode:e.status,headers:e.headers,body:e.text}}function V0(e,t={}){return async function(r){const n=W0(r),o=await Cs(e,t,n);return o?H0(o):void 0}}var Lr,K0=(Lr=class{static defaults(t){return class extends this{constructor(...n){super({...t,...n[0]})}}}constructor(t){const r=t.Octokit||x0;this.type=t.clientType||"oauth-app";const n=new r({authStrategy:v0.createOAuthAppAuth,auth:{clientType:this.type,clientId:t.clientId,clientSecret:t.clientSecret}}),o={clientType:this.type,clientId:t.clientId,clientSecret:t.clientSecret,defaultScopes:t.defaultScopes||[],allowSignup:t.allowSignup,baseUrl:t.baseUrl,redirectUrl:t.redirectUrl,log:t.log,Octokit:r,octokit:n,eventHandlers:{}};this.on=Bh.bind(null,o),this.octokit=n,this.getUserOctokit=k0.bind(null,o),this.getWebFlowAuthorizationUrl=S0.bind(null,o),this.createToken=P0.bind(null,o),this.checkToken=j0.bind(null,o),this.resetToken=R0.bind(null,o),this.refreshToken=N0.bind(null,o),this.scopeToken=D0.bind(null,o),this.deleteToken=L0.bind(null,o),this.deleteAuthorization=I0.bind(null,o)}},Lr.VERSION=Mh,Lr),Q0="3.2.1",Hh=fh.plugin(_h,yh,vw,bh,wl).defaults({userAgent:`octokit.js/${Q0}`,throttle:{onRateLimit:Y0,onSecondaryRateLimit:X0}});function Y0(e,t,r){if(r.log.warn(`Request quota exhausted for request ${t.method} ${t.url}`),t.request.retryCount===0)return r.log.info(`Retrying after ${e} seconds!`),!0}function X0(e,t,r){if(r.log.warn(`SecondaryRateLimit detected for request ${t.method} ${t.url}`),t.request.retryCount===0)return r.log.info(`Retrying after ${e} seconds!`),!0}y0.OAuthApp.defaults({Octokit:Hh});const J0=new Hh;async function Z0(){const e=["eshanized","iconized","alokified","utkrshift","d3v1l0n","myself-meghna"];return(await Promise.all(e.map(async r=>{try{const{data:n}=await J0.rest.users.getByUsername({username:r});return{login:n.login,name:n.name,avatarUrl:n.avatar_url,bio:n.bio,location:n.location,blog:n.blog,twitterUsername:n.twitter_username,followers:n.followers,following:n.following}}catch(n){return console.error(`Error fetching data for ${r}:`,n),null}}))).filter(r=>r!==null)}function eE(){const[e,t]=j.useState([]),[r,n]=j.useState(!0),[o,s]=j.useState(null);return j.useEffect(()=>{(async()=>{try{const a=await Z0();t(a)}catch(a){s("Failed to load maintainers data"),console.error(a)}finally{n(!1)}})()},[]),r?u.jsx("div",{className:"min-h-screen flex items-center justify-center",children:u.jsx("div",{className:"animate-spin rounded-full h-16 w-16 border-4 border-indigo-500 border-t-transparent"})}):o?u.jsx("div",{className:"min-h-screen flex items-center justify-center",children:u.jsxs("div",{className:"text-center",children:[u.jsx("p",{className:"text-red-500 text-xl",children:o}),u.jsx("p",{className:"text-gray-600 mt-2",children:"Please try again later"})]})}):u.jsx("div",{className:"py-12",children:u.jsxs("div",{className:"container mx-auto px-4",children:[u.jsxs("section",{className:"text-center mb-16",children:[u.jsx("h1",{className:"text-4xl font-bold text-gray-800 mb-6",children:"Meet Our Maintainers"}),u.jsx("p",{className:"text-lg text-gray-600 max-w-3xl mx-auto",children:"These dedicated individuals work tirelessly to make Snigdha OS one of the best Linux distributions available."})]}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:e.map(i=>u.jsx(tE,{maintainer:i},i.login))})]})})}function tE({maintainer:e}){return u.jsxs("div",{className:"bg-white rounded-xl shadow-lg p-6 transition-transform transform hover:scale-105 hover:shadow-xl ease-in-out duration-300",children:[u.jsxs("div",{className:"flex items-center space-x-4 mb-4",children:[u.jsx("img",{src:e.avatarUrl,alt:e.name||e.login,className:"w-24 h-24 rounded-full ring-2 ring-indigo-50"}),u.jsxs("div",{children:[u.jsx("h2",{className:"text-2xl font-semibold text-gray-800",children:e.name||e.login}),u.jsxs("p",{className:"text-sm text-gray-500",children:["@",e.login]})]})]}),e.bio&&u.jsx("p",{className:"text-gray-700 mb-4",children:e.bio}),u.jsxs("div",{className:"space-y-2 mb-4",children:[e.location&&u.jsxs("div",{className:"flex items-center space-x-2 text-gray-600",children:[u.jsx(Dy,{className:"h-5 w-5 text-gray-600"}),u.jsx("span",{children:e.location})]}),u.jsxs("div",{className:"flex items-center space-x-2 text-gray-600",children:[u.jsx(is,{className:"h-5 w-5 text-gray-600"}),u.jsxs("span",{children:[e.followers," followers | ",e.following," following"]})]})]}),u.jsxs("div",{className:"flex space-x-4 mt-4",children:[u.jsx("a",{href:`https://github.com/${e.login}`,target:"_blank",rel:"noopener noreferrer",className:"text-gray-600 hover:text-gray-900 transition-colors duration-200",children:u.jsx(Xp,{className:"h-6 w-6"})}),e.twitterUsername&&u.jsx("a",{href:`https://twitter.com/${e.twitterUsername}`,target:"_blank",rel:"noopener noreferrer",className:"text-blue-500 hover:text-blue-700 transition-colors duration-200",children:u.jsx(My,{className:"h-6 w-6"})}),e.blog&&u.jsx("a",{href:e.blog,target:"_blank",rel:"noopener noreferrer",className:"text-indigo-500 hover:text-indigo-700 transition-colors duration-200",children:u.jsx(Fy,{className:"h-6 w-6"})})]})]})}function rE(){return u.jsx(Sy,{children:u.jsx(Hy,{children:u.jsxs(vy,{children:[u.jsx(yr,{path:"/",element:u.jsx(Vy,{})}),u.jsx(yr,{path:"/about",element:u.jsx(Ky,{})}),u.jsx(yr,{path:"/download",element:u.jsx(Yy,{})}),u.jsx(yr,{path:"/donors",element:u.jsx(cv,{})}),u.jsx(yr,{path:"/maintainers",element:u.jsx(eE,{})})]})})})}Lp(document.getElementById("root")).render(u.jsx(j.StrictMode,{children:u.jsx(rE,{})})); +

Your token is: ${f}. Copy it now as it cannot be shown again.

`}}if(o===s.createToken){const{code:f,redirectUrl:p}=i;if(!f)throw new Error('[@octokit/oauth-app] "code" parameter is required');const m=await e.createToken({code:f,redirectUrl:p});return delete m.authentication.clientSecret,{status:201,headers:{"content-type":"application/json","access-control-allow-origin":"*"},text:JSON.stringify(m)}}if(o===s.getToken){const f=(g=d.authorization)==null?void 0:g.substr(6);if(!f)throw new Error('[@octokit/oauth-app] "Authorization" header is required');const p=await e.checkToken({token:f});return delete p.authentication.clientSecret,{status:200,headers:{"content-type":"application/json","access-control-allow-origin":"*"},text:JSON.stringify(p)}}if(o===s.patchToken){const f=(h=d.authorization)==null?void 0:h.substr(6);if(!f)throw new Error('[@octokit/oauth-app] "Authorization" header is required');const p=await e.resetToken({token:f});return delete p.authentication.clientSecret,{status:200,headers:{"content-type":"application/json","access-control-allow-origin":"*"},text:JSON.stringify(p)}}if(o===s.patchRefreshToken){if(!((y=d.authorization)==null?void 0:y.substr(6)))throw new Error('[@octokit/oauth-app] "Authorization" header is required');const{refreshToken:p}=i;if(!p)throw new Error("[@octokit/oauth-app] refreshToken must be sent in request body");const m=await e.refreshToken({refreshToken:p});return delete m.authentication.clientSecret,{status:200,headers:{"content-type":"application/json","access-control-allow-origin":"*"},text:JSON.stringify(m)}}if(o===s.scopeToken){const f=(x=d.authorization)==null?void 0:x.substr(6);if(!f)throw new Error('[@octokit/oauth-app] "Authorization" header is required');const p=await e.scopeToken({token:f,...i});return delete p.authentication.clientSecret,{status:200,headers:{"content-type":"application/json","access-control-allow-origin":"*"},text:JSON.stringify(p)}}if(o===s.deleteToken){const f=(S=d.authorization)==null?void 0:S.substr(6);if(!f)throw new Error('[@octokit/oauth-app] "Authorization" header is required');return await e.deleteToken({token:f}),{status:204,headers:{"access-control-allow-origin":"*"}}}const O=(T=d.authorization)==null?void 0:T.substr(6);if(!O)throw new Error('[@octokit/oauth-app] "Authorization" header is required');return await e.deleteAuthorization({token:O}),{status:204,headers:{"access-control-allow-origin":"*"}}}catch(O){return{status:400,headers:{"content-type":"application/json","access-control-allow-origin":"*"},text:JSON.stringify({error:O.message})}}}function z0(e){const{method:t,url:r,headers:n}=e;async function o(){return await new Promise((i,a)=>{let l=[];e.on("error",a).on("data",d=>l.push(d)).on("end",()=>i(Buffer.concat(l).toString()))})}return{method:t,url:r,headers:n,text:o}}function Wh(e,t){t.writeHead(e.status,e.headers),t.end(e.text)}function $0(e,t={}){return async function(r,n,o){const s=await z0(r),i=await Cs(e,t,s);return i?(Wh(i,n),!0):(o==null||o(),!1)}}function M0(e){const t=Object.fromEntries(e.headers.entries());return{method:e.method,url:e.url,headers:t,text:()=>e.text()}}function B0(e){return new Response(e.text,{status:e.status,headers:e.headers})}function q0(e,t={}){return async function(r){const n=await M0(r),o=await Cs(e,t,n);return o?B0(o):void 0}}function W0(e){const{method:t}=e.requestContext.http;let r=e.rawPath;const{stage:n}=e.requestContext;r.startsWith("/"+n)&&(r=r.substring(n.length+1)),e.rawQueryString&&(r+="?"+e.rawQueryString);const o=e.headers;return{method:t,url:r,headers:o,text:async()=>e.body||""}}function H0(e){return{statusCode:e.status,headers:e.headers,body:e.text}}function V0(e,t={}){return async function(r){const n=W0(r),o=await Cs(e,t,n);return o?H0(o):void 0}}var Lr,K0=(Lr=class{static defaults(t){return class extends this{constructor(...n){super({...t,...n[0]})}}}constructor(t){const r=t.Octokit||x0;this.type=t.clientType||"oauth-app";const n=new r({authStrategy:v0.createOAuthAppAuth,auth:{clientType:this.type,clientId:t.clientId,clientSecret:t.clientSecret}}),o={clientType:this.type,clientId:t.clientId,clientSecret:t.clientSecret,defaultScopes:t.defaultScopes||[],allowSignup:t.allowSignup,baseUrl:t.baseUrl,redirectUrl:t.redirectUrl,log:t.log,Octokit:r,octokit:n,eventHandlers:{}};this.on=Bh.bind(null,o),this.octokit=n,this.getUserOctokit=k0.bind(null,o),this.getWebFlowAuthorizationUrl=S0.bind(null,o),this.createToken=P0.bind(null,o),this.checkToken=j0.bind(null,o),this.resetToken=R0.bind(null,o),this.refreshToken=N0.bind(null,o),this.scopeToken=D0.bind(null,o),this.deleteToken=L0.bind(null,o),this.deleteAuthorization=I0.bind(null,o)}},Lr.VERSION=Mh,Lr),Q0="3.2.1",Hh=fh.plugin(_h,yh,vw,bh,wl).defaults({userAgent:`octokit.js/${Q0}`,throttle:{onRateLimit:Y0,onSecondaryRateLimit:X0}});function Y0(e,t,r){if(r.log.warn(`Request quota exhausted for request ${t.method} ${t.url}`),t.request.retryCount===0)return r.log.info(`Retrying after ${e} seconds!`),!0}function X0(e,t,r){if(r.log.warn(`SecondaryRateLimit detected for request ${t.method} ${t.url}`),t.request.retryCount===0)return r.log.info(`Retrying after ${e} seconds!`),!0}y0.OAuthApp.defaults({Octokit:Hh});const J0=new Hh;async function Z0(){const e=["eshanized","iconized","alokified","utkrshift","d3v1l0n","myself-meghna"];return(await Promise.all(e.map(async r=>{try{const{data:n}=await J0.rest.users.getByUsername({username:r});return{login:n.login,name:n.name,avatarUrl:n.avatar_url,bio:n.bio,location:n.location,blog:n.blog,twitterUsername:n.twitter_username,followers:n.followers,following:n.following}}catch(n){return console.error(`Error fetching data for ${r}:`,n),null}}))).filter(r=>r!==null)}function eE(){const[e,t]=j.useState([]),[r,n]=j.useState(!0),[o,s]=j.useState(null);return j.useEffect(()=>{(async()=>{try{const a=await Z0();t(a)}catch(a){s("Failed to load maintainers data"),console.error(a)}finally{n(!1)}})()},[]),r?u.jsx("div",{className:"min-h-screen flex items-center justify-center",children:u.jsx("div",{className:"animate-spin rounded-full h-16 w-16 border-4 border-indigo-500 border-t-transparent"})}):o?u.jsx("div",{className:"min-h-screen flex items-center justify-center",children:u.jsxs("div",{className:"text-center",children:[u.jsx("p",{className:"text-red-500 text-xl",children:o}),u.jsx("p",{className:"text-gray-600 mt-2",children:"Please try again later"})]})}):u.jsx("div",{className:"py-12",children:u.jsxs("div",{className:"container mx-auto px-4",children:[u.jsxs("section",{className:"text-center mb-16",children:[u.jsx("h1",{className:"text-4xl font-bold text-gray-800 mb-6",children:"Meet Our Maintainers"}),u.jsx("p",{className:"text-lg text-gray-600 max-w-3xl mx-auto",children:"These dedicated individuals work tirelessly to make Snigdha OS one of the best Linux distributions available."})]}),u.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:e.map(i=>u.jsx(tE,{maintainer:i},i.login))})]})})}function tE({maintainer:e}){return u.jsxs("div",{className:"bg-white rounded-xl shadow-lg p-6 transition-transform transform hover:scale-105 hover:shadow-xl ease-in-out duration-300",children:[u.jsxs("div",{className:"flex items-center space-x-4 mb-4",children:[u.jsx("img",{src:e.avatarUrl,alt:e.name||e.login,className:"w-24 h-24 rounded-full ring-2 ring-indigo-50"}),u.jsxs("div",{children:[u.jsx("h2",{className:"text-2xl font-semibold text-gray-800",children:e.name||e.login}),u.jsxs("p",{className:"text-sm text-gray-500",children:["@",e.login]})]})]}),e.bio&&u.jsx("p",{className:"text-gray-700 mb-4",children:e.bio}),u.jsxs("div",{className:"space-y-2 mb-4",children:[e.location&&u.jsxs("div",{className:"flex items-center space-x-2 text-gray-600",children:[u.jsx(Dy,{className:"h-5 w-5 text-gray-600"}),u.jsx("span",{children:e.location})]}),u.jsxs("div",{className:"flex items-center space-x-2 text-gray-600",children:[u.jsx(is,{className:"h-5 w-5 text-gray-600"}),u.jsxs("span",{children:[e.followers," followers | ",e.following," following"]})]})]}),u.jsxs("div",{className:"flex space-x-4 mt-4",children:[u.jsx("a",{href:`https://github.com/${e.login}`,target:"_blank",rel:"noopener noreferrer",className:"text-gray-600 hover:text-gray-900 transition-colors duration-200",children:u.jsx(Xp,{className:"h-6 w-6"})}),e.twitterUsername&&u.jsx("a",{href:`https://twitter.com/${e.twitterUsername}`,target:"_blank",rel:"noopener noreferrer",className:"text-blue-500 hover:text-blue-700 transition-colors duration-200",children:u.jsx(My,{className:"h-6 w-6"})}),e.blog&&u.jsx("a",{href:e.blog,target:"_blank",rel:"noopener noreferrer",className:"text-indigo-500 hover:text-indigo-700 transition-colors duration-200",children:u.jsx(Fy,{className:"h-6 w-6"})})]})]})}function rE(){return u.jsx(Sy,{basename:"/",children:u.jsx(Hy,{children:u.jsxs(vy,{children:[u.jsx(yr,{path:"/",element:u.jsx(Vy,{})}),u.jsx(yr,{path:"/about",element:u.jsx(Ky,{})}),u.jsx(yr,{path:"/download",element:u.jsx(Yy,{})}),u.jsx(yr,{path:"/donors",element:u.jsx(cv,{})}),u.jsx(yr,{path:"/maintainers",element:u.jsx(eE,{})})]})})})}Lp(document.getElementById("root")).render(u.jsx(j.StrictMode,{children:u.jsx(rE,{})})); diff --git a/index.html b/index.html index f0b5e999..5c403c9f 100644 --- a/index.html +++ b/index.html @@ -104,7 +104,7 @@ }(window.location)) - + diff --git a/sitemap.xml b/sitemap.xml index c5296fe7..346c925e 100644 --- a/sitemap.xml +++ b/sitemap.xml @@ -1 +1 @@ -https://snigdha-os.github.io/4042024-12-23T05:03:41.911Zdaily1.0https://snigdha-os.github.io/2024-12-23T05:03:41.911Zdaily1.0 \ No newline at end of file +https://snigdha-os.github.io/4042024-12-23T05:18:49.441Zdaily1.0https://snigdha-os.github.io/2024-12-23T05:18:49.441Zdaily1.0 \ No newline at end of file