From cc9a8bcc0e2fcab9617c4cd4a896a94943f9f3c2 Mon Sep 17 00:00:00 2001 From: abingyyds Date: Sat, 21 Mar 2026 06:01:43 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=86=E7=AB=99=E4=BB=B7=E6=A0=BC?= =?UTF-8?q?=E5=8D=95=E4=BD=8D=E6=94=B9=E4=B8=BA=E6=AF=8F1M=20tokens=20+=20?= =?UTF-8?q?=E7=A7=BB=E9=99=A4=E6=89=80=E6=9C=89SubRouter=E4=B8=BB=E7=AB=99?= =?UTF-8?q?=E6=A0=87=E8=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 价格表单位从 "per 1K tokens" 改为 "per 1M tokens"(价格×1000显示) - 移除 footer "Powered by SubRouter" 字样 - 默认站名从 "SubRouter" 改为 "AI Platform" - HTML title 从 "SubRouter Dist Site" 改为 "AI Platform" - 分站不再包含任何主站品牌标识 Co-Authored-By: Claude Sonnet 4.6 --- dist/assets/CountUp-SCQ6rVWn.js | 1 + dist/assets/Dashboard-Djts405O.js | 1 + dist/assets/Home-D5xeHSSc.js | 1 + dist/assets/Login-BYKZA2hS.js | 1 + dist/assets/Packages-CIW8TdH4.js | 1 + dist/assets/Pricing-GrGWcOkj.js | 1 + dist/assets/Register-BQ7Y75Yc.js | 1 + dist/assets/SpotlightCard-lt5CQbhM.js | 1 + dist/assets/Tokens-DEPVzOT6.js | 1 + dist/assets/index-CDfjgnlx.css | 1 + dist/assets/index-CJw6IpTa.js | 249 ++++++++++++++++++++++++++ dist/index.html | 16 ++ index.html | 2 +- src/components/Layout.jsx | 4 +- src/pages/Pricing.jsx | 10 +- 15 files changed, 283 insertions(+), 8 deletions(-) create mode 100644 dist/assets/CountUp-SCQ6rVWn.js create mode 100644 dist/assets/Dashboard-Djts405O.js create mode 100644 dist/assets/Home-D5xeHSSc.js create mode 100644 dist/assets/Login-BYKZA2hS.js create mode 100644 dist/assets/Packages-CIW8TdH4.js create mode 100644 dist/assets/Pricing-GrGWcOkj.js create mode 100644 dist/assets/Register-BQ7Y75Yc.js create mode 100644 dist/assets/SpotlightCard-lt5CQbhM.js create mode 100644 dist/assets/Tokens-DEPVzOT6.js create mode 100644 dist/assets/index-CDfjgnlx.css create mode 100644 dist/assets/index-CJw6IpTa.js create mode 100644 dist/index.html diff --git a/dist/assets/CountUp-SCQ6rVWn.js b/dist/assets/CountUp-SCQ6rVWn.js new file mode 100644 index 0000000..d044e07 --- /dev/null +++ b/dist/assets/CountUp-SCQ6rVWn.js @@ -0,0 +1 @@ +import{r as S,j as Qt}from"./index-CJw6IpTa.js";const Hs=S.createContext({});function Qe(t){const e=S.useRef(null);return e.current===null&&(e.current=t()),e.current}const Fo=typeof window<"u",_s=Fo?S.useLayoutEffect:S.useEffect,tn=S.createContext(null);function en(t,e){t.indexOf(e)===-1&&t.push(e)}function te(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const Q=(t,e,n)=>n>e?e:n{};const ot={},Xs=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function Ys(t){return typeof t=="object"&&t!==null}const qs=t=>/^0[^.\s]+$/u.test(t);function Zs(t){let e;return()=>(e===void 0&&(e=t()),e)}const z=t=>t,Bo=(t,e)=>n=>e(t(n)),Ot=(...t)=>t.reduce(Bo),Lt=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s};class sn{constructor(){this.subscriptions=[]}add(e){return en(this.subscriptions,e),()=>te(this.subscriptions,e)}notify(e,n,s){const i=this.subscriptions.length;if(i)if(i===1)this.subscriptions[0](e,n,s);else for(let r=0;rt*1e3,G=t=>t/1e3;function Js(t,e){return e?t*(1e3/e):0}const Qs=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,Oo=1e-7,jo=12;function No(t,e,n,s,i){let r,o,a=0;do o=e+(n-e)/2,r=Qs(o,s,i)-t,r>0?n=o:e=o;while(Math.abs(r)>Oo&&++aNo(r,0,1,t,n);return r=>r===0||r===1?r:Qs(i(r),e,s)}const ti=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,ei=t=>e=>1-t(1-e),ni=jt(.33,1.53,.69,.99),on=ei(ni),si=ti(on),ii=t=>t>=1?1:(t*=2)<1?.5*on(t):.5*(2-Math.pow(2,-10*(t-1))),rn=t=>1-Math.sin(Math.acos(t)),oi=ei(rn),ri=ti(rn),Uo=jt(.42,0,1,1),Wo=jt(0,0,.58,1),ai=jt(.42,0,.58,1),Ko=t=>Array.isArray(t)&&typeof t[0]!="number",li=t=>Array.isArray(t)&&typeof t[0]=="number",Go={linear:z,easeIn:Uo,easeInOut:ai,easeOut:Wo,circIn:rn,circInOut:ri,circOut:oi,backIn:on,backInOut:si,backOut:ni,anticipate:ii},zo=t=>typeof t=="string",En=t=>{if(li(t)){nn(t.length===4);const[e,n,s,i]=t;return jt(e,n,s,i)}else if(zo(t))return Go[t];return t},Kt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function $o(t,e){let n=new Set,s=new Set,i=!1,r=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(c){o.has(c)&&(u.schedule(c),t()),c(a)}const u={schedule:(c,h=!1,f=!1)=>{const m=f&&i?n:s;return h&&o.add(c),m.add(c),c},cancel:c=>{s.delete(c),o.delete(c)},process:c=>{if(a=c,i){r=!0;return}i=!0;const h=n;n=s,s=h,n.forEach(l),n.clear(),i=!1,r&&(r=!1,u.process(c))}};return u}const Ho=40;function ci(t,e){let n=!1,s=!0;const i={delta:0,timestamp:0,isProcessing:!1},r=()=>n=!0,o=Kt.reduce((v,T)=>(v[T]=$o(r),v),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:h,preRender:f,render:d,postRender:m}=o,y=()=>{const v=ot.useManualTiming,T=v?i.timestamp:performance.now();n=!1,v||(i.delta=s?1e3/60:Math.max(Math.min(T-i.timestamp,Ho),1)),i.timestamp=T,i.isProcessing=!0,a.process(i),l.process(i),u.process(i),c.process(i),h.process(i),f.process(i),d.process(i),m.process(i),i.isProcessing=!1,n&&e&&(s=!1,t(y))},p=()=>{n=!0,s=!0,i.isProcessing||t(y)};return{schedule:Kt.reduce((v,T)=>{const P=o[T];return v[T]=(M,O=!1,A=!1)=>(n||p(),P.schedule(M,O,A)),v},{}),cancel:v=>{for(let T=0;T(Ht===void 0&&j.set(B.isProcessing||ot.useManualTiming?B.timestamp:performance.now()),Ht),set:t=>{Ht=t,queueMicrotask(_o)}},ui=t=>e=>typeof e=="string"&&e.startsWith(t),hi=ui("--"),Xo=ui("var(--"),an=t=>Xo(t)?Yo.test(t.split("/*")[0].trim()):!1,Yo=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Rn(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const St={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},kt={...St,transform:t=>Q(0,1,t)},Gt={...St,default:1},Ct=t=>Math.round(t*1e5)/1e5,ln=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function qo(t){return t==null}const Zo=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,cn=(t,e)=>n=>!!(typeof n=="string"&&Zo.test(n)&&n.startsWith(t)||e&&!qo(n)&&Object.prototype.hasOwnProperty.call(n,e)),fi=(t,e,n)=>s=>{if(typeof s!="string")return s;const[i,r,o,a]=s.match(ln);return{[t]:parseFloat(i),[e]:parseFloat(r),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Jo=t=>Q(0,255,t),de={...St,transform:t=>Math.round(Jo(t))},ht={test:cn("rgb","red"),parse:fi("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+de.transform(t)+", "+de.transform(e)+", "+de.transform(n)+", "+Ct(kt.transform(s))+")"};function Qo(t){let e="",n="",s="",i="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),i=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),i=t.substring(4,5),e+=e,n+=n,s+=s,i+=i),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:i?parseInt(i,16)/255:1}}const De={test:cn("#"),parse:Qo,transform:ht.transform},Nt=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),nt=Nt("deg"),J=Nt("%"),w=Nt("px"),tr=Nt("vh"),er=Nt("vw"),Ln={...J,parse:t=>J.parse(t)/100,transform:t=>J.transform(t*100)},vt={test:cn("hsl","hue"),parse:fi("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+J.transform(Ct(e))+", "+J.transform(Ct(n))+", "+Ct(kt.transform(s))+")"},R={test:t=>ht.test(t)||De.test(t)||vt.test(t),parse:t=>ht.test(t)?ht.parse(t):vt.test(t)?vt.parse(t):De.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?ht.transform(t):vt.transform(t),getAnimatableNone:t=>{const e=R.parse(t);return e.alpha=0,R.transform(e)}},nr=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function sr(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(ln))==null?void 0:e.length)||0)+(((n=t.match(nr))==null?void 0:n.length)||0)>0}const di="number",mi="color",ir="var",or="var(",kn="${}",rr=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function wt(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},i=[];let r=0;const a=e.replace(rr,l=>(R.test(l)?(s.color.push(r),i.push(mi),n.push(R.parse(l))):l.startsWith(or)?(s.var.push(r),i.push(ir),n.push(l)):(s.number.push(r),i.push(di),n.push(parseFloat(l))),++r,kn)).split(kn);return{values:n,split:a,indexes:s,types:i}}function ar(t){return wt(t).values}function pi({split:t,types:e}){const n=t.length;return s=>{let i="";for(let r=0;rtypeof t=="number"?0:R.test(t)?R.getAnimatableNone(t):t,ur=(t,e)=>typeof t=="number"?e!=null&&e.trim().endsWith("/")?t:0:cr(t);function hr(t){const e=wt(t);return pi(e)(e.values.map((s,i)=>ur(s,e.split[i])))}const _={test:sr,parse:ar,createTransformer:lr,getAnimatableNone:hr};function me(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function fr({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let i=0,r=0,o=0;if(!e)i=r=o=n;else{const a=n<.5?n*(1+e):n+e-n*e,l=2*n-a;i=me(l,a,t+1/3),r=me(l,a,t),o=me(l,a,t-1/3)}return{red:Math.round(i*255),green:Math.round(r*255),blue:Math.round(o*255),alpha:s}}function ee(t,e){return n=>n>0?e:t}const C=(t,e,n)=>t+(e-t)*n,pe=(t,e,n)=>{const s=t*t,i=n*(e*e-s)+s;return i<0?0:Math.sqrt(i)},dr=[De,ht,vt],mr=t=>dr.find(e=>e.test(t));function In(t){const e=mr(t);if(!e)return!1;let n=e.parse(t);return e===vt&&(n=fr(n)),n}const Fn=(t,e)=>{const n=In(t),s=In(e);if(!n||!s)return ee(t,e);const i={...n};return r=>(i.red=pe(n.red,s.red,r),i.green=pe(n.green,s.green,r),i.blue=pe(n.blue,s.blue,r),i.alpha=C(n.alpha,s.alpha,r),ht.transform(i))},Ee=new Set(["none","hidden"]);function pr(t,e){return Ee.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function gr(t,e){return n=>C(t,e,n)}function un(t){return typeof t=="number"?gr:typeof t=="string"?an(t)?ee:R.test(t)?Fn:xr:Array.isArray(t)?gi:typeof t=="object"?R.test(t)?Fn:yr:ee}function gi(t,e){const n=[...t],s=n.length,i=t.map((r,o)=>un(r)(r,e[o]));return r=>{for(let o=0;o{for(const r in s)n[r]=s[r](i);return n}}function vr(t,e){const n=[],s={color:0,var:0,number:0};for(let i=0;i{const n=_.createTransformer(e),s=wt(t),i=wt(e);return s.indexes.var.length===i.indexes.var.length&&s.indexes.color.length===i.indexes.color.length&&s.indexes.number.length>=i.indexes.number.length?Ee.has(t)&&!i.values.length||Ee.has(e)&&!s.values.length?pr(t,e):Ot(gi(vr(s,i),i.values),n):ee(t,e)};function yi(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?C(t,e,n):un(t)(t,e)}const Tr=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>V.update(e,n),stop:()=>tt(e),now:()=>B.isProcessing?B.timestamp:j.now()}},vi=(t,e,n=10)=>{let s="";const i=Math.max(Math.round(e/n),2);for(let r=0;r=ne?1/0:e}function wr(t,e=100,n){const s=n({...t,keyframes:[0,e]}),i=Math.min(hn(s),ne);return{type:"keyframes",ease:r=>s.next(i*r).value/e,duration:G(i)}}const D={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Re(t,e){return t*Math.sqrt(1-e*e)}const Sr=12;function Pr(t,e,n){let s=n;for(let i=1;i{const c=u*o,h=c*t,f=c-n,d=Re(u,o),m=Math.exp(-h);return ge-f/d*m},r=u=>{const h=u*o*t,f=h*n+n,d=Math.pow(o,2)*Math.pow(u,2)*t,m=Math.exp(-h),y=Re(Math.pow(u,2),o);return(-i(u)+ge>0?-1:1)*((f-d)*m)/y}):(i=u=>{const c=Math.exp(-u*t),h=(u-n)*t+1;return-ge+c*h},r=u=>{const c=Math.exp(-u*t),h=(n-u)*(t*t);return c*h});const a=5/t,l=Pr(i,r,a);if(t=W(t),isNaN(l))return{stiffness:D.stiffness,damping:D.damping,duration:t};{const u=Math.pow(l,2)*s;return{stiffness:u,damping:o*2*Math.sqrt(s*u),duration:t}}}const Ar=["duration","bounce"],Vr=["stiffness","damping","mass"];function Bn(t,e){return e.some(n=>t[n]!==void 0)}function Cr(t){let e={velocity:D.velocity,stiffness:D.stiffness,damping:D.damping,mass:D.mass,isResolvedFromDuration:!1,...t};if(!Bn(t,Vr)&&Bn(t,Ar))if(e.velocity=0,t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),i=s*s,r=2*Q(.05,1,1-(t.bounce||0))*Math.sqrt(i);e={...e,mass:D.mass,stiffness:i,damping:r}}else{const n=br({...t,velocity:0});e={...e,...n,mass:D.mass},e.isResolvedFromDuration=!0}return e}function se(t=D.visualDuration,e=D.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:i}=n;const r=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:l,damping:u,mass:c,duration:h,velocity:f,isResolvedFromDuration:d}=Cr({...n,velocity:-G(n.velocity||0)}),m=f||0,y=u/(2*Math.sqrt(l*c)),p=o-r,g=G(Math.sqrt(l/c)),x=Math.abs(p)<5;s||(s=x?D.restSpeed.granular:D.restSpeed.default),i||(i=x?D.restDelta.granular:D.restDelta.default);let v,T,P,M,O,A;if(y<1)P=Re(g,y),M=(m+y*g*p)/P,v=b=>{const E=Math.exp(-y*g*b);return o-E*(M*Math.sin(P*b)+p*Math.cos(P*b))},O=y*g*M+p*P,A=y*g*p-M*P,T=b=>Math.exp(-y*g*b)*(O*Math.sin(P*b)+A*Math.cos(P*b));else if(y===1){v=E=>o-Math.exp(-g*E)*(p+(m+g*p)*E);const b=m+g*p;T=E=>Math.exp(-g*E)*(g*b*E-m)}else{const b=g*Math.sqrt(y*y-1);v=X=>{const et=Math.exp(-y*g*X),Y=Math.min(b*X,300);return o-et*((m+y*g*p)*Math.sinh(Y)+b*p*Math.cosh(Y))/b};const E=(m+y*g*p)/b,U=y*g*E-p*b,at=y*g*p-E*b;T=X=>{const et=Math.exp(-y*g*X),Y=Math.min(b*X,300);return et*(U*Math.sinh(Y)+at*Math.cosh(Y))}}const I={calculatedDuration:d&&h||null,velocity:b=>W(T(b)),next:b=>{if(!d&&y<1){const U=Math.exp(-y*g*b),at=Math.sin(P*b),X=Math.cos(P*b),et=o-U*(M*at+p*X),Y=W(U*(O*at+A*X));return a.done=Math.abs(Y)<=s&&Math.abs(o-et)<=i,a.value=a.done?o:et,a}const E=v(b);if(d)a.done=b>=h;else{const U=W(T(b));a.done=Math.abs(U)<=s&&Math.abs(o-E)<=i}return a.value=a.done?o:E,a},toString:()=>{const b=Math.min(hn(I),ne),E=vi(U=>I.next(b*U).value,b,30);return b+"ms "+E},toTransition:()=>{}};return I}se.applyToOptions=t=>{const e=wr(t,100,se);return t.ease=e.ease,t.duration=W(e.duration),t.type="keyframes",t};const Mr=5;function xi(t,e,n){const s=Math.max(e-Mr,0);return Js(n-t(s),e-s)}function Le({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:i=10,bounceStiffness:r=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const h=t[0],f={done:!1,value:h},d=A=>a!==void 0&&Al,m=A=>a===void 0?l:l===void 0||Math.abs(a-A)-y*Math.exp(-A/s),v=A=>g+x(A),T=A=>{const I=x(A),b=v(A);f.done=Math.abs(I)<=u,f.value=f.done?g:b};let P,M;const O=A=>{d(f.value)&&(P=A,M=se({keyframes:[f.value,m(f.value)],velocity:xi(v,A,f.value),damping:i,stiffness:r,restDelta:u,restSpeed:c}))};return O(0),{calculatedDuration:null,next:A=>{let I=!1;return!M&&P===void 0&&(I=!0,T(A),O(A)),P!==void 0&&A>=P?M.next(A-P):(!I&&T(A),f)}}}function Dr(t,e,n){const s=[],i=n||ot.mix||yi,r=t.length-1;for(let o=0;oe[0];if(r===2&&e[0]===e[1])return()=>e[1];const o=t[0]===t[1];t[0]>t[r-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=Dr(e,s,i),l=a.length,u=c=>{if(o&&c1)for(;hu(Q(t[0],t[r-1],c)):u}function Er(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const i=Lt(0,e,s);t.push(C(n,1,i))}}function Rr(t){const e=[0];return Er(e,t.length-1),e}function Lr(t,e){return t.map(n=>n*e)}function kr(t,e){return t.map(()=>e||ai).splice(0,t.length-1)}function Mt({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const i=Ko(s)?s.map(En):En(s),r={done:!1,value:e[0]},o=Lr(n&&n.length===e.length?n:Rr(e),t),a=Ti(o,e,{ease:Array.isArray(i)?i:kr(e,i)});return{calculatedDuration:t,next:l=>(r.value=a(l),r.done=l>=t,r)}}const Ir=t=>t!==null;function le(t,{repeat:e,repeatType:n="loop"},s,i=1){const r=t.filter(Ir),a=i<0||e&&n!=="loop"&&e%2===1?0:r.length-1;return!a||s===void 0?r[a]:s}const Fr={decay:Le,inertia:Le,tween:Mt,keyframes:Mt,spring:se};function wi(t){typeof t.type=="string"&&(t.type=Fr[t.type])}class fn{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const Br=t=>t/100;class It extends fn{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var s,i;const{motionValue:n}=this.options;n&&n.updatedAt!==j.now()&&this.tick(j.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(i=(s=this.options).onStop)==null||i.call(s))},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;wi(e);const{type:n=Mt,repeat:s=0,repeatDelay:i=0,repeatType:r,velocity:o=0}=e;let{keyframes:a}=e;const l=n||Mt;l!==Mt&&typeof a[0]!="number"&&(this.mixKeyframes=Ot(Br,yi(a[0],a[1])),a=[0,100]);const u=l({...e,keyframes:a});r==="mirror"&&(this.mirroredGenerator=l({...e,keyframes:[...a].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=hn(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(s+1)-i,this.generator=u}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:s,totalDuration:i,mixKeyframes:r,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return s.next(0);const{delay:u=0,keyframes:c,repeat:h,repeatType:f,repeatDelay:d,type:m,onUpdate:y,finalKeyframe:p}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const g=this.currentTime-u*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?g<0:g>i;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=i);let v=this.currentTime,T=s;if(h){const A=Math.min(this.currentTime,i)/a;let I=Math.floor(A),b=A%1;!b&&A>=1&&(b=1),b===1&&I--,I=Math.min(I,h+1),!!(I%2)&&(f==="reverse"?(b=1-b,d&&(b-=d/a)):f==="mirror"&&(T=o)),v=Q(0,1,b)*a}let P;x?(this.delayState.value=c[0],P=this.delayState):P=T.next(v),r&&!x&&(P.value=r(P.value));let{done:M}=P;!x&&l!==null&&(M=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);const O=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&M);return O&&m!==Le&&(P.value=le(c,this.options,p,this.speed)),y&&y(P.value),O&&this.finish(),P}then(e,n){return this.finished.then(e,n)}get duration(){return G(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+G(e)}get time(){return G(this.currentTime)}set time(e){e=W(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=e,this.tick(e))}getGeneratorVelocity(){const e=this.currentTime;if(e<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(e);const n=this.generator.next(e).value;return xi(s=>this.generator.next(s).value,e,n)}get speed(){return this.playbackSpeed}set speed(e){const n=this.playbackSpeed!==e;n&&this.driver&&this.updateTime(j.now()),this.playbackSpeed=e,n&&this.driver&&(this.time=G(this.currentTime))}play(){var i,r;if(this.isStopped)return;const{driver:e=Tr,startTime:n}=this.options;this.driver||(this.driver=e(o=>this.tick(o))),(r=(i=this.options).onPlay)==null||r.call(i);const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(j.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(e=this.options).onComplete)==null||n.call(e)}cancel(){var e,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(e=this.options).onCancel)==null||n.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),e.observe(this)}}function Or(t){for(let e=1;et*180/Math.PI,ke=t=>{const e=ft(Math.atan2(t[1],t[0]));return Ie(e)},jr={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:ke,rotateZ:ke,skewX:t=>ft(Math.atan(t[1])),skewY:t=>ft(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},Ie=t=>(t=t%360,t<0&&(t+=360),t),On=ke,jn=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),Nn=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),Nr={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:jn,scaleY:Nn,scale:t=>(jn(t)+Nn(t))/2,rotateX:t=>Ie(ft(Math.atan2(t[6],t[5]))),rotateY:t=>Ie(ft(Math.atan2(-t[2],t[0]))),rotateZ:On,rotate:On,skewX:t=>ft(Math.atan(t[4])),skewY:t=>ft(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function Fe(t){return t.includes("scale")?1:0}function Be(t,e){if(!t||t==="none")return Fe(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,i;if(n)s=Nr,i=n;else{const a=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=jr,i=a}if(!i)return Fe(e);const r=s[e],o=i[1].split(",").map(Wr);return typeof r=="function"?r(o):o[r]}const Ur=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return Be(n,e)};function Wr(t){return parseFloat(t.trim())}const Pt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],bt=new Set(Pt),Un=t=>t===St||t===w,Kr=new Set(["x","y","z"]),Gr=Pt.filter(t=>!Kr.has(t));function zr(t){const e=[];return Gr.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const it={width:({x:t},{paddingLeft:e="0",paddingRight:n="0",boxSizing:s})=>{const i=t.max-t.min;return s==="border-box"?i:i-parseFloat(e)-parseFloat(n)},height:({y:t},{paddingTop:e="0",paddingBottom:n="0",boxSizing:s})=>{const i=t.max-t.min;return s==="border-box"?i:i-parseFloat(e)-parseFloat(n)},top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>Be(e,"x"),y:(t,{transform:e})=>Be(e,"y")};it.translateX=it.x;it.translateY=it.y;const dt=new Set;let Oe=!1,je=!1,Ne=!1;function Si(){if(je){const t=Array.from(dt).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const i=zr(s);i.length&&(n.set(s,i),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const i=n.get(s);i&&i.forEach(([r,o])=>{var a;(a=s.getValue(r))==null||a.set(o)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}je=!1,Oe=!1,dt.forEach(t=>t.complete(Ne)),dt.clear()}function Pi(){dt.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(je=!0)})}function $r(){Ne=!0,Pi(),Si(),Ne=!1}class dn{constructor(e,n,s,i,r,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=i,this.element=r,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(dt.add(this),Oe||(Oe=!0,V.read(Pi),V.resolveKeyframes(Si))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:i}=this;if(e[0]===null){const r=i==null?void 0:i.get(),o=e[e.length-1];if(r!==void 0)e[0]=r;else if(s&&n){const a=s.readValue(n,o);a!=null&&(e[0]=a)}e[0]===void 0&&(e[0]=o),i&&r===void 0&&i.set(e[0])}Or(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),dt.delete(this)}cancel(){this.state==="scheduled"&&(dt.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Hr=t=>t.startsWith("--");function bi(t,e,n){Hr(e)?t.style.setProperty(e,n):t.style[e]=n}const _r={};function Ai(t,e){const n=Zs(t);return()=>_r[e]??n()}const Xr=Ai(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),Vi=Ai(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Vt=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,Wn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Vt([0,.65,.55,1]),circOut:Vt([.55,0,1,.45]),backIn:Vt([.31,.01,.66,-.59]),backOut:Vt([.33,1.53,.69,.99])};function Ci(t,e){if(t)return typeof t=="function"?Vi()?vi(t,e):"ease-out":li(t)?Vt(t):Array.isArray(t)?t.map(n=>Ci(n,e)||Wn.easeOut):Wn[t]}function Yr(t,e,n,{delay:s=0,duration:i=300,repeat:r=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u=void 0){const c={[e]:n};l&&(c.offset=l);const h=Ci(a,i);Array.isArray(h)&&(c.easing=h);const f={delay:s,duration:i,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:r+1,direction:o==="reverse"?"alternate":"normal"};return u&&(f.pseudoElement=u),t.animate(c,f)}function Mi(t){return typeof t=="function"&&"applyToOptions"in t}function qr({type:t,...e}){return Mi(t)&&Vi()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class Di extends fn{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:n,name:s,keyframes:i,pseudoElement:r,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=e;this.isPseudoElement=!!r,this.allowFlatten=o,this.options=e,nn(typeof e.type!="string");const u=qr(e);this.animation=Yr(n,s,i,u,r),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!r){const c=le(i,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(c),bi(n,s,c),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,n;(n=(e=this.animation).finish)==null||n.call(e)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,s,i;const e=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(e!=null&&e.isConnected)&&((i=(s=this.animation).commitStyles)==null||i.call(s))}get duration(){var n,s;const e=((s=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:s.call(n).duration)||0;return G(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+G(e)}get time(){return G(Number(this.animation.currentTime)||0)}set time(e){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=W(e),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,rangeStart:n,rangeEnd:s,observe:i}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&Xr()?(this.animation.timeline=e,n&&(this.animation.rangeStart=n),s&&(this.animation.rangeEnd=s),z):i(this)}}const Ei={anticipate:ii,backInOut:si,circInOut:ri};function Zr(t){return t in Ei}function Jr(t){typeof t.ease=="string"&&Zr(t.ease)&&(t.ease=Ei[t.ease])}const ye=10;class Qr extends Di{constructor(e){Jr(e),wi(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:s,onComplete:i,element:r,...o}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const a=new It({...o,autoplay:!1}),l=Math.max(ye,j.now()-this.startTime),u=Q(0,ye,l-ye),c=a.sample(l).value,{name:h}=this.options;r&&h&&bi(r,h,c),n.setWithVelocity(a.sample(Math.max(0,l-u)).value,c,u),a.stop()}}const Kn=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(_.test(t)||t==="0")&&!t.startsWith("url("));function ta(t){const e=t[0];if(t.length===1)return!0;for(let n=0;nObject.hasOwnProperty.call(Element.prototype,"animate"));function ra(t){var h;const{motionValue:e,name:n,repeatDelay:s,repeatType:i,damping:r,type:o,keyframes:a}=t;if(!(((h=e==null?void 0:e.owner)==null?void 0:h.current)instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:c}=e.owner.getProps();return oa()&&n&&(Ri.has(n)||ia.has(n)&&sa(a))&&(n!=="transform"||!c)&&!u&&!s&&i!=="mirror"&&r!==0&&o!=="inertia"}const aa=40;class la extends fn{constructor({autoplay:e=!0,delay:n=0,type:s="keyframes",repeat:i=0,repeatDelay:r=0,repeatType:o="loop",keyframes:a,name:l,motionValue:u,element:c,...h}){var m;super(),this.stop=()=>{var y,p;this._animation&&(this._animation.stop(),(y=this.stopTimeline)==null||y.call(this)),(p=this.keyframeResolver)==null||p.cancel()},this.createdAt=j.now();const f={autoplay:e,delay:n,type:s,repeat:i,repeatDelay:r,repeatType:o,name:l,motionValue:u,element:c,...h},d=(c==null?void 0:c.KeyframeResolver)||dn;this.keyframeResolver=new d(a,(y,p,g)=>this.onKeyframesResolved(y,p,f,!g),l,u,c),(m=this.keyframeResolver)==null||m.scheduleResolve()}onKeyframesResolved(e,n,s,i){var g,x;this.keyframeResolver=void 0;const{name:r,type:o,velocity:a,delay:l,isHandoff:u,onUpdate:c}=s;this.resolvedAt=j.now();let h=!0;ea(e,r,o,a)||(h=!1,(ot.instantAnimations||!l)&&(c==null||c(le(e,s,n))),e[0]=e[e.length-1],Ue(s),s.repeat=0);const d={startTime:i?this.resolvedAt?this.resolvedAt-this.createdAt>aa?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},m=h&&!u&&ra(d),y=(x=(g=d.motionValue)==null?void 0:g.owner)==null?void 0:x.current;let p;if(m)try{p=new Qr({...d,element:y})}catch{p=new It(d)}else p=new It(d);p.finished.then(()=>{this.notifyFinished()}).catch(z),this.pendingTimeline&&(this.stopTimeline=p.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||((e=this.keyframeResolver)==null||e.resume(),$r()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}}function Li(t,e,n,s=0,i=1){const r=Array.from(t).sort((u,c)=>u.sortNodePosition(c)).indexOf(e),o=t.size,a=(o-1)*s;return typeof n=="function"?n(r,o):i===1?r*s:a-r*s}const ca=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ua(t){const e=ca.exec(t);if(!e)return[,];const[,n,s,i]=e;return[`--${n??s}`,i]}function ki(t,e,n=1){const[s,i]=ua(t);if(!s)return;const r=window.getComputedStyle(e).getPropertyValue(s);if(r){const o=r.trim();return Xs(o)?parseFloat(o):o}return an(i)?ki(i,e,n+1):i}const ha={type:"spring",stiffness:500,damping:25,restSpeed:10},fa=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),da={type:"keyframes",duration:.8},ma={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},pa=(t,{keyframes:e})=>e.length>2?da:bt.has(t)?t.startsWith("scale")?fa(e[1]):ha:ma;function Ii(t,e){if(t!=null&&t.inherit&&e){const{inherit:n,...s}=t;return{...e,...s}}return t}function mn(t,e){const n=(t==null?void 0:t[e])??(t==null?void 0:t.default)??t;return n!==t?Ii(n,t):n}const ga=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function ya(t){for(const e in t)if(!ga.has(e))return!0;return!1}const pn=(t,e,n,s={},i,r)=>o=>{const a=mn(s,t)||{},l=a.delay||s.delay||0;let{elapsed:u=0}=s;u=u-W(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:f=>{e.set(f),a.onUpdate&&a.onUpdate(f)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:r?void 0:i};ya(a)||Object.assign(c,pa(t,c)),c.duration&&(c.duration=W(c.duration)),c.repeatDelay&&(c.repeatDelay=W(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let h=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(Ue(c),c.delay===0&&(h=!0)),(ot.instantAnimations||ot.skipAnimations||i!=null&&i.shouldSkipAnimations)&&(h=!0,Ue(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,h&&!r&&e.get()!==void 0){const f=le(c.keyframes,a);if(f!==void 0){V.update(()=>{c.onUpdate(f),c.onComplete()});return}}return a.isSync?new It(c):new la(c)};function Gn(t){const e=[{},{}];return t==null||t.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function gn(t,e,n,s){if(typeof e=="function"){const[i,r]=Gn(s);e=e(n!==void 0?n:t.custom,i,r)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[i,r]=Gn(s);e=e(n!==void 0?n:t.custom,i,r)}return e}function mt(t,e,n){const s=t.getProps();return gn(s,e,n!==void 0?n:s.custom,t)}const Fi=new Set(["width","height","top","left","right","bottom",...Pt]),zn=30,va=t=>!isNaN(parseFloat(t)),Dt={current:void 0};class xa{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{var r;const i=j.now();if(this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&((r=this.events.change)==null||r.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=j.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=va(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new sn);const s=this.events[e].add(n);return e==="change"?()=>{s(),V.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;(e=this.events.change)==null||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Dt.current&&Dt.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=j.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>zn)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,zn);return Js(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var e,n;(e=this.dependents)==null||e.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function pt(t,e){return new xa(t,e)}const We=t=>Array.isArray(t);function Ta(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,pt(n))}function wa(t){return We(t)?t[t.length-1]||0:t}function Sa(t,e){const n=mt(t,e);let{transitionEnd:s={},transition:i={},...r}=n||{};r={...r,...s};for(const o in r){const a=wa(r[o]);Ta(t,o,a)}}const k=t=>!!(t&&t.getVelocity);function Pa(t){return!!(k(t)&&t.add)}function Ke(t,e){const n=t.getValue("willChange");if(Pa(n))return n.add(e);if(!n&&ot.WillChange){const s=new ot.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function yn(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const ba="framerAppearId",Bi="data-"+yn(ba);function Oi(t){return t.props[Bi]}function Aa({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function ji(t,e,{delay:n=0,transitionOverride:s,type:i}={}){let{transition:r,transitionEnd:o,...a}=e;const l=t.getDefaultTransition();r=r?Ii(r,l):l;const u=r==null?void 0:r.reduceMotion;s&&(r=s);const c=[],h=i&&t.animationState&&t.animationState.getState()[i];for(const f in a){const d=t.getValue(f,t.latestValues[f]??null),m=a[f];if(m===void 0||h&&Aa(h,f))continue;const y={delay:n,...mn(r||{},f)},p=d.get();if(p!==void 0&&!d.isAnimating()&&!Array.isArray(m)&&m===p&&!y.velocity){V.update(()=>d.set(m));continue}let g=!1;if(window.MotionHandoffAnimation){const T=Oi(t);if(T){const P=window.MotionHandoffAnimation(T,f,V);P!==null&&(y.startTime=P,g=!0)}}Ke(t,f);const x=u??t.shouldReduceMotion;d.start(pn(f,d,m,x&&Fi.has(f)?{type:!1}:y,t,g));const v=d.animation;v&&c.push(v)}if(o){const f=()=>V.update(()=>{o&&Sa(t,o)});c.length?Promise.all(c).then(f):f()}return c}function Ge(t,e,n={}){var l;const s=mt(t,e,n.type==="exit"?(l=t.presenceContext)==null?void 0:l.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(i=n.transitionOverride);const r=s?()=>Promise.all(ji(t,s,n)):()=>Promise.resolve(),o=t.variantChildren&&t.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:h,staggerDirection:f}=i;return Va(t,e,u,c,h,f,n)}:()=>Promise.resolve(),{when:a}=i;if(a){const[u,c]=a==="beforeChildren"?[r,o]:[o,r];return u().then(()=>c())}else return Promise.all([r(),o(n.delay)])}function Va(t,e,n=0,s=0,i=0,r=1,o){const a=[];for(const l of t.variantChildren)l.notify("AnimationStart",e),a.push(Ge(l,e,{...o,delay:n+(typeof s=="function"?0:s)+Li(t.variantChildren,l,s,i,r)}).then(()=>l.notify("AnimationComplete",e)));return Promise.all(a)}function Ca(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const i=e.map(r=>Ge(t,r,n));s=Promise.all(i)}else if(typeof e=="string")s=Ge(t,e,n);else{const i=typeof e=="function"?mt(t,e,n.custom):e;s=Promise.all(ji(t,i,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const Ma={test:t=>t==="auto",parse:t=>t},Ni=t=>e=>e.test(t),Ui=[St,w,J,nt,er,tr,Ma],$n=t=>Ui.find(Ni(t));function Da(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||qs(t):!0}const Ea=new Set(["brightness","contrast","saturate","opacity"]);function Ra(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(ln)||[];if(!s)return t;const i=n.replace(s,"");let r=Ea.has(e)?1:0;return s!==n&&(r*=100),e+"("+r+i+")"}const La=/\b([a-z-]*)\(.*?\)/gu,ze={..._,getAnimatableNone:t=>{const e=t.match(La);return e?e.map(Ra).join(" "):t}},$e={..._,getAnimatableNone:t=>{const e=_.parse(t);return _.createTransformer(t)(e.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},Hn={...St,transform:Math.round},ka={rotate:nt,rotateX:nt,rotateY:nt,rotateZ:nt,scale:Gt,scaleX:Gt,scaleY:Gt,scaleZ:Gt,skew:nt,skewX:nt,skewY:nt,distance:w,translateX:w,translateY:w,translateZ:w,x:w,y:w,z:w,perspective:w,transformPerspective:w,opacity:kt,originX:Ln,originY:Ln,originZ:w},vn={borderWidth:w,borderTopWidth:w,borderRightWidth:w,borderBottomWidth:w,borderLeftWidth:w,borderRadius:w,borderTopLeftRadius:w,borderTopRightRadius:w,borderBottomRightRadius:w,borderBottomLeftRadius:w,width:w,maxWidth:w,height:w,maxHeight:w,top:w,right:w,bottom:w,left:w,inset:w,insetBlock:w,insetBlockStart:w,insetBlockEnd:w,insetInline:w,insetInlineStart:w,insetInlineEnd:w,padding:w,paddingTop:w,paddingRight:w,paddingBottom:w,paddingLeft:w,paddingBlock:w,paddingBlockStart:w,paddingBlockEnd:w,paddingInline:w,paddingInlineStart:w,paddingInlineEnd:w,margin:w,marginTop:w,marginRight:w,marginBottom:w,marginLeft:w,marginBlock:w,marginBlockStart:w,marginBlockEnd:w,marginInline:w,marginInlineStart:w,marginInlineEnd:w,fontSize:w,backgroundPositionX:w,backgroundPositionY:w,...ka,zIndex:Hn,fillOpacity:kt,strokeOpacity:kt,numOctaves:Hn},Ia={...vn,color:R,backgroundColor:R,outlineColor:R,fill:R,stroke:R,borderColor:R,borderTopColor:R,borderRightColor:R,borderBottomColor:R,borderLeftColor:R,filter:ze,WebkitFilter:ze,mask:$e,WebkitMask:$e},Wi=t=>Ia[t],Fa=new Set([ze,$e]);function Ki(t,e){let n=Wi(t);return Fa.has(n)||(n=_),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const Ba=new Set(["auto","none","0"]);function Oa(t,e,n){let s=0,i;for(;s{e.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function xn(t,e,n){if(t==null)return[];if(t instanceof EventTarget)return[t];if(typeof t=="string"){const i=document.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t).filter(s=>s!=null)}const Gi=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function Na(t){return Ys(t)&&"offsetHeight"in t&&!("ownerSVGElement"in t)}const{schedule:Tn}=ci(queueMicrotask,!1),H={x:!1,y:!1};function zi(){return H.x||H.y}function Ua(t){return t==="x"||t==="y"?H[t]?null:(H[t]=!0,()=>{H[t]=!1}):H.x||H.y?null:(H.x=H.y=!0,()=>{H.x=H.y=!1})}function $i(t,e){const n=xn(t),s=new AbortController,i={passive:!0,...e,signal:s.signal};return[n,i,()=>s.abort()]}function Wa(t){return!(t.pointerType==="touch"||zi())}function Ka(t,e,n={}){const[s,i,r]=$i(t,n);return s.forEach(o=>{let a=!1,l=!1,u;const c=()=>{o.removeEventListener("pointerleave",m)},h=p=>{u&&(u(p),u=void 0),c()},f=p=>{a=!1,window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",f),l&&(l=!1,h(p))},d=()=>{a=!0,window.addEventListener("pointerup",f,i),window.addEventListener("pointercancel",f,i)},m=p=>{if(p.pointerType!=="touch"){if(a){l=!0;return}h(p)}},y=p=>{if(!Wa(p))return;l=!1;const g=e(o,p);typeof g=="function"&&(u=g,o.addEventListener("pointerleave",m,i))};o.addEventListener("pointerenter",y,i),o.addEventListener("pointerdown",d,i)}),r}const Hi=(t,e)=>e?t===e?!0:Hi(t,e.parentElement):!1,wn=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,Ga=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function za(t){return Ga.has(t.tagName)||t.isContentEditable===!0}const $a=new Set(["INPUT","SELECT","TEXTAREA"]);function Ha(t){return $a.has(t.tagName)||t.isContentEditable===!0}const _t=new WeakSet;function _n(t){return e=>{e.key==="Enter"&&t(e)}}function ve(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const _a=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=_n(()=>{if(_t.has(n))return;ve(n,"down");const i=_n(()=>{ve(n,"up")}),r=()=>ve(n,"cancel");n.addEventListener("keyup",i,e),n.addEventListener("blur",r,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function Xn(t){return wn(t)&&!zi()}const Yn=new WeakSet;function Xa(t,e,n={}){const[s,i,r]=$i(t,n),o=a=>{const l=a.currentTarget;if(!Xn(a)||Yn.has(a))return;_t.add(l),n.stopPropagation&&Yn.add(a);const u=e(l,a),c=(d,m)=>{window.removeEventListener("pointerup",h),window.removeEventListener("pointercancel",f),_t.has(l)&&_t.delete(l),Xn(d)&&typeof u=="function"&&u(d,{success:m})},h=d=>{c(d,l===window||l===document||n.useGlobalTarget||Hi(l,d.target))},f=d=>{c(d,!1)};window.addEventListener("pointerup",h,i),window.addEventListener("pointercancel",f,i)};return s.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,i),Na(a)&&(a.addEventListener("focus",u=>_a(u,i)),!za(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),r}function Sn(t){return Ys(t)&&"ownerSVGElement"in t}const Xt=new WeakMap;let st;const _i=(t,e,n)=>(s,i)=>i&&i[0]?i[0][t+"Size"]:Sn(s)&&"getBBox"in s?s.getBBox()[e]:s[n],Ya=_i("inline","width","offsetWidth"),qa=_i("block","height","offsetHeight");function Za({target:t,borderBoxSize:e}){var n;(n=Xt.get(t))==null||n.forEach(s=>{s(t,{get width(){return Ya(t,e)},get height(){return qa(t,e)}})})}function Ja(t){t.forEach(Za)}function Qa(){typeof ResizeObserver>"u"||(st=new ResizeObserver(Ja))}function tl(t,e){st||Qa();const n=xn(t);return n.forEach(s=>{let i=Xt.get(s);i||(i=new Set,Xt.set(s,i)),i.add(e),st==null||st.observe(s)}),()=>{n.forEach(s=>{const i=Xt.get(s);i==null||i.delete(e),i!=null&&i.size||st==null||st.unobserve(s)})}}const Yt=new Set;let xt;function el(){xt=()=>{const t={get width(){return window.innerWidth},get height(){return window.innerHeight}};Yt.forEach(e=>e(t))},window.addEventListener("resize",xt)}function nl(t){return Yt.add(t),xt||el(),()=>{Yt.delete(t),!Yt.size&&typeof xt=="function"&&(window.removeEventListener("resize",xt),xt=void 0)}}function qn(t,e){return typeof t=="function"?nl(t):tl(t,e)}function sl(t){return Sn(t)&&t.tagName==="svg"}function il(...t){const e=!Array.isArray(t[0]),n=e?0:-1,s=t[0+n],i=t[1+n],r=t[2+n],o=t[3+n],a=Ti(i,r,o);return e?a(s):a}function ol(t,e,n={}){const s=t.get();let i=null,r=s,o;const a=typeof s=="string"?s.replace(/[\d.-]/g,""):void 0,l=()=>{i&&(i.stop(),i=null),t.animation=void 0},u=()=>{const h=Zn(t.get()),f=Zn(r);if(h===f){l();return}const d=i?i.getGeneratorVelocity():t.getVelocity();l(),i=new It({keyframes:[h,f],velocity:d,type:"spring",restDelta:.001,restSpeed:.01,...n,onUpdate:o})},c=()=>{var h;u(),t.animation=i??void 0,(h=t.events.animationStart)==null||h.notify(),i==null||i.then(()=>{var f;t.animation=void 0,(f=t.events.animationComplete)==null||f.notify()})};if(t.attach((h,f)=>{r=h,o=d=>f(xe(d,a)),V.postRender(c)},l),k(e)){let h=n.skipInitialAnimation===!0;const f=e.on("change",m=>{h?(h=!1,t.jump(xe(m,a),!1)):t.set(xe(m,a))}),d=t.on("destroy",f);return()=>{f(),d()}}return l}function xe(t,e){return e?t+e:t}function Zn(t){return typeof t=="number"?t:parseFloat(t)}const rl=[...Ui,R,_],al=t=>rl.find(Ni(t)),Jn=()=>({translate:0,scale:1,origin:0,originPoint:0}),Tt=()=>({x:Jn(),y:Jn()}),Qn=()=>({min:0,max:0}),L=()=>({x:Qn(),y:Qn()}),ll=new WeakMap;function ce(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function Ft(t){return typeof t=="string"||Array.isArray(t)}const Pn=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],bn=["initial",...Pn];function ue(t){return ce(t.animate)||bn.some(e=>Ft(t[e]))}function Xi(t){return!!(ue(t)||t.variants)}function cl(t,e,n){for(const s in e){const i=e[s],r=n[s];if(k(i))t.addValue(s,i);else if(k(r))t.addValue(s,pt(i,{owner:t}));else if(r!==i)if(t.hasValue(s)){const o=t.getValue(s);o.liveStyle===!0?o.jump(i):o.hasAnimated||o.set(i)}else{const o=t.getStaticValue(s);t.addValue(s,pt(o!==void 0?o:i,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const He={current:null},Yi={current:!1},ul=typeof window<"u";function hl(){if(Yi.current=!0,!!ul)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>He.current=t.matches;t.addEventListener("change",e),e()}else He.current=!1}const ts=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let ie={};function qi(t){ie=t}function fl(){return ie}class dl{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:i,skipAnimations:r,blockInitialAnimation:o,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=dn,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const d=j.now();this.renderScheduledAtthis.bindToMotionValue(r,i)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Yi.current||hl(),this.shouldReduceMotion=He.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(s=this.parent)==null||s.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var e;this.projection&&this.projection.unmount(),tt(this.notifyUpdate),tt(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(e=this.parent)==null||e.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const s=this.features[n];s&&(s.unmount(),s.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),n.accelerate&&Ri.has(e)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:l,ease:u,duration:c}=n.accelerate,h=new Di({element:this.current,name:e,keyframes:a,times:l,ease:u,duration:W(c)}),f=o(h);this.valueSubscriptions.set(e,()=>{f(),h.cancel()});return}const s=bt.has(e);s&&this.onBindTransform&&this.onBindTransform();const i=n.on("change",o=>{this.latestValues[e]=o,this.props.onUpdate&&V.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let r;typeof window<"u"&&window.MotionCheckAppearSync&&(r=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{i(),r&&r(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in ie){const n=ie[e];if(!n)continue;const{isEnabled:s,Feature:i}=n;if(!this.features[e]&&i&&s(this.props)&&(this.features[e]=new i(this)),this.features[e]){const r=this.features[e];r.isMounted?r.update():(r.mount(),r.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):L()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;sn.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=pt(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(Xs(s)||qs(s))?s=parseFloat(s):!al(s)&&_.test(n)&&(s=Ki(e,n)),this.setBaseTarget(e,k(s)?s.get():s)),k(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var r;const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const o=gn(this.props,n,(r=this.presenceContext)==null?void 0:r.custom);o&&(s=o[e])}if(n&&s!==void 0)return s;const i=this.getBaseTargetFromProps(this.props,e);return i!==void 0&&!k(i)?i:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new sn),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){Tn.render(this.render)}}class Zi extends dl{constructor(){super(...arguments),this.KeyframeResolver=ja}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){const s=e.style;return s?s[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;k(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class rt{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Ji({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function ml({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function pl(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function Te(t){return t===void 0||t===1}function _e({scale:t,scaleX:e,scaleY:n}){return!Te(t)||!Te(e)||!Te(n)}function ut(t){return _e(t)||Qi(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function Qi(t){return es(t.x)||es(t.y)}function es(t){return t&&t!=="0%"}function oe(t,e,n){const s=t-n,i=e*s;return n+i}function ns(t,e,n,s,i){return i!==void 0&&(t=oe(t,i,s)),oe(t,n,s)+e}function Xe(t,e=0,n=1,s,i){t.min=ns(t.min,e,n,s,i),t.max=ns(t.max,e,n,s,i)}function to(t,{x:e,y:n}){Xe(t.x,e.translate,e.scale,e.originPoint),Xe(t.y,n.translate,n.scale,n.originPoint)}const ss=.999999999999,is=1.0000000000001;function gl(t,e,n,s=!1){var a;const i=n.length;if(!i)return;e.x=e.y=1;let r,o;for(let l=0;lss&&(e.x=1),e.yss&&(e.y=1)}function Z(t,e){t.min+=e,t.max+=e}function os(t,e,n,s,i=.5){const r=C(t.min,t.max,i);Xe(t,e,n,r,s)}function rs(t,e){return typeof t=="string"?parseFloat(t)/100*(e.max-e.min):t}function qt(t,e,n){const s=n??t;os(t.x,rs(e.x,s.x),e.scaleX,e.scale,e.originX),os(t.y,rs(e.y,s.y),e.scaleY,e.scale,e.originY)}function eo(t,e){return Ji(pl(t.getBoundingClientRect(),e))}function yl(t,e,n){const s=eo(t,n),{scroll:i}=e;return i&&(Z(s.x,i.offset.x),Z(s.y,i.offset.y)),s}const vl={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},xl=Pt.length;function Tl(t,e,n){let s="",i=!0;for(let r=0;r{if(!e.target)return t;if(typeof t=="string")if(w.test(t))t=parseFloat(t);else return t;const n=as(t,e.target.x),s=as(t,e.target.y);return`${n}% ${s}%`}},wl={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,i=_.parse(t);if(i.length>5)return s;const r=_.createTransformer(t),o=typeof i[0]!="number"?1:0,a=n.x.scale*e.x,l=n.y.scale*e.y;i[0+o]/=a,i[1+o]/=l;const u=C(a,l,.5);return typeof i[2+o]=="number"&&(i[2+o]/=u),typeof i[3+o]=="number"&&(i[3+o]/=u),r(i)}},Ye={borderRadius:{...At,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:At,borderTopRightRadius:At,borderBottomLeftRadius:At,borderBottomRightRadius:At,boxShadow:wl};function so(t,{layout:e,layoutId:n}){return bt.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!Ye[t]||t==="opacity")}function Vn(t,e,n){var o;const s=t.style,i=e==null?void 0:e.style,r={};if(!s)return r;for(const a in s)(k(s[a])||i&&k(i[a])||so(a,t)||((o=n==null?void 0:n.getValue(a))==null?void 0:o.liveStyle)!==void 0)&&(r[a]=s[a]);return r}function Sl(t){return window.getComputedStyle(t)}class Pl extends Zi{constructor(){super(...arguments),this.type="html",this.renderInstance=no}readValueFromInstance(e,n){var s;if(bt.has(n))return(s=this.projection)!=null&&s.isProjecting?Fe(n):Ur(e,n);{const i=Sl(e),r=(hi(n)?i.getPropertyValue(n):i[n])||0;return typeof r=="string"?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:n}){return eo(e,n)}build(e,n,s){An(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return Vn(e,n,s)}}const bl={offset:"stroke-dashoffset",array:"stroke-dasharray"},Al={offset:"strokeDashoffset",array:"strokeDasharray"};function Vl(t,e,n=1,s=0,i=!0){t.pathLength=1;const r=i?bl:Al;t[r.offset]=`${-s}`,t[r.array]=`${e} ${n}`}const Cl=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function io(t,{attrX:e,attrY:n,attrScale:s,pathLength:i,pathSpacing:r=1,pathOffset:o=0,...a},l,u,c){if(An(t,a,u),l){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:h,style:f}=t;h.transform&&(f.transform=h.transform,delete h.transform),(f.transform||h.transformOrigin)&&(f.transformOrigin=h.transformOrigin??"50% 50%",delete h.transformOrigin),f.transform&&(f.transformBox=(c==null?void 0:c.transformBox)??"fill-box",delete h.transformBox);for(const d of Cl)h[d]!==void 0&&(f[d]=h[d],delete h[d]);e!==void 0&&(h.x=e),n!==void 0&&(h.y=n),s!==void 0&&(h.scale=s),i!==void 0&&Vl(h,i,r,o,!1)}const oo=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),ro=t=>typeof t=="string"&&t.toLowerCase()==="svg";function Ml(t,e,n,s){no(t,e,void 0,s);for(const i in e.attrs)t.setAttribute(oo.has(i)?i:yn(i),e.attrs[i])}function ao(t,e,n){const s=Vn(t,e,n);for(const i in t)if(k(t[i])||k(e[i])){const r=Pt.indexOf(i)!==-1?"attr"+i.charAt(0).toUpperCase()+i.substring(1):i;s[r]=t[i]}return s}class Dl extends Zi{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=L}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(bt.has(n)){const s=Wi(n);return s&&s.default||0}return n=oo.has(n)?n:yn(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return ao(e,n,s)}build(e,n,s){io(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,i){Ml(e,n,s,i)}mount(e){this.isSVGTag=ro(e.tagName),super.mount(e)}}const El=bn.length;function lo(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?lo(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;nPromise.all(e.map(({animation:n,options:s})=>Ca(t,n,s)))}function Il(t){let e=kl(t),n=ls(),s=!0,i=!1;const r=u=>(c,h)=>{var d;const f=mt(t,h,u==="exit"?(d=t.presenceContext)==null?void 0:d.custom:void 0);if(f){const{transition:m,transitionEnd:y,...p}=f;c={...c,...p,...y}}return c};function o(u){e=u(t)}function a(u){const{props:c}=t,h=lo(t.parent)||{},f=[],d=new Set;let m={},y=1/0;for(let g=0;gy&&P,b=!1;const E=Array.isArray(T)?T:[T];let U=E.reduce(r(x),{});M===!1&&(U={});const{prevResolvedValues:at={}}=v,X={...at,...U},et=F=>{I=!0,d.has(F)&&(b=!0,d.delete(F)),v.needsAnimating[F]=!0;const K=t.getValue(F);K&&(K.liveStyle=!1)};for(const F in X){const K=U[F],lt=at[F];if(m.hasOwnProperty(F))continue;let gt=!1;We(K)&&We(lt)?gt=!co(K,lt):gt=K!==lt,gt?K!=null?et(F):d.add(F):K!==void 0&&d.has(F)?et(F):v.protectedKeys[F]=!0}v.prevProp=T,v.prevResolvedValues=U,v.isActive&&(m={...m,...U}),(s||i)&&t.blockInitialAnimation&&(I=!1);const Y=O&&A;I&&(!Y||b)&&f.push(...E.map(F=>{const K={type:x};if(typeof F=="string"&&(s||i)&&!Y&&t.manuallyAnimateOnMount&&t.parent){const{parent:lt}=t,gt=mt(lt,F);if(lt.enteringChildren&>){const{delayChildren:Io}=gt.transition||{};K.delay=Li(lt.enteringChildren,t,Io)}}return{animation:F,options:K}}))}if(d.size){const g={};if(typeof c.initial!="boolean"){const x=mt(t,Array.isArray(c.initial)?c.initial[0]:c.initial);x&&x.transition&&(g.transition=x.transition)}d.forEach(x=>{const v=t.getBaseTarget(x),T=t.getValue(x);T&&(T.liveStyle=!0),g[x]=v??null}),f.push({animation:g})}let p=!!f.length;return s&&(c.initial===!1||c.initial===c.animate)&&!t.manuallyAnimateOnMount&&(p=!1),s=!1,i=!1,p?e(f):Promise.resolve()}function l(u,c){var f;if(n[u].isActive===c)return Promise.resolve();(f=t.variantChildren)==null||f.forEach(d=>{var m;return(m=d.animationState)==null?void 0:m.setActive(u,c)}),n[u].isActive=c;const h=a(u);for(const d in n)n[d].protectedKeys={};return h}return{animateChanges:a,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=ls(),i=!0}}}function Fl(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!co(e,t):!1}function ct(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function ls(){return{animate:ct(!0),whileInView:ct(),whileHover:ct(),whileTap:ct(),whileDrag:ct(),whileFocus:ct(),exit:ct()}}function qe(t,e){t.min=e.min,t.max=e.max}function $(t,e){qe(t.x,e.x),qe(t.y,e.y)}function cs(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}const uo=1e-4,Bl=1-uo,Ol=1+uo,ho=.01,jl=0-ho,Nl=0+ho;function N(t){return t.max-t.min}function Ul(t,e,n){return Math.abs(t-e)<=n}function us(t,e,n,s=.5){t.origin=s,t.originPoint=C(e.min,e.max,t.origin),t.scale=N(n)/N(e),t.translate=C(n.min,n.max,t.origin)-t.originPoint,(t.scale>=Bl&&t.scale<=Ol||isNaN(t.scale))&&(t.scale=1),(t.translate>=jl&&t.translate<=Nl||isNaN(t.translate))&&(t.translate=0)}function Et(t,e,n,s){us(t.x,e.x,n.x,s?s.originX:void 0),us(t.y,e.y,n.y,s?s.originY:void 0)}function hs(t,e,n,s=0){const i=s?C(n.min,n.max,s):n.min;t.min=i+e.min,t.max=t.min+N(e)}function Wl(t,e,n,s){hs(t.x,e.x,n.x,s==null?void 0:s.x),hs(t.y,e.y,n.y,s==null?void 0:s.y)}function fs(t,e,n,s=0){const i=s?C(n.min,n.max,s):n.min;t.min=e.min-i,t.max=t.min+N(e)}function re(t,e,n,s){fs(t.x,e.x,n.x,s==null?void 0:s.x),fs(t.y,e.y,n.y,s==null?void 0:s.y)}function ds(t,e,n,s,i){return t-=e,t=oe(t,1/n,s),i!==void 0&&(t=oe(t,1/i,s)),t}function Kl(t,e=0,n=1,s=.5,i,r=t,o=t){if(J.test(e)&&(e=parseFloat(e),e=C(o.min,o.max,e/100)-o.min),typeof e!="number")return;let a=C(r.min,r.max,s);t===r&&(a-=e),t.min=ds(t.min,e,n,a,i),t.max=ds(t.max,e,n,a,i)}function ms(t,e,[n,s,i],r,o){Kl(t,e[n],e[s],e[i],e.scale,r,o)}const Gl=["x","scaleX","originX"],zl=["y","scaleY","originY"];function ps(t,e,n,s){ms(t.x,e,Gl,n?n.x:void 0,s?s.x:void 0),ms(t.y,e,zl,n?n.y:void 0,s?s.y:void 0)}function gs(t){return t.translate===0&&t.scale===1}function fo(t){return gs(t.x)&&gs(t.y)}function ys(t,e){return t.min===e.min&&t.max===e.max}function $l(t,e){return ys(t.x,e.x)&&ys(t.y,e.y)}function vs(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function mo(t,e){return vs(t.x,e.x)&&vs(t.y,e.y)}function xs(t){return N(t.x)/N(t.y)}function Ts(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function q(t){return[t("x"),t("y")]}function Hl(t,e,n){let s="";const i=t.x.translate/e.x,r=t.y.translate/e.y,o=(n==null?void 0:n.z)||0;if((i||r||o)&&(s=`translate3d(${i}px, ${r}px, ${o}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:h,rotateY:f,skewX:d,skewY:m}=n;u&&(s=`perspective(${u}px) ${s}`),c&&(s+=`rotate(${c}deg) `),h&&(s+=`rotateX(${h}deg) `),f&&(s+=`rotateY(${f}deg) `),d&&(s+=`skewX(${d}deg) `),m&&(s+=`skewY(${m}deg) `)}const a=t.x.scale*e.x,l=t.y.scale*e.y;return(a!==1||l!==1)&&(s+=`scale(${a}, ${l})`),s||"none"}const po=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],_l=po.length,ws=t=>typeof t=="string"?parseFloat(t):t,Ss=t=>typeof t=="number"||w.test(t);function Xl(t,e,n,s,i,r){i?(t.opacity=C(0,n.opacity??1,Yl(s)),t.opacityExit=C(e.opacity??1,0,ql(s))):r&&(t.opacity=C(e.opacity??1,n.opacity??1,s));for(let o=0;o<_l;o++){const a=po[o];let l=Ps(e,a),u=Ps(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||Ss(l)===Ss(u)?(t[a]=Math.max(C(ws(l),ws(u),s),0),(J.test(u)||J.test(l))&&(t[a]+="%")):t[a]=u}(e.rotate||n.rotate)&&(t.rotate=C(e.rotate||0,n.rotate||0,s))}function Ps(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const Yl=go(0,.5,oi),ql=go(.5,.95,z);function go(t,e,n){return s=>se?1:n(Lt(t,e,s))}function Zl(t,e,n){const s=k(t)?t:pt(t);return s.start(pn("",s,e,n)),s.animation}function Bt(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}const Jl=(t,e)=>t.depth-e.depth;class Ql{constructor(){this.children=[],this.isDirty=!1}add(e){en(this.children,e),this.isDirty=!0}remove(e){te(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Jl),this.isDirty=!1,this.children.forEach(e)}}function tc(t,e){const n=j.now(),s=({timestamp:i})=>{const r=i-n;r>=e&&(tt(s),t(r-e))};return V.setup(s,!0),()=>tt(s)}function Zt(t){return k(t)?t.get():t}class ec{constructor(){this.members=[]}add(e){en(this.members,e);for(let n=this.members.length-1;n>=0;n--){const s=this.members[n];if(s===e||s===this.lead||s===this.prevLead)continue;const i=s.instance;(!i||i.isConnected===!1)&&!s.snapshot&&(te(this.members,s),s.unmount())}e.scheduleRender()}remove(e){if(te(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){var n;for(let s=this.members.indexOf(e)-1;s>=0;s--){const i=this.members[s];if(i.isPresent!==!1&&((n=i.instance)==null?void 0:n.isConnected)!==!1)return this.promote(i),!0}return!1}promote(e,n){var i;const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.updateSnapshot(),e.scheduleRender();const{layoutDependency:r}=s.options,{layoutDependency:o}=e.options;(r===void 0||r!==o)&&(e.resumeFrom=s,n&&(s.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),(i=e.root)!=null&&i.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{var n,s,i,r,o;(s=(n=e.options).onExitComplete)==null||s.call(n),(o=(i=e.resumingFrom)==null?void 0:(r=i.options).onExitComplete)==null||o.call(r)})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){var e;(e=this.lead)!=null&&e.snapshot&&(this.lead.snapshot=void 0)}}const Jt={hasAnimatedSinceResize:!0,hasEverUpdated:!1},we=["","X","Y","Z"],nc=1e3;let sc=0;function Se(t,e,n,s){const{latestValues:i}=e;i[t]&&(n[t]=i[t],e.setStaticValue(t,0),s&&(s[t]=0))}function yo(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=Oi(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:i,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",V,!(i||r))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&yo(s)}function vo({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:i}){return class{constructor(o={},a=e==null?void 0:e()){this.id=sc++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(rc),this.nodes.forEach(fc),this.nodes.forEach(dc),this.nodes.forEach(ac)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;lthis.root.updateBlockedByResize=!1;V.read(()=>{h=window.innerWidth}),t(o,()=>{const d=window.innerWidth;d!==h&&(h=d,this.root.updateBlockedByResize=!0,c&&c(),c=tc(f,250),Jt.hasAnimatedSinceResize&&(Jt.hasAnimatedSinceResize=!1,this.nodes.forEach(Vs)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:h,hasRelativeLayoutChanged:f,layout:d})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const m=this.options.transition||u.getDefaultTransition()||vc,{onLayoutAnimationStart:y,onLayoutAnimationComplete:p}=u.getProps(),g=!this.targetLayout||!mo(this.targetLayout,d),x=!h&&f;if(this.options.layoutRoot||this.resumeFrom||x||h&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const v={...mn(m,"layout"),onPlay:y,onComplete:p};(u.shouldReduceMotion||this.options.layoutRoot)&&(v.delay=0,v.type=!1),this.startAnimation(v),this.setAnimationOrigin(c,x)}else h||Vs(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=d})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),tt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(mc),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&yo(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!N(this.snapshot.measuredBox.x)&&!N(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l{const P=T/1e3;Cs(h.x,o.x,P),Cs(h.y,o.y,P),this.setTargetDelta(h),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(re(f,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),gc(this.relativeTarget,this.relativeTargetOrigin,f,P),v&&$l(this.relativeTarget,v)&&(this.isProjectionDirty=!1),v||(v=L()),$(v,this.relativeTarget)),y&&(this.animationValues=c,Xl(c,u,this.latestValues,P,x,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=P},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,l,u;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(u=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||u.stop(),this.pendingAnimation&&(tt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=V.update(()=>{Jt.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=pt(0)),this.motionValue.jump(0,!1),this.currentAnimation=Zl(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),o.onUpdate&&o.onUpdate(c)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(nc),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&xo(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||L();const h=N(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+h;const f=N(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+f}$(a,l),qt(a,c),Et(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new ec),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var a;const{layoutId:o}=this.options;return o?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:o}=this.options;return o?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&Se("z",o,u,this.animationValues);for(let c=0;c{var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(bs),this.root.sharedNodes.clear()}}}function ic(t){t.updateLayout()}function oc(t){var n;const e=((n=t.resumeFrom)==null?void 0:n.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:i}=t.layout,{animationType:r}=t.options,o=e.source!==t.layout.source;if(r==="size")q(h=>{const f=o?e.measuredBox[h]:e.layoutBox[h],d=N(f);f.min=s[h].min,f.max=f.min+d});else if(r==="x"||r==="y"){const h=r==="x"?"y":"x";qe(o?e.measuredBox[h]:e.layoutBox[h],s[h])}else xo(r,e.layoutBox,s)&&q(h=>{const f=o?e.measuredBox[h]:e.layoutBox[h],d=N(s[h]);f.max=f.min+d,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[h].max=t.relativeTarget[h].min+d)});const a=Tt();Et(a,s,e.layoutBox);const l=Tt();o?Et(l,t.applyTransform(i,!0),e.measuredBox):Et(l,s,e.layoutBox);const u=!fo(a);let c=!1;if(!t.resumeFrom){const h=t.getClosestProjectingParent();if(h&&!h.resumeFrom){const{snapshot:f,layout:d}=h;if(f&&d){const m=t.options.layoutAnchor||void 0,y=L();re(y,e.layoutBox,f.layoutBox,m);const p=L();re(p,s,d.layoutBox,m),mo(y,p)||(c=!0),h.options.layoutRoot&&(t.relativeTarget=p,t.relativeTargetOrigin=y,t.relativeParent=h)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:e,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function rc(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ac(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function lc(t){t.clearSnapshot()}function bs(t){t.clearMeasurements()}function cc(t){t.isLayoutDirty=!0,t.updateLayout()}function As(t){t.isLayoutDirty=!1}function uc(t){t.isAnimationBlocked&&t.layout&&!t.isLayoutDirty&&(t.snapshot=t.layout,t.isLayoutDirty=!0)}function hc(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function Vs(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function fc(t){t.resolveTargetDelta()}function dc(t){t.calcProjection()}function mc(t){t.resetSkewAndRotation()}function pc(t){t.removeLeadSnapshot()}function Cs(t,e,n){t.translate=C(e.translate,0,n),t.scale=C(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function Ms(t,e,n,s){t.min=C(e.min,n.min,s),t.max=C(e.max,n.max,s)}function gc(t,e,n,s){Ms(t.x,e.x,n.x,s),Ms(t.y,e.y,n.y,s)}function yc(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const vc={duration:.45,ease:[.4,0,.1,1]},Ds=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),Es=Ds("applewebkit/")&&!Ds("chrome/")?Math.round:z;function Rs(t){t.min=Es(t.min),t.max=Es(t.max)}function xc(t){Rs(t.x),Rs(t.y)}function xo(t,e,n){return t==="position"||t==="preserve-aspect"&&!Ul(xs(e),xs(n),.2)}function Tc(t){var e;return t!==t.root&&((e=t.scroll)==null?void 0:e.wasRoot)}const wc=vo({attachResizeListener:(t,e)=>Bt(t,"resize",e),measureScroll:()=>{var t,e;return{x:document.documentElement.scrollLeft||((t=document.body)==null?void 0:t.scrollLeft)||0,y:document.documentElement.scrollTop||((e=document.body)==null?void 0:e.scrollTop)||0}},checkIsScrollRoot:()=>!0}),Pe={current:void 0},To=vo({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Pe.current){const t=new wc({});t.mount(window),t.setOptions({layoutScroll:!0}),Pe.current=t}return Pe.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Ut=S.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function Sc(t=!0){const e=S.useContext(tn);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:i}=e,r=S.useId();S.useEffect(()=>{if(t)return i(r)},[t]);const o=S.useCallback(()=>t&&s&&s(r),[r,s,t]);return!n&&s?[!1,o]:[!0]}const wo=S.createContext({strict:!1}),Ls={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let ks=!1;function Pc(){if(ks)return;const t={};for(const e in Ls)t[e]={isEnabled:n=>Ls[e].some(s=>!!n[s])};qi(t),ks=!0}function So(){return Pc(),fl()}function bc(t){const e=So();for(const n in t)e[n]={...e[n],...t[n]};qi(e)}const Ac=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","propagate","ignoreStrict","viewport"]);function ae(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||Ac.has(t)}let Po=t=>!ae(t);function Vc(t){typeof t=="function"&&(Po=e=>e.startsWith("on")?!ae(e):t(e))}try{Vc(require("@emotion/is-prop-valid").default)}catch{}function Cc(t,e,n){const s={};for(const i in t)i==="values"&&typeof t.values=="object"||k(t[i])||(Po(i)||n===!0&&ae(i)||!e&&!ae(i)||t.draggable&&i.startsWith("onDrag"))&&(s[i]=t[i]);return s}const he=S.createContext({});function Mc(t,e){if(ue(t)){const{initial:n,animate:s}=t;return{initial:n===!1||Ft(n)?n:void 0,animate:Ft(s)?s:void 0}}return t.inherit!==!1?e:{}}function Dc(t){const{initial:e,animate:n}=Mc(t,S.useContext(he));return S.useMemo(()=>({initial:e,animate:n}),[Is(e),Is(n)])}function Is(t){return Array.isArray(t)?t.join(" "):t}const Cn=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function bo(t,e,n){for(const s in e)!k(e[s])&&!so(s,n)&&(t[s]=e[s])}function Ec({transformTemplate:t},e){return S.useMemo(()=>{const n=Cn();return An(n,e,t),Object.assign({},n.vars,n.style)},[e])}function Rc(t,e){const n=t.style||{},s={};return bo(s,n,t),Object.assign(s,Ec(t,e)),s}function Lc(t,e){const n={},s=Rc(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const Ao=()=>({...Cn(),attrs:{}});function kc(t,e,n,s){const i=S.useMemo(()=>{const r=Ao();return io(r,e,ro(s),t.transformTemplate,t.style),{...r.attrs,style:{...r.style}}},[e]);if(t.style){const r={};bo(r,t.style,t),i.style={...r,...i.style}}return i}const Ic=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Mn(t){return typeof t!="string"||t.includes("-")?!1:!!(Ic.indexOf(t)>-1||/[A-Z]/u.test(t))}function Fc(t,e,n,{latestValues:s},i,r=!1,o){const l=(o??Mn(t)?kc:Lc)(e,s,i,t),u=Cc(e,typeof t=="string",r),c=t!==S.Fragment?{...u,...l,ref:n}:{},{children:h}=e,f=S.useMemo(()=>k(h)?h.get():h,[h]);return S.createElement(t,{...c,children:f})}function Bc({scrapeMotionValuesFromProps:t,createRenderState:e},n,s,i){return{latestValues:Oc(n,s,i,t),renderState:e()}}function Oc(t,e,n,s){const i={},r=s(t,{});for(const f in r)i[f]=Zt(r[f]);let{initial:o,animate:a}=t;const l=ue(t),u=Xi(t);e&&u&&!l&&t.inherit!==!1&&(o===void 0&&(o=e.initial),a===void 0&&(a=e.animate));let c=n?n.initial===!1:!1;c=c||o===!1;const h=c?a:o;if(h&&typeof h!="boolean"&&!ce(h)){const f=Array.isArray(h)?h:[h];for(let d=0;d(e,n)=>{const s=S.useContext(he),i=S.useContext(tn),r=()=>Bc(t,e,s,i);return n?r():Qe(r)},jc=Vo({scrapeMotionValuesFromProps:Vn,createRenderState:Cn}),Nc=Vo({scrapeMotionValuesFromProps:ao,createRenderState:Ao}),Uc=Symbol.for("motionComponentSymbol");function Wc(t,e,n){const s=S.useRef(n);S.useInsertionEffect(()=>{s.current=n});const i=S.useRef(null);return S.useCallback(r=>{var a;r&&((a=t.onMount)==null||a.call(t,r));const o=s.current;if(typeof o=="function")if(r){const l=o(r);typeof l=="function"&&(i.current=l)}else i.current?(i.current(),i.current=null):o(r);else o&&(o.current=r);e&&(r?e.mount(r):e.unmount())},[e])}const Co=S.createContext({});function yt(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function Kc(t,e,n,s,i,r){var v,T;const{visualElement:o}=S.useContext(he),a=S.useContext(wo),l=S.useContext(tn),u=S.useContext(Ut),c=u.reducedMotion,h=u.skipAnimations,f=S.useRef(null),d=S.useRef(!1);s=s||a.renderer,!f.current&&s&&(f.current=s(t,{visualState:e,parent:o,props:n,presenceContext:l,blockInitialAnimation:l?l.initial===!1:!1,reducedMotionConfig:c,skipAnimations:h,isSVG:r}),d.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));const m=f.current,y=S.useContext(Co);m&&!m.projection&&i&&(m.type==="html"||m.type==="svg")&&Gc(f.current,n,i,y);const p=S.useRef(!1);S.useInsertionEffect(()=>{m&&p.current&&m.update(n,l)});const g=n[Bi],x=S.useRef(!!g&&typeof window<"u"&&!((v=window.MotionHandoffIsComplete)!=null&&v.call(window,g))&&((T=window.MotionHasOptimisedAnimation)==null?void 0:T.call(window,g)));return _s(()=>{d.current=!0,m&&(p.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),x.current&&m.animationState&&m.animationState.animateChanges())}),S.useEffect(()=>{m&&(!x.current&&m.animationState&&m.animationState.animateChanges(),x.current&&(queueMicrotask(()=>{var P;(P=window.MotionHandoffMarkAsComplete)==null||P.call(window,g)}),x.current=!1),m.enteringChildren=void 0)}),m}function Gc(t,e,n,s){const{layoutId:i,layout:r,drag:o,dragConstraints:a,layoutScroll:l,layoutRoot:u,layoutAnchor:c,layoutCrossfade:h}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Mo(t.parent)),t.projection.setOptions({layoutId:i,layout:r,alwaysMeasureLayout:!!o||a&&yt(a),visualElement:t,animationType:typeof r=="string"?r:"both",initialPromotionConfig:s,crossfade:h,layoutScroll:l,layoutRoot:u,layoutAnchor:c})}function Mo(t){if(t)return t.options.allowProjection!==!1?t.projection:Mo(t.parent)}function be(t,{forwardMotionProps:e=!1,type:n}={},s,i){s&&bc(s);const r=n?n==="svg":Mn(t),o=r?Nc:jc;function a(u,c){let h;const f={...S.useContext(Ut),...u,layoutId:zc(u)},{isStatic:d}=f,m=Dc(u),y=o(u,d);if(!d&&typeof window<"u"){$c();const p=Hc(f);h=p.MeasureLayout,m.visualElement=Kc(t,y,f,i,p.ProjectionNode,r)}return Qt.jsxs(he.Provider,{value:m,children:[h&&m.visualElement?Qt.jsx(h,{visualElement:m.visualElement,...f}):null,Fc(t,u,Wc(y,m.visualElement,c),y,d,e,r)]})}a.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const l=S.forwardRef(a);return l[Uc]=t,l}function zc({layoutId:t}){const e=S.useContext(Hs).id;return e&&t!==void 0?e+"-"+t:t}function $c(t,e){S.useContext(wo).strict}function Hc(t){const e=So(),{drag:n,layout:s}=e;if(!n&&!s)return{};const i={...n,...s};return{MeasureLayout:n!=null&&n.isEnabled(t)||s!=null&&s.isEnabled(t)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}function _c(t,e){if(typeof Proxy>"u")return be;const n=new Map,s=(r,o)=>be(r,o,t,e),i=(r,o)=>s(r,o);return new Proxy(i,{get:(r,o)=>o==="create"?s:(n.has(o)||n.set(o,be(o,void 0,t,e)),n.get(o))})}const Xc=(t,e)=>e.isSVG??Mn(t)?new Dl(e):new Pl(e,{allowProjection:t!==S.Fragment});class Yc extends rt{constructor(e){super(e),e.animationState||(e.animationState=Il(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();ce(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}}let qc=0;class Zc extends rt{constructor(){super(...arguments),this.id=qc++,this.isExitComplete=!1}update(){var r;if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;if(e&&s===!1){if(this.isExitComplete){const{initial:o,custom:a}=this.node.getProps();if(typeof o=="string"){const l=mt(this.node,o,a);if(l){const{transition:u,transitionEnd:c,...h}=l;for(const f in h)(r=this.node.getValue(f))==null||r.jump(h[f])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const i=this.node.animationState.setActive("exit",!e);n&&!e&&i.then(()=>{this.isExitComplete=!0,n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const Jc={animation:{Feature:Yc},exit:{Feature:Zc}};function Wt(t){return{point:{x:t.pageX,y:t.pageY}}}const Qc=t=>e=>wn(e)&&t(e,Wt(e));function Rt(t,e,n,s){return Bt(t,e,Qc(n),s)}const Do=({current:t})=>t?t.ownerDocument.defaultView:null,Fs=(t,e)=>Math.abs(t-e);function tu(t,e){const n=Fs(t.x,e.x),s=Fs(t.y,e.y);return Math.sqrt(n**2+s**2)}const Bs=new Set(["auto","scroll"]);class Eo{constructor(e,n,{transformPagePoint:s,contextWindow:i=window,dragSnapToOrigin:r=!1,distanceThreshold:o=3,element:a}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=d=>{this.handleScroll(d.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=zt(this.lastRawMoveEventInfo,this.transformPagePoint));const d=Ae(this.lastMoveEventInfo,this.history),m=this.startEvent!==null,y=tu(d.offset,{x:0,y:0})>=this.distanceThreshold;if(!m&&!y)return;const{point:p}=d,{timestamp:g}=B;this.history.push({...p,timestamp:g});const{onStart:x,onMove:v}=this.handlers;m||(x&&x(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),v&&v(this.lastMoveEvent,d)},this.handlePointerMove=(d,m)=>{this.lastMoveEvent=d,this.lastRawMoveEventInfo=m,this.lastMoveEventInfo=zt(m,this.transformPagePoint),V.update(this.updatePoint,!0)},this.handlePointerUp=(d,m)=>{this.end();const{onEnd:y,onSessionEnd:p,resumeAnimation:g}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&g&&g(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const x=Ae(d.type==="pointercancel"?this.lastMoveEventInfo:zt(m,this.transformPagePoint),this.history);this.startEvent&&y&&y(d,x),p&&p(d,x)},!wn(e))return;this.dragSnapToOrigin=r,this.handlers=n,this.transformPagePoint=s,this.distanceThreshold=o,this.contextWindow=i||window;const l=Wt(e),u=zt(l,this.transformPagePoint),{point:c}=u,{timestamp:h}=B;this.history=[{...c,timestamp:h}];const{onSessionStart:f}=n;f&&f(e,Ae(u,this.history)),this.removeListeners=Ot(Rt(this.contextWindow,"pointermove",this.handlePointerMove),Rt(this.contextWindow,"pointerup",this.handlePointerUp),Rt(this.contextWindow,"pointercancel",this.handlePointerUp)),a&&this.startScrollTracking(a)}startScrollTracking(e){let n=e.parentElement;for(;n;){const s=getComputedStyle(n);(Bs.has(s.overflowX)||Bs.has(s.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const n=this.scrollPositions.get(e);if(!n)return;const s=e===window,i=s?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},r={x:i.x-n.x,y:i.y-n.y};r.x===0&&r.y===0||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=r.x,this.lastMoveEventInfo.point.y+=r.y):this.history.length>0&&(this.history[0].x-=r.x,this.history[0].y-=r.y),this.scrollPositions.set(e,i),V.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),tt(this.updatePoint)}}function zt(t,e){return e?{point:e(t.point)}:t}function Os(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Ae({point:t},e){return{point:t,delta:Os(t,Ro(e)),offset:Os(t,eu(e)),velocity:nu(e,.1)}}function eu(t){return t[0]}function Ro(t){return t[t.length-1]}function nu(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const i=Ro(t);for(;n>=0&&(s=t[n],!(i.timestamp-s.timestamp>W(e)));)n--;if(!s)return{x:0,y:0};s===t[0]&&t.length>2&&i.timestamp-s.timestamp>W(e)*2&&(s=t[1]);const r=G(i.timestamp-s.timestamp);if(r===0)return{x:0,y:0};const o={x:(i.x-s.x)/r,y:(i.y-s.y)/r};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function su(t,{min:e,max:n},s){return e!==void 0&&tn&&(t=s?C(n,t,s.max):Math.min(t,n)),t}function js(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function iu(t,{top:e,left:n,bottom:s,right:i}){return{x:js(t.x,n,i),y:js(t.y,e,s)}}function Ns(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.mins?n=Lt(e.min,e.max-s,t.min):s>i&&(n=Lt(t.min,t.max-i,e.min)),Q(0,1,n)}function au(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const Ze=.35;function lu(t=Ze){return t===!1?t=0:t===!0&&(t=Ze),{x:Us(t,"left","right"),y:Us(t,"top","bottom")}}function Us(t,e,n){return{min:Ws(t,e),max:Ws(t,n)}}function Ws(t,e){return typeof t=="number"?t:t[e]||0}const cu=new WeakMap;class uu{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=L(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:s}={}){const{presenceContext:i}=this.visualElement;if(i&&i.isPresent===!1)return;const r=h=>{n&&this.snapToCursor(Wt(h).point),this.stopAnimation()},o=(h,f)=>{const{drag:d,dragPropagation:m,onDragStart:y}=this.getProps();if(d&&!m&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Ua(d),!this.openDragLock))return;this.latestPointerEvent=h,this.latestPanInfo=f,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),q(g=>{let x=this.getAxisMotionValue(g).get()||0;if(J.test(x)){const{projection:v}=this.visualElement;if(v&&v.layout){const T=v.layout.layoutBox[g];T&&(x=N(T)*(parseFloat(x)/100))}}this.originPoint[g]=x}),y&&V.update(()=>y(h,f),!1,!0),Ke(this.visualElement,"transform");const{animationState:p}=this.visualElement;p&&p.setActive("whileDrag",!0)},a=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f;const{dragPropagation:d,dragDirectionLock:m,onDirectionLock:y,onDrag:p}=this.getProps();if(!d&&!this.openDragLock)return;const{offset:g}=f;if(m&&this.currentDirection===null){this.currentDirection=fu(g),this.currentDirection!==null&&y&&y(this.currentDirection);return}this.updateAxis("x",f.point,g),this.updateAxis("y",f.point,g),this.visualElement.render(),p&&V.update(()=>p(h,f),!1,!0)},l=(h,f)=>{this.latestPointerEvent=h,this.latestPanInfo=f,this.stop(h,f),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>{const{dragSnapToOrigin:h}=this.getProps();(h||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:c}=this.getProps();this.panSession=new Eo(e,{onSessionStart:r,onStart:o,onMove:a,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,distanceThreshold:s,contextWindow:Do(this.visualElement),element:this.visualElement.current})}stop(e,n){const s=e||this.latestPointerEvent,i=n||this.latestPanInfo,r=this.isDragging;if(this.cancel(),!r||!i||!s)return;const{velocity:o}=i;this.startAnimation(o);const{onDragEnd:a}=this.getProps();a&&V.postRender(()=>a(s,i))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,n,s){const{drag:i}=this.getProps();if(!s||!$t(e,i,this.currentDirection))return;const r=this.getAxisMotionValue(e);let o=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(o=su(o,this.constraints[e],this.elastic[e])),r.set(o)}resolveConstraints(){var r;const{dragConstraints:e,dragElastic:n}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(r=this.visualElement.projection)==null?void 0:r.layout,i=this.constraints;e&&yt(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=iu(s.layoutBox,e):this.constraints=!1,this.elastic=lu(n),i!==this.constraints&&!yt(e)&&s&&this.constraints&&!this.hasMutatedConstraints&&q(o=>{this.constraints!==!1&&this.getAxisMotionValue(o)&&(this.constraints[o]=au(s.layoutBox[o],this.constraints[o]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!yt(e))return!1;const s=e.current,{projection:i}=this.visualElement;if(!i||!i.layout)return!1;const r=yl(s,i.root,this.visualElement.getTransformPagePoint());let o=ou(i.layout.layoutBox,r);if(n){const a=n(ml(o));this.hasMutatedConstraints=!!a,a&&(o=Ji(a))}return o}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:i,dragTransition:r,dragSnapToOrigin:o,onDragTransitionEnd:a}=this.getProps(),l=this.constraints||{},u=q(c=>{if(!$t(c,n,this.currentDirection))return;let h=l&&l[c]||{};(o===!0||o===c)&&(h={min:0,max:0});const f=i?200:1e6,d=i?40:1e7,m={type:"inertia",velocity:s?e[c]:0,bounceStiffness:f,bounceDamping:d,timeConstant:750,restDelta:1,restSpeed:10,...r,...h};return this.startAxisValueAnimation(c,m)});return Promise.all(u).then(a)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return Ke(this.visualElement,e),s.start(pn(e,s,0,n,this.visualElement,!1))}stopAnimation(){q(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps(),i=s[n];return i||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){q(n=>{const{drag:s}=this.getProps();if(!$t(n,s,this.currentDirection))return;const{projection:i}=this.visualElement,r=this.getAxisMotionValue(n);if(i&&i.layout){const{min:o,max:a}=i.layout.layoutBox[n],l=r.get()||0;r.set(e[n]-C(o,a,.5)+l)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!yt(n)||!s||!this.constraints)return;this.stopAnimation();const i={x:0,y:0};q(o=>{const a=this.getAxisMotionValue(o);if(a&&this.constraints!==!1){const l=a.get();i[o]=ru({min:l,max:l},this.constraints[o])}});const{transformTemplate:r}=this.visualElement.getProps();this.visualElement.current.style.transform=r?r({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.constraints=!1,this.resolveConstraints(),q(o=>{if(!$t(o,e,null))return;const a=this.getAxisMotionValue(o),{min:l,max:u}=this.constraints[o];a.set(C(l,u,i[o]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;cu.set(this.visualElement,this);const e=this.visualElement.current,n=Rt(e,"pointerdown",u=>{const{drag:c,dragListener:h=!0}=this.getProps(),f=u.target,d=f!==e&&Ha(f);c&&h&&!d&&this.start(u)});let s;const i=()=>{const{dragConstraints:u}=this.getProps();yt(u)&&u.current&&(this.constraints=this.resolveRefConstraints(),s||(s=hu(e,u.current,()=>this.scalePositionWithinConstraints())))},{projection:r}=this.visualElement,o=r.addEventListener("measure",i);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),V.read(i);const a=Bt(window,"resize",()=>this.scalePositionWithinConstraints()),l=r.addEventListener("didUpdate",({delta:u,hasLayoutChanged:c})=>{this.isDragging&&c&&(q(h=>{const f=this.getAxisMotionValue(h);f&&(this.originPoint[h]+=u[h].translate,f.set(f.get()+u[h].translate))}),this.visualElement.render())});return()=>{a(),n(),o(),l&&l(),s&&s()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:i=!1,dragConstraints:r=!1,dragElastic:o=Ze,dragMomentum:a=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:i,dragConstraints:r,dragElastic:o,dragMomentum:a}}}function Ks(t){let e=!0;return()=>{if(e){e=!1;return}t()}}function hu(t,e,n){const s=qn(t,Ks(n)),i=qn(e,Ks(n));return()=>{s(),i()}}function $t(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function fu(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class du extends rt{constructor(e){super(e),this.removeGroupControls=z,this.removeListeners=z,this.controls=new uu(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||z}update(){const{dragControls:e}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};e!==n&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const Ve=t=>(e,n)=>{t&&V.update(()=>t(e,n),!1,!0)};class mu extends rt{constructor(){super(...arguments),this.removePointerDownListener=z}onPointerDown(e){this.session=new Eo(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Do(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:i}=this.node.getProps();return{onSessionStart:Ve(e),onStart:Ve(n),onMove:Ve(s),onEnd:(r,o)=>{delete this.session,i&&V.postRender(()=>i(r,o))}}}mount(){this.removePointerDownListener=Rt(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Ce=!1;class pu extends S.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:i}=this.props,{projection:r}=e;r&&(n.group&&n.group.add(r),s&&s.register&&i&&s.register(r),Ce&&r.root.didUpdate(),r.addEventListener("animationComplete",()=>{this.safeToRemove()}),r.setOptions({...r.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Jt.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:i,isPresent:r}=this.props,{projection:o}=s;return o&&(o.isPresent=r,e.layoutDependency!==n&&o.setOptions({...o.options,layoutDependency:n}),Ce=!0,i||e.layoutDependency!==n||n===void 0||e.isPresent!==r?o.willUpdate():this.safeToRemove(),e.isPresent!==r&&(r?o.promote():o.relegate()||V.postRender(()=>{const a=o.getStack();(!a||!a.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:e,layoutAnchor:n}=this.props,{projection:s}=e;s&&(s.options.layoutAnchor=n,s.root.didUpdate(),Tn.postRender(()=>{!s.currentAnimation&&s.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:i}=e;Ce=!0,i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),s&&s.deregister&&s.deregister(i))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Lo(t){const[e,n]=Sc(),s=S.useContext(Hs);return Qt.jsx(pu,{...t,layoutGroup:s,switchLayoutGroup:S.useContext(Co),isPresent:e,safeToRemove:n})}const gu={pan:{Feature:mu},drag:{Feature:du,ProjectionNode:To,MeasureLayout:Lo}};function Gs(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const i="onHover"+n,r=s[i];r&&V.postRender(()=>r(e,Wt(e)))}class yu extends rt{mount(){const{current:e}=this.node;e&&(this.unmount=Ka(e,(n,s)=>(Gs(this.node,s,"Start"),i=>Gs(this.node,i,"End"))))}unmount(){}}class vu extends rt{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ot(Bt(this.node.current,"focus",()=>this.onFocus()),Bt(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function zs(t,e,n){const{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const i="onTap"+(n==="End"?"":n),r=s[i];r&&V.postRender(()=>r(e,Wt(e)))}class xu extends rt{mount(){const{current:e}=this.node;if(!e)return;const{globalTapTarget:n,propagate:s}=this.node.props;this.unmount=Xa(e,(i,r)=>(zs(this.node,r,"Start"),(o,{success:a})=>zs(this.node,o,a?"End":"Cancel")),{useGlobalTarget:n,stopPropagation:(s==null?void 0:s.tap)===!1})}unmount(){}}const Je=new WeakMap,Me=new WeakMap,Tu=t=>{const e=Je.get(t.target);e&&e(t)},wu=t=>{t.forEach(Tu)};function Su({root:t,...e}){const n=t||document;Me.has(n)||Me.set(n,{});const s=Me.get(n),i=JSON.stringify(e);return s[i]||(s[i]=new IntersectionObserver(wu,{root:t,...e})),s[i]}function Pu(t,e,n){const s=Su(e);return Je.set(t,n),s.observe(t),()=>{Je.delete(t),s.unobserve(t)}}const bu={some:0,all:1};class Au extends rt{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var l;(l=this.stopObserver)==null||l.call(this);const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:i="some",once:r}=e,o={root:n?n.current:void 0,rootMargin:s,threshold:typeof i=="number"?i:bu[i]},a=u=>{const{isIntersecting:c}=u;if(this.isInView===c||(this.isInView=c,r&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:h,onViewportLeave:f}=this.node.getProps(),d=c?h:f;d&&d(u)};this.stopObserver=Pu(this.node.current,o,a)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(Vu(e,n))&&this.startObserver()}unmount(){var e;(e=this.stopObserver)==null||e.call(this),this.hasEnteredView=!1,this.isInView=!1}}function Vu({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const Cu={inView:{Feature:Au},tap:{Feature:xu},focus:{Feature:vu},hover:{Feature:yu}},Mu={layout:{ProjectionNode:To,MeasureLayout:Lo}},Du={...Jc,...Cu,...gu,...Mu},Uu=_c(Du,Xc);function Dn(t){const e=Qe(()=>pt(t)),{isStatic:n}=S.useContext(Ut);if(n){const[,s]=S.useState(t);S.useEffect(()=>e.on("change",s),[])}return e}function ko(t,e){const n=Dn(e()),s=()=>n.set(e());return s(),_s(()=>{const i=()=>V.preRender(s,!1,!0),r=t.map(o=>o.on("change",i));return()=>{r.forEach(o=>o()),tt(s)}}),n}function Eu(t){Dt.current=[],t();const e=ko(Dt.current,t);return Dt.current=void 0,e}function Ru(t,e,n,s){if(typeof t=="function")return Eu(t);const r=typeof e=="function"?e:il(e,n,s),o=Array.isArray(t)?$s(t,r):$s([t],([l])=>r(l)),a=Array.isArray(t)?void 0:t.accelerate;return a&&!a.isTransformed&&typeof e!="function"&&Array.isArray(n)&&(s==null?void 0:s.clamp)!==!1&&(o.accelerate={...a,times:e,keyframes:n,isTransformed:!0}),o}function $s(t,e){const n=Qe(()=>[]);return ko(t,()=>{n.length=0;const s=t.length;for(let i=0;ik(t)?t.get():t;if(n)return Ru(s);const i=Dn(s());return S.useInsertionEffect(()=>ol(i,t,e),[i,JSON.stringify(e)]),i}function ku(t,e={}){return Lu(t,{type:"spring",...e})}function Wu(t){const e=S.useRef(0),{isStatic:n}=S.useContext(Ut);S.useEffect(()=>{if(n)return;const s=({timestamp:i,delta:r})=>{e.current||(e.current=i),t(i-e.current,r)};return V.update(s,!0),()=>tt(s)},[t])}const Iu={some:0,all:1};function Fu(t,e,{root:n,margin:s,amount:i="some"}={}){const r=xn(t),o=new WeakMap,a=u=>{u.forEach(c=>{const h=o.get(c.target);if(c.isIntersecting!==!!h)if(c.isIntersecting){const f=e(c.target,c);typeof f=="function"?o.set(c.target,f):l.unobserve(c.target)}else typeof h=="function"&&(h(c),o.delete(c.target))})},l=new IntersectionObserver(a,{root:n,rootMargin:s,threshold:typeof i=="number"?i:Iu[i]});return r.forEach(u=>l.observe(u)),()=>l.disconnect()}function Bu(t,{root:e,margin:n,amount:s,once:i=!1,initial:r=!1}={}){const[o,a]=S.useState(r);return S.useEffect(()=>{if(!t.current||i&&o)return;const l=()=>(a(!0),i?void 0:()=>a(!1)),u={root:e&&e.current||void 0,margin:n,amount:s};return Fu(t.current,l,u)},[e,t,n,i,s]),o}function Ku({to:t,from:e=0,direction:n="up",delay:s=0,duration:i=2,className:r="",startWhen:o=!0,separator:a="",onStart:l,onEnd:u}){const c=S.useRef(null),h=Dn(n==="down"?t:e),f=20+40*(1/i),d=100*(1/i),m=ku(h,{damping:f,stiffness:d}),y=Bu(c,{once:!0,margin:"0px"}),p=v=>{const T=v.toString();if(T.includes(".")){const P=T.split(".")[1];if(parseInt(P)!==0)return P.length}return 0},g=Math.max(p(e),p(t)),x=S.useCallback(v=>{const T=g>0,P={useGrouping:!!a,minimumFractionDigits:T?g:0,maximumFractionDigits:T?g:0},M=Intl.NumberFormat("en-US",P).format(v);return a?M.replace(/,/g,a):M},[g,a]);return S.useEffect(()=>{c.current&&(c.current.textContent=x(n==="down"?t:e))},[e,t,n,x]),S.useEffect(()=>{if(y&&o){typeof l=="function"&&l();const v=setTimeout(()=>{h.set(n==="down"?e:t)},s*1e3),T=setTimeout(()=>{typeof u=="function"&&u()},s*1e3+i*1e3);return()=>{clearTimeout(v),clearTimeout(T)}}},[y,o,h,n,e,t,s,l,u,i]),S.useEffect(()=>{const v=m.on("change",T=>{c.current&&(c.current.textContent=x(T))});return()=>v()},[m,x]),Qt.jsx("span",{className:r,ref:c})}export{Ku as C,Wu as a,Ru as b,Uu as m,Dn as u}; diff --git a/dist/assets/Dashboard-Djts405O.js b/dist/assets/Dashboard-Djts405O.js new file mode 100644 index 0000000..06e1600 --- /dev/null +++ b/dist/assets/Dashboard-Djts405O.js @@ -0,0 +1 @@ +import{r as n,j as e,u as I,Q as $,L as k,e as L,f as A,z as _}from"./index-CJw6IpTa.js";import{S as R}from"./SpotlightCard-lt5CQbhM.js";import{u as z,a as Q,b as W,m as B,C as S}from"./CountUp-SCQ6rVWn.js";const F=({text:s,disabled:v=!1,speed:a=2,className:w="",color:l="#b5b5b5",shineColor:p="#ffffff",spread:f=120,yoyo:g=!1,pauseOnHover:i=!1,direction:m="left",delay:b=0})=>{const[j,N]=n.useState(!1),r=z(0),t=n.useRef(0),d=n.useRef(null),u=n.useRef(m==="left"?1:-1),o=a*1e3,q=b*1e3;Q(h=>{if(v||j){d.current=null;return}if(d.current===null){d.current=h;return}const E=h-d.current;if(d.current=h,t.current+=E,g){const x=o+q,y=x*2,c=t.current%y;if(c{u.current=m==="left"?1:-1,t.current=0,r.set(0)},[m]);const P=W(r,h=>`${150-h*2}% center`),D=n.useCallback(()=>{i&&N(!0)},[i]),M=n.useCallback(()=>{i&&N(!1)},[i]),U={backgroundImage:`linear-gradient(${f}deg, ${l} 0%, ${l} 35%, ${p} 50%, ${l} 65%, ${l} 100%)`,backgroundSize:"200% auto",WebkitBackgroundClip:"text",backgroundClip:"text",WebkitTextFillColor:"transparent"};return e.jsx(B.span,{className:`inline-block ${w}`,style:{...U,backgroundPosition:P},onMouseEnter:D,onMouseLeave:M,children:s})};function J(){const{user:s,refreshUser:v}=I(),[a,w]=n.useState(null),[l,p]=n.useState(""),[f,g]=n.useState(!1),i=async()=>{try{const t=await L();t.data.success&&w(t.data.data)}catch{}};n.useEffect(()=>{i()},[]);const m=async t=>{if(t.preventDefault(),!!l.trim()){g(!0);try{(await A(l.trim())).data.success&&(_.success("Code redeemed successfully!"),p(""),await Promise.all([i(),v()]))}catch{}g(!1)}},b=(a==null?void 0:a.quota)??(s==null?void 0:s.quota)??0,j=(a==null?void 0:a.used_quota)??(s==null?void 0:s.used_quota)??0,N=(a==null?void 0:a.request_count)??(s==null?void 0:s.request_count)??0,r=b/$;return e.jsxs("div",{className:"max-w-7xl mx-auto px-6 py-10",children:[e.jsxs("div",{className:"mb-8",children:[e.jsxs("h1",{className:"text-2xl font-heading font-bold text-white mb-1",children:["Welcome, ",e.jsx(F,{text:(s==null?void 0:s.display_name)||(s==null?void 0:s.username)||"User",className:"!inline",speed:3,color:"#a5b4fc",shineColor:"#e0e7ff"})]}),e.jsx("p",{className:"text-sm text-neutral-400",children:"Manage your API usage, keys, and account"})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6 mb-10",children:[e.jsxs(R,{className:"!bg-neutral-900/60 !border-neutral-800/60 !p-6",spotlightColor:"rgba(34,197,94,0.15)",children:[e.jsx("p",{className:"text-sm text-neutral-400 mb-2",children:"Balance"}),e.jsxs("div",{className:"text-3xl font-bold text-white",children:["$",e.jsx(S,{from:0,to:r,duration:1.5})]}),e.jsxs("p",{className:"text-xs text-neutral-500 mt-1",children:[b.toLocaleString()," quota units"]})]}),e.jsxs(R,{className:"!bg-neutral-900/60 !border-neutral-800/60 !p-6",spotlightColor:"rgba(129,140,248,0.15)",children:[e.jsx("p",{className:"text-sm text-neutral-400 mb-2",children:"Used"}),e.jsxs("div",{className:"text-3xl font-bold text-white",children:["$",e.jsx(S,{from:0,to:j/$,duration:1.5})]}),e.jsxs("p",{className:"text-xs text-neutral-500 mt-1",children:[j.toLocaleString()," quota units"]})]}),e.jsxs(R,{className:"!bg-neutral-900/60 !border-neutral-800/60 !p-6",spotlightColor:"rgba(244,114,182,0.15)",children:[e.jsx("p",{className:"text-sm text-neutral-400 mb-2",children:"Total Requests"}),e.jsx("div",{className:"text-3xl font-bold text-white",children:e.jsx(S,{from:0,to:N,duration:1.5})})]})]}),e.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[e.jsxs("div",{className:"glass rounded-2xl p-6",children:[e.jsx("h2",{className:"text-lg font-semibold text-white mb-4",children:"Redeem Code"}),e.jsxs("form",{onSubmit:m,className:"flex gap-3",children:[e.jsx("input",{type:"text",value:l,onChange:t=>p(t.target.value),className:"input flex-1",placeholder:"Enter redemption code"}),e.jsx("button",{type:"submit",disabled:f,className:"btn-primary whitespace-nowrap",children:f?"Redeeming...":"Redeem"})]})]}),e.jsxs("div",{className:"glass rounded-2xl p-6",children:[e.jsx("h2",{className:"text-lg font-semibold text-white mb-4",children:"Quick Links"}),e.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[e.jsxs(k,{to:"/tokens",className:"glass-sm !rounded-xl px-4 py-3 hover:bg-white/[0.06] transition-colors group",children:[e.jsx("p",{className:"text-sm font-medium text-white group-hover:text-brand-400 transition-colors",children:"API Keys"}),e.jsx("p",{className:"text-xs text-neutral-500",children:"Manage your keys"})]}),e.jsxs(k,{to:"/packages",className:"glass-sm !rounded-xl px-4 py-3 hover:bg-white/[0.06] transition-colors group",children:[e.jsx("p",{className:"text-sm font-medium text-white group-hover:text-brand-400 transition-colors",children:"Packages"}),e.jsx("p",{className:"text-xs text-neutral-500",children:"View plans"})]}),e.jsxs(k,{to:"/pricing",className:"glass-sm !rounded-xl px-4 py-3 hover:bg-white/[0.06] transition-colors group",children:[e.jsx("p",{className:"text-sm font-medium text-white group-hover:text-brand-400 transition-colors",children:"Pricing"}),e.jsx("p",{className:"text-xs text-neutral-500",children:"Model prices"})]}),e.jsxs("div",{className:"glass-sm !rounded-xl px-4 py-3 opacity-50",children:[e.jsx("p",{className:"text-sm font-medium text-white",children:"API Docs"}),e.jsx("p",{className:"text-xs text-neutral-500",children:"Coming soon"})]})]})]})]})]})}export{J as default}; diff --git a/dist/assets/Home-D5xeHSSc.js b/dist/assets/Home-D5xeHSSc.js new file mode 100644 index 0000000..42d0845 --- /dev/null +++ b/dist/assets/Home-D5xeHSSc.js @@ -0,0 +1 @@ +import{r as l,j as e,u as L,a as $,g as E,b as T,L as b}from"./index-CJw6IpTa.js";import{u as R,a as V,b as G,m as k,C as z}from"./CountUp-SCQ6rVWn.js";import{S as I}from"./SpotlightCard-lt5CQbhM.js";function B({children:n,className:o="",colors:d=["#5227FF","#FF9FFC","#B19EEF"],animationSpeed:i=8,showBorder:s=!1,direction:r="horizontal",pauseOnHover:a=!1,yoyo:t=!0}){const[j,y]=l.useState(!1),u=R(0),f=l.useRef(0),x=l.useRef(null),h=i*1e3;V(c=>{if(j){x.current=null;return}if(x.current===null){x.current=c;return}const A=c-x.current;if(x.current=c,f.current+=A,t){const M=h*2,m=f.current%M;m{f.current=0,u.set(0)},[i,u,t]);const w=G(u,c=>r==="horizontal"?`${c}% 50%`:r==="vertical"?`50% ${c}%`:`${c}% 50%`),g=l.useCallback(()=>{a&&y(!0)},[a]),S=l.useCallback(()=>{a&&y(!1)},[a]),C=r==="horizontal"?"to right":r==="vertical"?"to bottom":"to bottom right",v=[...d,d[0]].join(", "),N={backgroundImage:`linear-gradient(${C}, ${v})`,backgroundSize:r==="horizontal"?"300% 100%":r==="vertical"?"100% 300%":"300% 300%",backgroundRepeat:"repeat"};return e.jsxs(k.div,{className:`relative mx-auto flex max-w-fit flex-row items-center justify-center rounded-[1.25rem] font-medium backdrop-blur transition-shadow duration-500 overflow-hidden cursor-pointer ${s?"py-1 px-2":""} ${o}`,onMouseEnter:g,onMouseLeave:S,children:[s&&e.jsx(k.div,{className:"absolute inset-0 z-0 pointer-events-none rounded-[1.25rem]",style:{...N,backgroundPosition:w},children:e.jsx("div",{className:"absolute bg-black rounded-[1.25rem] z-[-1]",style:{width:"calc(100% - 2px)",height:"calc(100% - 2px)",left:"50%",top:"50%",transform:"translate(-50%, -50%)"}})}),e.jsx(k.div,{className:"inline-block relative z-2 text-transparent bg-clip-text",style:{...N,backgroundPosition:w,WebkitBackgroundClip:"text"},children:n})]})}const D=(n,o)=>{const d=new Set([...Object.keys(n),...o.flatMap(s=>Object.keys(s))]),i={};return d.forEach(s=>{i[s]=[n[s],...o.map(r=>r[s])]}),i},W=({text:n="",delay:o=200,className:d="",animateBy:i="words",direction:s="top",threshold:r=.1,rootMargin:a="0px",animationFrom:t,animationTo:j,easing:y=x=>x,onAnimationComplete:u,stepDuration:f=.35})=>{const x=i==="words"?n.split(" "):n.split(""),[h,w]=l.useState(!1),g=l.useRef(null);l.useEffect(()=>{if(!g.current)return;const m=new IntersectionObserver(([p])=>{p.isIntersecting&&(w(!0),m.unobserve(g.current))},{threshold:r,rootMargin:a});return m.observe(g.current),()=>m.disconnect()},[r,a]);const S=l.useMemo(()=>s==="top"?{filter:"blur(10px)",opacity:0,y:-50}:{filter:"blur(10px)",opacity:0,y:50},[s]),C=l.useMemo(()=>[{filter:"blur(5px)",opacity:.5,y:s==="top"?5:-5},{filter:"blur(0px)",opacity:1,y:0}],[s]),v=t??S,N=j??C,c=N.length+1,A=f*(c-1),M=Array.from({length:c},(m,p)=>c===1?0:p/(c-1));return e.jsx("p",{ref:g,className:`blur-text ${d} flex flex-wrap`,children:x.map((m,p)=>{const F=D(v,N),P={duration:A,times:M,delay:p*o/1e3};return P.ease=y,e.jsxs(k.span,{className:"inline-block will-change-[transform,filter,opacity]",initial:v,animate:h?F:v,transition:P,onAnimationComplete:p===x.length-1?u:void 0,children:[m===" "?" ":m,i==="words"&&pe.jsxs(n,{className:`relative inline-block overflow-hidden rounded-[20px] ${o}`,style:{padding:`${s}px 0`,...a.style},...a,children:[e.jsx("div",{className:"absolute w-[300%] h-[50%] opacity-70 bottom-[-11px] right-[-250%] rounded-full animate-star-movement-bottom z-0",style:{background:`radial-gradient(circle, ${d}, transparent 10%)`,animationDuration:i}}),e.jsx("div",{className:"absolute w-[300%] h-[50%] opacity-70 top-[-10px] left-[-250%] rounded-full animate-star-movement-top z-0",style:{background:`radial-gradient(circle, ${d}, transparent 10%)`,animationDuration:i}}),e.jsx("div",{className:"relative z-1 bg-gradient-to-b from-black to-gray-900 border border-gray-800 text-white text-center text-[16px] py-[16px] px-[26px] rounded-[20px]",children:r})]});function O(){const{user:n}=L(),{site:o}=$(),[d,i]=l.useState([]),[s,r]=l.useState([]);l.useEffect(()=>{E().then(t=>{t.data.success&&i(t.data.data||[])}).catch(()=>{}),T().then(t=>{t.data.success&&r(t.data.data||[])}).catch(()=>{})},[]);const a=d.filter(t=>t.enabled!==!1);return e.jsxs("div",{className:"relative",children:[e.jsxs("div",{className:"absolute inset-0 overflow-hidden pointer-events-none",children:[e.jsx("div",{className:"absolute top-0 left-1/2 -translate-x-1/2 w-[800px] h-[600px] bg-gradient-radial from-brand-600/20 via-purple-600/5 to-transparent blur-3xl"}),e.jsx("div",{className:"absolute top-[400px] right-0 w-[500px] h-[500px] bg-gradient-radial from-pink-600/10 to-transparent blur-3xl"})]}),e.jsxs("section",{className:"relative max-w-7xl mx-auto px-6 pt-24 pb-20",children:[e.jsxs("div",{className:"text-center max-w-4xl mx-auto",children:[e.jsx("div",{className:"mb-6",children:e.jsx(B,{colors:["#818cf8","#c084fc","#f472b6","#818cf8"],animationSpeed:6,className:"text-5xl md:text-7xl font-heading font-extrabold leading-tight",children:(o==null?void 0:o.name)||"AI API Platform"})}),e.jsx(W,{text:"Access the world's most powerful AI models through a single API endpoint. Simple, affordable, reliable.",className:"text-lg md:text-xl text-neutral-400 max-w-2xl mx-auto mb-10",delay:50,animateBy:"words"}),e.jsx("div",{className:"flex items-center justify-center gap-4",children:n?e.jsx(b,{to:"/dashboard",children:e.jsx(_,{as:"div",color:"#818cf8",speed:"5s",children:"Go to Dashboard"})}):e.jsxs(e.Fragment,{children:[e.jsx(b,{to:"/register",className:"btn-primary text-base !px-8 !py-3",children:"Get Started Free"}),e.jsx(b,{to:"/pricing",className:"btn-secondary text-base !px-8 !py-3",children:"View Pricing"})]})})]}),e.jsxs("div",{className:"grid grid-cols-3 gap-6 max-w-xl mx-auto mt-20",children:[e.jsxs("div",{className:"text-center",children:[e.jsxs("div",{className:"text-3xl font-bold text-white",children:[e.jsx(z,{from:0,to:a.length||50,duration:2,separator:""}),"+"]}),e.jsx("p",{className:"text-sm text-neutral-500 mt-1",children:"AI Models"})]}),e.jsxs("div",{className:"text-center",children:[e.jsxs("div",{className:"text-3xl font-bold text-white",children:[e.jsx(z,{from:0,to:99.9,duration:2.5}),"%"]}),e.jsx("p",{className:"text-sm text-neutral-500 mt-1",children:"Uptime"})]}),e.jsxs("div",{className:"text-center",children:[e.jsxs("div",{className:"text-3xl font-bold text-white",children:["<",e.jsx(z,{from:200,to:50,duration:2,direction:"down"}),"ms"]}),e.jsx("p",{className:"text-sm text-neutral-500 mt-1",children:"Latency"})]})]})]}),e.jsxs("section",{className:"relative max-w-7xl mx-auto px-6 py-20",children:[e.jsxs("div",{className:"text-center mb-12",children:[e.jsx("h2",{className:"text-3xl font-heading font-bold text-white mb-3",children:"Why Choose Us"}),e.jsx("p",{className:"text-neutral-400",children:"Everything you need to build AI-powered applications"})]}),e.jsxs("div",{className:"grid md:grid-cols-3 gap-6",children:[e.jsxs(I,{className:"!bg-neutral-900/60 !border-neutral-800/60",spotlightColor:"rgba(129,140,248,0.15)",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-brand-500/10 flex items-center justify-center mb-4",children:e.jsx("svg",{className:"w-6 h-6 text-brand-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M13 10V3L4 14h7v7l9-11h-7z"})})}),e.jsx("h3",{className:"text-lg font-semibold text-white mb-2",children:"Lightning Fast"}),e.jsx("p",{className:"text-sm text-neutral-400 leading-relaxed",children:"Optimized routing and caching deliver responses with minimal latency. Load-balanced across multiple providers for maximum reliability."})]}),e.jsxs(I,{className:"!bg-neutral-900/60 !border-neutral-800/60",spotlightColor:"rgba(192,132,252,0.15)",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-purple-500/10 flex items-center justify-center mb-4",children:e.jsx("svg",{className:"w-6 h-6 text-purple-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z"})})}),e.jsx("h3",{className:"text-lg font-semibold text-white mb-2",children:"Secure & Private"}),e.jsx("p",{className:"text-sm text-neutral-400 leading-relaxed",children:"Enterprise-grade security with encrypted API keys. No request logging by default. Your data stays your data."})]}),e.jsxs(I,{className:"!bg-neutral-900/60 !border-neutral-800/60",spotlightColor:"rgba(244,114,182,0.15)",children:[e.jsx("div",{className:"w-12 h-12 rounded-xl bg-pink-500/10 flex items-center justify-center mb-4",children:e.jsx("svg",{className:"w-6 h-6 text-pink-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),e.jsx("h3",{className:"text-lg font-semibold text-white mb-2",children:"Pay As You Go"}),e.jsx("p",{className:"text-sm text-neutral-400 leading-relaxed",children:"Transparent pricing with no hidden fees. Only pay for what you use. Multiple top-up options and subscription packages available."})]})]})]}),a.length>0&&e.jsxs("section",{className:"relative max-w-7xl mx-auto px-6 py-20",children:[e.jsxs("div",{className:"text-center mb-12",children:[e.jsx("h2",{className:"text-3xl font-heading font-bold text-white mb-3",children:"Available Models"}),e.jsxs("p",{className:"text-neutral-400",children:["Access ",e.jsx("span",{className:"text-brand-400 font-medium",children:a.length})," AI models through a unified API"]})]}),e.jsx("div",{className:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-3",children:a.slice(0,12).map((t,j)=>e.jsxs("div",{className:"glass-sm px-4 py-3 flex items-center gap-3 hover:bg-white/[0.06] transition-colors group",children:[e.jsx("div",{className:"w-2 h-2 rounded-full bg-green-500 flex-shrink-0"}),e.jsx("span",{className:"text-sm font-mono text-neutral-300 group-hover:text-white transition-colors truncate",children:t.display_name||t.model_name})]},t.id||j))}),a.length>12&&e.jsx("div",{className:"text-center mt-6",children:e.jsxs(b,{to:"/pricing",className:"text-sm text-brand-400 hover:text-brand-300 transition-colors",children:["View all ",a.length," models →"]})})]}),s.length>0&&e.jsxs("section",{className:"relative max-w-7xl mx-auto px-6 py-20",children:[e.jsxs("div",{className:"text-center mb-12",children:[e.jsx("h2",{className:"text-3xl font-heading font-bold text-white mb-3",children:"Plans & Packages"}),e.jsx("p",{className:"text-neutral-400",children:"Choose a plan that fits your needs"})]}),e.jsx("div",{className:"grid md:grid-cols-3 gap-6 max-w-4xl mx-auto",children:s.filter(t=>t.enabled).slice(0,3).map(t=>e.jsxs("div",{className:"glass rounded-2xl p-6 flex flex-col hover:border-brand-500/30 transition-colors",children:[e.jsx("h3",{className:"text-lg font-semibold text-white mb-1",children:t.name}),t.description&&e.jsx("p",{className:"text-sm text-neutral-400 mb-4",children:t.description}),e.jsxs("div",{className:"mt-auto pt-4",children:[e.jsxs("div",{className:"flex items-baseline gap-1",children:[e.jsxs("span",{className:"text-3xl font-bold text-white",children:["$",t.price]}),t.original_price>t.price&&e.jsxs("span",{className:"text-sm text-neutral-500 line-through",children:["$",t.original_price]})]}),t.duration>0&&e.jsxs("p",{className:"text-xs text-neutral-500 mt-1",children:[t.duration," days"]})]}),e.jsx(b,{to:n?"/packages":"/register",className:"btn-primary text-center mt-4 !py-2",children:n?"Subscribe":"Get Started"})]},t.id))})]}),e.jsx("section",{className:"relative max-w-7xl mx-auto px-6 py-24",children:e.jsxs("div",{className:"glass rounded-3xl p-12 text-center relative overflow-hidden",children:[e.jsx("div",{className:"absolute inset-0 bg-gradient-to-br from-brand-600/10 via-transparent to-purple-600/10"}),e.jsxs("div",{className:"relative z-10",children:[e.jsx("h2",{className:"text-3xl font-heading font-bold text-white mb-4",children:"Ready to Get Started?"}),e.jsx("p",{className:"text-neutral-400 mb-8 max-w-md mx-auto",children:"Create your account and start building with AI in minutes. No credit card required."}),e.jsx("div",{className:"flex items-center justify-center gap-4",children:n?e.jsx(b,{to:"/dashboard",className:"btn-primary text-base !px-8 !py-3",children:"Go to Dashboard"}):e.jsxs(e.Fragment,{children:[e.jsx(b,{to:"/register",className:"btn-primary text-base !px-8 !py-3",children:"Create Free Account"}),e.jsx(b,{to:"/login",className:"btn-secondary text-base !px-8 !py-3",children:"Sign In"})]})})]})]})})]})}export{O as default}; diff --git a/dist/assets/Login-BYKZA2hS.js b/dist/assets/Login-BYKZA2hS.js new file mode 100644 index 0000000..3be7b67 --- /dev/null +++ b/dist/assets/Login-BYKZA2hS.js @@ -0,0 +1 @@ +import{u as v,a as N,c as w,d as y,r as d,j as e,N as S,L as k,z as x}from"./index-CJw6IpTa.js";function L(){var i,c;const{login:h,user:p}=v(),{site:a}=N(),f=w(),n=y(),[s,l]=d.useState({username:"",password:""}),[r,o]=d.useState(!1);if(p){const t=((c=(i=n.state)==null?void 0:i.from)==null?void 0:c.pathname)||"/dashboard";return e.jsx(S,{to:t,replace:!0})}const b=async t=>{var u,m;if(t.preventDefault(),!s.username||!s.password){x.error("Please fill in all fields");return}o(!0);try{if((await h(s.username,s.password)).success){x.success("Welcome back!");const g=((m=(u=n.state)==null?void 0:u.from)==null?void 0:m.pathname)||"/dashboard";f(g,{replace:!0});return}}catch{}o(!1)};return e.jsx("div",{className:"min-h-[70vh] flex items-center justify-center px-6",children:e.jsx("div",{className:"w-full max-w-md",children:e.jsxs("div",{className:"glass rounded-2xl p-8",children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsx("h1",{className:"text-2xl font-heading font-bold text-white mb-2",children:"Welcome Back"}),e.jsxs("p",{className:"text-sm text-neutral-400",children:["Sign in to ",(a==null?void 0:a.name)||"your account"]})]}),e.jsxs("form",{onSubmit:b,className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-neutral-300 mb-1.5",children:"Username"}),e.jsx("input",{type:"text",value:s.username,onChange:t=>l({...s,username:t.target.value}),className:"input",placeholder:"Enter your username",autoComplete:"username",required:!0})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-neutral-300 mb-1.5",children:"Password"}),e.jsx("input",{type:"password",value:s.password,onChange:t=>l({...s,password:t.target.value}),className:"input",placeholder:"Enter your password",autoComplete:"current-password",required:!0})]}),e.jsxs("button",{type:"submit",disabled:r,className:"btn-primary w-full flex items-center justify-center gap-2",children:[r&&e.jsx("div",{className:"w-4 h-4 border-2 border-white/30 border-t-white rounded-full animate-spin"}),r?"Signing in...":"Sign In"]})]}),e.jsx("div",{className:"mt-6 text-center",children:e.jsxs("p",{className:"text-sm text-neutral-400",children:["Don't have an account?"," ",e.jsx(k,{to:"/register",className:"text-brand-400 hover:text-brand-300 transition-colors font-medium",children:"Create one"})]})})]})})})}export{L as default}; diff --git a/dist/assets/Packages-CIW8TdH4.js b/dist/assets/Packages-CIW8TdH4.js new file mode 100644 index 0000000..6d1c7d5 --- /dev/null +++ b/dist/assets/Packages-CIW8TdH4.js @@ -0,0 +1 @@ +import{u as k,c as w,r as i,b as C,j as e,L as y,Q as m,s as S,z as L}from"./index-CJw6IpTa.js";import{S as P}from"./SpotlightCard-lt5CQbhM.js";function A(){const{user:l,refreshUser:u}=k(),h=w(),[b,f]=i.useState([]),[j,p]=i.useState(!0),[t,o]=i.useState(null),[n,r]=i.useState(null);i.useEffect(()=>{C().then(s=>{s.data.success&&f(s.data.data||[])}).catch(()=>{}).finally(()=>p(!1))},[]);const g=async s=>{if(!l){h("/register");return}r(s)},N=async()=>{if(!n)return;const s=n.id;o(s);try{(await S(s)).data.success&&(L.success("Subscribed successfully!"),r(null),await u())}catch{}o(null)};if(j)return e.jsx("div",{className:"flex items-center justify-center min-h-[50vh]",children:e.jsx("div",{className:"w-8 h-8 border-2 border-brand-500/30 border-t-brand-500 rounded-full animate-spin"})});const d=b.filter(s=>s.enabled),x=["rgba(129,140,248,0.15)","rgba(192,132,252,0.15)","rgba(244,114,182,0.15)","rgba(34,197,94,0.15)"];return e.jsxs("div",{className:"max-w-7xl mx-auto px-6 py-10",children:[e.jsxs("div",{className:"text-center mb-12",children:[e.jsx("h1",{className:"text-3xl font-heading font-bold text-white mb-3",children:"Packages & Plans"}),e.jsx("p",{className:"text-neutral-400 max-w-xl mx-auto",children:"Choose a package that fits your usage. All plans include access to all available models."})]}),d.length===0?e.jsxs("div",{className:"text-center py-12 text-neutral-400",children:[e.jsx("p",{children:"No packages available at the moment."}),e.jsx(y,{to:"/pricing",className:"text-brand-400 hover:text-brand-300 transition-colors mt-2 inline-block",children:"Check model pricing →"})]}):e.jsx("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-6 max-w-5xl mx-auto",children:d.map((s,a)=>e.jsx(P,{className:"!bg-neutral-900/60 !border-neutral-800/60 !p-0 !rounded-2xl flex flex-col",spotlightColor:x[a%x.length],children:e.jsxs("div",{className:"p-6 flex-1 flex flex-col",children:[e.jsxs("div",{className:"mb-4",children:[e.jsx("h3",{className:"text-xl font-semibold text-white",children:s.name}),s.description&&e.jsx("p",{className:"text-sm text-neutral-400 mt-1",children:s.description})]}),e.jsxs("div",{className:"mb-6",children:[e.jsxs("div",{className:"flex items-baseline gap-2",children:[e.jsxs("span",{className:"text-4xl font-bold text-white",children:["$",Number(s.price).toFixed(2)]}),s.original_price>0&&s.original_price>s.price&&e.jsxs("span",{className:"text-lg text-neutral-500 line-through",children:["$",Number(s.original_price).toFixed(2)]})]}),s.duration>0&&e.jsxs("p",{className:"text-sm text-neutral-500 mt-1",children:[s.duration," days access"]})]}),e.jsxs("ul",{className:"space-y-2 mb-6 flex-1",children:[s.quota_amount>0&&e.jsxs("li",{className:"flex items-center gap-2 text-sm text-neutral-300",children:[e.jsx("svg",{className:"w-4 h-4 text-green-500 flex-shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"$",(s.quota_amount/m).toFixed(2)," credit included"]}),s.rate_limit>0&&e.jsxs("li",{className:"flex items-center gap-2 text-sm text-neutral-300",children:[e.jsx("svg",{className:"w-4 h-4 text-green-500 flex-shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),s.rate_limit," requests/min"]}),e.jsxs("li",{className:"flex items-center gap-2 text-sm text-neutral-300",children:[e.jsx("svg",{className:"w-4 h-4 text-green-500 flex-shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"All models access"]}),e.jsxs("li",{className:"flex items-center gap-2 text-sm text-neutral-300",children:[e.jsx("svg",{className:"w-4 h-4 text-green-500 flex-shrink-0",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),"OpenAI-compatible API"]})]}),e.jsx("button",{onClick:()=>g(s),disabled:t===s.id,className:"btn-primary w-full text-center",children:t===s.id?"Processing...":l?"Subscribe Now":"Sign Up to Subscribe"})]})},s.id))}),n&&(()=>{const s=((l==null?void 0:l.quota)||0)/m,a=Number(n.price),c=s!t&&r(null),children:e.jsxs("div",{className:"glass rounded-2xl p-6 w-full max-w-sm",onClick:v=>v.stopPropagation(),children:[e.jsx("h2",{className:"text-lg font-semibold text-white mb-3",children:"Confirm Subscription"}),e.jsxs("p",{className:"text-sm text-neutral-400 mb-2",children:["Subscribe to ",e.jsx("span",{className:"text-white font-medium",children:n.name})," for"," ",e.jsxs("span",{className:"text-white font-medium",children:["$",a.toFixed(2)]}),"?"]}),e.jsxs("p",{className:"text-sm text-neutral-400 mb-4",children:["Your balance: ",e.jsxs("span",{className:`font-medium ${c?"text-red-400":"text-green-400"}`,children:["$",s.toFixed(2)]})]}),c&&e.jsx("div",{className:"bg-red-500/10 border border-red-500/20 rounded-xl p-3 mb-4",children:e.jsx("p",{className:"text-sm text-red-300",children:"Insufficient balance. Please top up before subscribing."})}),e.jsxs("div",{className:"flex justify-end gap-3",children:[e.jsx("button",{onClick:()=>r(null),disabled:t,className:"btn-secondary",children:"Cancel"}),e.jsx("button",{onClick:N,disabled:c||t,className:"btn-primary",children:t?"Processing...":"Confirm"})]})]})})})()]})}export{A as default}; diff --git a/dist/assets/Pricing-GrGWcOkj.js b/dist/assets/Pricing-GrGWcOkj.js new file mode 100644 index 0000000..8b06411 --- /dev/null +++ b/dist/assets/Pricing-GrGWcOkj.js @@ -0,0 +1 @@ +import{r as a,g as x,j as e}from"./index-CJw6IpTa.js";function m(){const[n,r]=a.useState([]),[s,d]=a.useState(""),[o,i]=a.useState(!0);a.useEffect(()=>{x().then(t=>{t.data.success&&r(t.data.data||[])}).catch(()=>{}).finally(()=>i(!1))},[]);const l=n.filter(t=>t.enabled!==!1).filter(t=>!s||(t.display_name||t.model_name||"").toLowerCase().includes(s.toLowerCase()));return o?e.jsx("div",{className:"flex items-center justify-center min-h-[50vh]",children:e.jsx("div",{className:"w-8 h-8 border-2 border-brand-500/30 border-t-brand-500 rounded-full animate-spin"})}):e.jsxs("div",{className:"max-w-7xl mx-auto px-6 py-10",children:[e.jsxs("div",{className:"text-center mb-10",children:[e.jsx("h1",{className:"text-3xl font-heading font-bold text-white mb-3",children:"Model Pricing"}),e.jsx("p",{className:"text-neutral-400 max-w-xl mx-auto",children:"Transparent, pay-as-you-go pricing for all available models. Prices shown per 1M tokens."})]}),e.jsx("div",{className:"max-w-md mx-auto mb-8",children:e.jsxs("div",{className:"relative",children:[e.jsx("svg",{className:"absolute left-3 top-1/2 -translate-y-1/2 w-4 h-4 text-neutral-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),e.jsx("input",{type:"text",value:s,onChange:t=>d(t.target.value),className:"input !pl-10",placeholder:"Search models..."})]})}),l.length===0?e.jsx("div",{className:"text-center py-12 text-neutral-400",children:s?"No models match your search":"No models available"}):e.jsx("div",{className:"glass-sm rounded-xl overflow-hidden",children:e.jsxs("table",{className:"w-full text-sm",children:[e.jsx("thead",{children:e.jsxs("tr",{className:"border-b border-white/[0.06]",children:[e.jsx("th",{className:"text-left px-5 py-3.5 font-medium text-neutral-400",children:"Model"}),e.jsx("th",{className:"text-right px-5 py-3.5 font-medium text-neutral-400",children:"Input / 1M tokens"}),e.jsx("th",{className:"text-right px-5 py-3.5 font-medium text-neutral-400",children:"Output / 1M tokens"}),e.jsx("th",{className:"text-center px-5 py-3.5 font-medium text-neutral-400",children:"Status"})]})}),e.jsx("tbody",{children:l.map((t,c)=>e.jsxs("tr",{className:"border-b border-white/[0.04] last:border-0 hover:bg-white/[0.02] transition-colors",children:[e.jsx("td",{className:"px-5 py-3.5",children:e.jsx("span",{className:"font-mono text-white",children:t.display_name||t.model_name})}),e.jsx("td",{className:"px-5 py-3.5 text-right font-mono text-neutral-300",children:t.input_price!=null?`$${(Number(t.input_price)*1e3).toFixed(4)}`:"-"}),e.jsx("td",{className:"px-5 py-3.5 text-right font-mono text-neutral-300",children:t.output_price!=null?`$${(Number(t.output_price)*1e3).toFixed(4)}`:"-"}),e.jsx("td",{className:"px-5 py-3.5 text-center",children:e.jsxs("span",{className:`inline-flex items-center gap-1.5 px-2 py-0.5 rounded-full text-xs border ${t.status==="healthy"?"bg-green-500/10 text-green-400 border-green-500/20":"bg-neutral-500/10 text-neutral-400 border-neutral-500/20"}`,children:[e.jsx("span",{className:`w-1.5 h-1.5 rounded-full ${t.status==="healthy"?"bg-green-500":"bg-neutral-500"}`}),t.status==="healthy"?"Online":"Unknown"]})})]},t.model_name||c))})]})})]})}export{m as default}; diff --git a/dist/assets/Register-BQ7Y75Yc.js b/dist/assets/Register-BQ7Y75Yc.js new file mode 100644 index 0000000..b261a41 --- /dev/null +++ b/dist/assets/Register-BQ7Y75Yc.js @@ -0,0 +1 @@ +import{u as x,a as h,c as w,r as i,j as e,N as f,L as b,z as t}from"./index-CJw6IpTa.js";function v(){const{register:u,user:c}=x(),{site:l}=h(),d=w(),[s,r]=i.useState({username:"",password:"",password2:"",email:""}),[n,o]=i.useState(!1);if(c)return e.jsx(f,{to:"/dashboard",replace:!0});const m=async a=>{if(a.preventDefault(),!s.username||!s.password){t.error("Please fill in all required fields");return}if(s.password!==s.password2){t.error("Passwords do not match");return}if(s.password.length<8){t.error("Password must be 8-20 characters");return}if(s.password.length>20){t.error("Password must be 8-20 characters");return}o(!0);try{if((await u({username:s.username,password:s.password,email:s.email||void 0})).success){t.success("Account created! Please sign in."),d("/login",{replace:!0});return}}catch{}o(!1)};return e.jsx("div",{className:"min-h-[70vh] flex items-center justify-center px-6",children:e.jsx("div",{className:"w-full max-w-md",children:e.jsxs("div",{className:"glass rounded-2xl p-8",children:[e.jsxs("div",{className:"text-center mb-8",children:[e.jsx("h1",{className:"text-2xl font-heading font-bold text-white mb-2",children:"Create Account"}),e.jsxs("p",{className:"text-sm text-neutral-400",children:["Get started with ",(l==null?void 0:l.name)||"our platform"]})]}),e.jsxs("form",{onSubmit:m,className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-neutral-300 mb-1.5",children:"Username *"}),e.jsx("input",{type:"text",value:s.username,onChange:a=>r({...s,username:a.target.value}),className:"input",placeholder:"Choose a username",autoComplete:"username",required:!0})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-neutral-300 mb-1.5",children:"Email"}),e.jsx("input",{type:"email",value:s.email,onChange:a=>r({...s,email:a.target.value}),className:"input",placeholder:"your@email.com (optional)",autoComplete:"email"})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-neutral-300 mb-1.5",children:"Password *"}),e.jsx("input",{type:"password",value:s.password,onChange:a=>r({...s,password:a.target.value}),className:"input",placeholder:"8-20 characters",autoComplete:"new-password",required:!0})]}),e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-neutral-300 mb-1.5",children:"Confirm Password *"}),e.jsx("input",{type:"password",value:s.password2,onChange:a=>r({...s,password2:a.target.value}),className:"input",placeholder:"Repeat your password",autoComplete:"new-password",required:!0})]}),e.jsxs("button",{type:"submit",disabled:n,className:"btn-primary w-full flex items-center justify-center gap-2",children:[n&&e.jsx("div",{className:"w-4 h-4 border-2 border-white/30 border-t-white rounded-full animate-spin"}),n?"Creating...":"Create Account"]})]}),e.jsx("div",{className:"mt-6 text-center",children:e.jsxs("p",{className:"text-sm text-neutral-400",children:["Already have an account?"," ",e.jsx(b,{to:"/login",className:"text-brand-400 hover:text-brand-300 transition-colors font-medium",children:"Sign in"})]})})]})})})}export{v as default}; diff --git a/dist/assets/SpotlightCard-lt5CQbhM.js b/dist/assets/SpotlightCard-lt5CQbhM.js new file mode 100644 index 0000000..8b4aaba --- /dev/null +++ b/dist/assets/SpotlightCard-lt5CQbhM.js @@ -0,0 +1 @@ +import{r as t,j as c}from"./index-CJw6IpTa.js";const b=({children:i,className:u="",spotlightColor:l="rgba(255, 255, 255, 0.25)"})=>{const o=t.useRef(null),[d,n]=t.useState(!1),[s,p]=t.useState({x:0,y:0}),[x,e]=t.useState(0),v=r=>{if(!o.current||d)return;const a=o.current.getBoundingClientRect();p({x:r.clientX-a.left,y:r.clientY-a.top})},f=()=>{n(!0),e(.6)},h=()=>{n(!1),e(0)},y=()=>{e(.6)},M=()=>{e(0)};return c.jsxs("div",{ref:o,onMouseMove:v,onFocus:f,onBlur:h,onMouseEnter:y,onMouseLeave:M,className:`relative rounded-3xl border border-neutral-800 bg-neutral-900 overflow-hidden p-8 ${u}`,children:[c.jsx("div",{className:"pointer-events-none absolute inset-0 opacity-0 transition-opacity duration-500 ease-in-out",style:{opacity:x,background:`radial-gradient(circle at ${s.x}px ${s.y}px, ${l}, transparent 80%)`}}),i]})};export{b as S}; diff --git a/dist/assets/Tokens-DEPVzOT6.js b/dist/assets/Tokens-DEPVzOT6.js new file mode 100644 index 0000000..7313438 --- /dev/null +++ b/dist/assets/Tokens-DEPVzOT6.js @@ -0,0 +1 @@ +import{r as a,h as D,j as e,z as o,i as I,k as A,l as P}from"./index-CJw6IpTa.js";function z(){const[x,N]=a.useState([]),[g,u]=a.useState(!0),[v,l]=a.useState(!1),[m,h]=a.useState(""),[p,b]=a.useState(!1),[w,j]=a.useState(null),[c,y]=a.useState(null),[i,d]=a.useState(null),n=a.useCallback(async()=>{u(!0);try{const s=await D();s.data.success&&N(s.data.data||[])}catch{}u(!1)},[]);a.useEffect(()=>{n()},[n]);const k=async s=>{var r;if(s.preventDefault(),!m.trim()){o.error("Please enter a name");return}b(!0);try{const t=await I({name:m.trim()});if(t.data.success){h(""),l(!1);const f=(r=t.data.data)==null?void 0:r.key;f&&y(f),await n()}}catch{}b(!1)},C=async s=>{try{(await A(s.id,{status:s.status===1?2:1})).data.success&&(o.success(s.status===1?"Token disabled":"Token enabled"),await n())}catch{}},T=async()=>{if(i)try{(await P(i.id)).data.success&&(o.success("Token deleted"),d(null),await n())}catch{}},S=async s=>{try{await navigator.clipboard.writeText(s)}catch{const t=document.createElement("textarea");t.value=s,t.style.position="fixed",t.style.opacity="0",document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}j(s),o.success("Copied to clipboard!"),setTimeout(()=>j(null),2e3)};return g?e.jsx("div",{className:"flex items-center justify-center min-h-[50vh]",children:e.jsx("div",{className:"w-8 h-8 border-2 border-brand-500/30 border-t-brand-500 rounded-full animate-spin"})}):e.jsxs("div",{className:"max-w-5xl mx-auto px-6 py-10",children:[e.jsxs("div",{className:"flex items-center justify-between mb-8",children:[e.jsxs("div",{children:[e.jsx("h1",{className:"text-2xl font-heading font-bold text-white",children:"API Keys"}),e.jsx("p",{className:"text-sm text-neutral-400 mt-1",children:"Manage your API access tokens"})]}),e.jsx("button",{onClick:()=>l(!0),className:"btn-primary",children:"+ New Key"})]}),v&&e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm",onClick:()=>l(!1),children:e.jsxs("div",{className:"glass rounded-2xl p-6 w-full max-w-md",onClick:s=>s.stopPropagation(),children:[e.jsx("h2",{className:"text-lg font-semibold text-white mb-4",children:"Create API Key"}),e.jsxs("form",{onSubmit:k,className:"space-y-4",children:[e.jsxs("div",{children:[e.jsx("label",{className:"block text-sm font-medium text-neutral-300 mb-1.5",children:"Name"}),e.jsx("input",{type:"text",value:m,onChange:s=>h(s.target.value),className:"input",placeholder:"e.g. my-app-key",autoFocus:!0,required:!0})]}),e.jsxs("div",{className:"flex justify-end gap-3",children:[e.jsx("button",{type:"button",onClick:()=>l(!1),className:"btn-secondary",children:"Cancel"}),e.jsx("button",{type:"submit",disabled:p,className:"btn-primary",children:p?"Creating...":"Create"})]})]})]})}),c&&e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm",children:e.jsxs("div",{className:"glass rounded-2xl p-6 w-full max-w-lg",children:[e.jsx("h2",{className:"text-lg font-semibold text-white mb-2",children:"Your New API Key"}),e.jsx("div",{className:"bg-yellow-500/10 border border-yellow-500/20 rounded-xl p-3 mb-4",children:e.jsx("p",{className:"text-sm text-yellow-300",children:"This is the only time you'll see this key. Copy it now and store it securely."})}),e.jsxs("div",{className:"bg-black/40 rounded-xl p-4 flex items-center gap-3",children:[e.jsx("code",{className:"text-sm font-mono text-green-400 flex-1 break-all select-all",children:c}),e.jsx("button",{onClick:()=>S(c),className:"btn-primary !px-4 !py-1.5 flex-shrink-0",children:w===c?"Copied!":"Copy"})]}),e.jsx("div",{className:"flex justify-end mt-4",children:e.jsx("button",{onClick:()=>y(null),className:"btn-secondary",children:"I've saved my key"})})]})}),i&&e.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/60 backdrop-blur-sm",onClick:()=>d(null),children:e.jsxs("div",{className:"glass rounded-2xl p-6 w-full max-w-sm",onClick:s=>s.stopPropagation(),children:[e.jsx("h2",{className:"text-lg font-semibold text-white mb-3",children:"Delete Token"}),e.jsxs("p",{className:"text-sm text-neutral-400 mb-4",children:["Delete ",e.jsxs("span",{className:"text-white font-medium",children:['"',i.name,'"']}),"? This cannot be undone."]}),e.jsxs("div",{className:"flex justify-end gap-3",children:[e.jsx("button",{onClick:()=>d(null),className:"btn-secondary",children:"Cancel"}),e.jsx("button",{onClick:T,className:"px-6 py-2.5 rounded-xl bg-red-600 text-white text-sm font-medium hover:bg-red-500 transition-colors",children:"Delete"})]})]})}),x.length===0?e.jsxs("div",{className:"glass rounded-2xl p-12 text-center",children:[e.jsx("div",{className:"w-16 h-16 mx-auto mb-4 rounded-2xl bg-neutral-800/50 flex items-center justify-center",children:e.jsx("svg",{className:"w-8 h-8 text-neutral-600",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:e.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z"})})}),e.jsx("p",{className:"text-neutral-400 mb-4",children:"No API keys yet"}),e.jsx("button",{onClick:()=>l(!0),className:"btn-primary",children:"Create Your First Key"})]}):e.jsx("div",{className:"space-y-3",children:x.map(s=>e.jsxs("div",{className:"glass-sm rounded-xl p-5 flex items-center gap-4",children:[e.jsx("div",{className:`w-2.5 h-2.5 rounded-full flex-shrink-0 ${s.status===1?"bg-green-500":"bg-neutral-600"}`}),e.jsxs("div",{className:"flex-1 min-w-0",children:[e.jsx("p",{className:"text-sm font-medium text-white",children:s.name}),e.jsx("p",{className:"text-xs font-mono text-neutral-500 mt-1",children:"sk-***"})]}),e.jsx("span",{className:"text-xs text-neutral-500 hidden md:block",children:s.created_time?new Date(s.created_time*1e3).toLocaleDateString():""}),e.jsxs("div",{className:"flex items-center gap-2",children:[e.jsx("button",{onClick:()=>C(s),className:`px-3 py-1 text-xs rounded-lg border transition-colors ${s.status===1?"border-green-500/30 text-green-400 hover:bg-green-500/10":"border-neutral-600 text-neutral-400 hover:bg-neutral-800"}`,children:s.status===1?"Enabled":"Disabled"}),e.jsx("button",{onClick:()=>d(s),className:"px-3 py-1 text-xs rounded-lg border border-red-500/20 text-red-400 hover:bg-red-500/10 transition-colors",children:"Delete"})]})]},s.id))}),e.jsxs("div",{className:"glass rounded-2xl p-6 mt-8",children:[e.jsx("h3",{className:"text-sm font-semibold text-white mb-3",children:"Quick Start"}),e.jsxs("div",{className:"bg-black/40 rounded-xl p-4 font-mono text-sm",children:[e.jsx("p",{className:"text-neutral-500",children:"# Use your API key with OpenAI-compatible endpoint"}),e.jsxs("p",{className:"text-green-400 mt-2",children:["curl ",window.location.origin,"/v1/chat/completions \\"]}),e.jsx("p",{className:"text-neutral-300 pl-4",children:'-H "Authorization: Bearer sk-your-key" \\'}),e.jsx("p",{className:"text-neutral-300 pl-4",children:'-H "Content-Type: application/json" \\'}),e.jsxs("p",{className:"text-neutral-300 pl-4",children:["-d '",'{"model":"gpt-4o","messages":[{"role":"user","content":"Hello!"}]}',"'"]})]})]})]})}export{z as default}; diff --git a/dist/assets/index-CDfjgnlx.css b/dist/assets/index-CDfjgnlx.css new file mode 100644 index 0000000..57b1ac3 --- /dev/null +++ b/dist/assets/index-CDfjgnlx.css @@ -0,0 +1 @@ +*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,system-ui,-apple-system,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:JetBrains Mono,Fira Code,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root{--brand: 99 102 241}body{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1));--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));font-feature-settings:"cv02","cv03","cv04","cv11"}::-moz-selection{background-color:#6366f14d}::selection{background-color:#6366f14d}::-webkit-scrollbar{width:.375rem}::-webkit-scrollbar-track{background-color:transparent}::-webkit-scrollbar-thumb{border-radius:9999px;--tw-bg-opacity: 1;background-color:rgb(64 64 64 / var(--tw-bg-opacity, 1))}.glass{border-radius:1rem;border-width:1px;border-color:#ffffff0f;background-color:#ffffff08;--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.glass-sm{border-radius:.75rem;border-width:1px;border-color:#ffffff14;background-color:#ffffff0a;--tw-backdrop-blur: blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.btn-primary{border-radius:.75rem;--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity, 1));padding:.625rem 1.5rem;font-size:.875rem;line-height:1.25rem;font-weight:500;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);--tw-shadow-color: rgb(79 70 229 / .2);--tw-shadow: var(--tw-shadow-colored);transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s;transition-timing-function:cubic-bezier(0,0,.2,1)}.btn-primary:hover{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1))}.btn-primary:active{--tw-bg-opacity: 1;background-color:rgb(67 56 202 / var(--tw-bg-opacity, 1))}.btn-primary:disabled{cursor:not-allowed;opacity:.5}.btn-secondary{border-radius:.75rem;border-width:1px;border-color:#ffffff1a;padding:.625rem 1.5rem;font-size:.875rem;line-height:1.25rem;font-weight:500;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s;transition-timing-function:cubic-bezier(0,0,.2,1)}.btn-secondary:hover{background-color:#ffffff0d}.btn-secondary:active{background-color:#ffffff1a}.btn-secondary:disabled{cursor:not-allowed;opacity:.5}.input{width:100%;border-radius:.75rem;border-width:1px;border-color:#ffffff1a;background-color:#ffffff0a;padding:.625rem 1rem;font-size:.875rem;line-height:1.25rem;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.input::-moz-placeholder{--tw-placeholder-opacity: 1;color:rgb(115 115 115 / var(--tw-placeholder-opacity, 1))}.input::placeholder{--tw-placeholder-opacity: 1;color:rgb(115 115 115 / var(--tw-placeholder-opacity, 1))}.input{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.2s}.input:focus{border-color:#6366f199;outline:2px solid transparent;outline-offset:2px;--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000);--tw-ring-color: rgb(99 102 241 / .4)}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.bottom-\[-11px\]{bottom:-11px}.left-1\/2{left:50%}.left-3{left:.75rem}.left-\[-250\%\]{left:-250%}.right-0{right:0}.right-\[-250\%\]{right:-250%}.top-0{top:0}.top-1\/2{top:50%}.top-\[-10px\]{top:-10px}.top-\[400px\]{top:400px}.z-0{z-index:0}.z-10{z-index:10}.z-50{z-index:50}.z-\[-1\]{z-index:-1}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-10{margin-bottom:2.5rem}.mb-12{margin-bottom:3rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-20{margin-top:5rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-auto{margin-top:auto}.block{display:block}.inline-block{display:inline-block}.\!inline{display:inline!important}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-1\.5{height:.375rem}.h-12{height:3rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-\[50\%\]{height:50%}.h-\[500px\]{height:500px}.h-\[600px\]{height:600px}.min-h-\[50vh\]{min-height:50vh}.min-h-\[70vh\]{min-height:70vh}.min-h-screen{min-height:100vh}.w-1\.5{width:.375rem}.w-12{width:3rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-4{width:1rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-\[300\%\]{width:300%}.w-\[500px\]{width:500px}.w-\[800px\]{width:800px}.w-auto{width:auto}.w-full{width:100%}.min-w-0{min-width:0px}.max-w-2xl{max-width:42rem}.max-w-4xl{max-width:56rem}.max-w-5xl{max-width:64rem}.max-w-7xl{max-width:80rem}.max-w-fit{max-width:-moz-fit-content;max-width:fit-content}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.flex-1{flex:1 1 0%}.flex-shrink-0{flex-shrink:0}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}@keyframes star-movement-bottom{0%{transform:translate(0);opacity:1}to{transform:translate(-100%);opacity:0}}.animate-star-movement-bottom{animation:star-movement-bottom linear infinite alternate}@keyframes star-movement-top{0%{transform:translate(0);opacity:1}to{transform:translate(100%);opacity:0}}.animate-star-movement-top{animation:star-movement-top linear infinite alternate}.cursor-pointer{cursor:pointer}.select-all{-webkit-user-select:all;-moz-user-select:all;user-select:all}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.overflow-hidden{overflow:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.break-all{word-break:break-all}.\!rounded-2xl{border-radius:1rem!important}.\!rounded-xl{border-radius:.75rem!important}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-\[1\.25rem\]{border-radius:1.25rem}.rounded-\[20px\]{border-radius:20px}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-t{border-top-width:1px}.\!border-neutral-800\/60{border-color:#26262699!important}.border-brand-500\/20{border-color:#6366f133}.border-brand-500\/30{border-color:#6366f14d}.border-gray-800{--tw-border-opacity: 1;border-color:rgb(31 41 55 / var(--tw-border-opacity, 1))}.border-green-500\/20{border-color:#22c55e33}.border-green-500\/30{border-color:#22c55e4d}.border-neutral-500\/20{border-color:#73737333}.border-neutral-600{--tw-border-opacity: 1;border-color:rgb(82 82 82 / var(--tw-border-opacity, 1))}.border-neutral-800{--tw-border-opacity: 1;border-color:rgb(38 38 38 / var(--tw-border-opacity, 1))}.border-red-500\/20{border-color:#ef444433}.border-white\/30{border-color:#ffffff4d}.border-white\/\[0\.04\]{border-color:#ffffff0a}.border-white\/\[0\.06\]{border-color:#ffffff0f}.border-yellow-500\/20{border-color:#eab30833}.border-t-brand-500{--tw-border-opacity: 1;border-top-color:rgb(99 102 241 / var(--tw-border-opacity, 1))}.border-t-white{--tw-border-opacity: 1;border-top-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.\!bg-neutral-900\/60{background-color:#17171799!important}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity, 1))}.bg-black\/40{background-color:#0006}.bg-black\/60{background-color:#0009}.bg-black\/90{background-color:#000000e6}.bg-brand-500\/10{background-color:#6366f11a}.bg-brand-600\/20{background-color:#4f46e533}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-green-500\/10{background-color:#22c55e1a}.bg-neutral-500{--tw-bg-opacity: 1;background-color:rgb(115 115 115 / var(--tw-bg-opacity, 1))}.bg-neutral-500\/10{background-color:#7373731a}.bg-neutral-600{--tw-bg-opacity: 1;background-color:rgb(82 82 82 / var(--tw-bg-opacity, 1))}.bg-neutral-800\/50{background-color:#26262680}.bg-neutral-900{--tw-bg-opacity: 1;background-color:rgb(23 23 23 / var(--tw-bg-opacity, 1))}.bg-pink-500\/10{background-color:#ec48991a}.bg-purple-500\/10{background-color:#a855f71a}.bg-red-500\/10{background-color:#ef44441a}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-yellow-500\/10{background-color:#eab3081a}.bg-gradient-to-b{background-image:linear-gradient(to bottom,var(--tw-gradient-stops))}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.from-black{--tw-gradient-from: #000 var(--tw-gradient-from-position);--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-brand-500{--tw-gradient-from: #6366f1 var(--tw-gradient-from-position);--tw-gradient-to: rgb(99 102 241 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-brand-600\/10{--tw-gradient-from: rgb(79 70 229 / .1) var(--tw-gradient-from-position);--tw-gradient-to: rgb(79 70 229 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-brand-600\/20{--tw-gradient-from: rgb(79 70 229 / .2) var(--tw-gradient-from-position);--tw-gradient-to: rgb(79 70 229 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-pink-600\/10{--tw-gradient-from: rgb(219 39 119 / .1) var(--tw-gradient-from-position);--tw-gradient-to: rgb(219 39 119 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-purple-600\/5{--tw-gradient-to: rgb(147 51 234 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), rgb(147 51 234 / .05) var(--tw-gradient-via-position), var(--tw-gradient-to)}.via-transparent{--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), transparent var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-gray-900{--tw-gradient-to: #111827 var(--tw-gradient-to-position)}.to-purple-600{--tw-gradient-to: #9333ea var(--tw-gradient-to-position)}.to-purple-600\/10{--tw-gradient-to: rgb(147 51 234 / .1) var(--tw-gradient-to-position)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.\!p-0{padding:0!important}.\!p-6{padding:1.5rem!important}.p-1\.5{padding:.375rem}.p-12{padding:3rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.\!px-4{padding-left:1rem!important;padding-right:1rem!important}.\!px-8{padding-left:2rem!important;padding-right:2rem!important}.\!py-1\.5{padding-top:.375rem!important;padding-bottom:.375rem!important}.\!py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.\!py-3{padding-top:.75rem!important;padding-bottom:.75rem!important}.px-2{padding-left:.5rem;padding-right:.5rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-\[26px\]{padding-left:26px;padding-right:26px}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-20{padding-top:5rem;padding-bottom:5rem}.py-24{padding-top:6rem;padding-bottom:6rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-3\.5{padding-top:.875rem;padding-bottom:.875rem}.py-8{padding-top:2rem;padding-bottom:2rem}.py-\[16px\]{padding-top:16px;padding-bottom:16px}.\!pl-10{padding-left:2.5rem!important}.pb-20{padding-bottom:5rem}.pl-4{padding-left:1rem}.pt-24{padding-top:6rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-heading{font-family:Inter,system-ui,-apple-system,sans-serif}.font-mono{font-family:JetBrains Mono,Fira Code,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-\[16px\]{font-size:16px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-extrabold{font-weight:800}.font-medium{font-weight:500}.font-semibold{font-weight:600}.leading-relaxed{line-height:1.625}.leading-tight{line-height:1.25}.text-brand-200{--tw-text-opacity: 1;color:rgb(199 210 254 / var(--tw-text-opacity, 1))}.text-brand-400{--tw-text-opacity: 1;color:rgb(129 140 248 / var(--tw-text-opacity, 1))}.text-green-400{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.text-neutral-300{--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity, 1))}.text-neutral-400{--tw-text-opacity: 1;color:rgb(163 163 163 / var(--tw-text-opacity, 1))}.text-neutral-500{--tw-text-opacity: 1;color:rgb(115 115 115 / var(--tw-text-opacity, 1))}.text-neutral-600{--tw-text-opacity: 1;color:rgb(82 82 82 / var(--tw-text-opacity, 1))}.text-pink-400{--tw-text-opacity: 1;color:rgb(244 114 182 / var(--tw-text-opacity, 1))}.text-purple-400{--tw-text-opacity: 1;color:rgb(192 132 252 / var(--tw-text-opacity, 1))}.text-red-300{--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity, 1))}.text-red-400{--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.text-transparent{color:transparent}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-yellow-300{--tw-text-opacity: 1;color:rgb(253 224 71 / var(--tw-text-opacity, 1))}.line-through{text-decoration-line:line-through}.antialiased{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-70{opacity:.7}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.blur-3xl{--tw-blur: blur(64px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur{--tw-backdrop-blur: blur(8px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.backdrop-blur-xl{--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-500{transition-duration:.5s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.will-change-\[transform\,filter\,opacity\]{will-change:transform,filter,opacity}.last\:border-0:last-child{border-width:0px}.hover\:border-brand-500\/30:hover{border-color:#6366f14d}.hover\:bg-green-500\/10:hover{background-color:#22c55e1a}.hover\:bg-neutral-800:hover{--tw-bg-opacity: 1;background-color:rgb(38 38 38 / var(--tw-bg-opacity, 1))}.hover\:bg-red-500:hover{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.hover\:bg-red-500\/10:hover{background-color:#ef44441a}.hover\:bg-white\/5:hover{background-color:#ffffff0d}.hover\:bg-white\/\[0\.02\]:hover{background-color:#ffffff05}.hover\:bg-white\/\[0\.06\]:hover{background-color:#ffffff0f}.hover\:text-brand-300:hover{--tw-text-opacity: 1;color:rgb(165 180 252 / var(--tw-text-opacity, 1))}.hover\:text-neutral-300:hover{--tw-text-opacity: 1;color:rgb(212 212 212 / var(--tw-text-opacity, 1))}.hover\:text-white:hover{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.group:hover .group-hover\:text-brand-400{--tw-text-opacity: 1;color:rgb(129 140 248 / var(--tw-text-opacity, 1))}.group:hover .group-hover\:text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}@media (min-width: 640px){.sm\:block{display:block}.sm\:hidden{display:none}}@media (min-width: 768px){.md\:block{display:block}.md\:flex{display:flex}.md\:hidden{display:none}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:text-7xl{font-size:4.5rem;line-height:1}.md\:text-xl{font-size:1.25rem;line-height:1.75rem}}@media (min-width: 1024px){.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}} diff --git a/dist/assets/index-CJw6IpTa.js b/dist/assets/index-CJw6IpTa.js new file mode 100644 index 0000000..aa93eb2 --- /dev/null +++ b/dist/assets/index-CJw6IpTa.js @@ -0,0 +1,249 @@ +const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Home-D5xeHSSc.js","assets/CountUp-SCQ6rVWn.js","assets/SpotlightCard-lt5CQbhM.js","assets/Dashboard-Djts405O.js","assets/Packages-CIW8TdH4.js"])))=>i.map(i=>d[i]); +function Zd(e,t){for(var n=0;nr[l]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))r(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();function bd(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Xa={exports:{}},eo={},Ya={exports:{}},I={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var zr=Symbol.for("react.element"),ep=Symbol.for("react.portal"),tp=Symbol.for("react.fragment"),np=Symbol.for("react.strict_mode"),rp=Symbol.for("react.profiler"),lp=Symbol.for("react.provider"),op=Symbol.for("react.context"),ip=Symbol.for("react.forward_ref"),sp=Symbol.for("react.suspense"),up=Symbol.for("react.memo"),ap=Symbol.for("react.lazy"),du=Symbol.iterator;function cp(e){return e===null||typeof e!="object"?null:(e=du&&e[du]||e["@@iterator"],typeof e=="function"?e:null)}var Ga={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Za=Object.assign,ba={};function $n(e,t,n){this.props=e,this.context=t,this.refs=ba,this.updater=n||Ga}$n.prototype.isReactComponent={};$n.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};$n.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function ec(){}ec.prototype=$n.prototype;function is(e,t,n){this.props=e,this.context=t,this.refs=ba,this.updater=n||Ga}var ss=is.prototype=new ec;ss.constructor=is;Za(ss,$n.prototype);ss.isPureReactComponent=!0;var pu=Array.isArray,tc=Object.prototype.hasOwnProperty,us={current:null},nc={key:!0,ref:!0,__self:!0,__source:!0};function rc(e,t,n){var r,l={},o=null,i=null;if(t!=null)for(r in t.ref!==void 0&&(i=t.ref),t.key!==void 0&&(o=""+t.key),t)tc.call(t,r)&&!nc.hasOwnProperty(r)&&(l[r]=t[r]);var s=arguments.length-2;if(s===1)l.children=n;else if(1>>1,B=_[F];if(0>>1;Fl(fn,z))Vtl(Qr,fn)?(_[F]=Qr,_[Vt]=z,F=Vt):(_[F]=fn,_[je]=z,F=je);else if(Vtl(Qr,z))_[F]=Qr,_[Vt]=z,F=Vt;else break e}}return j}function l(_,j){var z=_.sortIndex-j.sortIndex;return z!==0?z:_.id-j.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var i=Date,s=i.now();e.unstable_now=function(){return i.now()-s}}var u=[],a=[],c=1,f=null,m=3,S=!1,g=!1,y=!1,w=typeof setTimeout=="function"?setTimeout:null,p=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function h(_){for(var j=n(a);j!==null;){if(j.callback===null)r(a);else if(j.startTime<=_)r(a),j.sortIndex=j.expirationTime,t(u,j);else break;j=n(a)}}function x(_){if(y=!1,h(_),!g)if(n(u)!==null)g=!0,ne(C);else{var j=n(a);j!==null&&cn(x,j.startTime-_)}}function C(_,j){g=!1,y&&(y=!1,p(T),T=-1),S=!0;var z=m;try{for(h(j),f=n(u);f!==null&&(!(f.expirationTime>j)||_&&!ve());){var F=f.callback;if(typeof F=="function"){f.callback=null,m=f.priorityLevel;var B=F(f.expirationTime<=j);j=e.unstable_now(),typeof B=="function"?f.callback=B:f===n(u)&&r(u),h(j)}else r(u);f=n(u)}if(f!==null)var yt=!0;else{var je=n(a);je!==null&&cn(x,je.startTime-j),yt=!1}return yt}finally{f=null,m=z,S=!1}}var O=!1,P=null,T=-1,M=5,A=-1;function ve(){return!(e.unstable_now()-A_||125<_?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):M=0<_?Math.floor(1e3/_):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(u)},e.unstable_next=function(_){switch(m){case 1:case 2:case 3:var j=3;break;default:j=m}var z=m;m=j;try{return _()}finally{m=z}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(_,j){switch(_){case 1:case 2:case 3:case 4:case 5:break;default:_=3}var z=m;m=_;try{return j()}finally{m=z}},e.unstable_scheduleCallback=function(_,j,z){var F=e.unstable_now();switch(typeof z=="object"&&z!==null?(z=z.delay,z=typeof z=="number"&&0F?(_.sortIndex=z,t(a,_),n(u)===null&&_===n(a)&&(y?(p(T),T=-1):y=!0,cn(x,z-F))):(_.sortIndex=B,t(u,_),g||S||(g=!0,ne(C))),_},e.unstable_shouldYield=ve,e.unstable_wrapCallback=function(_){var j=m;return function(){var z=m;m=j;try{return _.apply(this,arguments)}finally{m=z}}}})(ac);uc.exports=ac;var xp=uc.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var kp=E,Oe=xp;function k(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),oi=Object.prototype.hasOwnProperty,Cp=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,mu={},gu={};function _p(e){return oi.call(gu,e)?!0:oi.call(mu,e)?!1:Cp.test(e)?gu[e]=!0:(mu[e]=!0,!1)}function Rp(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Pp(e,t,n,r){if(t===null||typeof t>"u"||Rp(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ye(e,t,n,r,l,o,i){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=l,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=i}var se={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){se[e]=new ye(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];se[t]=new ye(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){se[e]=new ye(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){se[e]=new ye(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){se[e]=new ye(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){se[e]=new ye(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){se[e]=new ye(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){se[e]=new ye(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){se[e]=new ye(e,5,!1,e.toLowerCase(),null,!1,!1)});var cs=/[\-:]([a-z])/g;function fs(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(cs,fs);se[t]=new ye(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(cs,fs);se[t]=new ye(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(cs,fs);se[t]=new ye(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){se[e]=new ye(e,1,!1,e.toLowerCase(),null,!1,!1)});se.xlinkHref=new ye("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){se[e]=new ye(e,1,!1,e.toLowerCase(),null,!0,!0)});function ds(e,t,n,r){var l=se.hasOwnProperty(t)?se[t]:null;(l!==null?l.type!==0:r||!(2s||l[i]!==o[s]){var u=` +`+l[i].replace(" at new "," at ");return e.displayName&&u.includes("")&&(u=u.replace("",e.displayName)),u}while(1<=i&&0<=s);break}}}finally{Po=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?tr(e):""}function Np(e){switch(e.tag){case 5:return tr(e.type);case 16:return tr("Lazy");case 13:return tr("Suspense");case 19:return tr("SuspenseList");case 0:case 2:case 15:return e=No(e.type,!1),e;case 11:return e=No(e.type.render,!1),e;case 1:return e=No(e.type,!0),e;default:return""}}function ai(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case mn:return"Fragment";case hn:return"Portal";case ii:return"Profiler";case ps:return"StrictMode";case si:return"Suspense";case ui:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case dc:return(e.displayName||"Context")+".Consumer";case fc:return(e._context.displayName||"Context")+".Provider";case hs:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ms:return t=e.displayName||null,t!==null?t:ai(e.type)||"Memo";case wt:t=e._payload,e=e._init;try{return ai(e(t))}catch{}}return null}function Op(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ai(t);case 8:return t===ps?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Dt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function hc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Tp(e){var t=hc(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var l=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(i){r=""+i,o.call(this,i)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(i){r=""+i},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Jr(e){e._valueTracker||(e._valueTracker=Tp(e))}function mc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=hc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Pl(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function ci(e,t){var n=t.checked;return q({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function vu(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Dt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function gc(e,t){t=t.checked,t!=null&&ds(e,"checked",t,!1)}function fi(e,t){gc(e,t);var n=Dt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?di(e,t.type,n):t.hasOwnProperty("defaultValue")&&di(e,t.type,Dt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function wu(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function di(e,t,n){(t!=="number"||Pl(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var nr=Array.isArray;function Rn(e,t,n,r){if(e=e.options,t){t={};for(var l=0;l"+t.valueOf().toString()+"",t=Xr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function mr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var or={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Lp=["Webkit","ms","Moz","O"];Object.keys(or).forEach(function(e){Lp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),or[t]=or[e]})});function Sc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||or.hasOwnProperty(e)&&or[e]?(""+t).trim():t+"px"}function Ec(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,l=Sc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,l):e[n]=l}}var jp=q({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function mi(e,t){if(t){if(jp[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(k(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(k(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(k(61))}if(t.style!=null&&typeof t.style!="object")throw Error(k(62))}}function gi(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var yi=null;function gs(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var vi=null,Pn=null,Nn=null;function xu(e){if(e=Dr(e)){if(typeof vi!="function")throw Error(k(280));var t=e.stateNode;t&&(t=oo(t),vi(e.stateNode,e.type,t))}}function xc(e){Pn?Nn?Nn.push(e):Nn=[e]:Pn=e}function kc(){if(Pn){var e=Pn,t=Nn;if(Nn=Pn=null,xu(e),t)for(e=0;e>>=0,e===0?32:31-(Vp(e)/Wp|0)|0}var Yr=64,Gr=4194304;function rr(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Ll(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,l=e.suspendedLanes,o=e.pingedLanes,i=n&268435455;if(i!==0){var s=i&~l;s!==0?r=rr(s):(o&=i,o!==0&&(r=rr(o)))}else i=n&~l,i!==0?r=rr(i):o!==0&&(r=rr(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&l)&&(l=r&-r,o=t&-t,l>=o||l===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Ar(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ke(t),e[t]=n}function Jp(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=sr),Lu=" ",ju=!1;function Vc(e,t){switch(e){case"keyup":return xh.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Wc(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var gn=!1;function Ch(e,t){switch(e){case"compositionend":return Wc(t);case"keypress":return t.which!==32?null:(ju=!0,Lu);case"textInput":return e=t.data,e===Lu&&ju?null:e;default:return null}}function _h(e,t){if(gn)return e==="compositionend"||!Cs&&Vc(e,t)?(e=Bc(),hl=Es=Ct=null,gn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Du(n)}}function Jc(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Jc(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Xc(){for(var e=window,t=Pl();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Pl(e.document)}return t}function _s(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Ah(e){var t=Xc(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Jc(n.ownerDocument.documentElement,n)){if(r!==null&&_s(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var l=n.textContent.length,o=Math.min(r.start,l);r=r.end===void 0?o:Math.min(r.end,l),!e.extend&&o>r&&(l=r,r=o,o=l),l=Fu(n,o);var i=Fu(n,r);l&&i&&(e.rangeCount!==1||e.anchorNode!==l.node||e.anchorOffset!==l.offset||e.focusNode!==i.node||e.focusOffset!==i.offset)&&(t=t.createRange(),t.setStart(l.node,l.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(i.node,i.offset)):(t.setEnd(i.node,i.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,yn=null,Ci=null,ar=null,_i=!1;function Uu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;_i||yn==null||yn!==Pl(r)||(r=yn,"selectionStart"in r&&_s(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),ar&&Er(ar,r)||(ar=r,r=Al(Ci,"onSelect"),0Sn||(e.current=Li[Sn],Li[Sn]=null,Sn--)}function $(e,t){Sn++,Li[Sn]=e.current,e.current=t}var Ft={},de=Mt(Ft),Ee=Mt(!1),bt=Ft;function zn(e,t){var n=e.type.contextTypes;if(!n)return Ft;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var l={},o;for(o in n)l[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=l),l}function xe(e){return e=e.childContextTypes,e!=null}function Dl(){V(Ee),V(de)}function Qu(e,t,n){if(de.current!==Ft)throw Error(k(168));$(de,t),$(Ee,n)}function lf(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var l in r)if(!(l in t))throw Error(k(108,Op(e)||"Unknown",l));return q({},n,r)}function Fl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Ft,bt=de.current,$(de,e),$(Ee,Ee.current),!0}function Ku(e,t,n){var r=e.stateNode;if(!r)throw Error(k(169));n?(e=lf(e,t,bt),r.__reactInternalMemoizedMergedChildContext=e,V(Ee),V(de),$(de,e)):V(Ee),$(Ee,n)}var it=null,io=!1,Ho=!1;function of(e){it===null?it=[e]:it.push(e)}function Kh(e){io=!0,of(e)}function $t(){if(!Ho&&it!==null){Ho=!0;var e=0,t=U;try{var n=it;for(U=1;e>=i,l-=i,st=1<<32-Ke(t)+l|n<T?(M=P,P=null):M=P.sibling;var A=m(p,P,h[T],x);if(A===null){P===null&&(P=M);break}e&&P&&A.alternate===null&&t(p,P),d=o(A,d,T),O===null?C=A:O.sibling=A,O=A,P=M}if(T===h.length)return n(p,P),W&&Wt(p,T),C;if(P===null){for(;TT?(M=P,P=null):M=P.sibling;var ve=m(p,P,A.value,x);if(ve===null){P===null&&(P=M);break}e&&P&&ve.alternate===null&&t(p,P),d=o(ve,d,T),O===null?C=ve:O.sibling=ve,O=ve,P=M}if(A.done)return n(p,P),W&&Wt(p,T),C;if(P===null){for(;!A.done;T++,A=h.next())A=f(p,A.value,x),A!==null&&(d=o(A,d,T),O===null?C=A:O.sibling=A,O=A);return W&&Wt(p,T),C}for(P=r(p,P);!A.done;T++,A=h.next())A=S(P,p,T,A.value,x),A!==null&&(e&&A.alternate!==null&&P.delete(A.key===null?T:A.key),d=o(A,d,T),O===null?C=A:O.sibling=A,O=A);return e&&P.forEach(function(Ye){return t(p,Ye)}),W&&Wt(p,T),C}function w(p,d,h,x){if(typeof h=="object"&&h!==null&&h.type===mn&&h.key===null&&(h=h.props.children),typeof h=="object"&&h!==null){switch(h.$$typeof){case qr:e:{for(var C=h.key,O=d;O!==null;){if(O.key===C){if(C=h.type,C===mn){if(O.tag===7){n(p,O.sibling),d=l(O,h.props.children),d.return=p,p=d;break e}}else if(O.elementType===C||typeof C=="object"&&C!==null&&C.$$typeof===wt&&Xu(C)===O.type){n(p,O.sibling),d=l(O,h.props),d.ref=Gn(p,O,h),d.return=p,p=d;break e}n(p,O);break}else t(p,O);O=O.sibling}h.type===mn?(d=Gt(h.props.children,p.mode,x,h.key),d.return=p,p=d):(x=xl(h.type,h.key,h.props,null,p.mode,x),x.ref=Gn(p,d,h),x.return=p,p=x)}return i(p);case hn:e:{for(O=h.key;d!==null;){if(d.key===O)if(d.tag===4&&d.stateNode.containerInfo===h.containerInfo&&d.stateNode.implementation===h.implementation){n(p,d.sibling),d=l(d,h.children||[]),d.return=p,p=d;break e}else{n(p,d);break}else t(p,d);d=d.sibling}d=Yo(h,p.mode,x),d.return=p,p=d}return i(p);case wt:return O=h._init,w(p,d,O(h._payload),x)}if(nr(h))return g(p,d,h,x);if(Kn(h))return y(p,d,h,x);ll(p,h)}return typeof h=="string"&&h!==""||typeof h=="number"?(h=""+h,d!==null&&d.tag===6?(n(p,d.sibling),d=l(d,h),d.return=p,p=d):(n(p,d),d=Xo(h,p.mode,x),d.return=p,p=d),i(p)):n(p,d)}return w}var In=cf(!0),ff=cf(!1),$l=Mt(null),Bl=null,kn=null,Os=null;function Ts(){Os=kn=Bl=null}function Ls(e){var t=$l.current;V($l),e._currentValue=t}function Ai(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Tn(e,t){Bl=e,Os=kn=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Se=!0),e.firstContext=null)}function Ue(e){var t=e._currentValue;if(Os!==e)if(e={context:e,memoizedValue:t,next:null},kn===null){if(Bl===null)throw Error(k(308));kn=e,Bl.dependencies={lanes:0,firstContext:e}}else kn=kn.next=e;return t}var qt=null;function js(e){qt===null?qt=[e]:qt.push(e)}function df(e,t,n,r){var l=t.interleaved;return l===null?(n.next=n,js(t)):(n.next=l.next,l.next=n),t.interleaved=n,dt(e,r)}function dt(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var St=!1;function zs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function pf(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function at(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function Lt(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,D&2){var l=r.pending;return l===null?t.next=t:(t.next=l.next,l.next=t),r.pending=t,dt(e,n)}return l=r.interleaved,l===null?(t.next=t,js(r)):(t.next=l.next,l.next=t),r.interleaved=t,dt(e,n)}function gl(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,vs(e,n)}}function Yu(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var l=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var i={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?l=o=i:o=o.next=i,n=n.next}while(n!==null);o===null?l=o=t:o=o.next=t}else l=o=t;n={baseState:r.baseState,firstBaseUpdate:l,lastBaseUpdate:o,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Hl(e,t,n,r){var l=e.updateQueue;St=!1;var o=l.firstBaseUpdate,i=l.lastBaseUpdate,s=l.shared.pending;if(s!==null){l.shared.pending=null;var u=s,a=u.next;u.next=null,i===null?o=a:i.next=a,i=u;var c=e.alternate;c!==null&&(c=c.updateQueue,s=c.lastBaseUpdate,s!==i&&(s===null?c.firstBaseUpdate=a:s.next=a,c.lastBaseUpdate=u))}if(o!==null){var f=l.baseState;i=0,c=a=u=null,s=o;do{var m=s.lane,S=s.eventTime;if((r&m)===m){c!==null&&(c=c.next={eventTime:S,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var g=e,y=s;switch(m=t,S=n,y.tag){case 1:if(g=y.payload,typeof g=="function"){f=g.call(S,f,m);break e}f=g;break e;case 3:g.flags=g.flags&-65537|128;case 0:if(g=y.payload,m=typeof g=="function"?g.call(S,f,m):g,m==null)break e;f=q({},f,m);break e;case 2:St=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,m=l.effects,m===null?l.effects=[s]:m.push(s))}else S={eventTime:S,lane:m,tag:s.tag,payload:s.payload,callback:s.callback,next:null},c===null?(a=c=S,u=f):c=c.next=S,i|=m;if(s=s.next,s===null){if(s=l.shared.pending,s===null)break;m=s,s=m.next,m.next=null,l.lastBaseUpdate=m,l.shared.pending=null}}while(!0);if(c===null&&(u=f),l.baseState=u,l.firstBaseUpdate=a,l.lastBaseUpdate=c,t=l.shared.interleaved,t!==null){l=t;do i|=l.lane,l=l.next;while(l!==t)}else o===null&&(l.shared.lanes=0);nn|=i,e.lanes=i,e.memoizedState=f}}function Gu(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Wo.transition;Wo.transition={};try{e(!1),t()}finally{U=n,Wo.transition=r}}function Tf(){return Me().memoizedState}function Yh(e,t,n){var r=zt(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Lf(e))jf(t,n);else if(n=df(e,t,n,r),n!==null){var l=me();qe(n,e,r,l),zf(n,t,r)}}function Gh(e,t,n){var r=zt(e),l={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Lf(e))jf(t,l);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var i=t.lastRenderedState,s=o(i,n);if(l.hasEagerState=!0,l.eagerState=s,Je(s,i)){var u=t.interleaved;u===null?(l.next=l,js(t)):(l.next=u.next,u.next=l),t.interleaved=l;return}}catch{}finally{}n=df(e,t,l,r),n!==null&&(l=me(),qe(n,e,r,l),zf(n,t,r))}}function Lf(e){var t=e.alternate;return e===K||t!==null&&t===K}function jf(e,t){cr=Wl=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function zf(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,vs(e,n)}}var Ql={readContext:Ue,useCallback:ue,useContext:ue,useEffect:ue,useImperativeHandle:ue,useInsertionEffect:ue,useLayoutEffect:ue,useMemo:ue,useReducer:ue,useRef:ue,useState:ue,useDebugValue:ue,useDeferredValue:ue,useTransition:ue,useMutableSource:ue,useSyncExternalStore:ue,useId:ue,unstable_isNewReconciler:!1},Zh={readContext:Ue,useCallback:function(e,t){return be().memoizedState=[e,t===void 0?null:t],e},useContext:Ue,useEffect:bu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,vl(4194308,4,_f.bind(null,t,e),n)},useLayoutEffect:function(e,t){return vl(4194308,4,e,t)},useInsertionEffect:function(e,t){return vl(4,2,e,t)},useMemo:function(e,t){var n=be();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=be();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Yh.bind(null,K,e),[r.memoizedState,e]},useRef:function(e){var t=be();return e={current:e},t.memoizedState=e},useState:Zu,useDebugValue:Bs,useDeferredValue:function(e){return be().memoizedState=e},useTransition:function(){var e=Zu(!1),t=e[0];return e=Xh.bind(null,e[1]),be().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=K,l=be();if(W){if(n===void 0)throw Error(k(407));n=n()}else{if(n=t(),le===null)throw Error(k(349));tn&30||yf(r,t,n)}l.memoizedState=n;var o={value:n,getSnapshot:t};return l.queue=o,bu(wf.bind(null,r,o,e),[e]),r.flags|=2048,Or(9,vf.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=be(),t=le.identifierPrefix;if(W){var n=ut,r=st;n=(r&~(1<<32-Ke(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Pr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=i.createElement(n,{is:r.is}):(e=i.createElement(n),n==="select"&&(i=e,r.multiple?i.multiple=!0:r.size&&(i.size=r.size))):e=i.createElementNS(e,n),e[et]=t,e[Cr]=r,Vf(e,t,!1,!1),t.stateNode=e;e:{switch(i=gi(n,r),n){case"dialog":H("cancel",e),H("close",e),l=r;break;case"iframe":case"object":case"embed":H("load",e),l=r;break;case"video":case"audio":for(l=0;lUn&&(t.flags|=128,r=!0,Zn(o,!1),t.lanes=4194304)}else{if(!r)if(e=Vl(i),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Zn(o,!0),o.tail===null&&o.tailMode==="hidden"&&!i.alternate&&!W)return ae(t),null}else 2*X()-o.renderingStartTime>Un&&n!==1073741824&&(t.flags|=128,r=!0,Zn(o,!1),t.lanes=4194304);o.isBackwards?(i.sibling=t.child,t.child=i):(n=o.last,n!==null?n.sibling=i:t.child=i,o.last=i)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=X(),t.sibling=null,n=Q.current,$(Q,r?n&1|2:n&1),t):(ae(t),null);case 22:case 23:return qs(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Re&1073741824&&(ae(t),t.subtreeFlags&6&&(t.flags|=8192)):ae(t),null;case 24:return null;case 25:return null}throw Error(k(156,t.tag))}function im(e,t){switch(Ps(t),t.tag){case 1:return xe(t.type)&&Dl(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Dn(),V(Ee),V(de),Ds(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Is(t),null;case 13:if(V(Q),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(k(340));An()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return V(Q),null;case 4:return Dn(),null;case 10:return Ls(t.type._context),null;case 22:case 23:return qs(),null;case 24:return null;default:return null}}var il=!1,ce=!1,sm=typeof WeakSet=="function"?WeakSet:Set,N=null;function Cn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){J(e,t,r)}else n.current=null}function Vi(e,t,n){try{n()}catch(r){J(e,t,r)}}var ca=!1;function um(e,t){if(Ri=jl,e=Xc(),_s(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var l=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var i=0,s=-1,u=-1,a=0,c=0,f=e,m=null;t:for(;;){for(var S;f!==n||l!==0&&f.nodeType!==3||(s=i+l),f!==o||r!==0&&f.nodeType!==3||(u=i+r),f.nodeType===3&&(i+=f.nodeValue.length),(S=f.firstChild)!==null;)m=f,f=S;for(;;){if(f===e)break t;if(m===n&&++a===l&&(s=i),m===o&&++c===r&&(u=i),(S=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=S}n=s===-1||u===-1?null:{start:s,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(Pi={focusedElem:e,selectionRange:n},jl=!1,N=t;N!==null;)if(t=N,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,N=e;else for(;N!==null;){t=N;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var y=g.memoizedProps,w=g.memoizedState,p=t.stateNode,d=p.getSnapshotBeforeUpdate(t.elementType===t.type?y:Ve(t.type,y),w);p.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var h=t.stateNode.containerInfo;h.nodeType===1?h.textContent="":h.nodeType===9&&h.documentElement&&h.removeChild(h.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(k(163))}}catch(x){J(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,N=e;break}N=t.return}return g=ca,ca=!1,g}function fr(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var l=r=r.next;do{if((l.tag&e)===e){var o=l.destroy;l.destroy=void 0,o!==void 0&&Vi(t,n,o)}l=l.next}while(l!==r)}}function ao(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Wi(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function Kf(e){var t=e.alternate;t!==null&&(e.alternate=null,Kf(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[et],delete t[Cr],delete t[Ti],delete t[Wh],delete t[Qh])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function qf(e){return e.tag===5||e.tag===3||e.tag===4}function fa(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||qf(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Qi(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Il));else if(r!==4&&(e=e.child,e!==null))for(Qi(e,t,n),e=e.sibling;e!==null;)Qi(e,t,n),e=e.sibling}function Ki(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Ki(e,t,n),e=e.sibling;e!==null;)Ki(e,t,n),e=e.sibling}var oe=null,We=!1;function vt(e,t,n){for(n=n.child;n!==null;)Jf(e,t,n),n=n.sibling}function Jf(e,t,n){if(nt&&typeof nt.onCommitFiberUnmount=="function")try{nt.onCommitFiberUnmount(to,n)}catch{}switch(n.tag){case 5:ce||Cn(n,t);case 6:var r=oe,l=We;oe=null,vt(e,t,n),oe=r,We=l,oe!==null&&(We?(e=oe,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):oe.removeChild(n.stateNode));break;case 18:oe!==null&&(We?(e=oe,n=n.stateNode,e.nodeType===8?Bo(e.parentNode,n):e.nodeType===1&&Bo(e,n),wr(e)):Bo(oe,n.stateNode));break;case 4:r=oe,l=We,oe=n.stateNode.containerInfo,We=!0,vt(e,t,n),oe=r,We=l;break;case 0:case 11:case 14:case 15:if(!ce&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){l=r=r.next;do{var o=l,i=o.destroy;o=o.tag,i!==void 0&&(o&2||o&4)&&Vi(n,t,i),l=l.next}while(l!==r)}vt(e,t,n);break;case 1:if(!ce&&(Cn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){J(n,t,s)}vt(e,t,n);break;case 21:vt(e,t,n);break;case 22:n.mode&1?(ce=(r=ce)||n.memoizedState!==null,vt(e,t,n),ce=r):vt(e,t,n);break;default:vt(e,t,n)}}function da(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new sm),t.forEach(function(r){var l=ym.bind(null,e,r);n.has(r)||(n.add(r),r.then(l,l))})}}function Be(e,t){var n=t.deletions;if(n!==null)for(var r=0;rl&&(l=i),r&=~o}if(r=l,r=X()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*cm(r/1960))-r,10e?16:e,_t===null)var r=!1;else{if(e=_t,_t=null,Jl=0,D&6)throw Error(k(331));var l=D;for(D|=4,N=e.current;N!==null;){var o=N,i=o.child;if(N.flags&16){var s=o.deletions;if(s!==null){for(var u=0;uX()-Qs?Yt(e,0):Ws|=n),ke(e,t)}function nd(e,t){t===0&&(e.mode&1?(t=Gr,Gr<<=1,!(Gr&130023424)&&(Gr=4194304)):t=1);var n=me();e=dt(e,t),e!==null&&(Ar(e,t,n),ke(e,n))}function gm(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),nd(e,n)}function ym(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,l=e.memoizedState;l!==null&&(n=l.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(k(314))}r!==null&&r.delete(t),nd(e,n)}var rd;rd=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Ee.current)Se=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Se=!1,lm(e,t,n);Se=!!(e.flags&131072)}else Se=!1,W&&t.flags&1048576&&sf(t,Ml,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;wl(e,t),e=t.pendingProps;var l=zn(t,de.current);Tn(t,n),l=Us(null,t,r,e,l,n);var o=Ms();return t.flags|=1,typeof l=="object"&&l!==null&&typeof l.render=="function"&&l.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,xe(r)?(o=!0,Fl(t)):o=!1,t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,zs(t),l.updater=uo,t.stateNode=l,l._reactInternals=t,Di(t,r,e,n),t=Mi(null,t,r,!0,o,n)):(t.tag=0,W&&o&&Rs(t),he(null,t,l,n),t=t.child),t;case 16:r=t.elementType;e:{switch(wl(e,t),e=t.pendingProps,l=r._init,r=l(r._payload),t.type=r,l=t.tag=wm(r),e=Ve(r,e),l){case 0:t=Ui(null,t,r,e,n);break e;case 1:t=sa(null,t,r,e,n);break e;case 11:t=oa(null,t,r,e,n);break e;case 14:t=ia(null,t,r,Ve(r.type,e),n);break e}throw Error(k(306,r,""))}return t;case 0:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ve(r,l),Ui(e,t,r,l,n);case 1:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ve(r,l),sa(e,t,r,l,n);case 3:e:{if($f(t),e===null)throw Error(k(387));r=t.pendingProps,o=t.memoizedState,l=o.element,pf(e,t),Hl(t,r,null,n);var i=t.memoizedState;if(r=i.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:i.cache,pendingSuspenseBoundaries:i.pendingSuspenseBoundaries,transitions:i.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){l=Fn(Error(k(423)),t),t=ua(e,t,r,n,l);break e}else if(r!==l){l=Fn(Error(k(424)),t),t=ua(e,t,r,n,l);break e}else for(Pe=Tt(t.stateNode.containerInfo.firstChild),Ne=t,W=!0,Qe=null,n=ff(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(An(),r===l){t=pt(e,t,n);break e}he(e,t,r,n)}t=t.child}return t;case 5:return hf(t),e===null&&zi(t),r=t.type,l=t.pendingProps,o=e!==null?e.memoizedProps:null,i=l.children,Ni(r,l)?i=null:o!==null&&Ni(r,o)&&(t.flags|=32),Mf(e,t),he(e,t,i,n),t.child;case 6:return e===null&&zi(t),null;case 13:return Bf(e,t,n);case 4:return As(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=In(t,null,r,n):he(e,t,r,n),t.child;case 11:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ve(r,l),oa(e,t,r,l,n);case 7:return he(e,t,t.pendingProps,n),t.child;case 8:return he(e,t,t.pendingProps.children,n),t.child;case 12:return he(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,l=t.pendingProps,o=t.memoizedProps,i=l.value,$($l,r._currentValue),r._currentValue=i,o!==null)if(Je(o.value,i)){if(o.children===l.children&&!Ee.current){t=pt(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var s=o.dependencies;if(s!==null){i=o.child;for(var u=s.firstContext;u!==null;){if(u.context===r){if(o.tag===1){u=at(-1,n&-n),u.tag=2;var a=o.updateQueue;if(a!==null){a=a.shared;var c=a.pending;c===null?u.next=u:(u.next=c.next,c.next=u),a.pending=u}}o.lanes|=n,u=o.alternate,u!==null&&(u.lanes|=n),Ai(o.return,n,t),s.lanes|=n;break}u=u.next}}else if(o.tag===10)i=o.type===t.type?null:o.child;else if(o.tag===18){if(i=o.return,i===null)throw Error(k(341));i.lanes|=n,s=i.alternate,s!==null&&(s.lanes|=n),Ai(i,n,t),i=o.sibling}else i=o.child;if(i!==null)i.return=o;else for(i=o;i!==null;){if(i===t){i=null;break}if(o=i.sibling,o!==null){o.return=i.return,i=o;break}i=i.return}o=i}he(e,t,l.children,n),t=t.child}return t;case 9:return l=t.type,r=t.pendingProps.children,Tn(t,n),l=Ue(l),r=r(l),t.flags|=1,he(e,t,r,n),t.child;case 14:return r=t.type,l=Ve(r,t.pendingProps),l=Ve(r.type,l),ia(e,t,r,l,n);case 15:return Ff(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,l=t.pendingProps,l=t.elementType===r?l:Ve(r,l),wl(e,t),t.tag=1,xe(r)?(e=!0,Fl(t)):e=!1,Tn(t,n),Af(t,r,l),Di(t,r,l,n),Mi(null,t,r,!0,e,n);case 19:return Hf(e,t,n);case 22:return Uf(e,t,n)}throw Error(k(156,t.tag))};function ld(e,t){return Tc(e,t)}function vm(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function De(e,t,n,r){return new vm(e,t,n,r)}function Xs(e){return e=e.prototype,!(!e||!e.isReactComponent)}function wm(e){if(typeof e=="function")return Xs(e)?1:0;if(e!=null){if(e=e.$$typeof,e===hs)return 11;if(e===ms)return 14}return 2}function At(e,t){var n=e.alternate;return n===null?(n=De(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function xl(e,t,n,r,l,o){var i=2;if(r=e,typeof e=="function")Xs(e)&&(i=1);else if(typeof e=="string")i=5;else e:switch(e){case mn:return Gt(n.children,l,o,t);case ps:i=8,l|=8;break;case ii:return e=De(12,n,t,l|2),e.elementType=ii,e.lanes=o,e;case si:return e=De(13,n,t,l),e.elementType=si,e.lanes=o,e;case ui:return e=De(19,n,t,l),e.elementType=ui,e.lanes=o,e;case pc:return fo(n,l,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case fc:i=10;break e;case dc:i=9;break e;case hs:i=11;break e;case ms:i=14;break e;case wt:i=16,r=null;break e}throw Error(k(130,e==null?e:typeof e,""))}return t=De(i,n,t,l),t.elementType=e,t.type=r,t.lanes=o,t}function Gt(e,t,n,r){return e=De(7,e,r,t),e.lanes=n,e}function fo(e,t,n,r){return e=De(22,e,r,t),e.elementType=pc,e.lanes=n,e.stateNode={isHidden:!1},e}function Xo(e,t,n){return e=De(6,e,null,t),e.lanes=n,e}function Yo(e,t,n){return t=De(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Sm(e,t,n,r,l){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=To(0),this.expirationTimes=To(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=To(0),this.identifierPrefix=r,this.onRecoverableError=l,this.mutableSourceEagerHydrationData=null}function Ys(e,t,n,r,l,o,i,s,u){return e=new Sm(e,t,n,s,u),t===1?(t=1,o===!0&&(t|=8)):t=0,o=De(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},zs(o),e}function Em(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(ud)}catch(e){console.error(e)}}ud(),sc.exports=Te;var Rm=sc.exports,Sa=Rm;li.createRoot=Sa.createRoot,li.hydrateRoot=Sa.hydrateRoot;/** + * @remix-run/router v1.23.2 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function Lr(){return Lr=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function eu(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Nm(){return Math.random().toString(36).substr(2,8)}function xa(e,t){return{usr:e.state,key:e.key,idx:t}}function Gi(e,t,n,r){return n===void 0&&(n=null),Lr({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Vn(t):t,{state:n,key:t&&t.key||r||Nm()})}function Gl(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function Vn(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Om(e,t,n,r){r===void 0&&(r={});let{window:l=document.defaultView,v5Compat:o=!1}=r,i=l.history,s=Rt.Pop,u=null,a=c();a==null&&(a=0,i.replaceState(Lr({},i.state,{idx:a}),""));function c(){return(i.state||{idx:null}).idx}function f(){s=Rt.Pop;let w=c(),p=w==null?null:w-a;a=w,u&&u({action:s,location:y.location,delta:p})}function m(w,p){s=Rt.Push;let d=Gi(y.location,w,p);a=c()+1;let h=xa(d,a),x=y.createHref(d);try{i.pushState(h,"",x)}catch(C){if(C instanceof DOMException&&C.name==="DataCloneError")throw C;l.location.assign(x)}o&&u&&u({action:s,location:y.location,delta:1})}function S(w,p){s=Rt.Replace;let d=Gi(y.location,w,p);a=c();let h=xa(d,a),x=y.createHref(d);i.replaceState(h,"",x),o&&u&&u({action:s,location:y.location,delta:0})}function g(w){let p=l.location.origin!=="null"?l.location.origin:l.location.href,d=typeof w=="string"?w:Gl(w);return d=d.replace(/ $/,"%20"),Y(p,"No window.location.(origin|href) available to create URL for href: "+d),new URL(d,p)}let y={get action(){return s},get location(){return e(l,i)},listen(w){if(u)throw new Error("A history only accepts one active listener");return l.addEventListener(Ea,f),u=w,()=>{l.removeEventListener(Ea,f),u=null}},createHref(w){return t(l,w)},createURL:g,encodeLocation(w){let p=g(w);return{pathname:p.pathname,search:p.search,hash:p.hash}},push:m,replace:S,go(w){return i.go(w)}};return y}var ka;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(ka||(ka={}));function Tm(e,t,n){return n===void 0&&(n="/"),Lm(e,t,n)}function Lm(e,t,n,r){let l=typeof t=="string"?Vn(t):t,o=tu(l.pathname||"/",n);if(o==null)return null;let i=ad(e);jm(i);let s=null;for(let u=0;s==null&&u{let u={relativePath:s===void 0?o.path||"":s,caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};u.relativePath.startsWith("/")&&(Y(u.relativePath.startsWith(r),'Absolute route path "'+u.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),u.relativePath=u.relativePath.slice(r.length));let a=It([r,u.relativePath]),c=n.concat(u);o.children&&o.children.length>0&&(Y(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+a+'".')),ad(o.children,t,c,a)),!(o.path==null&&!o.index)&&t.push({path:a,score:Mm(a,o.index),routesMeta:c})};return e.forEach((o,i)=>{var s;if(o.path===""||!((s=o.path)!=null&&s.includes("?")))l(o,i);else for(let u of cd(o.path))l(o,i,u)}),t}function cd(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,l=n.endsWith("?"),o=n.replace(/\?$/,"");if(r.length===0)return l?[o,""]:[o];let i=cd(r.join("/")),s=[];return s.push(...i.map(u=>u===""?o:[o,u].join("/"))),l&&s.push(...i),s.map(u=>e.startsWith("/")&&u===""?"/":u)}function jm(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:$m(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const zm=/^:[\w-]+$/,Am=3,Im=2,Dm=1,Fm=10,Um=-2,Ca=e=>e==="*";function Mm(e,t){let n=e.split("/"),r=n.length;return n.some(Ca)&&(r+=Um),t&&(r+=Im),n.filter(l=>!Ca(l)).reduce((l,o)=>l+(zm.test(o)?Am:o===""?Dm:Fm),r)}function $m(e,t){return e.length===t.length&&e.slice(0,-1).every((r,l)=>r===t[l])?e[e.length-1]-t[t.length-1]:0}function Bm(e,t,n){let{routesMeta:r}=e,l={},o="/",i=[];for(let s=0;s{let{paramName:m,isOptional:S}=c;if(m==="*"){let y=s[f]||"";i=o.slice(0,o.length-y.length).replace(/(.)\/+$/,"$1")}const g=s[f];return S&&!g?a[m]=void 0:a[m]=(g||"").replace(/%2F/g,"/"),a},{}),pathname:o,pathnameBase:i,pattern:e}}function Vm(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),eu(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(i,s,u)=>(r.push({paramName:s,isOptional:u!=null}),u?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),r]}function Wm(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return eu(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function tu(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}const Qm=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Km=e=>Qm.test(e);function qm(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:l=""}=typeof e=="string"?Vn(e):e,o;if(n)if(Km(n))o=n;else{if(n.includes("//")){let i=n;n=n.replace(/\/\/+/g,"/"),eu(!1,"Pathnames cannot have embedded double slashes - normalizing "+(i+" -> "+n))}n.startsWith("/")?o=_a(n.substring(1),"/"):o=_a(n,t)}else o=t;return{pathname:o,search:Ym(r),hash:Gm(l)}}function _a(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?n.length>1&&n.pop():l!=="."&&n.push(l)}),n.length>1?n.join("/"):"/"}function Go(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function Jm(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function nu(e,t){let n=Jm(e);return t?n.map((r,l)=>l===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function ru(e,t,n,r){r===void 0&&(r=!1);let l;typeof e=="string"?l=Vn(e):(l=Lr({},e),Y(!l.pathname||!l.pathname.includes("?"),Go("?","pathname","search",l)),Y(!l.pathname||!l.pathname.includes("#"),Go("#","pathname","hash",l)),Y(!l.search||!l.search.includes("#"),Go("#","search","hash",l)));let o=e===""||l.pathname==="",i=o?"/":l.pathname,s;if(i==null)s=n;else{let f=t.length-1;if(!r&&i.startsWith("..")){let m=i.split("/");for(;m[0]==="..";)m.shift(),f-=1;l.pathname=m.join("/")}s=f>=0?t[f]:"/"}let u=qm(l,s),a=i&&i!=="/"&&i.endsWith("/"),c=(o||i===".")&&n.endsWith("/");return!u.pathname.endsWith("/")&&(a||c)&&(u.pathname+="/"),u}const It=e=>e.join("/").replace(/\/\/+/g,"/"),Xm=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),Ym=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,Gm=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function Zm(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const fd=["post","put","patch","delete"];new Set(fd);const bm=["get",...fd];new Set(bm);/** + * React Router v6.30.3 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function jr(){return jr=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),E.useCallback(function(a,c){if(c===void 0&&(c={}),!s.current)return;if(typeof a=="number"){r.go(a);return}let f=ru(a,JSON.parse(i),o,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:It([t,f.pathname])),(c.replace?r.replace:r.push)(f,c.state,c)},[t,r,i,o,e])}const rg=E.createContext(null);function lg(e){let t=E.useContext(gt).outlet;return t&&E.createElement(rg.Provider,{value:e},t)}function hd(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=E.useContext(Bt),{matches:l}=E.useContext(gt),{pathname:o}=un(),i=JSON.stringify(nu(l,r.v7_relativeSplatPath));return E.useMemo(()=>ru(e,JSON.parse(i),o,n==="path"),[e,i,o,n])}function og(e,t){return ig(e,t)}function ig(e,t,n,r){Wn()||Y(!1);let{navigator:l}=E.useContext(Bt),{matches:o}=E.useContext(gt),i=o[o.length-1],s=i?i.params:{};i&&i.pathname;let u=i?i.pathnameBase:"/";i&&i.route;let a=un(),c;if(t){var f;let w=typeof t=="string"?Vn(t):t;u==="/"||(f=w.pathname)!=null&&f.startsWith(u)||Y(!1),c=w}else c=a;let m=c.pathname||"/",S=m;if(u!=="/"){let w=u.replace(/^\//,"").split("/");S="/"+m.replace(/^\//,"").split("/").slice(w.length).join("/")}let g=Tm(e,{pathname:S}),y=fg(g&&g.map(w=>Object.assign({},w,{params:Object.assign({},s,w.params),pathname:It([u,l.encodeLocation?l.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?u:It([u,l.encodeLocation?l.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),o,n,r);return t&&y?E.createElement(yo.Provider,{value:{location:jr({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Rt.Pop}},y):y}function sg(){let e=mg(),t=Zm(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,l={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},t),n?E.createElement("pre",{style:l},n):null,null)}const ug=E.createElement(sg,null);class ag extends E.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?E.createElement(gt.Provider,{value:this.props.routeContext},E.createElement(dd.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function cg(e){let{routeContext:t,match:n,children:r}=e,l=E.useContext(lu);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),E.createElement(gt.Provider,{value:t},r)}function fg(e,t,n,r){var l;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var o;if(!n)return null;if(n.errors)e=n.matches;else if((o=r)!=null&&o.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,s=(l=n)==null?void 0:l.errors;if(s!=null){let c=i.findIndex(f=>f.route.id&&(s==null?void 0:s[f.route.id])!==void 0);c>=0||Y(!1),i=i.slice(0,Math.min(i.length,c+1))}let u=!1,a=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?i=i.slice(0,a+1):i=[i[0]];break}}}return i.reduceRight((c,f,m)=>{let S,g=!1,y=null,w=null;n&&(S=s&&f.route.id?s[f.route.id]:void 0,y=f.route.errorElement||ug,u&&(a<0&&m===0?(yg("route-fallback"),g=!0,w=null):a===m&&(g=!0,w=f.route.hydrateFallbackElement||null)));let p=t.concat(i.slice(0,m+1)),d=()=>{let h;return S?h=y:g?h=w:f.route.Component?h=E.createElement(f.route.Component,null):f.route.element?h=f.route.element:h=c,E.createElement(cg,{match:f,routeContext:{outlet:c,matches:p,isDataRoute:n!=null},children:h})};return n&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?E.createElement(ag,{location:n.location,revalidation:n.revalidation,component:y,error:S,children:d(),routeContext:{outlet:null,matches:p,isDataRoute:!0}}):d()},null)}var md=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(md||{}),gd=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(gd||{});function dg(e){let t=E.useContext(lu);return t||Y(!1),t}function pg(e){let t=E.useContext(eg);return t||Y(!1),t}function hg(e){let t=E.useContext(gt);return t||Y(!1),t}function yd(e){let t=hg(),n=t.matches[t.matches.length-1];return n.route.id||Y(!1),n.route.id}function mg(){var e;let t=E.useContext(dd),n=pg(),r=yd();return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function gg(){let{router:e}=dg(md.UseNavigateStable),t=yd(gd.UseNavigateStable),n=E.useRef(!1);return pd(()=>{n.current=!0}),E.useCallback(function(l,o){o===void 0&&(o={}),n.current&&(typeof l=="number"?e.navigate(l):e.navigate(l,jr({fromRouteId:t},o)))},[e,t])}const Ra={};function yg(e,t,n){Ra[e]||(Ra[e]=!0)}function vg(e,t){e==null||e.v7_startTransition,e==null||e.v7_relativeSplatPath}function vd(e){let{to:t,replace:n,state:r,relative:l}=e;Wn()||Y(!1);let{future:o,static:i}=E.useContext(Bt),{matches:s}=E.useContext(gt),{pathname:u}=un(),a=ou(),c=ru(t,nu(s,o.v7_relativeSplatPath),u,l==="path"),f=JSON.stringify(c);return E.useEffect(()=>a(JSON.parse(f),{replace:n,state:r,relative:l}),[a,f,l,n,r]),null}function wd(e){return lg(e.context)}function He(e){Y(!1)}function wg(e){let{basename:t="/",children:n=null,location:r,navigationType:l=Rt.Pop,navigator:o,static:i=!1,future:s}=e;Wn()&&Y(!1);let u=t.replace(/^\/*/,"/"),a=E.useMemo(()=>({basename:u,navigator:o,static:i,future:jr({v7_relativeSplatPath:!1},s)}),[u,s,o,i]);typeof r=="string"&&(r=Vn(r));let{pathname:c="/",search:f="",hash:m="",state:S=null,key:g="default"}=r,y=E.useMemo(()=>{let w=tu(c,u);return w==null?null:{location:{pathname:w,search:f,hash:m,state:S,key:g},navigationType:l}},[u,c,f,m,S,g,l]);return y==null?null:E.createElement(Bt.Provider,{value:a},E.createElement(yo.Provider,{children:n,value:y}))}function Sg(e){let{children:t,location:n}=e;return og(Zi(t),n)}new Promise(()=>{});function Zi(e,t){t===void 0&&(t=[]);let n=[];return E.Children.forEach(e,(r,l)=>{if(!E.isValidElement(r))return;let o=[...t,l];if(r.type===E.Fragment){n.push.apply(n,Zi(r.props.children,o));return}r.type!==He&&Y(!1),!r.props.index||!r.props.children||Y(!1);let i={id:r.props.id||o.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(i.children=Zi(r.props.children,o)),n.push(i)}),n}/** + * React Router DOM v6.30.3 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function bi(){return bi=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[l]=e[l]);return n}function xg(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function kg(e,t){return e.button===0&&(!t||t==="_self")&&!xg(e)}const Cg=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],_g="6";try{window.__reactRouterVersion=_g}catch{}const Rg="startTransition",Pa=mp[Rg];function Pg(e){let{basename:t,children:n,future:r,window:l}=e,o=E.useRef();o.current==null&&(o.current=Pm({window:l,v5Compat:!0}));let i=o.current,[s,u]=E.useState({action:i.action,location:i.location}),{v7_startTransition:a}=r||{},c=E.useCallback(f=>{a&&Pa?Pa(()=>u(f)):u(f)},[u,a]);return E.useLayoutEffect(()=>i.listen(c),[i,c]),E.useEffect(()=>vg(r),[r]),E.createElement(wg,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:i,future:r})}const Ng=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Og=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,pn=E.forwardRef(function(t,n){let{onClick:r,relative:l,reloadDocument:o,replace:i,state:s,target:u,to:a,preventScrollReset:c,viewTransition:f}=t,m=Eg(t,Cg),{basename:S}=E.useContext(Bt),g,y=!1;if(typeof a=="string"&&Og.test(a)&&(g=a,Ng))try{let h=new URL(window.location.href),x=a.startsWith("//")?new URL(h.protocol+a):new URL(a),C=tu(x.pathname,S);x.origin===h.origin&&C!=null?a=C+x.search+x.hash:y=!0}catch{}let w=tg(a,{relative:l}),p=Tg(a,{replace:i,state:s,target:u,preventScrollReset:c,relative:l,viewTransition:f});function d(h){r&&r(h),h.defaultPrevented||p(h)}return E.createElement("a",bi({},m,{href:g||w,onClick:y||o?r:d,ref:n,target:u}))});var Na;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Na||(Na={}));var Oa;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Oa||(Oa={}));function Tg(e,t){let{target:n,replace:r,state:l,preventScrollReset:o,relative:i,viewTransition:s}=t===void 0?{}:t,u=ou(),a=un(),c=hd(e,{relative:i});return E.useCallback(f=>{if(kg(f,n)){f.preventDefault();let m=r!==void 0?r:Gl(a)===Gl(c);u(e,{replace:m,state:l,preventScrollReset:o,relative:i,viewTransition:s})}},[a,u,c,r,l,n,e,o,i,s])}let Lg={data:""},jg=e=>{if(typeof window=="object"){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||Lg},zg=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,Ag=/\/\*[^]*?\*\/| +/g,Ta=/\n+/g,kt=(e,t)=>{let n="",r="",l="";for(let o in e){let i=e[o];o[0]=="@"?o[1]=="i"?n=o+" "+i+";":r+=o[1]=="f"?kt(i,o):o+"{"+kt(i,o[1]=="k"?"":t)+"}":typeof i=="object"?r+=kt(i,t?t.replace(/([^,])+/g,s=>o.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,u=>/&/.test(u)?u.replace(/&/g,s):s?s+" "+u:u)):o):i!=null&&(o=/^--/.test(o)?o:o.replace(/[A-Z]/g,"-$&").toLowerCase(),l+=kt.p?kt.p(o,i):o+":"+i+";")}return n+(t&&l?t+"{"+l+"}":l)+r},lt={},Sd=e=>{if(typeof e=="object"){let t="";for(let n in e)t+=n+Sd(e[n]);return t}return e},Ig=(e,t,n,r,l)=>{let o=Sd(e),i=lt[o]||(lt[o]=(u=>{let a=0,c=11;for(;a>>0;return"go"+c})(o));if(!lt[i]){let u=o!==e?e:(a=>{let c,f,m=[{}];for(;c=zg.exec(a.replace(Ag,""));)c[4]?m.shift():c[3]?(f=c[3].replace(Ta," ").trim(),m.unshift(m[0][f]=m[0][f]||{})):m[0][c[1]]=c[2].replace(Ta," ").trim();return m[0]})(e);lt[i]=kt(l?{["@keyframes "+i]:u}:u,n?"":"."+i)}let s=n&<.g?lt.g:null;return n&&(lt.g=lt[i]),((u,a,c,f)=>{f?a.data=a.data.replace(f,u):a.data.indexOf(u)===-1&&(a.data=c?u+a.data:a.data+u)})(lt[i],t,r,s),i},Dg=(e,t,n)=>e.reduce((r,l,o)=>{let i=t[o];if(i&&i.call){let s=i(n),u=s&&s.props&&s.props.className||/^go/.test(s)&&s;i=u?"."+u:s&&typeof s=="object"?s.props?"":kt(s,""):s===!1?"":s}return r+l+(i??"")},"");function vo(e){let t=this||{},n=e.call?e(t.p):e;return Ig(n.unshift?n.raw?Dg(n,[].slice.call(arguments,1),t.p):n.reduce((r,l)=>Object.assign(r,l&&l.call?l(t.p):l),{}):n,jg(t.target),t.g,t.o,t.k)}let Ed,es,ts;vo.bind({g:1});let ht=vo.bind({k:1});function Fg(e,t,n,r){kt.p=t,Ed=e,es=n,ts=r}function Ht(e,t){let n=this||{};return function(){let r=arguments;function l(o,i){let s=Object.assign({},o),u=s.className||l.className;n.p=Object.assign({theme:es&&es()},s),n.o=/ *go\d+/.test(u),s.className=vo.apply(n,r)+(u?" "+u:"");let a=e;return e[0]&&(a=s.as||e,delete s.as),ts&&a[0]&&ts(s),Ed(a,s)}return l}}var Ug=e=>typeof e=="function",Zl=(e,t)=>Ug(e)?e(t):e,Mg=(()=>{let e=0;return()=>(++e).toString()})(),xd=(()=>{let e;return()=>{if(e===void 0&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),$g=20,iu="default",kd=(e,t)=>{let{toastLimit:n}=e.settings;switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,n)};case 1:return{...e,toasts:e.toasts.map(i=>i.id===t.toast.id?{...i,...t.toast}:i)};case 2:let{toast:r}=t;return kd(e,{type:e.toasts.find(i=>i.id===r.id)?1:0,toast:r});case 3:let{toastId:l}=t;return{...e,toasts:e.toasts.map(i=>i.id===l||l===void 0?{...i,dismissed:!0,visible:!1}:i)};case 4:return t.toastId===void 0?{...e,toasts:[]}:{...e,toasts:e.toasts.filter(i=>i.id!==t.toastId)};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map(i=>({...i,pauseDuration:i.pauseDuration+o}))}}},kl=[],Cd={toasts:[],pausedAt:void 0,settings:{toastLimit:$g}},tt={},_d=(e,t=iu)=>{tt[t]=kd(tt[t]||Cd,e),kl.forEach(([n,r])=>{n===t&&r(tt[t])})},Rd=e=>Object.keys(tt).forEach(t=>_d(e,t)),Bg=e=>Object.keys(tt).find(t=>tt[t].toasts.some(n=>n.id===e)),wo=(e=iu)=>t=>{_d(t,e)},Hg={blank:4e3,error:4e3,success:2e3,loading:1/0,custom:4e3},Vg=(e={},t=iu)=>{let[n,r]=E.useState(tt[t]||Cd),l=E.useRef(tt[t]);E.useEffect(()=>(l.current!==tt[t]&&r(tt[t]),kl.push([t,r]),()=>{let i=kl.findIndex(([s])=>s===t);i>-1&&kl.splice(i,1)}),[t]);let o=n.toasts.map(i=>{var s,u,a;return{...e,...e[i.type],...i,removeDelay:i.removeDelay||((s=e[i.type])==null?void 0:s.removeDelay)||(e==null?void 0:e.removeDelay),duration:i.duration||((u=e[i.type])==null?void 0:u.duration)||(e==null?void 0:e.duration)||Hg[i.type],style:{...e.style,...(a=e[i.type])==null?void 0:a.style,...i.style}}});return{...n,toasts:o}},Wg=(e,t="blank",n)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...n,id:(n==null?void 0:n.id)||Mg()}),Ur=e=>(t,n)=>{let r=Wg(t,e,n);return wo(r.toasterId||Bg(r.id))({type:2,toast:r}),r.id},ee=(e,t)=>Ur("blank")(e,t);ee.error=Ur("error");ee.success=Ur("success");ee.loading=Ur("loading");ee.custom=Ur("custom");ee.dismiss=(e,t)=>{let n={type:3,toastId:e};t?wo(t)(n):Rd(n)};ee.dismissAll=e=>ee.dismiss(void 0,e);ee.remove=(e,t)=>{let n={type:4,toastId:e};t?wo(t)(n):Rd(n)};ee.removeAll=e=>ee.remove(void 0,e);ee.promise=(e,t,n)=>{let r=ee.loading(t.loading,{...n,...n==null?void 0:n.loading});return typeof e=="function"&&(e=e()),e.then(l=>{let o=t.success?Zl(t.success,l):void 0;return o?ee.success(o,{id:r,...n,...n==null?void 0:n.success}):ee.dismiss(r),l}).catch(l=>{let o=t.error?Zl(t.error,l):void 0;o?ee.error(o,{id:r,...n,...n==null?void 0:n.error}):ee.dismiss(r)}),e};var Qg=1e3,Kg=(e,t="default")=>{let{toasts:n,pausedAt:r}=Vg(e,t),l=E.useRef(new Map).current,o=E.useCallback((f,m=Qg)=>{if(l.has(f))return;let S=setTimeout(()=>{l.delete(f),i({type:4,toastId:f})},m);l.set(f,S)},[]);E.useEffect(()=>{if(r)return;let f=Date.now(),m=n.map(S=>{if(S.duration===1/0)return;let g=(S.duration||0)+S.pauseDuration-(f-S.createdAt);if(g<0){S.visible&&ee.dismiss(S.id);return}return setTimeout(()=>ee.dismiss(S.id,t),g)});return()=>{m.forEach(S=>S&&clearTimeout(S))}},[n,r,t]);let i=E.useCallback(wo(t),[t]),s=E.useCallback(()=>{i({type:5,time:Date.now()})},[i]),u=E.useCallback((f,m)=>{i({type:1,toast:{id:f,height:m}})},[i]),a=E.useCallback(()=>{r&&i({type:6,time:Date.now()})},[r,i]),c=E.useCallback((f,m)=>{let{reverseOrder:S=!1,gutter:g=8,defaultPosition:y}=m||{},w=n.filter(h=>(h.position||y)===(f.position||y)&&h.height),p=w.findIndex(h=>h.id===f.id),d=w.filter((h,x)=>xh.visible).slice(...S?[d+1]:[0,d]).reduce((h,x)=>h+(x.height||0)+g,0)},[n]);return E.useEffect(()=>{n.forEach(f=>{if(f.dismissed)o(f.id,f.removeDelay);else{let m=l.get(f.id);m&&(clearTimeout(m),l.delete(f.id))}})},[n,o]),{toasts:n,handlers:{updateHeight:u,startPause:s,endPause:a,calculateOffset:c}}},qg=ht` +from { + transform: scale(0) rotate(45deg); + opacity: 0; +} +to { + transform: scale(1) rotate(45deg); + opacity: 1; +}`,Jg=ht` +from { + transform: scale(0); + opacity: 0; +} +to { + transform: scale(1); + opacity: 1; +}`,Xg=ht` +from { + transform: scale(0) rotate(90deg); + opacity: 0; +} +to { + transform: scale(1) rotate(90deg); + opacity: 1; +}`,Yg=Ht("div")` + width: 20px; + opacity: 0; + height: 20px; + border-radius: 10px; + background: ${e=>e.primary||"#ff4b4b"}; + position: relative; + transform: rotate(45deg); + + animation: ${qg} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) + forwards; + animation-delay: 100ms; + + &:after, + &:before { + content: ''; + animation: ${Jg} 0.15s ease-out forwards; + animation-delay: 150ms; + position: absolute; + border-radius: 3px; + opacity: 0; + background: ${e=>e.secondary||"#fff"}; + bottom: 9px; + left: 4px; + height: 2px; + width: 12px; + } + + &:before { + animation: ${Xg} 0.15s ease-out forwards; + animation-delay: 180ms; + transform: rotate(90deg); + } +`,Gg=ht` + from { + transform: rotate(0deg); + } + to { + transform: rotate(360deg); + } +`,Zg=Ht("div")` + width: 12px; + height: 12px; + box-sizing: border-box; + border: 2px solid; + border-radius: 100%; + border-color: ${e=>e.secondary||"#e0e0e0"}; + border-right-color: ${e=>e.primary||"#616161"}; + animation: ${Gg} 1s linear infinite; +`,bg=ht` +from { + transform: scale(0) rotate(45deg); + opacity: 0; +} +to { + transform: scale(1) rotate(45deg); + opacity: 1; +}`,ey=ht` +0% { + height: 0; + width: 0; + opacity: 0; +} +40% { + height: 0; + width: 6px; + opacity: 1; +} +100% { + opacity: 1; + height: 10px; +}`,ty=Ht("div")` + width: 20px; + opacity: 0; + height: 20px; + border-radius: 10px; + background: ${e=>e.primary||"#61d345"}; + position: relative; + transform: rotate(45deg); + + animation: ${bg} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) + forwards; + animation-delay: 100ms; + &:after { + content: ''; + box-sizing: border-box; + animation: ${ey} 0.2s ease-out forwards; + opacity: 0; + animation-delay: 200ms; + position: absolute; + border-right: 2px solid; + border-bottom: 2px solid; + border-color: ${e=>e.secondary||"#fff"}; + bottom: 6px; + left: 6px; + height: 10px; + width: 6px; + } +`,ny=Ht("div")` + position: absolute; +`,ry=Ht("div")` + position: relative; + display: flex; + justify-content: center; + align-items: center; + min-width: 20px; + min-height: 20px; +`,ly=ht` +from { + transform: scale(0.6); + opacity: 0.4; +} +to { + transform: scale(1); + opacity: 1; +}`,oy=Ht("div")` + position: relative; + transform: scale(0.6); + opacity: 0.4; + min-width: 20px; + animation: ${ly} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275) + forwards; +`,iy=({toast:e})=>{let{icon:t,type:n,iconTheme:r}=e;return t!==void 0?typeof t=="string"?E.createElement(oy,null,t):t:n==="blank"?null:E.createElement(ry,null,E.createElement(Zg,{...r}),n!=="loading"&&E.createElement(ny,null,n==="error"?E.createElement(Yg,{...r}):E.createElement(ty,{...r})))},sy=e=>` +0% {transform: translate3d(0,${e*-200}%,0) scale(.6); opacity:.5;} +100% {transform: translate3d(0,0,0) scale(1); opacity:1;} +`,uy=e=>` +0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;} +100% {transform: translate3d(0,${e*-150}%,-1px) scale(.6); opacity:0;} +`,ay="0%{opacity:0;} 100%{opacity:1;}",cy="0%{opacity:1;} 100%{opacity:0;}",fy=Ht("div")` + display: flex; + align-items: center; + background: #fff; + color: #363636; + line-height: 1.3; + will-change: transform; + box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05); + max-width: 350px; + pointer-events: auto; + padding: 8px 10px; + border-radius: 8px; +`,dy=Ht("div")` + display: flex; + justify-content: center; + margin: 4px 10px; + color: inherit; + flex: 1 1 auto; + white-space: pre-line; +`,py=(e,t)=>{let n=e.includes("top")?1:-1,[r,l]=xd()?[ay,cy]:[sy(n),uy(n)];return{animation:t?`${ht(r)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${ht(l)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}},hy=E.memo(({toast:e,position:t,style:n,children:r})=>{let l=e.height?py(e.position||t||"top-center",e.visible):{opacity:0},o=E.createElement(iy,{toast:e}),i=E.createElement(dy,{...e.ariaProps},Zl(e.message,e));return E.createElement(fy,{className:e.className,style:{...l,...n,...e.style}},typeof r=="function"?r({icon:o,message:i}):E.createElement(E.Fragment,null,o,i))});Fg(E.createElement);var my=({id:e,className:t,style:n,onHeightUpdate:r,children:l})=>{let o=E.useCallback(i=>{if(i){let s=()=>{let u=i.getBoundingClientRect().height;r(e,u)};s(),new MutationObserver(s).observe(i,{subtree:!0,childList:!0,characterData:!0})}},[e,r]);return E.createElement("div",{ref:o,className:t,style:n},l)},gy=(e,t)=>{let n=e.includes("top"),r=n?{top:0}:{bottom:0},l=e.includes("center")?{justifyContent:"center"}:e.includes("right")?{justifyContent:"flex-end"}:{};return{left:0,right:0,display:"flex",position:"absolute",transition:xd()?void 0:"all 230ms cubic-bezier(.21,1.02,.73,1)",transform:`translateY(${t*(n?1:-1)}px)`,...r,...l}},yy=vo` + z-index: 9999; + > * { + pointer-events: auto; + } +`,al=16,vy=({reverseOrder:e,position:t="top-center",toastOptions:n,gutter:r,children:l,toasterId:o,containerStyle:i,containerClassName:s})=>{let{toasts:u,handlers:a}=Kg(n,o);return E.createElement("div",{"data-rht-toaster":o||"",style:{position:"fixed",zIndex:9999,top:al,left:al,right:al,bottom:al,pointerEvents:"none",...i},className:s,onMouseEnter:a.startPause,onMouseLeave:a.endPause},u.map(c=>{let f=c.position||t,m=a.calculateOffset(c,{reverseOrder:e,gutter:r,defaultPosition:t}),S=gy(f,m);return E.createElement(my,{id:c.id,key:c.id,onHeightUpdate:a.updateHeight,className:c.visible?yy:"",style:S},c.type==="custom"?Zl(c.message,c):l?l(c):E.createElement(hy,{toast:c,position:f}))}))},Zo=ee;const wy="modulepreload",Sy=function(e){return"/"+e},La={},an=function(t,n,r){let l=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const i=document.querySelector("meta[property=csp-nonce]"),s=(i==null?void 0:i.nonce)||(i==null?void 0:i.getAttribute("nonce"));l=Promise.allSettled(n.map(u=>{if(u=Sy(u),u in La)return;La[u]=!0;const a=u.endsWith(".css"),c=a?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${c}`))return;const f=document.createElement("link");if(f.rel=a?"stylesheet":wy,a||(f.as="script"),f.crossOrigin="",f.href=u,s&&f.setAttribute("nonce",s),document.head.appendChild(f),a)return new Promise((m,S)=>{f.addEventListener("load",m),f.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(i){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=i,window.dispatchEvent(s),!s.defaultPrevented)throw i}return l.then(i=>{for(const s of i||[])s.status==="rejected"&&o(s.reason);return t().catch(o)})};function Pd(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ey}=Object.prototype,{getPrototypeOf:su}=Object,{iterator:So,toStringTag:Nd}=Symbol,Eo=(e=>t=>{const n=Ey.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Xe=e=>(e=e.toLowerCase(),t=>Eo(t)===e),xo=e=>t=>typeof t===e,{isArray:Qn}=Array,Mn=xo("undefined");function Mr(e){return e!==null&&!Mn(e)&&e.constructor!==null&&!Mn(e.constructor)&&Ce(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Od=Xe("ArrayBuffer");function xy(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Od(e.buffer),t}const ky=xo("string"),Ce=xo("function"),Td=xo("number"),$r=e=>e!==null&&typeof e=="object",Cy=e=>e===!0||e===!1,Cl=e=>{if(Eo(e)!=="object")return!1;const t=su(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Nd in e)&&!(So in e)},_y=e=>{if(!$r(e)||Mr(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Ry=Xe("Date"),Py=Xe("File"),Ny=e=>!!(e&&typeof e.uri<"u"),Oy=e=>e&&typeof e.getParts<"u",Ty=Xe("Blob"),Ly=Xe("FileList"),jy=e=>$r(e)&&Ce(e.pipe);function zy(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const ja=zy(),za=typeof ja.FormData<"u"?ja.FormData:void 0,Ay=e=>{let t;return e&&(za&&e instanceof za||Ce(e.append)&&((t=Eo(e))==="formdata"||t==="object"&&Ce(e.toString)&&e.toString()==="[object FormData]"))},Iy=Xe("URLSearchParams"),[Dy,Fy,Uy,My]=["ReadableStream","Request","Response","Headers"].map(Xe),$y=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Br(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,l;if(typeof e!="object"&&(e=[e]),Qn(e))for(r=0,l=e.length;r0;)if(l=n[r],t===l.toLowerCase())return l;return null}const Xt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,jd=e=>!Mn(e)&&e!==Xt;function ns(){const{caseless:e,skipUndefined:t}=jd(this)&&this||{},n={},r=(l,o)=>{if(o==="__proto__"||o==="constructor"||o==="prototype")return;const i=e&&Ld(n,o)||o;Cl(n[i])&&Cl(l)?n[i]=ns(n[i],l):Cl(l)?n[i]=ns({},l):Qn(l)?n[i]=l.slice():(!t||!Mn(l))&&(n[i]=l)};for(let l=0,o=arguments.length;l(Br(t,(l,o)=>{n&&Ce(l)?Object.defineProperty(e,o,{value:Pd(l,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,o,{value:l,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),Hy=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Vy=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},Wy=(e,t,n,r)=>{let l,o,i;const s={};if(t=t||{},e==null)return t;do{for(l=Object.getOwnPropertyNames(e),o=l.length;o-- >0;)i=l[o],(!r||r(i,e,t))&&!s[i]&&(t[i]=e[i],s[i]=!0);e=n!==!1&&su(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},Qy=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},Ky=e=>{if(!e)return null;if(Qn(e))return e;let t=e.length;if(!Td(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},qy=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&su(Uint8Array)),Jy=(e,t)=>{const r=(e&&e[So]).call(e);let l;for(;(l=r.next())&&!l.done;){const o=l.value;t.call(e,o[0],o[1])}},Xy=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},Yy=Xe("HTMLFormElement"),Gy=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,l){return r.toUpperCase()+l}),Aa=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Zy=Xe("RegExp"),zd=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Br(n,(l,o)=>{let i;(i=t(l,o,e))!==!1&&(r[o]=i||l)}),Object.defineProperties(e,r)},by=e=>{zd(e,(t,n)=>{if(Ce(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Ce(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},ev=(e,t)=>{const n={},r=l=>{l.forEach(o=>{n[o]=!0})};return Qn(e)?r(e):r(String(e).split(t)),n},tv=()=>{},nv=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function rv(e){return!!(e&&Ce(e.append)&&e[Nd]==="FormData"&&e[So])}const lv=e=>{const t=new Array(10),n=(r,l)=>{if($r(r)){if(t.indexOf(r)>=0)return;if(Mr(r))return r;if(!("toJSON"in r)){t[l]=r;const o=Qn(r)?[]:{};return Br(r,(i,s)=>{const u=n(i,l+1);!Mn(u)&&(o[s]=u)}),t[l]=void 0,o}}return r};return n(e,0)},ov=Xe("AsyncFunction"),iv=e=>e&&($r(e)||Ce(e))&&Ce(e.then)&&Ce(e.catch),Ad=((e,t)=>e?setImmediate:t?((n,r)=>(Xt.addEventListener("message",({source:l,data:o})=>{l===Xt&&o===n&&r.length&&r.shift()()},!1),l=>{r.push(l),Xt.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Ce(Xt.postMessage)),sv=typeof queueMicrotask<"u"?queueMicrotask.bind(Xt):typeof process<"u"&&process.nextTick||Ad,uv=e=>e!=null&&Ce(e[So]),v={isArray:Qn,isArrayBuffer:Od,isBuffer:Mr,isFormData:Ay,isArrayBufferView:xy,isString:ky,isNumber:Td,isBoolean:Cy,isObject:$r,isPlainObject:Cl,isEmptyObject:_y,isReadableStream:Dy,isRequest:Fy,isResponse:Uy,isHeaders:My,isUndefined:Mn,isDate:Ry,isFile:Py,isReactNativeBlob:Ny,isReactNative:Oy,isBlob:Ty,isRegExp:Zy,isFunction:Ce,isStream:jy,isURLSearchParams:Iy,isTypedArray:qy,isFileList:Ly,forEach:Br,merge:ns,extend:By,trim:$y,stripBOM:Hy,inherits:Vy,toFlatObject:Wy,kindOf:Eo,kindOfTest:Xe,endsWith:Qy,toArray:Ky,forEachEntry:Jy,matchAll:Xy,isHTMLForm:Yy,hasOwnProperty:Aa,hasOwnProp:Aa,reduceDescriptors:zd,freezeMethods:by,toObjectSet:ev,toCamelCase:Gy,noop:tv,toFiniteNumber:nv,findKey:Ld,global:Xt,isContextDefined:jd,isSpecCompliantForm:rv,toJSONObject:lv,isAsyncFn:ov,isThenable:iv,setImmediate:Ad,asap:sv,isIterable:uv};let L=class Id extends Error{static from(t,n,r,l,o,i){const s=new Id(t.message,n||t.code,r,l,o);return s.cause=t,s.name=t.name,t.status!=null&&s.status==null&&(s.status=t.status),i&&Object.assign(s,i),s}constructor(t,n,r,l,o){super(t),Object.defineProperty(this,"message",{value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),l&&(this.request=l),o&&(this.response=o,this.status=o.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:v.toJSONObject(this.config),code:this.code,status:this.status}}};L.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";L.ERR_BAD_OPTION="ERR_BAD_OPTION";L.ECONNABORTED="ECONNABORTED";L.ETIMEDOUT="ETIMEDOUT";L.ERR_NETWORK="ERR_NETWORK";L.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";L.ERR_DEPRECATED="ERR_DEPRECATED";L.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";L.ERR_BAD_REQUEST="ERR_BAD_REQUEST";L.ERR_CANCELED="ERR_CANCELED";L.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";L.ERR_INVALID_URL="ERR_INVALID_URL";const av=null;function rs(e){return v.isPlainObject(e)||v.isArray(e)}function Dd(e){return v.endsWith(e,"[]")?e.slice(0,-2):e}function bo(e,t,n){return e?e.concat(t).map(function(l,o){return l=Dd(l),!n&&o?"["+l+"]":l}).join(n?".":""):t}function cv(e){return v.isArray(e)&&!e.some(rs)}const fv=v.toFlatObject(v,{},null,function(t){return/^is[A-Z]/.test(t)});function ko(e,t,n){if(!v.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=v.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,w){return!v.isUndefined(w[y])});const r=n.metaTokens,l=n.visitor||c,o=n.dots,i=n.indexes,u=(n.Blob||typeof Blob<"u"&&Blob)&&v.isSpecCompliantForm(t);if(!v.isFunction(l))throw new TypeError("visitor must be a function");function a(g){if(g===null)return"";if(v.isDate(g))return g.toISOString();if(v.isBoolean(g))return g.toString();if(!u&&v.isBlob(g))throw new L("Blob is not supported. Use a Buffer instead.");return v.isArrayBuffer(g)||v.isTypedArray(g)?u&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function c(g,y,w){let p=g;if(v.isReactNative(t)&&v.isReactNativeBlob(g))return t.append(bo(w,y,o),a(g)),!1;if(g&&!w&&typeof g=="object"){if(v.endsWith(y,"{}"))y=r?y:y.slice(0,-2),g=JSON.stringify(g);else if(v.isArray(g)&&cv(g)||(v.isFileList(g)||v.endsWith(y,"[]"))&&(p=v.toArray(g)))return y=Dd(y),p.forEach(function(h,x){!(v.isUndefined(h)||h===null)&&t.append(i===!0?bo([y],x,o):i===null?y:y+"[]",a(h))}),!1}return rs(g)?!0:(t.append(bo(w,y,o),a(g)),!1)}const f=[],m=Object.assign(fv,{defaultVisitor:c,convertValue:a,isVisitable:rs});function S(g,y){if(!v.isUndefined(g)){if(f.indexOf(g)!==-1)throw Error("Circular reference detected in "+y.join("."));f.push(g),v.forEach(g,function(p,d){(!(v.isUndefined(p)||p===null)&&l.call(t,p,v.isString(d)?d.trim():d,y,m))===!0&&S(p,y?y.concat(d):[d])}),f.pop()}}if(!v.isObject(e))throw new TypeError("data must be an object");return S(e),t}function Ia(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function uu(e,t){this._pairs=[],e&&ko(e,this,t)}const Fd=uu.prototype;Fd.append=function(t,n){this._pairs.push([t,n])};Fd.toString=function(t){const n=t?function(r){return t.call(this,r,Ia)}:Ia;return this._pairs.map(function(l){return n(l[0])+"="+n(l[1])},"").join("&")};function dv(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ud(e,t,n){if(!t)return e;const r=n&&n.encode||dv,l=v.isFunction(n)?{serialize:n}:n,o=l&&l.serialize;let i;if(o?i=o(t,l):i=v.isURLSearchParams(t)?t.toString():new uu(t,l).toString(r),i){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Da{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){v.forEach(this.handlers,function(r){r!==null&&t(r)})}}const au={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},pv=typeof URLSearchParams<"u"?URLSearchParams:uu,hv=typeof FormData<"u"?FormData:null,mv=typeof Blob<"u"?Blob:null,gv={isBrowser:!0,classes:{URLSearchParams:pv,FormData:hv,Blob:mv},protocols:["http","https","file","blob","url","data"]},cu=typeof window<"u"&&typeof document<"u",ls=typeof navigator=="object"&&navigator||void 0,yv=cu&&(!ls||["ReactNative","NativeScript","NS"].indexOf(ls.product)<0),vv=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",wv=cu&&window.location.href||"http://localhost",Sv=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:cu,hasStandardBrowserEnv:yv,hasStandardBrowserWebWorkerEnv:vv,navigator:ls,origin:wv},Symbol.toStringTag,{value:"Module"})),fe={...Sv,...gv};function Ev(e,t){return ko(e,new fe.classes.URLSearchParams,{visitor:function(n,r,l,o){return fe.isNode&&v.isBuffer(n)?(this.append(r,n.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)},...t})}function xv(e){return v.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function kv(e){const t={},n=Object.keys(e);let r;const l=n.length;let o;for(r=0;r=n.length;return i=!i&&v.isArray(l)?l.length:i,u?(v.hasOwnProp(l,i)?l[i]=[l[i],r]:l[i]=r,!s):((!l[i]||!v.isObject(l[i]))&&(l[i]=[]),t(n,r,l[i],o)&&v.isArray(l[i])&&(l[i]=kv(l[i])),!s)}if(v.isFormData(e)&&v.isFunction(e.entries)){const n={};return v.forEachEntry(e,(r,l)=>{t(xv(r),l,n,0)}),n}return null}function Cv(e,t,n){if(v.isString(e))try{return(t||JSON.parse)(e),v.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Hr={transitional:au,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",l=r.indexOf("application/json")>-1,o=v.isObject(t);if(o&&v.isHTMLForm(t)&&(t=new FormData(t)),v.isFormData(t))return l?JSON.stringify(Md(t)):t;if(v.isArrayBuffer(t)||v.isBuffer(t)||v.isStream(t)||v.isFile(t)||v.isBlob(t)||v.isReadableStream(t))return t;if(v.isArrayBufferView(t))return t.buffer;if(v.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Ev(t,this.formSerializer).toString();if((s=v.isFileList(t))||r.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return ko(s?{"files[]":t}:t,u&&new u,this.formSerializer)}}return o||l?(n.setContentType("application/json",!1),Cv(t)):t}],transformResponse:[function(t){const n=this.transitional||Hr.transitional,r=n&&n.forcedJSONParsing,l=this.responseType==="json";if(v.isResponse(t)||v.isReadableStream(t))return t;if(t&&v.isString(t)&&(r&&!this.responseType||l)){const i=!(n&&n.silentJSONParsing)&&l;try{return JSON.parse(t,this.parseReviver)}catch(s){if(i)throw s.name==="SyntaxError"?L.from(s,L.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:fe.classes.FormData,Blob:fe.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};v.forEach(["delete","get","head","post","put","patch"],e=>{Hr.headers[e]={}});const _v=v.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Rv=e=>{const t={};let n,r,l;return e&&e.split(` +`).forEach(function(i){l=i.indexOf(":"),n=i.substring(0,l).trim().toLowerCase(),r=i.substring(l+1).trim(),!(!n||t[n]&&_v[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},Fa=Symbol("internals");function er(e){return e&&String(e).trim().toLowerCase()}function _l(e){return e===!1||e==null?e:v.isArray(e)?e.map(_l):String(e)}function Pv(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Nv=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ei(e,t,n,r,l){if(v.isFunction(r))return r.call(this,t,n);if(l&&(t=n),!!v.isString(t)){if(v.isString(r))return t.indexOf(r)!==-1;if(v.isRegExp(r))return r.test(t)}}function Ov(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Tv(e,t){const n=v.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(l,o,i){return this[r].call(this,t,l,o,i)},configurable:!0})})}let _e=class{constructor(t){t&&this.set(t)}set(t,n,r){const l=this;function o(s,u,a){const c=er(u);if(!c)throw new Error("header name must be a non-empty string");const f=v.findKey(l,c);(!f||l[f]===void 0||a===!0||a===void 0&&l[f]!==!1)&&(l[f||u]=_l(s))}const i=(s,u)=>v.forEach(s,(a,c)=>o(a,c,u));if(v.isPlainObject(t)||t instanceof this.constructor)i(t,n);else if(v.isString(t)&&(t=t.trim())&&!Nv(t))i(Rv(t),n);else if(v.isObject(t)&&v.isIterable(t)){let s={},u,a;for(const c of t){if(!v.isArray(c))throw TypeError("Object iterator must return a key-value pair");s[a=c[0]]=(u=s[a])?v.isArray(u)?[...u,c[1]]:[u,c[1]]:c[1]}i(s,n)}else t!=null&&o(n,t,r);return this}get(t,n){if(t=er(t),t){const r=v.findKey(this,t);if(r){const l=this[r];if(!n)return l;if(n===!0)return Pv(l);if(v.isFunction(n))return n.call(this,l,r);if(v.isRegExp(n))return n.exec(l);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=er(t),t){const r=v.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||ei(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let l=!1;function o(i){if(i=er(i),i){const s=v.findKey(r,i);s&&(!n||ei(r,r[s],s,n))&&(delete r[s],l=!0)}}return v.isArray(t)?t.forEach(o):o(t),l}clear(t){const n=Object.keys(this);let r=n.length,l=!1;for(;r--;){const o=n[r];(!t||ei(this,this[o],o,t,!0))&&(delete this[o],l=!0)}return l}normalize(t){const n=this,r={};return v.forEach(this,(l,o)=>{const i=v.findKey(r,o);if(i){n[i]=_l(l),delete n[o];return}const s=t?Ov(o):String(o).trim();s!==o&&delete n[o],n[s]=_l(l),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return v.forEach(this,(r,l)=>{r!=null&&r!==!1&&(n[l]=t&&v.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(l=>r.set(l)),r}static accessor(t){const r=(this[Fa]=this[Fa]={accessors:{}}).accessors,l=this.prototype;function o(i){const s=er(i);r[s]||(Tv(l,i),r[s]=!0)}return v.isArray(t)?t.forEach(o):o(t),this}};_e.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);v.reduceDescriptors(_e.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});v.freezeMethods(_e);function ti(e,t){const n=this||Hr,r=t||n,l=_e.from(r.headers);let o=r.data;return v.forEach(e,function(s){o=s.call(n,o,l.normalize(),t?t.status:void 0)}),l.normalize(),o}function $d(e){return!!(e&&e.__CANCEL__)}let Vr=class extends L{constructor(t,n,r){super(t??"canceled",L.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function Bd(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new L("Request failed with status code "+n.status,[L.ERR_BAD_REQUEST,L.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Lv(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function jv(e,t){e=e||10;const n=new Array(e),r=new Array(e);let l=0,o=0,i;return t=t!==void 0?t:1e3,function(u){const a=Date.now(),c=r[o];i||(i=a),n[l]=u,r[l]=a;let f=o,m=0;for(;f!==l;)m+=n[f++],f=f%e;if(l=(l+1)%e,l===o&&(o=(o+1)%e),a-i{n=c,l=null,o&&(clearTimeout(o),o=null),e(...a)};return[(...a)=>{const c=Date.now(),f=c-n;f>=r?i(a,c):(l=a,o||(o=setTimeout(()=>{o=null,i(l)},r-f)))},()=>l&&i(l)]}const bl=(e,t,n=3)=>{let r=0;const l=jv(50,250);return zv(o=>{const i=o.loaded,s=o.lengthComputable?o.total:void 0,u=i-r,a=l(u),c=i<=s;r=i;const f={loaded:i,total:s,progress:s?i/s:void 0,bytes:u,rate:a||void 0,estimated:a&&s&&c?(s-i)/a:void 0,event:o,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},n)},Ua=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Ma=e=>(...t)=>v.asap(()=>e(...t)),Av=fe.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,fe.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(fe.origin),fe.navigator&&/(msie|trident)/i.test(fe.navigator.userAgent)):()=>!0,Iv=fe.hasStandardBrowserEnv?{write(e,t,n,r,l,o,i){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];v.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),v.isString(r)&&s.push(`path=${r}`),v.isString(l)&&s.push(`domain=${l}`),o===!0&&s.push("secure"),v.isString(i)&&s.push(`SameSite=${i}`),document.cookie=s.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function Dv(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Fv(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Hd(e,t,n){let r=!Dv(t);return e&&(r||n==!1)?Fv(e,t):t}const $a=e=>e instanceof _e?{...e}:e;function ln(e,t){t=t||{};const n={};function r(a,c,f,m){return v.isPlainObject(a)&&v.isPlainObject(c)?v.merge.call({caseless:m},a,c):v.isPlainObject(c)?v.merge({},c):v.isArray(c)?c.slice():c}function l(a,c,f,m){if(v.isUndefined(c)){if(!v.isUndefined(a))return r(void 0,a,f,m)}else return r(a,c,f,m)}function o(a,c){if(!v.isUndefined(c))return r(void 0,c)}function i(a,c){if(v.isUndefined(c)){if(!v.isUndefined(a))return r(void 0,a)}else return r(void 0,c)}function s(a,c,f){if(f in t)return r(a,c);if(f in e)return r(void 0,a)}const u={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(a,c,f)=>l($a(a),$a(c),f,!0)};return v.forEach(Object.keys({...e,...t}),function(c){if(c==="__proto__"||c==="constructor"||c==="prototype")return;const f=v.hasOwnProp(u,c)?u[c]:l,m=f(e[c],t[c],c);v.isUndefined(m)&&f!==s||(n[c]=m)}),n}const Vd=e=>{const t=ln({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:l,xsrfCookieName:o,headers:i,auth:s}=t;if(t.headers=i=_e.from(i),t.url=Ud(Hd(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),v.isFormData(n)){if(fe.hasStandardBrowserEnv||fe.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(v.isFunction(n.getHeaders)){const u=n.getHeaders(),a=["content-type","content-length"];Object.entries(u).forEach(([c,f])=>{a.includes(c.toLowerCase())&&i.set(c,f)})}}if(fe.hasStandardBrowserEnv&&(r&&v.isFunction(r)&&(r=r(t)),r||r!==!1&&Av(t.url))){const u=l&&o&&Iv.read(o);u&&i.set(l,u)}return t},Uv=typeof XMLHttpRequest<"u",Mv=Uv&&function(e){return new Promise(function(n,r){const l=Vd(e);let o=l.data;const i=_e.from(l.headers).normalize();let{responseType:s,onUploadProgress:u,onDownloadProgress:a}=l,c,f,m,S,g;function y(){S&&S(),g&&g(),l.cancelToken&&l.cancelToken.unsubscribe(c),l.signal&&l.signal.removeEventListener("abort",c)}let w=new XMLHttpRequest;w.open(l.method.toUpperCase(),l.url,!0),w.timeout=l.timeout;function p(){if(!w)return;const h=_e.from("getAllResponseHeaders"in w&&w.getAllResponseHeaders()),C={data:!s||s==="text"||s==="json"?w.responseText:w.response,status:w.status,statusText:w.statusText,headers:h,config:e,request:w};Bd(function(P){n(P),y()},function(P){r(P),y()},C),w=null}"onloadend"in w?w.onloadend=p:w.onreadystatechange=function(){!w||w.readyState!==4||w.status===0&&!(w.responseURL&&w.responseURL.indexOf("file:")===0)||setTimeout(p)},w.onabort=function(){w&&(r(new L("Request aborted",L.ECONNABORTED,e,w)),w=null)},w.onerror=function(x){const C=x&&x.message?x.message:"Network Error",O=new L(C,L.ERR_NETWORK,e,w);O.event=x||null,r(O),w=null},w.ontimeout=function(){let x=l.timeout?"timeout of "+l.timeout+"ms exceeded":"timeout exceeded";const C=l.transitional||au;l.timeoutErrorMessage&&(x=l.timeoutErrorMessage),r(new L(x,C.clarifyTimeoutError?L.ETIMEDOUT:L.ECONNABORTED,e,w)),w=null},o===void 0&&i.setContentType(null),"setRequestHeader"in w&&v.forEach(i.toJSON(),function(x,C){w.setRequestHeader(C,x)}),v.isUndefined(l.withCredentials)||(w.withCredentials=!!l.withCredentials),s&&s!=="json"&&(w.responseType=l.responseType),a&&([m,g]=bl(a,!0),w.addEventListener("progress",m)),u&&w.upload&&([f,S]=bl(u),w.upload.addEventListener("progress",f),w.upload.addEventListener("loadend",S)),(l.cancelToken||l.signal)&&(c=h=>{w&&(r(!h||h.type?new Vr(null,e,w):h),w.abort(),w=null)},l.cancelToken&&l.cancelToken.subscribe(c),l.signal&&(l.signal.aborted?c():l.signal.addEventListener("abort",c)));const d=Lv(l.url);if(d&&fe.protocols.indexOf(d)===-1){r(new L("Unsupported protocol "+d+":",L.ERR_BAD_REQUEST,e));return}w.send(o||null)})},$v=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,l;const o=function(a){if(!l){l=!0,s();const c=a instanceof Error?a:this.reason;r.abort(c instanceof L?c:new Vr(c instanceof Error?c.message:c))}};let i=t&&setTimeout(()=>{i=null,o(new L(`timeout of ${t}ms exceeded`,L.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(a=>{a.unsubscribe?a.unsubscribe(o):a.removeEventListener("abort",o)}),e=null)};e.forEach(a=>a.addEventListener("abort",o));const{signal:u}=r;return u.unsubscribe=()=>v.asap(s),u}},Bv=function*(e,t){let n=e.byteLength;if(n{const l=Hv(e,t);let o=0,i,s=u=>{i||(i=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:a,value:c}=await l.next();if(a){s(),u.close();return}let f=c.byteLength;if(n){let m=o+=f;n(m)}u.enqueue(new Uint8Array(c))}catch(a){throw s(a),a}},cancel(u){return s(u),l.return()}},{highWaterMark:2})},Ha=64*1024,{isFunction:cl}=v,Wv=(({Request:e,Response:t})=>({Request:e,Response:t}))(v.global),{ReadableStream:Va,TextEncoder:Wa}=v.global,Qa=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Qv=e=>{e=v.merge.call({skipUndefined:!0},Wv,e);const{fetch:t,Request:n,Response:r}=e,l=t?cl(t):typeof fetch=="function",o=cl(n),i=cl(r);if(!l)return!1;const s=l&&cl(Va),u=l&&(typeof Wa=="function"?(g=>y=>g.encode(y))(new Wa):async g=>new Uint8Array(await new n(g).arrayBuffer())),a=o&&s&&Qa(()=>{let g=!1;const y=new n(fe.origin,{body:new Va,method:"POST",get duplex(){return g=!0,"half"}}).headers.has("Content-Type");return g&&!y}),c=i&&s&&Qa(()=>v.isReadableStream(new r("").body)),f={stream:c&&(g=>g.body)};l&&["text","arrayBuffer","blob","formData","stream"].forEach(g=>{!f[g]&&(f[g]=(y,w)=>{let p=y&&y[g];if(p)return p.call(y);throw new L(`Response type '${g}' is not supported`,L.ERR_NOT_SUPPORT,w)})});const m=async g=>{if(g==null)return 0;if(v.isBlob(g))return g.size;if(v.isSpecCompliantForm(g))return(await new n(fe.origin,{method:"POST",body:g}).arrayBuffer()).byteLength;if(v.isArrayBufferView(g)||v.isArrayBuffer(g))return g.byteLength;if(v.isURLSearchParams(g)&&(g=g+""),v.isString(g))return(await u(g)).byteLength},S=async(g,y)=>{const w=v.toFiniteNumber(g.getContentLength());return w??m(y)};return async g=>{let{url:y,method:w,data:p,signal:d,cancelToken:h,timeout:x,onDownloadProgress:C,onUploadProgress:O,responseType:P,headers:T,withCredentials:M="same-origin",fetchOptions:A}=Vd(g),ve=t||fetch;P=P?(P+"").toLowerCase():"text";let Ye=$v([d,h&&h.toAbortSignal()],x),$e=null;const Ge=Ye&&Ye.unsubscribe&&(()=>{Ye.unsubscribe()});let Wr;try{if(O&&a&&w!=="get"&&w!=="head"&&(Wr=await S(T,p))!==0){let F=new n(y,{method:"POST",body:p,duplex:"half"}),B;if(v.isFormData(p)&&(B=F.headers.get("content-type"))&&T.setContentType(B),F.body){const[yt,je]=Ua(Wr,bl(Ma(O)));p=Ba(F.body,Ha,yt,je)}}v.isString(M)||(M=M?"include":"omit");const ne=o&&"credentials"in n.prototype,cn={...A,signal:Ye,method:w.toUpperCase(),headers:T.normalize().toJSON(),body:p,duplex:"half",credentials:ne?M:void 0};$e=o&&new n(y,cn);let _=await(o?ve($e,A):ve(y,cn));const j=c&&(P==="stream"||P==="response");if(c&&(C||j&&Ge)){const F={};["status","statusText","headers"].forEach(fn=>{F[fn]=_[fn]});const B=v.toFiniteNumber(_.headers.get("content-length")),[yt,je]=C&&Ua(B,bl(Ma(C),!0))||[];_=new r(Ba(_.body,Ha,yt,()=>{je&&je(),Ge&&Ge()}),F)}P=P||"text";let z=await f[v.findKey(f,P)||"text"](_,g);return!j&&Ge&&Ge(),await new Promise((F,B)=>{Bd(F,B,{data:z,headers:_e.from(_.headers),status:_.status,statusText:_.statusText,config:g,request:$e})})}catch(ne){throw Ge&&Ge(),ne&&ne.name==="TypeError"&&/Load failed|fetch/i.test(ne.message)?Object.assign(new L("Network Error",L.ERR_NETWORK,g,$e,ne&&ne.response),{cause:ne.cause||ne}):L.from(ne,ne&&ne.code,g,$e,ne&&ne.response)}}},Kv=new Map,Wd=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:l}=t,o=[r,l,n];let i=o.length,s=i,u,a,c=Kv;for(;s--;)u=o[s],a=c.get(u),a===void 0&&c.set(u,a=s?new Map:Qv(t)),c=a;return a};Wd();const fu={http:av,xhr:Mv,fetch:{get:Wd}};v.forEach(fu,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Ka=e=>`- ${e}`,qv=e=>v.isFunction(e)||e===null||e===!1;function Jv(e,t){e=v.isArray(e)?e:[e];const{length:n}=e;let r,l;const o={};for(let i=0;i`adapter ${u} `+(a===!1?"is not supported by the environment":"is not available in the build"));let s=n?i.length>1?`since : +`+i.map(Ka).join(` +`):" "+Ka(i[0]):"as no adapter specified";throw new L("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return l}const Qd={getAdapter:Jv,adapters:fu};function ni(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Vr(null,e)}function qa(e){return ni(e),e.headers=_e.from(e.headers),e.data=ti.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Qd.getAdapter(e.adapter||Hr.adapter,e)(e).then(function(r){return ni(e),r.data=ti.call(e,e.transformResponse,r),r.headers=_e.from(r.headers),r},function(r){return $d(r)||(ni(e),r&&r.response&&(r.response.data=ti.call(e,e.transformResponse,r.response),r.response.headers=_e.from(r.response.headers))),Promise.reject(r)})}const Kd="1.13.6",Co={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Co[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Ja={};Co.transitional=function(t,n,r){function l(o,i){return"[Axios v"+Kd+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return(o,i,s)=>{if(t===!1)throw new L(l(i," has been removed"+(n?" in "+n:"")),L.ERR_DEPRECATED);return n&&!Ja[i]&&(Ja[i]=!0,console.warn(l(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,s):!0}};Co.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Xv(e,t,n){if(typeof e!="object")throw new L("options must be an object",L.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let l=r.length;for(;l-- >0;){const o=r[l],i=t[o];if(i){const s=e[o],u=s===void 0||i(s,o,e);if(u!==!0)throw new L("option "+o+" must be "+u,L.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new L("Unknown option "+o,L.ERR_BAD_OPTION)}}const Rl={assertOptions:Xv,validators:Co},ze=Rl.validators;let Zt=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Da,response:new Da}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let l={};Error.captureStackTrace?Error.captureStackTrace(l):l=new Error;const o=l.stack?l.stack.replace(/^.+\n/,""):"";try{r.stack?o&&!String(r.stack).endsWith(o.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+o):r.stack=o}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=ln(this.defaults,n);const{transitional:r,paramsSerializer:l,headers:o}=n;r!==void 0&&Rl.assertOptions(r,{silentJSONParsing:ze.transitional(ze.boolean),forcedJSONParsing:ze.transitional(ze.boolean),clarifyTimeoutError:ze.transitional(ze.boolean),legacyInterceptorReqResOrdering:ze.transitional(ze.boolean)},!1),l!=null&&(v.isFunction(l)?n.paramsSerializer={serialize:l}:Rl.assertOptions(l,{encode:ze.function,serialize:ze.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Rl.assertOptions(n,{baseUrl:ze.spelling("baseURL"),withXsrfToken:ze.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let i=o&&v.merge(o.common,o[n.method]);o&&v.forEach(["delete","get","head","post","put","patch","common"],g=>{delete o[g]}),n.headers=_e.concat(i,o);const s=[];let u=!0;this.interceptors.request.forEach(function(y){if(typeof y.runWhen=="function"&&y.runWhen(n)===!1)return;u=u&&y.synchronous;const w=n.transitional||au;w&&w.legacyInterceptorReqResOrdering?s.unshift(y.fulfilled,y.rejected):s.push(y.fulfilled,y.rejected)});const a=[];this.interceptors.response.forEach(function(y){a.push(y.fulfilled,y.rejected)});let c,f=0,m;if(!u){const g=[qa.bind(this),void 0];for(g.unshift(...s),g.push(...a),m=g.length,c=Promise.resolve(n);f{if(!r._listeners)return;let o=r._listeners.length;for(;o-- >0;)r._listeners[o](l);r._listeners=null}),this.promise.then=l=>{let o;const i=new Promise(s=>{r.subscribe(s),o=s}).then(l);return i.cancel=function(){r.unsubscribe(o)},i},t(function(o,i,s){r.reason||(r.reason=new Vr(o,i,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new qd(function(l){t=l}),cancel:t}}};function Gv(e){return function(n){return e.apply(null,n)}}function Zv(e){return v.isObject(e)&&e.isAxiosError===!0}const os={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(os).forEach(([e,t])=>{os[t]=e});function Jd(e){const t=new Zt(e),n=Pd(Zt.prototype.request,t);return v.extend(n,Zt.prototype,t,{allOwnKeys:!0}),v.extend(n,t,null,{allOwnKeys:!0}),n.create=function(l){return Jd(ln(e,l))},n}const G=Jd(Hr);G.Axios=Zt;G.CanceledError=Vr;G.CancelToken=Yv;G.isCancel=$d;G.VERSION=Kd;G.toFormData=ko;G.AxiosError=L;G.Cancel=G.CanceledError;G.all=function(t){return Promise.all(t)};G.spread=Gv;G.isAxiosError=Zv;G.mergeConfig=ln;G.AxiosHeaders=_e;G.formToJSON=e=>Md(v.isHTMLForm(e)?new FormData(e):e);G.getAdapter=Qd.getAdapter;G.HttpStatusCode=os;G.default=G;const{Axios:E0,AxiosError:x0,CanceledError:k0,isCancel:C0,CancelToken:_0,VERSION:R0,all:P0,Cancel:N0,isAxiosError:O0,spread:T0,toFormData:L0,AxiosHeaders:j0,HttpStatusCode:z0,formToJSON:A0,getAdapter:I0,mergeConfig:D0}=G,F0=5e5,pe=G.create({baseURL:"",timeout:3e4,withCredentials:!0,headers:{"Content-Type":"application/json"}});pe.interceptors.request.use(e=>{const t=localStorage.getItem("dist_user_id");return t&&(e.headers["New-Api-User"]=t),e});pe.interceptors.response.use(e=>(e.data&&e.data.success===!1&&e.data.message&&Zo.error(e.data.message),e),e=>{var n,r,l;const t=((r=(n=e.response)==null?void 0:n.data)==null?void 0:r.message)||e.message||"Request failed";return((l=e.response)==null?void 0:l.status)===401?(localStorage.removeItem("dist_user_id"),window.dispatchEvent(new Event("auth:logout")),Zo.error("Session expired, please log in again")):Zo.error(t),Promise.reject(e)});const bv=()=>pe.get("/api/dist/site/info"),U0=()=>pe.get("/api/dist/site/models"),M0=()=>pe.get("/api/dist/site/packages"),e0=e=>pe.post("/api/dist/user/register",e),t0=e=>pe.post("/api/dist/user/login",e),n0=()=>pe.post("/api/dist/user/logout"),ri=()=>pe.get("/api/dist/user/self"),$0=()=>pe.get("/api/dist/user/usage"),B0=()=>pe.get("/api/dist/token/list"),H0=e=>pe.post("/api/dist/token/create",e),V0=(e,t)=>pe.put(`/api/dist/token/${e}`,t),W0=e=>pe.delete(`/api/dist/token/${e}`),Q0=e=>pe.post("/api/dist/topup/redeem",{key:e}),K0=e=>pe.post("/api/dist/package/subscribe",{package_id:e}),Xd=E.createContext(null);function r0({children:e}){const[t,n]=E.useState(null),[r,l]=E.useState(!0),o=E.useCallback(async()=>{try{const a=await ri();if(a.data.success)return n(a.data.data),a.data.data}catch{}return null},[]);E.useEffect(()=>{localStorage.getItem("dist_user_id")?ri().then(c=>{c.data.success?n(c.data.data):localStorage.removeItem("dist_user_id")}).catch(()=>{localStorage.removeItem("dist_user_id")}).finally(()=>l(!1)):l(!1)},[]),E.useEffect(()=>{const a=()=>{n(null)};return window.addEventListener("auth:logout",a),()=>window.removeEventListener("auth:logout",a)},[]);const i=E.useCallback(async(a,c)=>{const f=await t0({username:a,password:c});if(f.data.success){const m=f.data.data;m!=null&&m.id&&localStorage.setItem("dist_user_id",String(m.id));const S=await ri();return S.data.success?n(S.data.data):n(m),{success:!0}}return{success:!1,message:f.data.message}},[]),s=E.useCallback(async a=>{const c=await e0(a);return c.data.success?{success:!0,needsLogin:!0}:{success:!1,message:c.data.message}},[]),u=E.useCallback(async()=>{try{await n0()}catch{}localStorage.removeItem("dist_user_id"),n(null)},[]);return R.jsx(Xd.Provider,{value:{user:t,loading:r,login:i,register:s,logout:u,refreshUser:o},children:e})}function Yd(){const e=E.useContext(Xd);if(!e)throw new Error("useAuth must be used within AuthProvider");return e}const Gd=E.createContext(null);function l0({children:e}){const[t,n]=E.useState(null),[r,l]=E.useState(!0);return E.useEffect(()=>{bv().then(o=>{var i,s;if(o.data.success&&(n(o.data.data),(i=o.data.data)!=null&&i.name&&(document.title=o.data.data.name),(s=o.data.data)!=null&&s.favicon)){const u=document.querySelector("link[rel~='icon']")||document.createElement("link");u.rel="icon",u.href=o.data.data.favicon,document.head.appendChild(u)}}).catch(()=>{}).finally(()=>l(!1))},[]),R.jsx(Gd.Provider,{value:{site:t,loading:r},children:e})}function o0(){const e=E.useContext(Gd);if(!e)throw new Error("useSite must be used within SiteProvider");return e}function i0(){const{user:e,logout:t}=Yd(),{site:n}=o0(),r=ou(),l=un(),[o,i]=E.useState(!1),s=(n==null?void 0:n.name)||"AI Platform",a=[{to:"/",label:"Home",auth:!1},{to:"/pricing",label:"Pricing",auth:!1},{to:"/packages",label:"Packages",auth:!1},{to:"/dashboard",label:"Dashboard",auth:!0},{to:"/tokens",label:"API Keys",auth:!0}].filter(c=>!c.auth||e);return R.jsxs("div",{className:"min-h-screen flex flex-col",children:[(n==null?void 0:n.announcement)&&R.jsx("div",{className:"bg-brand-600/20 border-b border-brand-500/20 text-center py-2 px-4",children:R.jsx("p",{className:"text-sm text-brand-200",children:n.announcement})}),R.jsxs("header",{className:"sticky top-0 z-50 backdrop-blur-xl bg-black/60 border-b border-white/[0.06]",children:[R.jsxs("div",{className:"max-w-7xl mx-auto px-6 h-16 flex items-center justify-between",children:[R.jsxs(pn,{to:"/",className:"flex items-center gap-3 group",children:[n!=null&&n.logo?R.jsx("img",{src:n.logo,alt:s,className:"h-8 w-auto"}):R.jsx("div",{className:"w-8 h-8 rounded-lg bg-gradient-to-br from-brand-500 to-purple-600 flex items-center justify-center text-white font-bold text-sm",children:s.charAt(0)}),R.jsx("span",{className:"text-lg font-semibold text-white group-hover:text-brand-400 transition-colors",children:s})]}),R.jsx("nav",{className:"hidden md:flex items-center gap-1",children:a.map(c=>R.jsx(s0,{to:c.to,active:l.pathname===c.to,children:c.label},c.to))}),R.jsxs("div",{className:"flex items-center gap-3",children:[e?R.jsxs("div",{className:"flex items-center gap-3",children:[R.jsx("span",{className:"text-sm text-neutral-400 hidden sm:block",children:e.display_name||e.username}),R.jsx("button",{onClick:async()=>{await t(),r("/")},className:"text-sm text-neutral-400 hover:text-white transition-colors",children:"Logout"})]}):R.jsxs(R.Fragment,{children:[R.jsx(pn,{to:"/login",className:"text-sm text-neutral-300 hover:text-white transition-colors px-3 py-1.5 hidden sm:block",children:"Login"}),R.jsx(pn,{to:"/register",className:"btn-primary text-sm !px-4 !py-1.5",children:"Sign Up"})]}),R.jsx("button",{className:"md:hidden p-1.5 rounded-lg hover:bg-white/5 transition-colors",onClick:()=>i(!o),"aria-label":"Toggle menu",children:R.jsx("svg",{className:"w-5 h-5 text-neutral-300",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:o?R.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M6 18L18 6M6 6l12 12"}):R.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 6h16M4 12h16M4 18h16"})})})]})]}),o&&R.jsx("div",{className:"md:hidden border-t border-white/[0.06] bg-black/90 backdrop-blur-xl",children:R.jsxs("nav",{className:"max-w-7xl mx-auto px-6 py-3 flex flex-col gap-1",children:[a.map(c=>R.jsx(pn,{to:c.to,onClick:()=>i(!1),className:`px-3 py-2 text-sm rounded-lg transition-colors ${l.pathname===c.to?"text-brand-400 bg-brand-500/10":"text-neutral-400 hover:text-white hover:bg-white/5"}`,children:c.label},c.to)),!e&&R.jsx(pn,{to:"/login",onClick:()=>i(!1),className:"px-3 py-2 text-sm text-neutral-400 hover:text-white rounded-lg hover:bg-white/5 transition-colors sm:hidden",children:"Login"})]})})]}),R.jsx("main",{className:"flex-1",children:R.jsx(wd,{})}),R.jsx("footer",{className:"border-t border-white/[0.06] mt-auto",children:R.jsxs("div",{className:"max-w-7xl mx-auto px-6 py-8 flex flex-col md:flex-row items-center justify-between gap-4",children:[R.jsxs("p",{className:"text-sm text-neutral-500",children:["© ",new Date().getFullYear()," ",s,"."]}),R.jsx("div",{className:"flex items-center gap-4",children:(n==null?void 0:n.contact_email)&&R.jsx("a",{href:`mailto:${n.contact_email}`,className:"text-sm text-neutral-500 hover:text-neutral-300 transition-colors",children:"Contact"})})]})})]})}function s0({to:e,children:t,active:n}){return R.jsx(pn,{to:e,className:`px-3 py-1.5 text-sm rounded-lg transition-all ${n?"text-brand-400 bg-brand-500/10":"text-neutral-400 hover:text-white hover:bg-white/5"}`,children:t})}function u0(){const{user:e,loading:t}=Yd(),n=un();return t?R.jsx("div",{className:"flex items-center justify-center min-h-[50vh]",children:R.jsx("div",{className:"w-8 h-8 border-2 border-brand-500/30 border-t-brand-500 rounded-full animate-spin"})}):e?R.jsx(wd,{}):R.jsx(vd,{to:"/login",state:{from:n},replace:!0})}const a0=E.lazy(()=>an(()=>import("./Home-D5xeHSSc.js"),__vite__mapDeps([0,1,2]))),c0=E.lazy(()=>an(()=>import("./Login-BYKZA2hS.js"),[])),f0=E.lazy(()=>an(()=>import("./Register-BQ7Y75Yc.js"),[])),d0=E.lazy(()=>an(()=>import("./Dashboard-Djts405O.js"),__vite__mapDeps([3,2,1]))),p0=E.lazy(()=>an(()=>import("./Tokens-DEPVzOT6.js"),[])),h0=E.lazy(()=>an(()=>import("./Packages-CIW8TdH4.js"),__vite__mapDeps([4,2]))),m0=E.lazy(()=>an(()=>import("./Pricing-GrGWcOkj.js"),[])),g0=()=>R.jsx("div",{className:"flex items-center justify-center min-h-screen",children:R.jsx("div",{className:"w-8 h-8 border-2 border-brand-500/30 border-t-brand-500 rounded-full animate-spin"})});function y0(){return R.jsx(E.Suspense,{fallback:R.jsx(g0,{}),children:R.jsxs(Sg,{children:[R.jsxs(He,{element:R.jsx(i0,{}),children:[R.jsx(He,{path:"/",element:R.jsx(a0,{})}),R.jsx(He,{path:"/pricing",element:R.jsx(m0,{})}),R.jsx(He,{path:"/packages",element:R.jsx(h0,{})}),R.jsx(He,{path:"/login",element:R.jsx(c0,{})}),R.jsx(He,{path:"/register",element:R.jsx(f0,{})}),R.jsxs(He,{element:R.jsx(u0,{}),children:[R.jsx(He,{path:"/dashboard",element:R.jsx(d0,{})}),R.jsx(He,{path:"/tokens",element:R.jsx(p0,{})})]})]}),R.jsx(He,{path:"*",element:R.jsx(vd,{to:"/",replace:!0})})]})})}li.createRoot(document.getElementById("root")).render(R.jsx(oc.StrictMode,{children:R.jsx(Pg,{children:R.jsx(l0,{children:R.jsxs(r0,{children:[R.jsx(y0,{}),R.jsx(vy,{position:"top-center",toastOptions:{duration:3e3,style:{background:"#1a1a2e",color:"#fff",border:"1px solid rgba(255,255,255,0.08)",borderRadius:"12px",fontSize:"14px"}}})]})})})}));export{pn as L,vd as N,F0 as Q,o0 as a,M0 as b,ou as c,un as d,$0 as e,Q0 as f,U0 as g,B0 as h,H0 as i,R as j,V0 as k,W0 as l,E as r,K0 as s,Yd as u,Zo as z}; diff --git a/dist/index.html b/dist/index.html new file mode 100644 index 0000000..94e3002 --- /dev/null +++ b/dist/index.html @@ -0,0 +1,16 @@ + + + + + + + + + AI Platform + + + + +
+ + diff --git a/index.html b/index.html index 5b15855..4639dfd 100644 --- a/index.html +++ b/index.html @@ -6,7 +6,7 @@ - SubRouter Dist Site + AI Platform
diff --git a/src/components/Layout.jsx b/src/components/Layout.jsx index 328384d..28a341c 100644 --- a/src/components/Layout.jsx +++ b/src/components/Layout.jsx @@ -10,7 +10,7 @@ export default function Layout() { const location = useLocation(); const [mobileMenuOpen, setMobileMenuOpen] = useState(false); - const siteName = site?.name || 'SubRouter'; + const siteName = site?.name || 'AI Platform'; const navItems = [ { to: '/', label: 'Home', auth: false }, @@ -140,7 +140,7 @@ export default function Layout() {