Files
Uptime/client/legacy/rate-limit-exceeded.169f3049.js
2026-05-07 01:43:09 +00:00

2 lines
3.9 KiB
JavaScript

import{S as e,i as t,s as a,r as i,a as s,e as r,m as n,u as o,K as c,f as l,c as d,b as h,d as u,n as m,g as f,h as p,p as E,_ as x,q as v,o as w,O as g,P as L,C as b,Q as T,D as P}from"./client.da3f5377.js";function S(e){let t,a,o,c,x,v,w,g,S,y,k,A=i.i18n.rateLimitExceededGitHubPAT+"",H=i.i18n.rateLimitExceededSaveToken+"";return{c(){t=r("form"),a=r("label"),o=r("span"),c=n(A),x=s(),v=r("input"),w=s(),g=r("button"),S=n(H),this.h()},l(e){t=h(e,"FORM",{});var i=u(t);a=h(i,"LABEL",{class:!0});var s=u(a);o=h(s,"SPAN",{class:!0});var r=u(o);c=m(r,A),r.forEach(l),x=d(s),v=h(s,"INPUT",{type:!0,placeholder:!0,class:!0}),s.forEach(l),w=d(i),g=h(i,"BUTTON",{class:!0,type:!0});var n=u(g);S=m(n,H),n.forEach(l),i.forEach(l),this.h()},h(){f(o,"class","svelte-1x7uoin"),f(v,"type","text"),f(v,"placeholder",i.i18n.rateLimitExceededCopyPastePAT),f(v,"class","svelte-1x7uoin"),f(a,"class","svelte-1x7uoin"),f(g,"class","submit-button svelte-1x7uoin"),f(g,"type","submit")},m(i,s){p(i,t,s),E(t,a),E(a,o),E(o,c),E(a,x),E(a,v),L(v,e[0]),E(t,w),E(t,g),E(g,S),y||(k=[b(v,"input",e[4]),b(t,"submit",T(e[2]))],y=!0)},p(e,t){1&t&&v.value!==e[0]&&L(v,e[0])},d(e){e&&l(t),y=!1,P(k)}}}function y(e){let t,a,o,c,x,w,g,L=i.i18n.rateLimitExceededHasSet+"",T=i.i18n.rateLimitExceededRemoveToken+"";return{c(){t=r("p"),a=n(L),o=s(),c=r("button"),x=n(T),this.h()},l(e){t=h(e,"P",{});var i=u(t);a=m(i,L),i.forEach(l),o=d(e),c=h(e,"BUTTON",{class:!0});var s=u(c);x=m(s,T),s.forEach(l),this.h()},h(){f(c,"class","svelte-1x7uoin")},m(i,s){p(i,t,s),E(t,a),p(i,o,s),p(i,c,s),E(c,x),w||(g=b(c,"click",e[3]),w=!0)},p:v,d(e){e&&l(t),e&&l(o),e&&l(c),w=!1,g()}}}function k(e){let t,a,w,g,L,b,T,P,k,A,H,I,N,O,B,C,F,M,U,D,G,R,_,j,q=i.i18n.rateLimitExceededTitle+"",K=i.i18n.rateLimitExceededIntro+"",Q=i.i18n.rateLimitExceededWhatDoesErrorMean+"",W=i.i18n.rateLimitExceededErrorMeaning+"",z=i.i18n.rateLimitExceededErrorHowCanFix+"",J=i.i18n.rateLimitExceededErrorFix+"",V=i.i18n.rateLimitExceededGeneratePAT+"";function X(e,t){return e[1]?y:S}document.title=t=i.i18n.rateLimitExceededTitle;let Y=X(e),Z=Y(e);return{c(){a=s(),w=r("h1"),g=n(q),L=s(),b=r("p"),T=n(K),P=s(),k=r("h2"),A=n(Q),H=s(),I=r("p"),N=n(W),O=s(),B=r("h2"),C=n(z),F=s(),M=r("p"),U=n(J),D=s(),G=r("a"),R=n(V),_=s(),Z.c(),j=o(),this.h()},l(e){c("svelte-1xny0el",document.head).forEach(l),a=d(e),w=h(e,"H1",{});var t=u(w);g=m(t,q),t.forEach(l),L=d(e),b=h(e,"P",{class:!0});var i=u(b);T=m(i,K),i.forEach(l),P=d(e),k=h(e,"H2",{});var s=u(k);A=m(s,Q),s.forEach(l),H=d(e),I=h(e,"P",{});var r=u(I);N=m(r,W),r.forEach(l),O=d(e),B=h(e,"H2",{});var n=u(B);C=m(n,z),n.forEach(l),F=d(e),M=h(e,"P",{});var f=u(M);U=m(f,J),D=d(f),G=h(f,"A",{href:!0,target:!0});var p=u(G);R=m(p,V),p.forEach(l),f.forEach(l),_=d(e),Z.l(e),j=o(),this.h()},h(){f(b,"class","lead svelte-1x7uoin"),f(G,"href","https://docs.github.com/en/free-pro-team@latest/github/authenticating-to-github/creating-a-personal-access-token"),f(G,"target","_blank")},m(e,t){p(e,a,t),p(e,w,t),E(w,g),p(e,L,t),p(e,b,t),E(b,T),p(e,P,t),p(e,k,t),E(k,A),p(e,H,t),p(e,I,t),E(I,N),p(e,O,t),p(e,B,t),E(B,C),p(e,F,t),p(e,M,t),E(M,U),E(M,D),E(M,G),E(G,R),p(e,_,t),Z.m(e,t),p(e,j,t)},p(e,a){let s=x(a,1)[0];0&s&&t!==(t=i.i18n.rateLimitExceededTitle)&&(document.title=t),Y===(Y=X(e))&&Z?Z.p(e,s):(Z.d(1),Z=Y(e),Z&&(Z.c(),Z.m(j.parentNode,j)))},i:v,o:v,d(e){e&&l(a),e&&l(w),e&&l(L),e&&l(b),e&&l(P),e&&l(k),e&&l(H),e&&l(I),e&&l(O),e&&l(B),e&&l(F),e&&l(M),e&&l(_),Z.d(e),e&&l(j)}}}function A(e,t,a){let s="",r=!1;return w(()=>{"undefined"!=typeof window&&"localStorage"in window&&localStorage.getItem("personal-access-token")&&a(1,r=!0)}),[s,r,()=>{"undefined"!=typeof window&&"localStorage"in window&&window.localStorage.setItem("personal-access-token",s),g(i.path)},()=>{a(0,s=""),a(1,r=!1),"undefined"!=typeof window&&"localStorage"in window&&window.localStorage.removeItem("personal-access-token")},function(){s=this.value,a(0,s)}]}class H extends e{constructor(e){super(),t(this,e,A,k,a,{})}}export{H as default};